Tweak last commit.
[gnulib.git] / ChangeLog
1 2009-04-14  Bruno Haible  <bruno@clisp.org>
2
3         * modules/fcntl (Depends-on): Add extensions.
4         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
5
6 2009-04-12  Ben Pfaff  <blp@gnu.org>
7
8         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
9         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
10
11 2009-03-20  Ben Pfaff  <blp@gnu.org>
12
13         Make rename replace existing destinations on Windows.
14         * m4/rename.m4: Add test for Mingw.
15         * lib/rename.c: Add rename replacement that uses MoveFileEx with
16         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
17         * doc/posix-functions/rename.texi: Document.
18
19 2009-04-10  Bruno Haible  <bruno@clisp.org>
20
21         New include file "iconveh.h".
22         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
23         * lib/striconveh.h: Include it.
24         (enum iconv_ilseq_handler): Remove definition.
25         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
26         striconveh.h.
27         * lib/striconveha.c: Include striconveh.h.
28         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
29         * modules/striconveh (Files): Add lib/iconveh.h.
30         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
31         lib/striconveh.h.
32
33 2009-04-10  Bruno Haible  <bruno@clisp.org>
34
35         * lib/uniconv.h: Update comment.
36
37 2009-04-10  Bruno Haible  <bruno@clisp.org>
38
39         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
40         always.
41         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
42         * lib/unistr/u16-mbtouc-aux.c: Likewise.
43         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
45         "unistring-notinline.h", so that the function gets defined always.
46         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47         * lib/unistr/u8-uctomb.c: Likewise.
48         * lib/unistr/u16-mbtouc.c: Likewise.
49         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50         * lib/unistr/u16-uctomb.c: Likewise.
51         * lib/unistr/u32-mbtouc.c: Likewise.
52         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
53         * lib/unistr/u32-uctomb.c: Likewise.
54
55 2009-04-10  Bruno Haible  <bruno@clisp.org>
56
57         Mark 'utime' obsolete.
58         * modules/utime (Status, Notice): New sections.
59         Suggested by Jim Meyering.
60
61         Fix cross-compile guess for utime test.
62         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
63         autoconf.
64         * doc/posix-functions/utime.texi: Give more precisions.
65         Reported by Jan <ipif@ymail.com>.
66
67 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
68
69         filevercmp: correct today's change
70         * lib/filevercmp.c: Also handle coreutils' test inputs.
71         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
72
73         Fix regression in 'filevercmp' module. Thanks Sven Joachim
74         for reporting it.
75         * lib/filevercmp.c: Special handle for "", "." and "..".
76         * tests/test-filevercmp.c: Enlarge the set suite.
77
78 2009-04-07  Jim Meyering  <meyering@redhat.com>
79
80         useless-if-before-free: show how to remove braced useless free, too
81         * build-aux/useless-if-before-free: still only in a comment, though.
82
83 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
84
85         maint.mk: import changes to syntax-check macros from coreutils
86         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
87         Use them in the relevant macros.
88
89 2009-04-06  Bruno Haible  <bruno@clisp.org>
90
91         Fix unportable use of bit-fields.
92         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
93         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
94         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
95
96 2009-04-06  Bruno Haible  <bruno@clisp.org>
97
98         Avoid test failures on AIX and OSF/1.
99         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
100         that malloc(0) = NULL.
101         * tests/unicase/test-u8-tolower.c (check): Likewise.
102         * tests/unicase/test-u8-totitle.c (check): Likewise.
103         * tests/unicase/test-u8-toupper.c (check): Likewise.
104         * tests/unicase/test-u16-casefold.c (check): Likewise.
105         * tests/unicase/test-u16-tolower.c (check): Likewise.
106         * tests/unicase/test-u16-totitle.c (check): Likewise.
107         * tests/unicase/test-u16-toupper.c (check): Likewise.
108         * tests/unicase/test-u32-casefold.c (check): Likewise.
109         * tests/unicase/test-u32-tolower.c (check): Likewise.
110         * tests/unicase/test-u32-totitle.c (check): Likewise.
111         * tests/unicase/test-u32-toupper.c (check): Likewise.
112         * tests/uninorm/test-u8-nfc.c (check): Likewise.
113         * tests/uninorm/test-u8-nfd.c (check): Likewise.
114         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
115         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
116         * tests/uninorm/test-u16-nfc.c (check): Likewise.
117         * tests/uninorm/test-u16-nfd.c (check): Likewise.
118         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
119         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
120         * tests/uninorm/test-u32-nfc.c (check): Likewise.
121         * tests/uninorm/test-u32-nfd.c (check): Likewise.
122         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
123         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
124
125 2009-04-05  Bruno Haible  <bruno@clisp.org>
126
127         Work around an autoconf limitation.
128         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
129         comment line if it would be longer than 3 KB.
130
131 2009-04-05  Bruno Haible  <bruno@clisp.org>
132
133         Avoid test failure with libiconv-1.13.
134         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
135         of the expected test results.
136
137 2009-04-05  Bruno Haible  <bruno@clisp.org>
138
139         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
140         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
141         that it should be installed.
142
143 2009-04-05  Bruno Haible  <bruno@clisp.org>
144
145         * gnulib-tool: New option --copy-file.
146         (func_usage): Document it.
147         (func_dest_tmpfilename): Moved out of func_import.
148         (func_add_file, func_update_file): New functions, extracted from
149         func_import.
150         (func_import): Update.
151
152 2009-04-05  Karl Berry  <karl@gnu.org>
153
154         * README: prominently mention gnulib-tool.
155         Rearrange sections so getting the code is near the top.
156
157 2009-04-05  Bruno Haible  <bruno@clisp.org>
158
159         * lib/unicase.h: Mention u*_cmp2.
160         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
161         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
162         * lib/unicase/ulc-casecmp.c: Likewise.
163         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
164         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
165         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
166         unistr/u8-cmp.
167         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
168         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
169         unistr/u16-cmp.
170         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
171         unistr/u32-cmp.
172
173         * lib/uninorm.h: Mention u*_cmp2.
174         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
175         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
176         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
177         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
178         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
179         unistr/u8-cmp.
180         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
181         unistr/u16-cmp.
182         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
183         unistr/u32-cmp.
184
185         New module 'unistr/u32-cmp2'.
186         * lib/unistr/u32-cmp2.c: New file.
187         * modules/unistr/u32-cmp2: New file.
188
189         New module 'unistr/u16-cmp2'.
190         * lib/unistr/u16-cmp2.c: New file.
191         * modules/unistr/u16-cmp2: New file.
192
193         New module 'unistr/u8-cmp2'.
194         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
195         * lib/unistr/u8-cmp2.c: New file.
196         * lib/unistr/u-cmp2.h: New file.
197         * modules/unistr/u8-cmp2: New file.
198
199 2009-04-05  Bruno Haible  <bruno@clisp.org>
200
201         * lib/unictype.h (uc_property_is_valid): New macro.
202         * tests/unictype/test-pr_byname.c (main): Use it.
203
204         * lib/unistr.h: Doc fixes.
205         * lib/uniconv.h: Doc fixes.
206         * lib/unictype.h: Doc fixes.
207
208 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
209
210         Port coreutils 7.2 to Solaris 8.
211
212         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
213         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
214         for Solaris 8.  This is a bit of a hack, as it means it's the
215         caller's responsibility to add -lnsl if needed, but most likely it
216         won't be needed since only getaddrinfo uses this and getaddrinfo
217         isn't needed on Solaris 8.
218
219         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
220         problem to Solaris 8 encountered with coreutils 7.2, which
221         resulted in a message "fnmatch.c:292: warning: passing argument 4
222         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
223         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
224
225 2009-04-03  Simon Josefsson  <simon@josefsson.org>
226
227         * m4/ld-version-script.m4: Add FIXME comment.
228
229 2009-04-02  Simon Josefsson  <simon@josefsson.org>
230
231         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
232         SOVERSION variable.
233
234 2009-04-02  Bruno Haible  <bruno@clisp.org>
235
236         * Makefile (info, html, dvi, pdf): Combine the rules.
237         Suggested by Jim Meyering.
238
239 2009-04-01  Bruno Haible  <bruno@clisp.org>
240
241         * Makefile (info, html, dvi, pdf): New targets.
242         Reported by Reuben Thomas <rrt@sc3d.org>.
243
244 2009-04-01  Bruno Haible  <bruno@clisp.org>
245
246         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
247         can be put into PATH.
248         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
249
250 2009-04-01  Bruno Haible  <bruno@clisp.org>
251
252         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
253
254 2009-04-01  Bruno Haible  <bruno@clisp.org>
255
256         Rename module 'visibility'.
257         * modules/lib-symbol-visibility: Renamed from modules/visibility.
258         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
259         * doc/gnulib.texi: Update.
260         * MODULES.html.sh (Misc): Update.
261         * NEWS: Mention the change.
262
263 2009-04-01  Simon Josefsson  <simon@josefsson.org>
264
265         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
266         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
267         Eric Blake <ebb9@byu.net> for review.
268         * MODULES.html.sh: Add lib-msvc-compat.
269         * doc/gnulib.texi: Link to new section.
270         * m4/ld-output-def.m4: New file.
271         * doc/ld-output-def.texi: New file.
272
273 2009-04-01  Simon Josefsson  <simon@josefsson.org>
274
275         Rename ld-version-script to lib-symbol-versions.  Suggested by
276         Bruno Haible <bruno@clisp.org>.
277         * modules/ld-version-script: Renamed to lib-symbol-versions.
278         * doc/ld-version-script.texi: Fix module name.
279         * MODULES.html.sh: Add lib-symbol-versions.
280
281 2009-03-31  Simon Josefsson  <simon@josefsson.org>
282
283         * modules/u64-tests: New file.
284         * tests/test-u64.c: New file.
285
286 2009-03-04  Simon Josefsson  <simon@josefsson.org>
287
288         * MODULES.html.sh: Mention u64.
289         * modules/u64: New module.
290         * modules/crypto/sha512: Depend on u64 module instead of providing
291         u64.h.
292
293 2009-03-27  Eric Blake  <ebb9@byu.net>
294
295         test-strerror: make debugging EAI_SYSTEM easier
296         * modules/getaddrinfo-tests (Depends-on): Add strerror.
297         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
298         failure was EAI_SYSTEM.
299
300 2009-03-25  Bruno Haible  <bruno@clisp.org>
301
302         Fix a problem with --enable-relocatable on Solaris 7.
303         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
304         since 2008-02-24.
305
306 2009-03-25  Eric Blake  <ebb9@byu.net>
307
308         test-sockets: avoid gcc warning
309         * tests/test-sockets.c (main): Silence compiler warning.
310
311 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
312
313         New modules nproc, pthread, contributed by Glen Lenker.
314
315         * MODULES.html.sh: Add pthread, nproc.
316         * lib/nproc.c: New file.
317         * lib/nproc.h: New file.
318         * lib/pthread.in.h: New file.
319         * m4/pthread.m4: New file.
320         * modules/nproc: New file.
321         * modules/pthread: New file.
322
323 2009-03-24  Simon Josefsson  <simon@josefsson.org>
324
325         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
326         New variable.
327
328 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
329
330         filevercmp: handle simple~ and numbered.~3~ backup suffixes
331         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
332         * tests/test-filevercmp.c: Add tests for backup suffixes.
333
334 2009-03-24  Simon Josefsson  <simon@josefsson.org>
335
336         * modules/stdlib (Depends-on): Add stdint, needed when defining
337         struct random_data on, for example, HP-UX 10.20.  Reported by
338         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
339
340 2009-03-24  Simon Josefsson  <simon@josefsson.org>
341
342         * lib/readline.c (readline): Call fflush on stdout after printing
343         prompt.
344
345 2009-03-20  Bruno Haible  <bruno@clisp.org>
346
347         Remove dependency from 'close' module to -lws2_32 on native Windows.
348         * lib/close-hook.h: New file.
349         * lib/close-hook.c: New file.
350         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
351         w32sock.h.
352         (_gl_close_fd_maybe_socket): Remove function.
353         (rpl_close): Invoke execute_all_close_hooks instead of
354         _gl_close_fd_maybe_socket.
355         * lib/sockets.c: Include close-hook.h, w32sock.h.
356         (close_fd_maybe_socket): New function, essentially from lib/close.c.
357         (close_sockets_hook): New variable.
358         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
359         (gl_sockets_cleanup): Unregister it.
360         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
361         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
362         * modules/close-hook: New file.
363         * modules/close (Files): Remove lib/w32sock.h.
364         (Depends-on): Add close-hook.
365         (Link): Remove section.
366         * modules/sockets (Files): Add lib/w32sock.h.
367         (Depends-on): Add close-hook.
368         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
369         invocation.
370         * NEWS: Mention that LIB_CLOSE is gone.
371
372 2009-03-23  Eric Blake  <ebb9@byu.net>
373
374         signal-tests: test previous patch
375         * tests/test-signal.c: New file.
376         * modules/signal-tests: Likewise.
377
378         signal.h: always support 'volatile sig_atomic_t'
379         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
380         (gl_SIGNAL_H_DEFAULTS): Add a default.
381         * modules/signal (Makefile.am): Substitute if needed.
382         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
383         users can blindly add volatile.
384         * doc/posix-headers/signal.texi (signal.h): Document it.
385         Reported by Matthew Woehlke.
386
387 2009-03-23  Jim Meyering  <meyering@redhat.com>
388
389         pathmax: PATH_MAX: use pathconf only when available
390         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
391         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
392         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
393         This avoids a link failure in a PSP cross-compilation environment
394         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
395
396         * lib/vasnprintf.c (divide): Fix typo in comment.
397
398 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
399
400         * gnulib-tool (func_filter_filelist): Fix comment.
401
402 2009-03-20  Bruno Haible  <bruno@clisp.org>
403
404         Make sockets.h self-contained.
405         * lib/sockets.c: Include sockets.h first.
406         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
407
408 2009-03-19  Eric Blake  <ebb9@byu.net>
409
410         doc: mention more functions added in cygwin 1.7.0
411         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
412         addition.
413         * doc/posix-functions/log2f.texi: Likewise.
414
415 2009-03-19  Jim Meyering  <meyering@redhat.com>
416
417         fsusage: avoid syntax error due to statement-before-declaration
418         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
419         after all declarations.  Reported by Matthew Woehlke in
420         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
421
422 2009-03-18  Eric Blake  <ebb9@byu.net>
423
424         build-aux/compile: sync from automake
425         * build-aux/compile: New file, from automake.
426         * config/srclist.txt: Mention build-aux/compile.
427
428 2009-03-17  Bruno Haible  <bruno@clisp.org>
429
430         * lib/git-merge-changelog.c: Fix typo in comment.
431         Reported by Reuben Thomas <rrt@sc3d.org>.
432
433 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
434
435         * m4/regex.m4: update and improve help for
436         --without-included-regex.
437
438 2009-03-17  Simon Josefsson  <simon@josefsson.org>
439
440         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
441         failure on missing include files.
442
443 2009-03-17  Eric Blake  <ebb9@byu.net>
444
445         doc: mention more functions added in cygwin 1.7.0
446         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
447         addition.
448         * doc/posix-functions/fwscanf.texi: Likewise.
449         * doc/posix-functions/swprintf.texi: Likewise.
450         * doc/posix-functions/swscanf.texi: Likewise.
451         * doc/posix-functions/vfwprintf.texi: Likewise.
452         * doc/posix-functions/vfwscanf.texi: Likewise.
453         * doc/posix-functions/vswprintf.texi: Likewise.
454         * doc/posix-functions/vswscanf.texi: Likewise.
455         * doc/posix-functions/vwprintf.texi: Likewise.
456         * doc/posix-functions/vwscanf.texi: Likewise.
457         * doc/posix-functions/wcscasecmp.texi: Likewise.
458         * doc/posix-functions/wcsdup.texi: Likewise.
459         * doc/posix-functions/wcsftime.texi: Likewise.
460         * doc/posix-functions/wcsncasecmp.texi: Likewise.
461         * doc/posix-functions/wprintf.texi: Likewise.
462         * doc/posix-functions/wscanf.texi: Likewise.
463         * doc/glibc-functions/gethostbyname2.texi: Likewise.
464
465 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
466
467         maint.mk: really add $(AM_MAKEFLAGS)
468         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
469         was inadvertently omitted in the last commit.
470         Spotted by Bruno Haible.
471
472         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
473         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
474         $(AM_MAKEFLAGS)' rather than plain `make'.
475
476         gnulib-tool: execute $MAKE not make
477         * gnulib-tool: Default $MAKE to 'make'.
478         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
479         than make.  Initialize $MAKE in the do-autobuild script.
480
481         gnulib-tool: use $MAKE not make in generated files
482         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
483         make, in generated files.  Initialize $MAKE in the do-autobuild
484         script.
485
486         * top/GNUmakefile (_have-git-version-gen): Fix typo.
487
488         GNUmakefile: disable parallelism only for multiple, recursive targets
489         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
490         additions in the Makefile.
491         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
492         by Automake.
493         (.NOTPARALLEL): Only disable parallel builds if multiple targets
494         are listed on the command line and at least one of them is
495         listed in $(ALL_RECURSIVE_TARGETS).
496
497 2009-03-14  Bruno Haible  <bruno@clisp.org>
498
499         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
500         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
501         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
502         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
503         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
504         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
505         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
506         unistr/u8-uctomb.
507         * modules/unistr/u8-strchr (Depends-on): Likewise.
508         * modules/unistr/u8-strrchr (Depends-on): Likewise.
509         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
510         unistr/u16-uctomb.
511         * modules/unistr/u16-strchr (Depends-on): Likewise.
512         * modules/unistr/u16-strrchr (Depends-on): Likewise.
513
514 2009-03-12  Bruno Haible  <bruno@clisp.org>
515
516         Work around select() bug on Interix 3.5.
517         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
518         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
519         * m4/select.m4: New file.
520         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
521         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
522         * modules/select (Files): Add m4/select.m4.
523         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
524         * modules/nanosleep (Depends-on): Add select.
525         * modules/poll (Depends-on): Likewise.
526         * doc/posix-functions/select.texi: Mention the Interix bug.
527         Reported by Markus Duft <mduft@gentoo.org>.
528
529         * lib/select.c: Renamed from lib/winsock-select.c.
530         * modules/select (Files): Add lib/select.c, remove
531         lib/winsock-select.c.
532         (configure.ac): Update.
533
534 2009-03-12  Jim Meyering  <meyering@redhat.com>
535
536         avoid gcc warnings about unused macro definitions
537         * lib/readtokens.c (STREQ): Remove unused definition.
538         * lib/xmalloc.c (SIZE_MAX): Likewise.
539         * lib/openat-die.c (N_): Likewise.
540         * lib/mountlist.c (SIZE_MAX): Remove definition.
541         Instead, include <stdint.h>.
542         * lib/readutmp.c: Likewise.
543         * modules/readutmp (Depends-on): Add stdint.
544         * modules/mountlist (Depends-on): Add stdint.
545         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
546
547 2009-03-10  Bruno Haible  <bruno@clisp.org>
548
549         Tests for module 'mbmemcasecoll'.
550         * modules/mbmemcasecoll-tests: New file.
551         * tests/test-mbmemcasecoll1.sh: New file.
552         * tests/test-mbmemcasecoll2.sh: New file.
553         * tests/test-mbmemcasecoll3.sh: New file.
554         * tests/test-mbmemcasecoll.c: New file.
555
556         New module 'mbmemcasecoll'.
557         * lib/mbmemcasecoll.h: New file.
558         * lib/mbmemcasecoll.c: New file.
559         * modules/mbmemcasecoll: New file.
560
561         * tests/test-mbmemcasecmp.h: New file, extracted from
562         tests/test-mbmemcasecmp.c.
563         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
564         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
565         (main): Update.
566         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
567
568 2009-03-09  Bruno Haible  <bruno@clisp.org>
569
570         Tests for module 'mbmemcasecmp'.
571         * modules/mbmemcasecmp-tests: New file.
572         * tests/test-mbmemcasecmp1.sh: New file.
573         * tests/test-mbmemcasecmp2.sh: New file.
574         * tests/test-mbmemcasecmp3.sh: New file.
575         * tests/test-mbmemcasecmp.c: New file.
576
577         New module 'mbmemcasecmp'.
578         * lib/mbmemcasecmp.h: New file.
579         * lib/mbmemcasecmp.c: New file.
580         * modules/mbmemcasecmp: New file.
581
582 2009-03-09  Bruno Haible  <bruno@clisp.org>
583
584         Tests for module 'unicase/ulc-casecoll'.
585         * modules/unicase/ulc-casecoll-tests: New file.
586         * tests/unicase/test-ulc-casecoll1.sh: New file.
587         * tests/unicase/test-ulc-casecoll2.sh: New file.
588         * tests/unicase/test-ulc-casecoll.c: New file.
589
590         New module 'unicase/ulc-casecoll'.
591         * lib/unicase.h (ulc_casecoll): New declaration.
592         * lib/unicase/ulc-casecoll.c: New file.
593         * modules/unicase/ulc-casecoll: New file.
594
595         New module 'unicase/ulc-casexfrm'.
596         * lib/unicase.h (ulc_casexfrm): New declaration.
597         * lib/unicase/ulc-casexfrm.c: New file.
598         * modules/unicase/ulc-casexfrm: New file.
599
600 2009-03-09  Bruno Haible  <bruno@clisp.org>
601
602         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
603         invocations.
604
605         * m4/mbscasecmp.m4: Remove file.
606         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
607         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
608
609         * m4/mbscasestr.m4: Remove file.
610         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
611         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
612
613         * m4/mbschr.m4: Remove file.
614         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
615         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
616
617         * m4/mbscspn.m4: Remove file.
618         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
619         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
620
621         * m4/mbslen.m4: Remove file.
622         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
623         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
624
625         * m4/mbsncasecmp.m4: Remove file.
626         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
627         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
628
629         * m4/mbsnlen.m4: Remove file.
630         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
631         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
632
633         * m4/mbspbrk.m4: Remove file.
634         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
635         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
636
637         * m4/mbspcasecmp.m4: Remove file.
638         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
639         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
640
641         * m4/mbsrchr.m4: Remove file.
642         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
643         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
644
645         * m4/mbssep.m4: Remove file.
646         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
647         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
648
649         * m4/mbsspn.m4: Remove file.
650         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
651         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
652
653         * m4/mbsstr.m4: Remove file.
654         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
655         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
656
657         * m4/mbstok_r.m4: Remove file.
658         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
659         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
660
661         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
662
663         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
664         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
665
666         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
667
668 2009-03-08  Bruno Haible  <bruno@clisp.org>
669
670         Tests for module 'unicase/ulc-casecmp'.
671         * modules/unicase/ulc-casecmp-tests: New file.
672         * tests/unicase/test-ulc-casecmp1.sh: New file.
673         * tests/unicase/test-ulc-casecmp2.sh: New file.
674         * tests/unicase/test-ulc-casecmp.c: New file.
675
676         New module 'unicase/ulc-casecmp'.
677         * lib/unicase.h (ulc_casecmp): New declaration.
678         * lib/unicase/ulc-casecmp.c: New file.
679         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
680         'const SRC_UNIT *'.
681         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
682         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
683         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
684         * modules/unicase/ulc-casecmp: New file.
685
686         Tests for module 'unicase/u32-is-cased'.
687         * modules/unicase/u32-is-cased-tests: New file.
688         * tests/unicase/test-u32-is-cased.c: New file.
689
690         Tests for module 'unicase/u16-is-cased'.
691         * modules/unicase/u16-is-cased-tests: New file.
692         * tests/unicase/test-u16-is-cased.c: New file.
693
694         Tests for module 'unicase/u8-is-cased'.
695         * modules/unicase/u8-is-cased-tests: New file.
696         * tests/unicase/test-u8-is-cased.c: New file.
697         * tests/unicase/test-is-cased.h: New file.
698
699         New module 'unicase/u32-is-cased'.
700         * lib/unicase/u32-is-cased.c: New file.
701         * modules/unicase/u32-is-cased: New file.
702
703         New module 'unicase/u16-is-cased'.
704         * lib/unicase/u16-is-cased.c: New file.
705         * modules/unicase/u16-is-cased: New file.
706
707         New module 'unicase/u8-is-cased'.
708         * lib/unicase/u8-is-cased.c: New file.
709         * lib/unicase/u-is-cased.h: New file.
710         * modules/unicase/u8-is-cased: New file.
711
712         Tests for module 'unicase/u32-is-casefolded'.
713         * modules/unicase/u32-is-casefolded-tests: New file.
714         * tests/unicase/test-u32-is-casefolded.c: New file.
715
716         Tests for module 'unicase/u16-is-casefolded'.
717         * modules/unicase/u16-is-casefolded-tests: New file.
718         * tests/unicase/test-u16-is-casefolded.c: New file.
719
720         Tests for module 'unicase/u8-is-casefolded'.
721         * modules/unicase/u8-is-casefolded-tests: New file.
722         * tests/unicase/test-u8-is-casefolded.c: New file.
723         * tests/unicase/test-is-casefolded.h: New file.
724
725         New module 'unicase/u32-is-casefolded'.
726         * lib/unicase/u32-is-casefolded.c: New file.
727         * modules/unicase/u32-is-casefolded: New file.
728
729         New module 'unicase/u16-is-casefolded'.
730         * lib/unicase/u16-is-casefolded.c: New file.
731         * modules/unicase/u16-is-casefolded: New file.
732
733         New module 'unicase/u8-is-casefolded'.
734         * lib/unicase/u8-is-casefolded.c: New file.
735         * modules/unicase/u8-is-casefolded: New file.
736
737         Tests for module 'unicase/u32-is-titlecase'.
738         * modules/unicase/u32-is-titlecase-tests: New file.
739         * tests/unicase/test-u32-is-titlecase.c: New file.
740
741         Tests for module 'unicase/u16-is-titlecase'.
742         * modules/unicase/u16-is-titlecase-tests: New file.
743         * tests/unicase/test-u16-is-titlecase.c: New file.
744
745         Tests for module 'unicase/u8-is-titlecase'.
746         * modules/unicase/u8-is-titlecase-tests: New file.
747         * tests/unicase/test-u8-is-titlecase.c: New file.
748         * tests/unicase/test-is-titlecase.h: New file.
749
750         New module 'unicase/u32-is-titlecase'.
751         * lib/unicase/u32-is-titlecase.c: New file.
752         * modules/unicase/u32-is-titlecase: New file.
753
754         New module 'unicase/u16-is-titlecase'.
755         * lib/unicase/u16-is-titlecase.c: New file.
756         * modules/unicase/u16-is-titlecase: New file.
757
758         New module 'unicase/u8-is-titlecase'.
759         * lib/unicase/u8-is-titlecase.c: New file.
760         * modules/unicase/u8-is-titlecase: New file.
761
762         Tests for module 'unicase/u32-is-lowercase'.
763         * modules/unicase/u32-is-lowercase-tests: New file.
764         * tests/unicase/test-u32-is-lowercase.c: New file.
765
766         Tests for module 'unicase/u16-is-lowercase'.
767         * modules/unicase/u16-is-lowercase-tests: New file.
768         * tests/unicase/test-u16-is-lowercase.c: New file.
769
770         Tests for module 'unicase/u8-is-lowercase'.
771         * modules/unicase/u8-is-lowercase-tests: New file.
772         * tests/unicase/test-u8-is-lowercase.c: New file.
773         * tests/unicase/test-is-lowercase.h: New file.
774
775         New module 'unicase/u32-is-lowercase'.
776         * lib/unicase/u32-is-lowercase.c: New file.
777         * modules/unicase/u32-is-lowercase: New file.
778
779         New module 'unicase/u16-is-lowercase'.
780         * lib/unicase/u16-is-lowercase.c: New file.
781         * modules/unicase/u16-is-lowercase: New file.
782
783         New module 'unicase/u8-is-lowercase'.
784         * lib/unicase/u8-is-lowercase.c: New file.
785         * modules/unicase/u8-is-lowercase: New file.
786
787         Tests for module 'unicase/u32-is-uppercase'.
788         * modules/unicase/u32-is-uppercase-tests: New file.
789         * tests/unicase/test-u32-is-uppercase.c: New file.
790
791         Tests for module 'unicase/u16-is-uppercase'.
792         * modules/unicase/u16-is-uppercase-tests: New file.
793         * tests/unicase/test-u16-is-uppercase.c: New file.
794
795         Tests for module 'unicase/u8-is-uppercase'.
796         * modules/unicase/u8-is-uppercase-tests: New file.
797         * tests/unicase/test-u8-is-uppercase.c: New file.
798         * tests/unicase/test-is-uppercase.h: New file.
799
800         New module 'unicase/u32-is-uppercase'.
801         * lib/unicase/u32-is-uppercase.c: New file.
802         * modules/unicase/u32-is-uppercase: New file.
803
804         New module 'unicase/u16-is-uppercase'.
805         * lib/unicase/u16-is-uppercase.c: New file.
806         * modules/unicase/u16-is-uppercase: New file.
807
808         New module 'unicase/u8-is-uppercase'.
809         * lib/unicase/u8-is-uppercase.c: New file.
810         * modules/unicase/u8-is-uppercase: New file.
811
812         New module 'unicase/u32-is-invariant'.
813         * lib/unicase/u32-is-invariant.c: New file.
814         * modules/unicase/u32-is-invariant: New file.
815
816         New module 'unicase/u16-is-invariant'.
817         * lib/unicase/u16-is-invariant.c: New file.
818         * modules/unicase/u16-is-invariant: New file.
819
820         New module 'unicase/u8-is-invariant'.
821         * lib/unicase/u8-is-invariant.c: New file.
822         * lib/unicase/invariant.h: New file.
823         * lib/unicase/u-is-invariant.h: New file.
824         * modules/unicase/u8-is-invariant: New file.
825
826         Tests for module 'unicase/u32-casecoll'.
827         * modules/unicase/u32-casecoll-tests: New file.
828         * tests/unicase/test-u32-casecoll.c: New file.
829
830         Tests for module 'unicase/u16-casecoll'.
831         * modules/unicase/u16-casecoll-tests: New file.
832         * tests/unicase/test-u16-casecoll.c: New file.
833
834         Tests for module 'unicase/u8-casecoll'.
835         * modules/unicase/u8-casecoll-tests: New file.
836         * tests/unicase/test-u8-casecoll.c: New file.
837
838         New module 'unicase/u32-casecoll'.
839         * lib/unicase/u32-casecoll.c: New file.
840         * modules/unicase/u32-casecoll: New file.
841
842         New module 'unicase/u16-casecoll'.
843         * lib/unicase/u16-casecoll.c: New file.
844         * modules/unicase/u16-casecoll: New file.
845
846         New module 'unicase/u8-casecoll'.
847         * lib/unicase/u8-casecoll.c: New file.
848         * lib/unicase/u-casecoll.h: New file.
849         * modules/unicase/u8-casecoll: New file.
850
851         New module 'unicase/u32-casexfrm'.
852         * lib/unicase/u32-casexfrm.c: New file.
853         * modules/unicase/u32-casexfrm: New file.
854
855         New module 'unicase/u16-casexfrm'.
856         * lib/unicase/u16-casexfrm.c: New file.
857         * modules/unicase/u16-casexfrm: New file.
858
859         New module 'unicase/u8-casexfrm'.
860         * lib/unicase/u8-casexfrm.c: New file.
861         * lib/unicase/u-casexfrm.h: New file.
862         * modules/unicase/u8-casexfrm: New file.
863
864         Tests for module 'unicase/u32-casecmp'.
865         * modules/unicase/u32-casecmp-tests: New file.
866         * tests/unicase/test-u32-casecmp.c: New file.
867
868         Tests for module 'unicase/u16-casecmp'.
869         * modules/unicase/u16-casecmp-tests: New file.
870         * tests/unicase/test-u16-casecmp.c: New file.
871
872         Tests for module 'unicase/u8-casecmp'.
873         * modules/unicase/u8-casecmp-tests: New file.
874         * tests/unicase/test-u8-casecmp.c: New file.
875         * tests/unicase/test-casecmp.h: New file.
876
877         New module 'unicase/u32-casecmp'.
878         * lib/unicase/u32-casecmp.c: New file.
879         * modules/unicase/u32-casecmp: New file.
880
881         New module 'unicase/u16-casecmp'.
882         * lib/unicase/u16-casecmp.c: New file.
883         * modules/unicase/u16-casecmp: New file.
884
885         New module 'unicase/u8-casecmp'.
886         * lib/unicase/u8-casecmp.c: New file.
887         * lib/unicase/u-casecmp.h: New file.
888         * modules/unicase/u8-casecmp: New file.
889
890         Tests for module 'unicase/u32-casefold'.
891         * modules/unicase/u32-casefold-tests: New file.
892         * tests/unicase/test-u32-casefold.c: New file.
893
894         Tests for module 'unicase/u16-casefold'.
895         * modules/unicase/u16-casefold-tests: New file.
896         * tests/unicase/test-u16-casefold.c: New file.
897
898         Tests for module 'unicase/u8-casefold'.
899         * modules/unicase/u8-casefold-tests: New file.
900         * tests/unicase/test-u8-casefold.c: New file.
901
902         New module 'unicase/u32-casefold'.
903         * lib/unicase/u32-casefold.c: New file.
904         * modules/unicase/u32-casefold: New file.
905
906         New module 'unicase/u16-casefold'.
907         * lib/unicase/u16-casefold.c: New file.
908         * modules/unicase/u16-casefold: New file.
909
910         New module 'unicase/u8-casefold'.
911         * lib/unicase/u8-casefold.c: New file.
912         * lib/unicase/u-casefold.h: New file.
913         * modules/unicase/u8-casefold: New file.
914
915         New module 'unicase/tocasefold'.
916         * lib/unicase/casefold.h: New file.
917         * lib/unicase/tocasefold.c: New file.
918         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
919         * modules/unicase/tocasefold: New file.
920
921         Tests for module 'unicase/u32-totitle'.
922         * modules/unicase/u32-totitle-tests: New file.
923         * tests/unicase/test-u32-totitle.c: New file.
924
925         Tests for module 'unicase/u16-totitle'.
926         * modules/unicase/u16-totitle-tests: New file.
927         * tests/unicase/test-u16-totitle.c: New file.
928
929         Tests for module 'unicase/u8-totitle'.
930         * modules/unicase/u8-totitle-tests: New file.
931         * tests/unicase/test-u8-totitle.c: New file.
932
933         New module 'unicase/u32-totitle'.
934         * lib/unicase/u32-totitle.c: New file.
935         * modules/unicase/u32-totitle: New file.
936
937         New module 'unicase/u16-totitle'.
938         * lib/unicase/u16-totitle.c: New file.
939         * modules/unicase/u16-totitle: New file.
940
941         New module 'unicase/u8-totitle'.
942         * lib/unicase/u8-totitle.c: New file.
943         * lib/unicase/u-totitle.h: New file.
944         * modules/unicase/u8-totitle: New file.
945
946         Tests for module 'unicase/u32-tolower'.
947         * modules/unicase/u32-tolower-tests: New file.
948         * tests/unicase/test-u32-tolower.c: New file.
949
950         Tests for module 'unicase/u16-tolower'.
951         * modules/unicase/u16-tolower-tests: New file.
952         * tests/unicase/test-u16-tolower.c: New file.
953
954         Tests for module 'unicase/u8-tolower'.
955         * modules/unicase/u8-tolower-tests: New file.
956         * tests/unicase/test-u8-tolower.c: New file.
957
958         New module 'unicase/u32-tolower'.
959         * lib/unicase/u32-tolower.c: New file.
960         * modules/unicase/u32-tolower: New file.
961
962         New module 'unicase/u16-tolower'.
963         * lib/unicase/u16-tolower.c: New file.
964         * modules/unicase/u16-tolower: New file.
965
966         New module 'unicase/u8-tolower'.
967         * lib/unicase/u8-tolower.c: New file.
968         * modules/unicase/u8-tolower: New file.
969
970         Tests for module 'unicase/u32-toupper'.
971         * modules/unicase/u32-toupper-tests: New file.
972         * tests/unicase/test-u32-toupper.c: New file.
973
974         Tests for module 'unicase/u16-toupper'.
975         * modules/unicase/u16-toupper-tests: New file.
976         * tests/unicase/test-u16-toupper.c: New file.
977
978         Tests for module 'unicase/u8-toupper'.
979         * modules/unicase/u8-toupper-tests: New file.
980         * tests/unicase/test-u8-toupper.c: New file.
981
982         New module 'unicase/u32-toupper'.
983         * lib/unicase/u32-toupper.c: New file.
984         * modules/unicase/u32-toupper: New file.
985
986         New module 'unicase/u16-toupper'.
987         * lib/unicase/u16-toupper.c: New file.
988         * modules/unicase/u16-toupper: New file.
989
990         New module 'unicase/u8-toupper'.
991         * lib/unicase/u8-toupper.c: New file.
992         * modules/unicase/u8-toupper: New file.
993
994         New module 'unicase/u32-casemap'.
995         * lib/unicase/u32-casemap.c: New file.
996         * modules/unicase/u32-casemap: New file.
997
998         New module 'unicase/u16-casemap'.
999         * lib/unicase/u16-casemap.c: New file.
1000         * modules/unicase/u16-casemap: New file.
1001
1002         New module 'unicase/u8-casemap'.
1003         * lib/unicase/unicasemap.h: New file.
1004         * lib/unicase/u8-casemap.c: New file.
1005         * lib/unicase/u-casemap.h: New file.
1006         * modules/unicase/u8-casemap: New file.
1007
1008         New module 'unicase/special-casing'.
1009         * lib/unicase/special-casing.h: New file.
1010         * lib/unicase/special-casing.c: New file.
1011         * lib/unicase/special-casing-table.gperf: New file, generated by
1012         gen-uni-tables.c.
1013         * modules/unicase/special-casing: New file.
1014
1015         Tests for module 'unicase/locale-language'.
1016         * modules/unicase/locale-language-tests: New file.
1017         * tests/unicase/test-locale-language.sh: New file.
1018         * tests/unicase/test-locale-language.c: New file.
1019
1020         New module 'unicase/locale-language'.
1021         * lib/unicase/locale-language.c: New file.
1022         * lib/unicase/locale-languages.gperf: New file.
1023         * modules/unicase/locale-language: New file.
1024
1025         Generate more tables for case conversion and case folding.
1026         * lib/gen-uni-tables.c (SCC_*): New enum items.
1027         (struct special_casing_rule): New type.
1028         (casing_rules, num_casing_rules, allocated_casing_rules): New
1029         variables.
1030         (add_casing_rule, fill_casing_rules): New functions.
1031         (struct casefold_rule): New type.
1032         (casefolding_rules, num_casefolding_rules,
1033         allocated_casefolding_rules): New variables.
1034         (fill_casefolding_rules): New function.
1035         (unicode_casefold): New variable.
1036         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
1037         sort_casing_rules, output_casing_rules): New functions.
1038         (main): Accept to more arguments: SpecialCasing.txt and
1039         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
1040         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
1041         Output mapping for casefolding.
1042
1043         * lib/unicase.h: Include stdbool.h, uninorm.h.
1044         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
1045         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
1046         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
1047         arguments.
1048         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
1049         resultp arguments.
1050         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
1051         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
1052         resultp arguments.
1053         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
1054         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
1055         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
1056         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
1057         declarations.
1058         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
1059
1060 2009-03-08  Bruno Haible  <bruno@clisp.org>
1061
1062         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
1063         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
1064         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
1065         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
1066
1067 2009-03-07  Bruno Haible  <bruno@clisp.org>
1068
1069         Adjust u*_normcmp, u*_normcoll API.
1070         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
1071         u16_normcoll, u32_normcoll): Change failure conventions.
1072         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
1073         errno and return -1.
1074         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
1075
1076 2009-03-07  Bruno Haible  <bruno@clisp.org>
1077
1078         Tests for module 'uninorm/u32-normcoll'.
1079         * modules/uninorm/u32-normcoll-tests: New file.
1080         * tests/uninorm/test-u32-normcoll.c: New file.
1081
1082         Tests for module 'uninorm/u16-normcoll'.
1083         * modules/uninorm/u16-normcoll-tests: New file.
1084         * tests/uninorm/test-u16-normcoll.c: New file.
1085
1086         Tests for module 'uninorm/u8-normcoll'.
1087         * modules/uninorm/u8-normcoll-tests: New file.
1088         * tests/uninorm/test-u8-normcoll.c: New file.
1089
1090 2009-03-07  Bruno Haible  <bruno@clisp.org>
1091
1092         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
1093         tests/uninorm/test-u32-normcmp.c.
1094         * tests/uninorm/test-u32-normcmp.c: Include it.
1095         (test_nonascii): New function, extracted from main. Add some more
1096         tests.
1097         (main): Invoke test_ascii and test_nonascii.
1098         * modules/uninorm/u32-normcmp-tests (Files): Add
1099         tests/uninorm/test-u32-normcmp.h.
1100         (Depends-on): Remove uninorm/u32-normcmp.
1101
1102         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
1103         tests/uninorm/test-u16-normcmp.c.
1104         * tests/uninorm/test-u16-normcmp.c: Include it.
1105         (test_nonascii): New function, extracted from main. Add some more
1106         tests.
1107         (main): Invoke test_ascii and test_nonascii.
1108         * modules/uninorm/u16-normcmp-tests (Files): Add
1109         tests/uninorm/test-u16-normcmp.h.
1110         (Depends-on): Remove uninorm/u16-normcmp.
1111
1112         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
1113         tests/uninorm/test-u8-normcmp.c.
1114         * tests/uninorm/test-u8-normcmp.c: Include it.
1115         (test_nonascii): New function, extracted from main. Add some more
1116         tests.
1117         (main): Invoke test_ascii and test_nonascii.
1118         * modules/uninorm/u8-normcmp-tests (Files): Add
1119         tests/uninorm/test-u8-normcmp.h.
1120         (Depends-on): Remove uninorm/u8-normcmp.
1121
1122 2009-03-07  Bruno Haible  <bruno@clisp.org>
1123
1124         New module 'uninorm/u32-normcoll'.
1125         * lib/uninorm/u32-normcoll.c: New file.
1126         * modules/uninorm/u32-normcoll: New file.
1127
1128         New module 'uninorm/u16-normcoll'.
1129         * lib/uninorm/u16-normcoll.c: New file.
1130         * modules/uninorm/u16-normcoll: New file.
1131
1132         New module 'uninorm/u8-normcoll'.
1133         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
1134         declarations.
1135         * lib/uninorm/u8-normcoll.c: New file.
1136         * lib/uninorm/u-normcoll.h: New file.
1137         * modules/uninorm/u8-normcoll: New file.
1138
1139         New module 'uninorm/u32-normxfrm'.
1140         * lib/uninorm/u32-normxfrm.c: New file.
1141         * modules/uninorm/u32-normxfrm: New file.
1142
1143         New module 'uninorm/u16-normxfrm'.
1144         * lib/uninorm/u16-normxfrm.c: New file.
1145         * modules/uninorm/u16-normxfrm: New file.
1146
1147         New module 'uninorm/u8-normxfrm'.
1148         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
1149         declarations.
1150         * lib/uninorm/u8-normxfrm.c: New file.
1151         * lib/uninorm/u-normxfrm.h: New file.
1152         * modules/uninorm/u8-normxfrm: New file.
1153
1154 2009-03-07  Bruno Haible  <bruno@clisp.org>
1155
1156         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
1157         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
1158         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
1159
1160 2009-03-07  Bruno Haible  <bruno@clisp.org>
1161
1162         New module 'memxfrm'.
1163         * lib/memxfrm.h: New file.
1164         * lib/memxfrm.c: New file.
1165         * modules/memxfrm: New file.
1166
1167 2009-03-07  Bruno Haible  <bruno@clisp.org>
1168
1169         New module 'memcmp2'.
1170         * lib/memcmp2.h: New file.
1171         * lib/memcmp2.c: New file.
1172         * modules/memcmp2: New file.
1173
1174 2009-03-07  Bruno Haible  <bruno@clisp.org>
1175
1176         Tests for module 'uninorm/decomposing-form'.
1177         * modules/uninorm/decomposing-form-tests: New file.
1178         * tests/uninorm/test-decomposing-form.c: New file.
1179
1180         New module 'uninorm/decomposing-form'.
1181         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
1182         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
1183         Add 'decomposing_variant' field.
1184         * lib/uninorm/decomposing-form.c: New file.
1185         * lib/uninorm/nfc.c (uninorm_nfc): Update.
1186         * lib/uninorm/nfd.c (uninorm_nfd): Update.
1187         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
1188         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
1189         * modules/uninorm/decomposing-form: New file.
1190         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
1191         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
1192
1193 2009-03-07  Bruno Haible  <bruno@clisp.org>
1194
1195         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
1196         strings.
1197
1198 2009-03-06  Bruno Haible  <bruno@clisp.org>
1199
1200         Tests for module 'uninorm/u32-normcmp'.
1201         * tests/uninorm/test-u32-normcmp.c: New file.
1202         * modules/uninorm/u32-normcmp-tests: New file.
1203
1204         Tests for module 'uninorm/u16-normcmp'.
1205         * tests/uninorm/test-u16-normcmp.c: New file.
1206         * modules/uninorm/u16-normcmp-tests: New file.
1207
1208         Tests for module 'uninorm/u8-normcmp'.
1209         * tests/uninorm/test-u8-normcmp.c: New file.
1210         * modules/uninorm/u8-normcmp-tests: New file.
1211
1212         New module 'uninorm/u32-normcmp'.
1213         * lib/uninorm/u32-normcmp.c: New file.
1214         * modules/uninorm/u32-normcmp: New file.
1215
1216         New module 'uninorm/u16-normcmp'.
1217         * lib/uninorm/u16-normcmp.c: New file.
1218         * modules/uninorm/u16-normcmp: New file.
1219
1220         New module 'uninorm/u8-normcmp'.
1221         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
1222         declarations.
1223         * lib/uninorm/u8-normcmp.c: New file.
1224         * lib/uninorm/u-normcmp.h: New file.
1225         * modules/uninorm/u8-normcmp: New file.
1226
1227 2009-03-06  Bruno Haible  <bruno@clisp.org>
1228
1229         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
1230         Reported by Eric Blake.
1231
1232 2009-03-06  Eric Blake  <ebb9@byu.net>
1233             Bruno Haible  <bruno@clisp.org>
1234
1235         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
1236         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
1237         condition.
1238         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
1239         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
1240         condition.
1241         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
1242
1243 2009-03-06  Eric Blake  <ebb9@byu.net>
1244
1245         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
1246         to avoid compiler warnings.
1247         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
1248
1249 2009-03-05  Bruno Haible  <bruno@clisp.org>
1250
1251         * tests/test-ftell.c (main): Disable test beyond end of file on
1252         FreeMiNT.
1253         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
1254
1255 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
1256
1257         * lib/filevercmp.c: Move hidden files up in ordering.
1258         * tests/test-filevercmp.c: Add tests for hidden files.
1259
1260 2009-03-04  Bruno Haible  <bruno@clisp.org>
1261
1262         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
1263         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
1264         AM_CFLAGS.
1265         Reported by Simon Josefsson.
1266
1267 2009-03-03  Bruno Haible  <bruno@clisp.org>
1268
1269         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
1270         Reported by Simon Josefsson.
1271
1272         * doc/ld-version-script.texi: Update node reference.
1273
1274 2009-03-03  Bruno Haible  <bruno@clisp.org>
1275
1276         * modules/visibility (License): Change to 'unlimited'.
1277         Suggested by Simon Josefsson.
1278
1279 2009-03-03  Jim Meyering  <meyering@redhat.com>
1280
1281         unlinkdir: cannot_unlink_dir may modify process state
1282         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
1283         it's neither thread-safe nor appropriate for use in a library.
1284
1285 2009-03-03  Eric Blake  <ebb9@byu.net>
1286
1287         test-closein: silence test under Darwin
1288         * tests/test-closein.sh: Ignore stderr from cat, since we don't
1289         care if it dies from EPIPE or EBADF.
1290
1291 2009-03-03  Bruno Haible  <bruno@clisp.org>
1292
1293         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
1294         earlier.
1295         * doc/visibility.texi: Fix @node and @section.
1296
1297 2009-03-03  Simon Josefsson  <simon@josefsson.org>
1298
1299         * doc/gnulib.texi: Link to sections for ld version script and
1300         visibility.
1301         * doc/visibility.texi: Add @node and @section.
1302         * modules/ld-version-script: New module.
1303         * m4/ld-version-script.m4: New file.
1304         * doc/ld-version-script.texi: New file.
1305
1306 2009-03-02  David Lutterkort  <lutter@redhat.com>
1307
1308         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
1309         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1310
1311 2009-03-02  Bruno Haible  <bruno@clisp.org>
1312
1313         * doc/visibility.texi: Mention libtool's -export-symbols option.
1314
1315 2009-03-02  Jim Meyering  <meyering@redhat.com>
1316
1317         announce-gen: new option: --no-print-checksums
1318         * build-aux/announce-gen (usage): Describe it.
1319         (print_checksums): Print a newline here, not in the [*] footnote.
1320         (main): Honor it.
1321
1322 2009-03-01  Bruno Haible  <bruno@clisp.org>
1323
1324         Use socklen_t in the native Windows replacements prototypes.
1325         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
1326         instead of 'int'.
1327         * lib/getsockopt.c (rpl_getsockopt): Likewise.
1328         * lib/setsockopt.c (rpl_setsockopt): Likewise.
1329         * modules/getsockopt (Depends-on): Add socklen.
1330         * modules/setsockopt (Depends-on): Add socklen.
1331
1332 2009-03-01  Bruno Haible  <bruno@clisp.org>
1333
1334         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
1335         least 4.2.
1336
1337 2009-03-01  Eric Blake  <ebb9@byu.net>
1338             Bruno Haible  <bruno@clisp.org>
1339
1340         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
1341         error messages.
1342         * lib/wait-process.c (wait_subprocess): Omit error message about
1343         deadly signal sent to the child of termsigp != NULL.
1344
1345 2009-03-01  Eric Blake  <ebb9@byu.net>
1346
1347         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
1348
1349 2009-03-01  Bruno Haible  <bruno@clisp.org>
1350
1351         Avoid a gcc warning.
1352         * tests/test-sched.c (b): Make global.
1353         Reported by Eric Blake.
1354
1355 2009-01-19  Martin Lambers  <marlam@marlam.de>
1356
1357         Provide POSIX semantics for socket timeout options on W32.
1358         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
1359         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
1360         * modules/setsockopt: Depend on sys_time module for struct timeval.
1361         * modules/getsockopt: Depend on sys_time module for struct timeval.
1362
1363 2009-03-01  Simon Josefsson  <simon@josefsson.org>
1364
1365         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
1366         __USE_GNU, for consistency with netdb.in.h.
1367         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1368
1369 2009-03-01  Bruno Haible  <bruno@clisp.org>
1370
1371         More support for FreeMiNT.
1372         * lib/fseeko.c (rpl_fseeko): Complete last commit.
1373         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1374
1375 2009-03-01  Bruno Haible  <bruno@clisp.org>
1376
1377         More support for FreeMiNT.
1378         * lib/fpurge.c (fpurge): Correct last commit.
1379         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1380
1381 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1382
1383         Fix unportable awk script in vc-list-files.
1384         * build-aux/vc-list-files: In the replacement awk script, use
1385         substr with a second argument of 1, not zero.
1386         Report by Simon Josefsson.
1387
1388 2009-02-28  Bruno Haible  <bruno@clisp.org>
1389
1390         More support for FreeMiNT.
1391         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
1392         to FreeMiNT today.
1393         * lib/fwriting.c (fwriting): Likewise.
1394         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
1395
1396 2009-02-28  Bruno Haible  <bruno@clisp.org>
1397
1398         * tests/test-freadseek.c (main): Disable test beyond end of file on
1399         FreeMiNT.
1400         * tests/test-ftello.c (main): Likewise.
1401         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
1402
1403 2009-02-28  Bruno Haible  <bruno@clisp.org>
1404
1405         Add tentative support for FreeMiNT.
1406         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
1407         * lib/fpurge.c (fpurge): Likewise.
1408         * lib/freadable.c (freadable): Likewise.
1409         * lib/freading.c (freading): Likewise.
1410         * lib/freadptr.c (freadptr): Likewise.
1411         * lib/freadseek.c (freadptrinc): Likewise.
1412         * lib/fseeko.c (rpl_fseeko): Likewise.
1413         * lib/fseterr.c (fseterr): Likewise.
1414         * lib/fwritable.c (fwritable): Likewise.
1415         * lib/fwriting.c (fwriting): Likewise.
1416         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
1417         Hourihane.
1418         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1419
1420 2009-02-28  Bruno Haible  <bruno@clisp.org>
1421
1422         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
1423         SIGCHLD.
1424         Reported by Jim Meyering.
1425
1426 2009-02-28  Bruno Haible  <bruno@clisp.org>
1427
1428         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
1429         Mention the results of these tests on various platforms.
1430         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
1431         order.
1432         * doc/posix-functions/printf.texi: Likewise.
1433         * doc/posix-functions/snprintf.texi: Likewise.
1434         * doc/posix-functions/sprintf.texi: Likewise.
1435         * doc/posix-functions/vfprintf.texi: Likewise.
1436         * doc/posix-functions/vprintf.texi: Likewise.
1437         * doc/posix-functions/vsnprintf.texi: Likewise.
1438         * doc/posix-functions/vsprintf.texi: Likewise.
1439         * doc/glibc-functions/obstack_printf.texi: Likewise.
1440         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1441
1442 2009-02-28  Bruno Haible  <bruno@clisp.org>
1443
1444         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
1445         Reported by Loïc Minier <lool@dooz.org>.
1446
1447 2009-02-27  Bruno Haible  <bruno@clisp.org>
1448
1449         * gnulib-tool (func_import): Make the sed expression used to create the
1450         sed script for updating the .gitignore file POSIX compliant.
1451         Reported by Eric Blake.
1452
1453 2009-02-27  Bruno Haible  <bruno@clisp.org>
1454
1455         * gnulib-tool (sed): Don't alias as "sed --posix".
1456         Reported by Eric Blake.
1457
1458 2009-02-27  Bruno Haible  <bruno@clisp.org>
1459
1460         Avoid test link errors.
1461         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
1462         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
1463         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
1464         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
1465         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1466
1467 2009-02-27  Bruno Haible  <bruno@clisp.org>
1468
1469         Avoid spurious "(cached)" in configure output.
1470         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
1471         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
1472         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
1473         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
1474         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
1475         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
1476         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
1477         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
1478         Reported by Eric Blake.
1479
1480 2009-02-27  Eric Blake  <ebb9@byu.net>
1481
1482         printf: fix regression in previous patch
1483         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
1484
1485 2009-02-27  Bruno Haible  <bruno@clisp.org>
1486
1487         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
1488         value.
1489         * lib/stdint.in.h: Likewise.
1490         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
1491
1492 2009-02-27  Eric Blake  <ebb9@byu.net>
1493
1494         doc: mention more functions added in cygwin 1.7.0
1495         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
1496         addition.
1497         * doc/posix-functions/open_wmemstream.texi: Likewise.
1498         * doc/posix-functions/wcsnlen.texi: Likewise.
1499         * doc/posix-functions/wcsnrtombs.texi: Likewise.
1500         * doc/posix-functions/wcstod.texi: Likewise.
1501         * doc/posix-functions/wcstof.texi: Likewise.
1502         * doc/posix-functions/wcstoimax.texi: Likewise.
1503         * doc/posix-functions/wcstok.texi: Likewise.
1504         * doc/posix-functions/wcstoumax.texi: Likewise.
1505
1506         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
1507         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
1508         * doc/posix-functions/fprintf.texi: Update.
1509         * doc/posix-functions/printf.texi: Update.
1510         * doc/posix-functions/snprintf.texi: Update.
1511         * doc/posix-functions/sprintf.texi: Update.
1512         * doc/posix-functions/vfprintf.texi: Update.
1513         * doc/posix-functions/vprintf.texi: Update.
1514         * doc/posix-functions/vsnprintf.texi: Update.
1515         * doc/posix-functions/vsprintf.texi: Update.
1516         * doc/glibc-functions/obstack_printf.texi: Update.
1517         * doc/glibc-functions/obstack_vprintf.texi: Update.
1518
1519 2009-02-26  Eric Blake  <ebb9@byu.net>
1520
1521         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
1522         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
1523         compilation bug by using runtime conversion.
1524         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
1525         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
1526         * modules/ceill-tests (Files): Use nan.h.
1527         * modules/floorl-tests (Files): Likewise.
1528         * modules/frexpl-tests (Files): Likewise.
1529         * modules/isnanl-tests (Files): Likewise.
1530         * modules/ldexpl-tests (Files): Likewise.
1531         * modules/roundl-tests (Files): Likewise.
1532         * modules/truncl-tests (Files): Likewise.
1533         * tests/test-ceill.c (main): Use a working NaN.
1534         * tests/test-floorl.c (main): Likewise.
1535         * tests/test-frexpl.c (main): Likewise.
1536         * tests/test-isnan.c (test_long_double): Likewise.
1537         * tests/test-isnanl.h (main): Likewise.
1538         * tests/test-ldexpl.h (main): Likewise.
1539         * tests/test-roundl.h (main): Likewise.
1540         * tests/test-truncl.h (main): Likewise.
1541         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
1542
1543 2009-02-26  Eric Blake  <ebb9@byu.net>
1544             Bruno Haible  <bruno@clisp.org>
1545
1546         Work around a *printf bug with %ls on Solaris.
1547         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
1548         precision is specified, sprintf stops converting the wide string
1549         argument when the number of bytes that have been produced by this
1550         conversion equals or exceeds the precision.
1551         * doc/posix-functions/fprintf.texi: Update.
1552         * doc/posix-functions/printf.texi: Update.
1553         * doc/posix-functions/snprintf.texi: Update.
1554         * doc/posix-functions/sprintf.texi: Update.
1555         * doc/posix-functions/vfprintf.texi: Update.
1556         * doc/posix-functions/vprintf.texi: Update.
1557         * doc/posix-functions/vsnprintf.texi: Update.
1558         * doc/posix-functions/vsprintf.texi: Update.
1559         * doc/glibc-functions/obstack_printf.texi: Update.
1560         * doc/glibc-functions/obstack_vprintf.texi: Update.
1561
1562 2009-02-26  Eric Blake  <ebb9@byu.net>
1563
1564         stdlib: favor compiler check of random.h
1565         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
1566         to avoid an ObjC random.h installed by Swarm.
1567
1568 2009-02-26  Bruno Haible  <bruno@clisp.org>
1569
1570         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
1571         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
1572         Reported by Gary V. Vaughan <gary@gnu.org>.
1573
1574 2009-02-26  Bruno Haible  <bruno@clisp.org>
1575
1576         Fix *printf behaviour regarding the %ls directive.
1577         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
1578         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
1579         NEED_PRINTF_DIRECTIVE_LS.
1580         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
1581         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
1582         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1583         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
1584         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
1585         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
1586         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
1587         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1588         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1589         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1590         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1591         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
1592         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1593         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1594         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1595         * doc/posix-functions/fprintf.texi: Update.
1596         * doc/posix-functions/printf.texi: Update.
1597         * doc/posix-functions/snprintf.texi: Update.
1598         * doc/posix-functions/sprintf.texi: Update.
1599         * doc/posix-functions/vfprintf.texi: Update.
1600         * doc/posix-functions/vprintf.texi: Update.
1601         * doc/posix-functions/vsnprintf.texi: Update.
1602         * doc/posix-functions/vsprintf.texi: Update.
1603         * doc/glibc-functions/obstack_printf.texi: Update.
1604         * doc/glibc-functions/obstack_vprintf.texi: Update.
1605         Reported by Eric Blake.
1606
1607 2009-02-25  Bruno Haible  <bruno@clisp.org>
1608
1609         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
1610         with known value.
1611         Reported by Gary V. Vaughan <gary@gnu.org>.
1612
1613 2009-02-25  Bruno Haible  <bruno@clisp.org>
1614
1615         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
1616         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
1617         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
1618         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
1619         Reported by Gary V. Vaughan <gary@gnu.org>.
1620
1621 2009-02-25  Bruno Haible  <bruno@clisp.org>
1622
1623         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
1624         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
1625         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
1626         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
1627         Reported by Gary V. Vaughan <gary@gnu.org>.
1628
1629 2009-02-25  Eric Blake  <ebb9@byu.net>
1630
1631         tests: skip fseek/ftell tests if ungetc is broken
1632         * m4/ungetc.m4: New file.
1633         * modules/fseek-tests: Split test, so ungetc dependency is
1634         separate from rest of test.
1635         * modules/fseeko-tests: Likewise.
1636         * modules/ftell-tests: Likewise.
1637         * modules/ftello-tests: Likewise.
1638         * tests/test-fseek.c (main): Isolate ungetc dependency.
1639         * tests/test-fseeko.c (main): Likewise.
1640         * tests/test-ftell.c (main): Likewise.
1641         * tests/test-ftello.c (main): Likewise.
1642         * tests/test-fseek2.sh: New file.
1643         * tests/test-fseeko2.sh: Likewise.
1644         * tests/test-ftell2.sh: Likewise.
1645         * tests/test-ftello2.sh: Likewise.
1646
1647 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
1648
1649         test-getaddrinfo: fix usage of skip return code 77
1650         * tests/test-gettaddrinfo.c: Return skip code 77 only
1651         for first occurance of skip (4x77 is not 77)
1652
1653 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
1654
1655         strtod: avoid C99 decl-after-statement
1656         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
1657
1658 2009-02-24  Eric Blake  <ebb9@byu.net>
1659
1660         strtod: detect HP-UX 11.31 bug
1661         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
1662         Reported by Gary V. Vaughan.
1663
1664 2009-02-23  Bruno Haible  <bruno@clisp.org>
1665
1666         Fix invalid read past end of memory block.
1667         * lib/vasnprintf.c (DCHAR_SET): Define.
1668         (local_wcslen): Define only when needed.
1669         (local_strnlen, local_wcsnlen): New functions.
1670         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
1671         directives that involve a conversion ourselves.
1672         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
1673         wcsnlen, mbrtowc, wcrtomb.
1674         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
1675         * tests/test-vasprintf-posix.c (test_function): Likewise.
1676         * tests/test-snprintf-posix.h (test_function): Likewise.
1677         * tests/test-sprintf-posix.h (test_function): Likewise.
1678         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1679
1680 2009-02-22  Bruno Haible  <bruno@clisp.org>
1681
1682         Implement new clarified decomposition of Hangul syllables.
1683         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
1684         of type LTV, return only a pairwise decomposition.
1685         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
1686         Likewise.
1687         * tests/uninorm/test-decomposition.c (main): Updated expected result.
1688         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
1689         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
1690
1691 2009-02-22  Bruno Haible  <bruno@clisp.org>
1692
1693         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
1694         zero-length results and shrink excess allocated memory.
1695         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
1696         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
1697         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
1698         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
1699         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
1700         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
1701         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
1702         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
1703         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
1704         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
1705         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
1706         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
1707
1708 2009-02-21  Bruno Haible  <bruno@clisp.org>
1709
1710         * doc/gnulib.texi: Include safe-alloc.texi earlier.
1711         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
1712         spaces after a period. Put a space between a macro name and its
1713         argument list. Trivial rewordings.
1714         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
1715         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
1716         (main): Return 0 explicitly.
1717
1718 2009-02-21  Bruno Haible  <bruno@clisp.org>
1719
1720         Tests for module 'uninorm/filter'.
1721         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
1722         * modules/uninorm/filter-tests: New file.
1723
1724         New module 'uninorm/filter'.
1725         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
1726         uninorm_filter_flush, uninorm_filter_free): New declarations.
1727         * lib/uninorm/uninorm-filter.c: New file.
1728         * modules/uninorm/filter: New file.
1729
1730 2009-02-21  Bruno Haible  <bruno@clisp.org>
1731
1732         Tests for module 'uninorm/nfkc'.
1733         * tests/uninorm/test-nfkc.c: New file.
1734         * tests/uninorm/test-u8-nfkc.c: New file.
1735         * tests/uninorm/test-u16-nfkc.c: New file.
1736         * tests/uninorm/test-u32-nfkc.c: New file.
1737         * tests/uninorm/test-u32-nfkc-big.sh: New file.
1738         * tests/uninorm/test-u32-nfkc-big.c: New file.
1739         * modules/uninorm/nfkc-tests: New file.
1740
1741         New module 'uninorm/nfkc'.
1742         * lib/uninorm/nfkc.c: New file.
1743         * modules/uninorm/nfkc: New file.
1744
1745         Tests for module 'uninorm/nfkd'.
1746         * tests/uninorm/test-nfkd.c: New file.
1747         * tests/uninorm/test-u8-nfkd.c: New file.
1748         * tests/uninorm/test-u16-nfkd.c: New file.
1749         * tests/uninorm/test-u32-nfkd.c: New file.
1750         * tests/uninorm/test-u32-nfkd-big.sh: New file.
1751         * tests/uninorm/test-u32-nfkd-big.c: New file.
1752         * modules/uninorm/nfkd-tests: New file.
1753
1754         New module 'uninorm/nfkd'.
1755         * lib/uninorm/nfkd.c: New file.
1756         * modules/uninorm/nfkd: New file.
1757
1758         Tests for module 'uninorm/nfc'.
1759         * tests/uninorm/test-nfc.c: New file.
1760         * tests/uninorm/test-u8-nfc.c: New file.
1761         * tests/uninorm/test-u16-nfc.c: New file.
1762         * tests/uninorm/test-u32-nfc.c: New file.
1763         * tests/uninorm/test-u32-nfc-big.sh: New file.
1764         * tests/uninorm/test-u32-nfc-big.c: New file.
1765         * modules/uninorm/nfc-tests: New file.
1766
1767         New module 'uninorm/nfc'.
1768         * lib/uninorm/nfc.c: New file.
1769         * modules/uninorm/nfc: New file.
1770
1771         Tests for module 'uninorm/nfd'.
1772         * tests/uninorm/test-nfd.c: New file.
1773         * tests/uninorm/test-u8-nfd.c: New file.
1774         * tests/uninorm/test-u16-nfd.c: New file.
1775         * tests/uninorm/test-u32-nfd.c: New file.
1776         * tests/uninorm/test-u32-nfd-big.sh: New file.
1777         * tests/uninorm/test-u32-nfd-big.c: New file.
1778         * tests/uninorm/test-u32-normalize-big.h: New file.
1779         * tests/uninorm/test-u32-normalize-big.c: New file.
1780         * tests/uninorm/NormalizationTest.txt: New file, created from
1781         Unicode 5.1.0 NormalizationTest.txt.
1782         * modules/uninorm/nfd-tests: New file.
1783
1784         New module 'uninorm/nfd'.
1785         * lib/uninorm/nfd.c: New file.
1786         * modules/uninorm/nfd: New file.
1787
1788         New module 'uninorm/u32-normalize'.
1789         * lib/uninorm/u32-normalize.c: New file.
1790         * modules/uninorm/u32-normalize: New file.
1791
1792         New module 'uninorm/u16-normalize'.
1793         * lib/uninorm/u16-normalize.c: New file.
1794         * modules/uninorm/u16-normalize: New file.
1795
1796         New module 'uninorm/u8-normalize'.
1797         * lib/uninorm/u8-normalize.c: New file.
1798         * lib/uninorm/normalize-internal.h: New file.
1799         * lib/uninorm/u-normalize-internal.h: New file.
1800         * modules/uninorm/u8-normalize: New file.
1801
1802         New module 'uninorm/decompose-internal'.
1803         * lib/uninorm/decompose-internal.c: New file.
1804         * modules/uninorm/decompose-internal: New file.
1805
1806         Tests for module 'uninorm/composition'.
1807         * tests/uninorm/test-composition.c: New file.
1808         * modules/uninorm/composition-tests: New file.
1809
1810         New module 'uninorm/composition'.
1811         * lib/uninorm/composition.c: New file.
1812         * lib/uninorm/composition-table.gperf: New file, generated by
1813         gen-uni-tables.
1814         * modules/uninorm/composition: New file.
1815
1816         Tests for module 'uninorm/compat-decomposition'.
1817         * tests/uninorm/test-compat-decomposition.c: New file.
1818         * modules/uninorm/compat-decomposition-tests: New file.
1819
1820         New module 'uninorm/compat-decomposition'.
1821         * lib/uninorm/decompose-internal.h: New file.
1822         * lib/uninorm/compat-decomposition.c: New file.
1823         * modules/uninorm/compat-decomposition: New file.
1824
1825         Tests for module 'uninorm/canonical-decomposition'.
1826         * tests/uninorm/test-canonical-decomposition.c: New file.
1827         * modules/uninorm/canonical-decomposition-tests: New file.
1828
1829         New module 'uninorm/canonical-decomposition'.
1830         * lib/uninorm/canonical-decomposition.c: New file.
1831         * modules/uninorm/canonical-decomposition: New file.
1832
1833         Tests for module 'uninorm/decomposition'.
1834         * tests/uninorm/test-decomposition.c: New file.
1835         * modules/uninorm/decomposition-tests: New file.
1836
1837         New module 'uninorm/decomposition'.
1838         * lib/uninorm/decomposition.c: New file.
1839         * modules/uninorm/decomposition: New file.
1840
1841         New module 'uninorm/decomposition-table'.
1842         * lib/uninorm/decomposition-table.h: New file.
1843         * lib/uninorm/decomposition-table.c: New file.
1844         * lib/uninorm/decomposition-table1.h: New file, generated by
1845         gen-uni-tables.
1846         * lib/uninorm/decomposition-table2.h: New file, generated by
1847         gen-uni-tables.
1848         * modules/uninorm/decomposition-table: New file.
1849
1850         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
1851         (UC_DECOMP_*): New enumeration items.
1852         (get_decomposition): New function.
1853         (struct decomp_table): New type.
1854         (output_decomposition, output_decomposition_tables): New functions.
1855         (unicode_composition_exclusions): New variable.
1856         (fill_composition_exclusions, debug_output_composition_tables): New
1857         functions.
1858         (main): Accept one more argument. Invoke fill_composition_exclusions.
1859         Output decomposition and composition tables.
1860
1861         New module 'uninorm/base'.
1862         * lib/uninorm.h: New file.
1863         * lib/unictype.h: Update comment.
1864         * modules/uninorm/base: New file.
1865
1866 2009-02-21  David Lutterkort  <lutter@redhat.com>
1867
1868         Tests for module 'safe-alloc'.
1869         * tests/test-safe-alloc.c: New file.
1870         * modules/safe-alloc-tests: New file.
1871
1872         New module 'safe-alloc'.
1873         * lib/safe-alloc.h: New file.
1874         * lib/safe-alloc.c: New file.
1875         * m4/safe-alloc.m4: New file.
1876         * modules/safe-alloc: New file.
1877         * doc/safe-alloc.texi: New file.
1878         * doc/gnulib.texi: Include it.
1879         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
1880         safe-alloc.
1881
1882 2009-02-18  Bruno Haible  <bruno@clisp.org>
1883
1884         Fix link error on non-glibc systems.
1885         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
1886         variable.
1887         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1888
1889 2009-02-18  Jim Meyering  <meyering@redhat.com>
1890
1891         fts: avoid used-uninitialized error due to recent change
1892         * lib/fts.c (fts_read): Guard uses of the new member,
1893         parent->fts_n_dirs_remaining, since it's not relevant for
1894         the parent of a directory specified on the command-line.
1895
1896 2009-02-17  James Youngman  <jay@gnu.org>
1897             Bruno Haible  <bruno@clisp.org>
1898
1899         * m4/include_next.m4: Reformulate comment.
1900
1901 2009-02-16  Jim Meyering  <meyering@redhat.com>
1902
1903         fts: add #if guards so that the fts_lgpl module still builds
1904         * lib/fts.c: Guard just-added hash-table-using parts with
1905         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
1906         Reported by Simon Josefsson.
1907
1908 2009-02-15  Bruno Haible  <bruno@clisp.org>
1909
1910         * modules/array-mergesort-tests: New file.
1911         * tests/test-array-mergesort.c: New file.
1912
1913         New module 'array-mergesort'.
1914         * modules/array-mergesort: New file.
1915         * lib/array-mergesort.h: New file.
1916
1917 2009-02-15  Bruno Haible  <bruno@clisp.org>
1918
1919         Fix 2009-02-07 commit.
1920         * lib/gen-uni-tables.c (output_predicate, output_category,
1921         output_combclass, output_bidi_category, output_decimal_digit,
1922         output_digit, output_numeric, output_mirror, output_scripts,
1923         output_ident_category, output_simple_mapping): Fix format directives.
1924         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
1925
1926 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
1927
1928         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
1929         fixes are available from IBM.
1930
1931 2009-02-13  Jim Meyering  <meyering@redhat.com>
1932
1933         fts: arrange not to stat non-directories in more cases
1934         This makes GNU find (when it doesn't need to stat each file)
1935         *much* more efficient at traversing reiserfs file systems.
1936         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
1937         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
1938         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
1939         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
1940         (leaf_optimization_applies): New function.
1941         (LCO_hash, LCO_compare): New helper functions.
1942         (link_count_optimize_ok): New function.
1943         (fts_stat): Initialize new member (if dir).
1944         (fts_read): Decrement parent's fts_n_dirs_remaining count if
1945         we've just stat'ed a directory.  Skip the stat call when possible.
1946         ---
1947         Note this AFS-related exchange:
1948         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
1949         and note find's pioctl call in find/fstype.c.
1950         But that is necessary only if you want to enable the
1951         optimization for AFS, and for now, I don't.
1952
1953         fts: move a function definition "up" (no semantic change)
1954         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
1955         "up" to precede upcoming use of a related function.
1956
1957 2009-02-11  Jim Meyering  <meyering@redhat.com>
1958
1959         fts: correct internal computation of nlinks (optimization-related)
1960         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
1961         whether the current entry is a directory, so don't test it.
1962
1963 2009-02-10  Bruno Haible  <bruno@clisp.org>
1964
1965         Tests for module 'uniwbrk/ulc-wordbreaks'.
1966         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
1967         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
1968         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
1969
1970         Tests for module 'uniwbrk/u32-wordbreaks'.
1971         * modules/uniwbrk/u32-wordbreaks-tests: New file.
1972         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
1973
1974         Tests for module 'uniwbrk/u16-wordbreaks'.
1975         * modules/uniwbrk/u16-wordbreaks-tests: New file.
1976         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
1977
1978         Tests for module 'uniwbrk/u8-wordbreaks'.
1979         * modules/uniwbrk/u8-wordbreaks-tests: New file.
1980         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
1981
1982 2009-02-10  Bruno Haible  <bruno@clisp.org>
1983
1984         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
1985         property.
1986         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
1987         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
1988         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
1989
1990 2009-02-10  Simon Josefsson  <simon@josefsson.org>
1991
1992         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
1993         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
1994
1995 2009-02-10  Bruno Haible  <bruno@clisp.org>
1996
1997         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
1998         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
1999         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
2000         * lib/unilbrk/u8-possible-linebreaks.c: Update.
2001         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
2002         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
2003
2004 2009-02-09  Simon Josefsson  <simon@josefsson.org>
2005
2006         * lib/sockets.h (gl_fd_to_handle): New function.
2007
2008         * tests/test-sockets.c: Call gl_fd_to_handle.
2009
2010 2009-02-09  Bruno Haible  <bruno@clisp.org>
2011
2012         * doc/havelib.texi: Document the conventions on bi-arch systems.
2013
2014 2009-02-08  Bruno Haible  <bruno@clisp.org>
2015
2016         Document the AC_LIB_LINKFLAGS macro.
2017         * doc/havelib.texi: New file, mostly written on 2005-05-24.
2018         * doc/gnulib.texi: Include it.
2019
2020 2009-02-08  Bruno Haible  <bruno@clisp.org>
2021
2022         Fix wrong order of sections, compared to TOC.
2023         * doc/gnulib.texi: Include relocatable-maint.texi after the
2024         "Regular expressions" node, not before.
2025
2026 2009-02-08  Bruno Haible  <bruno@clisp.org>
2027
2028         Tests for module 'unicase/totitle'.
2029         * modules/unicase/totitle-tests: New file.
2030
2031         Tests for module 'unicase/tolower'.
2032         * modules/unicase/tolower-tests: New file.
2033
2034         Tests for module 'unicase/toupper'.
2035         * modules/unicase/toupper-tests: New file.
2036         * tests/unicase/test-mapping-part1.h: New file.
2037         * tests/unicase/test-mapping-part2.h: New file.
2038
2039         New module 'unicase/totitle'.
2040         * modules/unicase/totitle: New file.
2041         * lib/unicase/totitle.c: New file.
2042
2043         New module 'unicase/tolower'.
2044         * modules/unicase/tolower: New file.
2045         * lib/unicase/tolower.c: New file.
2046
2047         New module 'unicase/toupper'.
2048         * modules/unicase/toupper: New file.
2049         * lib/unicase/toupper.c: New file.
2050         * lib/unicase/simple-mapping.h: New file.
2051
2052         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
2053         (mapping_table): New structure.
2054         (output_simple_mapping): New function.
2055         (main): Invoke output_simple_mapping_test and output_simple_mapping.
2056         * modules/gen-uni-tables (Description): Update.
2057         * lib/unicase/toupper.h: New file, automatically generated by
2058         gen-uni-tables.
2059         * lib/unicase/tolower.h: New file, automatically generated by
2060         gen-uni-tables.
2061         * lib/unicase/totitle.h: New file, automatically generated by
2062         gen-uni-tables.
2063         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
2064         gen-uni-tables.
2065         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
2066         gen-uni-tables.
2067         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
2068         gen-uni-tables.
2069
2070         New module 'unicase/base'.
2071         * modules/unicase/base: New file.
2072         * lib/unicase.h: New file.
2073
2074 2009-02-08  Bruno Haible  <bruno@clisp.org>
2075
2076         New module 'uniwbrk/ulc-wordbreaks'.
2077         * modules/uniwbrk/ulc-wordbreaks: New file.
2078         * lib/uniwbrk/ulc-wordbreaks.c: New file.
2079
2080         New module 'uniwbrk/u32-wordbreaks'.
2081         * modules/uniwbrk/u32-wordbreaks: New file.
2082         * lib/uniwbrk/u32-wordbreaks.c: New file.
2083
2084         New module 'uniwbrk/u16-wordbreaks'.
2085         * modules/uniwbrk/u16-wordbreaks: New file.
2086         * lib/uniwbrk/u16-wordbreaks.c: New file.
2087
2088         New module 'uniwbrk/u8-wordbreaks'.
2089         * modules/uniwbrk/u8-wordbreaks: New file.
2090         * lib/uniwbrk/u8-wordbreaks.c: New file.
2091         * lib/uniwbrk/u-wordbreaks.h: New file.
2092
2093         New module 'uniwbrk/table'.
2094         * modules/uniwbrk/table: New file.
2095         * lib/uniwbrk/wbrktable.h: New file.
2096         * lib/uniwbrk/wbrktable.c: New file.
2097
2098         New module 'uniwbrk/wordbreak-property'.
2099         * modules/uniwbrk/wordbreak-property: New file.
2100         * lib/uniwbrk/wordbreak-property.c: New file.
2101
2102         * lib/gen-uni-tables.c (WBP_*): New enum items.
2103         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
2104         (unicode_org_wbp): New variable.
2105         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
2106         New functions.
2107         (wbp_table): New structure.
2108         (output_wbp, output_wbrk_tables): New functions.
2109         (main): Accept additional argument. Invoke fill_org_wbp,
2110         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
2111         output_wbrk_tables.
2112         * modules/gen-uni-tables (Description): Update.
2113         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
2114         gen-uni-tables.
2115
2116         New module 'uniwbrk/base'.
2117         * modules/uniwbrk/base: New file.
2118         * lib/uniwbrk.h: New file.
2119
2120 2009-02-08  Bruno Haible  <bruno@clisp.org>
2121
2122         Update to Unicode 5.1.0.
2123         * lib/gen-uni-tables.c (is_property_alphabetic): Include
2124         U+2185..U+2188.
2125         (is_property_default_ignorable_code_point): Don't include characters
2126         of category Cc or Cs and not-a-characters.
2127         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
2128         U+0D79, U+109E, U+109F, U+A60C.
2129         * lib/unictype/bidi_of.h: Regenerated.
2130         * lib/unictype/blocks.h: Regenerated.
2131         * lib/unictype/categ_C.h: Regenerated.
2132         * lib/unictype/categ_Cf.h: Regenerated.
2133         * lib/unictype/categ_Cn.h: Regenerated.
2134         * lib/unictype/categ_L.h: Regenerated.
2135         * lib/unictype/categ_Ll.h: Regenerated.
2136         * lib/unictype/categ_Lm.h: Regenerated.
2137         * lib/unictype/categ_Lo.h: Regenerated.
2138         * lib/unictype/categ_Lu.h: Regenerated.
2139         * lib/unictype/categ_M.h: Regenerated.
2140         * lib/unictype/categ_Mc.h: Regenerated.
2141         * lib/unictype/categ_Me.h: Regenerated.
2142         * lib/unictype/categ_Mn.h: Regenerated.
2143         * lib/unictype/categ_N.h: Regenerated.
2144         * lib/unictype/categ_Nd.h: Regenerated.
2145         * lib/unictype/categ_Nl.h: Regenerated.
2146         * lib/unictype/categ_No.h: Regenerated.
2147         * lib/unictype/categ_P.h: Regenerated.
2148         * lib/unictype/categ_Pd.h: Regenerated.
2149         * lib/unictype/categ_Pe.h: Regenerated.
2150         * lib/unictype/categ_Pf.h: Regenerated.
2151         * lib/unictype/categ_Pi.h: Regenerated.
2152         * lib/unictype/categ_Po.h: Regenerated.
2153         * lib/unictype/categ_Ps.h: Regenerated.
2154         * lib/unictype/categ_S.h: Regenerated.
2155         * lib/unictype/categ_Sk.h: Regenerated.
2156         * lib/unictype/categ_Sm.h: Regenerated.
2157         * lib/unictype/categ_So.h: Regenerated.
2158         * lib/unictype/categ_of.h: Regenerated.
2159         * lib/unictype/combining.h: Regenerated.
2160         * lib/unictype/ctype_alnum.h: Regenerated.
2161         * lib/unictype/ctype_alpha.h: Regenerated.
2162         * lib/unictype/ctype_graph.h: Regenerated.
2163         * lib/unictype/ctype_lower.h: Regenerated.
2164         * lib/unictype/ctype_print.h: Regenerated.
2165         * lib/unictype/ctype_punct.h: Regenerated.
2166         * lib/unictype/ctype_upper.h: Regenerated.
2167         * lib/unictype/decdigit.h: Regenerated.
2168         * lib/unictype/digit.h: Regenerated.
2169         * lib/unictype/mirror.h: Regenerated.
2170         * lib/unictype/numeric.h: Regenerated.
2171         * lib/unictype/pr_alphabetic.h: Regenerated.
2172         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
2173         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
2174         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
2175         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
2176         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
2177         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
2178         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
2179         * lib/unictype/pr_combining.h: Regenerated.
2180         * lib/unictype/pr_dash.h: Regenerated.
2181         * lib/unictype/pr_decimal_digit.h: Regenerated.
2182         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
2183         * lib/unictype/pr_deprecated.h: Regenerated.
2184         * lib/unictype/pr_diacritic.h: Regenerated.
2185         * lib/unictype/pr_extender.h: Regenerated.
2186         * lib/unictype/pr_format_control.h: Regenerated.
2187         * lib/unictype/pr_grapheme_base.h: Regenerated.
2188         * lib/unictype/pr_grapheme_extend.h: Regenerated.
2189         * lib/unictype/pr_grapheme_link.h: Regenerated.
2190         * lib/unictype/pr_id_continue.h: Regenerated.
2191         * lib/unictype/pr_id_start.h: Regenerated.
2192         * lib/unictype/pr_ideographic.h: Regenerated.
2193         * lib/unictype/pr_ignorable_control.h: Regenerated.
2194         * lib/unictype/pr_lowercase.h: Regenerated.
2195         * lib/unictype/pr_math.h: Regenerated.
2196         * lib/unictype/pr_numeric.h: Regenerated.
2197         * lib/unictype/pr_other_alphabetic.h: Regenerated.
2198         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
2199         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
2200         * lib/unictype/pr_other_id_continue.h: Regenerated.
2201         * lib/unictype/pr_other_lowercase.h: Regenerated.
2202         * lib/unictype/pr_other_math.h: Regenerated.
2203         * lib/unictype/pr_punctuation.h: Regenerated.
2204         * lib/unictype/pr_sentence_terminal.h: Regenerated.
2205         * lib/unictype/pr_soft_dotted.h: Regenerated.
2206         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
2207         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
2208         * lib/unictype/pr_unified_ideograph.h: Regenerated.
2209         * lib/unictype/pr_uppercase.h: Regenerated.
2210         * lib/unictype/pr_xid_continue.h: Regenerated.
2211         * lib/unictype/pr_xid_start.h: Regenerated.
2212         * lib/unictype/pr_zero_width.h: Regenerated.
2213         * lib/unictype/scripts.h: Regenerated.
2214         * lib/unictype/scripts_byname.gperf: Regenerated.
2215         * lib/unictype/sy_java_ident.h: Regenerated.
2216         * lib/unilbrk/lbrkprop1.h: Regenerated.
2217         * lib/unilbrk/lbrkprop2.h: Regenerated.
2218         * tests/unictype/test-categ_C.c: Regenerated.
2219         * tests/unictype/test-categ_Cf.c: Regenerated.
2220         * tests/unictype/test-categ_Cn.c: Regenerated.
2221         * tests/unictype/test-categ_L.c: Regenerated.
2222         * tests/unictype/test-categ_Ll.c: Regenerated.
2223         * tests/unictype/test-categ_Lm.c: Regenerated.
2224         * tests/unictype/test-categ_Lo.c: Regenerated.
2225         * tests/unictype/test-categ_Lu.c: Regenerated.
2226         * tests/unictype/test-categ_M.c: Regenerated.
2227         * tests/unictype/test-categ_Mc.c: Regenerated.
2228         * tests/unictype/test-categ_Me.c: Regenerated.
2229         * tests/unictype/test-categ_Mn.c: Regenerated.
2230         * tests/unictype/test-categ_N.c: Regenerated.
2231         * tests/unictype/test-categ_Nd.c: Regenerated.
2232         * tests/unictype/test-categ_Nl.c: Regenerated.
2233         * tests/unictype/test-categ_No.c: Regenerated.
2234         * tests/unictype/test-categ_P.c: Regenerated.
2235         * tests/unictype/test-categ_Pd.c: Regenerated.
2236         * tests/unictype/test-categ_Pe.c: Regenerated.
2237         * tests/unictype/test-categ_Pf.c: Regenerated.
2238         * tests/unictype/test-categ_Pi.c: Regenerated.
2239         * tests/unictype/test-categ_Po.c: Regenerated.
2240         * tests/unictype/test-categ_Ps.c: Regenerated.
2241         * tests/unictype/test-categ_S.c: Regenerated.
2242         * tests/unictype/test-categ_Sk.c: Regenerated.
2243         * tests/unictype/test-categ_Sm.c: Regenerated.
2244         * tests/unictype/test-categ_So.c: Regenerated.
2245         * tests/unictype/test-ctype_alnum.c: Regenerated.
2246         * tests/unictype/test-ctype_alpha.c: Regenerated.
2247         * tests/unictype/test-ctype_graph.c: Regenerated.
2248         * tests/unictype/test-ctype_lower.c: Regenerated.
2249         * tests/unictype/test-ctype_print.c: Regenerated.
2250         * tests/unictype/test-ctype_punct.c: Regenerated.
2251         * tests/unictype/test-ctype_upper.c: Regenerated.
2252         * tests/unictype/test-decdigit.h: Regenerated.
2253         * tests/unictype/test-digit.h: Regenerated.
2254         * tests/unictype/test-numeric.h: Regenerated.
2255         * tests/unictype/test-pr_alphabetic.c: Regenerated.
2256         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
2257         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
2258         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
2259         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
2260         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
2261         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
2262         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
2263         * tests/unictype/test-pr_combining.c: Regenerated.
2264         * tests/unictype/test-pr_dash.c: Regenerated.
2265         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
2266         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
2267         * tests/unictype/test-pr_deprecated.c: Regenerated.
2268         * tests/unictype/test-pr_diacritic.c: Regenerated.
2269         * tests/unictype/test-pr_extender.c: Regenerated.
2270         * tests/unictype/test-pr_format_control.c: Regenerated.
2271         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
2272         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
2273         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
2274         * tests/unictype/test-pr_id_continue.c: Regenerated.
2275         * tests/unictype/test-pr_id_start.c: Regenerated.
2276         * tests/unictype/test-pr_ideographic.c: Regenerated.
2277         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
2278         * tests/unictype/test-pr_lowercase.c: Regenerated.
2279         * tests/unictype/test-pr_math.c: Regenerated.
2280         * tests/unictype/test-pr_numeric.c: Regenerated.
2281         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
2282         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
2283         Regenerated.
2284         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
2285         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
2286         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
2287         * tests/unictype/test-pr_other_math.c: Regenerated.
2288         * tests/unictype/test-pr_punctuation.c: Regenerated.
2289         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
2290         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
2291         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
2292         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
2293         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
2294         * tests/unictype/test-pr_uppercase.c: Regenerated.
2295         * tests/unictype/test-pr_xid_continue.c: Regenerated.
2296         * tests/unictype/test-pr_xid_start.c: Regenerated.
2297         * tests/unictype/test-pr_zero_width.c: Regenerated.
2298
2299         Update to Unicode 5.1.0.
2300         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
2301         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
2302         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
2303         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
2304         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
2305         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
2306         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
2307         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
2308         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
2309         (nonspacing_table_ind): Update.
2310         * tests/uniwidth/test-uc_width2.sh: Update expected result.
2311
2312         Update to Unicode 5.1.0.
2313         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
2314         code transform.
2315         * lib/uniname/uniname.c (unicode_character_name,
2316         unicode_name_character): Add the range 0x1Fxxx to the code transform.
2317         * lib/uniname/uninames.h: Regenerated.
2318         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
2319
2320 2009-02-07  Bruno Haible  <bruno@clisp.org>
2321
2322         Merge gen-ctype and gen-lbrk into a single program.
2323         * lib/gen-uni-tables.c: New file, incorporating
2324         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
2325         Add directory prefixes to the names of the generated files.
2326         * lib/unictype/gen-ctype.c: Remove file.
2327         * lib/unilbrk/gen-lbrk.c: Remove file.
2328         * modules/gen-uni-tables: New file.
2329         * modules/unictype/gen-ctype: Remove file.
2330         * modules/unilbrk/gen-lbrk: Remove file.
2331
2332 2009-02-07  Bruno Haible  <bruno@clisp.org>
2333
2334         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
2335
2336         New module 'unistr/u32-strcoll'.
2337         * modules/unistr/u32-strcoll: New file.
2338         * lib/unistr/u32-strcoll.c: New file.
2339
2340         New module 'unistr/u16-strcoll'.
2341         * modules/unistr/u16-strcoll: New file.
2342         * lib/unistr/u16-strcoll.c: New file.
2343
2344         New module 'unistr/u8-strcoll'.
2345         * modules/unistr/u8-strcoll: New file.
2346         * lib/unistr/u8-strcoll.c: New file.
2347         * lib/unistr/u-strcoll.h: New file.
2348
2349 2009-02-07  Bruno Haible  <bruno@clisp.org>
2350
2351         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
2352         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
2353         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
2354         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
2355         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
2356         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
2357
2358 2009-02-07  Bruno Haible  <bruno@clisp.org>
2359
2360         Make 64-bit clean.
2361         * lib/unictype/gen-ctype.c (output_predicate, output_category,
2362         output_combclass, output_bidi_category, output_decimal_digit,
2363         output_digit, output_numeric, output_mirror, output_scripts,
2364         output_ident_category): Use proper width specifier in format strings.
2365
2366 2009-02-07  Bruno Haible  <bruno@clisp.org>
2367
2368         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
2369         failure behaviour.
2370
2371 2009-02-07  Jim Meyering  <meyering@redhat.com>
2372
2373         regex: avoid compilation failure with upcoming gcc-4.4
2374         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
2375         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
2376         "... error: integer overflow in preprocessor expression".
2377
2378 2009-02-05  Ben Pfaff  <blp@gnu.org>
2379
2380         Fix link errors on Windows when close module is used.
2381         * modules/close: Add $(LIB_CLOSE) to Link section.
2382         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
2383         $(LIB_CLOSE) on Windows.
2384
2385 2009-02-05  Jim Meyering  <meyering@redhat.com>
2386
2387         still avoid unused-parameter warnings, but do it cleanly
2388         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
2389         (get_fs_usage): Cast to void instead.
2390         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
2391         (dev_from_mount_options, read_file_system_list): Cast to void.
2392         Prompted by Bruno Haible.
2393
2394 2009-02-04  Jim Meyering  <meyering@redhat.com>
2395
2396         fsusage.c: correct copyright year
2397         * lib/fsusage.c: Reflect year in which the change is pushed into
2398
2399         avoid misc. warnings
2400         * lib/fsusage.c (UNUSED_PARAM): Define.
2401         (get_fs_usage): Mark parameter "disk" as unused.
2402         * lib/getugroups.c (getgrent): Use "void" in prototype.
2403         * lib/mountlist.c: Mark unused parameters.
2404         (read_file_system_list): Declare a local with "const".
2405         * lib/nanosleep.c (getnow): Declare static.
2406         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
2407
2408         dirfd: set errno upon failure
2409         * lib/dirfd.c: Include <errno.h>.
2410         Set errno to ENOTSUP when returning -1.
2411         * modules/dirfd (Depends-on): Add errno.
2412         Suggested by John Kodis <kodis@comcast.net>.
2413
2414 2009-02-01  Bruno Haible  <bruno@clisp.org>
2415
2416         Don't assume sizeof (long) >= sizeof (void *).
2417         * lib/memcmp.c: Include stdint.h.
2418         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
2419         srcp2 to 'const byte *'.
2420         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
2421         types to uintptr_t.
2422         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
2423         * modules/memcmp (Depends-on): Add stdint.
2424         Reported by Ozkan Sezer <sezeroz@gmail.com>.
2425
2426 2009-01-30  Eric Blake  <ebb9@byu.net>
2427
2428         fix more require-before-expand issues
2429         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
2430         expand, AC_PROG_AWK.
2431         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
2432
2433 2009-01-28  Eric Blake  <ebb9@byu.net>
2434
2435         version-etc: use consistent URL formatting
2436         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
2437         Improve formatting.  Use fputs for string without %.
2438
2439 2009-01-28  Jim Meyering  <meyering@redhat.com>
2440
2441         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
2442         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
2443         "underquoted definition of NAME" from autoconf-2.59.
2444
2445 2009-01-28  Bruno Haible  <bruno@clisp.org>
2446
2447         * doc/gnulib.texi: Add "Obsolete modules" to index.
2448
2449 2009-01-28  Jim Meyering  <meyering@redhat.com>
2450
2451         useless-if-before-free: recognize more variants
2452         * build-aux/useless-if-before-free: Also recognize e.g.,
2453         if (NULL != p) free (p);
2454
2455 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
2456
2457         test-getaddrinfo: skip (don't fail) this test when there's no network
2458         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
2459         on the presumption that it means you lack network access.
2460
2461 2009-01-26  Jim Meyering  <meyering@redhat.com>
2462
2463         fflush: avoid warnings on modern systems
2464         * lib/fflush.c (rpl_fflush): Move declarations of locals,
2465         pos and result, into scopes where they're used.
2466
2467 2009-01-26  Eric Blake  <ebb9@byu.net>
2468
2469         Silence warning reintroduced by recent extensions patch.
2470         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
2471         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
2472         autoconf.
2473
2474         Backport improved autoconf semantics of AC_DEFUN_ONCE.
2475         * m4/00gnulib.m4: New file.
2476         * gnulib-tool (func_get_filelist): Always use it.
2477         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
2478         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
2479
2480 2009-01-25  Bruno Haible  <bruno@clisp.org>
2481
2482         Make test-quotearg work on MacOS X and AIX.
2483         * tests/test-quotearg.sh: New file.
2484         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
2485         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
2486         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
2487         include <libintl.h>.
2488         (fake_locale): Remove variable.
2489         (gettext, dgettext, dcgettext): Remove functions.
2490         (main): Instead of setting a fake locale, set a real locale. Call
2491         textdomain and bindtextdomain.
2492         * modules/quotearg-tests (Files): Add the new files.
2493         (Depends-on): Add gettext, setenv, unsetenv.
2494         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
2495         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
2496         Augment TESTS_ENVIRONMENT.
2497
2498 2009-01-25  Bruno Haible  <bruno@clisp.org>
2499
2500         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
2501         fr_FR.ISO8859-1 locale on MacOS X.
2502         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
2503         ja_JP.eucJP locale on MacOS X.
2504         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
2505         zh_CN.GB18030 locale on MacOS X.
2506
2507 2009-01-25  Bruno Haible  <bruno@clisp.org>
2508
2509         Avoid link errors on MacOS X 10.3.
2510         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
2511         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
2512
2513 2009-01-25  Bruno Haible  <bruno@clisp.org>
2514
2515         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
2516         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
2517         * modules/pipe (Files): Remove m4/posix_spawn.m4.
2518         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
2519         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
2520         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
2521         posix_spawnattr_init, posix_spawnattr_setsigmask,
2522         posix_spawnattr_setflags, posix_spawnattr_destroy.
2523
2524         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
2525         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
2526         * modules/execute (Files): Remove m4/posix_spawn.m4.
2527         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
2528         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
2529         posix_spawnattr_init, posix_spawnattr_setsigmask,
2530         posix_spawnattr_setflags, posix_spawnattr_destroy.
2531
2532 2009-01-25  Bruno Haible  <bruno@clisp.org>
2533
2534         * lib/glthread/threadlib.c: Include <stdlib.h>.
2535
2536 2009-01-25  Bruno Haible  <bruno@clisp.org>
2537
2538         * lib/glthread/threadlib.c (dummy): New declaration.
2539
2540 2009-01-25  Bruno Haible  <bruno@clisp.org>
2541
2542         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
2543         multibyte characters also for the GB18030 encoding. Don't crash when
2544         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
2545
2546 2009-01-25  Bruno Haible  <bruno@clisp.org>
2547
2548         Avoid redefining 'struct random_data' on OSF/1 5.1.
2549         * lib/stdlib.in.h: Include <random.h> if it exists.
2550         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
2551         HAVE_RANDOM_H. Include <random.h> when testing whether
2552         'struct random_data' exists.
2553         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
2554
2555 2009-01-25  Bruno Haible  <bruno@clisp.org>
2556
2557         Don't install charset.alias on MacOS X >= 10.3.
2558         * lib/localcharset.c (DARWIN7): New macro.
2559         (get_charset_aliases): Hardcode the result for Darwin7.
2560         * modules/localcharset (install-exec-local): Don't install
2561         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
2562
2563 2009-01-25  Bruno Haible  <bruno@clisp.org>
2564
2565         Don't install charset.alias on mingw and Cygwin.
2566         * modules/localcharset (install-exec-local): Don't install
2567         charset.alias on mingw and Cygwin, if the file does not yet exist.
2568         The result for these platforms is hardcoded in localcharset.c.
2569
2570 2009-01-25  Bruno Haible  <bruno@clisp.org>
2571
2572         Make it possible again to use AC_GNU_SOURCE together with gnulib.
2573         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
2574         before requiring AC_USE_SYSTEM_EXTENSIONS.
2575
2576 2009-01-25  Jim Meyering  <meyering@redhat.com>
2577
2578         c-strtod: avoid warnings
2579         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
2580         "assignment discards qualifiers from pointer target type" warnings.
2581
2582 2009-01-24  Bruno Haible  <bruno@clisp.org>
2583
2584         Add support for non-UTF-8 locales on MacOS X.
2585         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
2586         canonical encodings. For Darwin 7 and newer, don't map traditional
2587         encodings to UTF-8.
2588         Reported by Vincent Lefevre <vincent@vinc17.org>
2589         at <http://savannah.gnu.org/bugs/?25235>.
2590
2591 2009-01-24  Bruno Haible  <bruno@clisp.org>
2592
2593         * doc/gnulib.texi (Obsolete modules): New section.
2594         Reported by Mike Frysinger <vapier@gentoo.org>.
2595
2596 2009-01-24  Bruno Haible  <bruno@clisp.org>
2597
2598         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
2599         (%.dvi): New rule.
2600
2601 2009-01-24  Bruno Haible  <bruno@clisp.org>
2602
2603         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
2604         Reported by Eric Blake.
2605
2606 2009-01-24  Bruno Haible  <bruno@clisp.org>
2607
2608         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
2609         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
2610         Reported by Gary V. Vaughan <gary@gnu.org>.
2611
2612 2009-01-24  Bruno Haible  <bruno@clisp.org>
2613
2614         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
2615
2616 2009-01-23  Bruno Haible  <bruno@clisp.org>
2617
2618         Make c-strtod, c-strtold usable in libraries.
2619         * lib/c-strtod.c: Include string.h instead of xalloc.h.
2620         (C_STRTOD): Call strdup instead of xstrdup.
2621         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
2622         * modules/c-strtold (Depends-on): Likewise.
2623         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
2624         * NEWS: Mention the change.
2625         Reported by Michael Gold <mgold@ncf.ca>.
2626
2627 2009-01-23  Jim Meyering  <meyering@redhat.com>
2628
2629         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
2630         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
2631         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
2632
2633 2009-01-23  Simon Josefsson  <simon@josefsson.org>
2634
2635         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
2636         GNU CoreUtils.
2637         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
2638         * modules/version-etc (Description): Update.
2639
2640 2009-01-22  Bruno Haible  <bruno@clisp.org>
2641
2642         Cache the C locale object.
2643         * lib/c-strtod.c (c_locale_cache): New variable.
2644         (c_locale): New function.
2645         (C_STRTOD): Use it, and don't call freelocale.
2646         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
2647         Suggested by Paolo Bonzini.
2648
2649 2009-01-21  Bruno Haible  <bruno@clisp.org>
2650
2651         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
2652         conditions other than overflow.
2653
2654 2009-01-21  Bruno Haible  <bruno@clisp.org>
2655
2656         * lib/c-strtod.c: Include errno.h.
2657         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
2658         value from STRTOD_L and STRTOD.
2659
2660 2009-01-21  Bruno Haible  <bruno@clisp.org>
2661         and Jim Meyering  <meyering@redhat.com>
2662
2663         nanosleep: skip configure test (fail it) for apple universal builds
2664         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
2665         universal builds, assume that nanosleep does not work.
2666         * modules/nanosleep (Depends-on): Add multiarch.
2667
2668         mktime: skip configure test (fail it) for apple universal builds
2669         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
2670         universal builds, assume that mktime does not work.
2671         * modules/mktime (Depends-on): Add multiarch.
2672
2673 2009-01-21  Eric Blake  <ebb9@byu.net>
2674
2675         multiarch: avoid expand-before-require warning
2676         * modules/multiarch (configure.ac): Require, rather than expand,
2677         gl_MULTIARCH.
2678         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
2679         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
2680         enforce that all clients require it.  Partial reversion of
2681         2008-12-29 patch.
2682
2683         error: avoid expand-before-require warning
2684         * modules/errno (configure.ac): Require, rather than expand,
2685         gl_HEADER_ERRNO_H.
2686         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
2687         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
2688         enforce that all clients require it.
2689
2690         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
2691         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
2692         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
2693         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
2694
2695 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
2696
2697         Revert:
2698         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
2699
2700         regex: do not depend on obsolete modules.
2701         * modules/regex: Remove memcmp and memmove.
2702
2703 2009-01-20  Bruno Haible  <bruno@clisp.org>
2704
2705         Make the 'link' module link on Windows NT 4.
2706         * lib/link.c (_WIN32_WINNT): Don't define.
2707         (CreateHardLinkFuncType): New type.
2708         (CreateHardLinkFunc, initialized): New variables.
2709         (initialize): New function.
2710         (link): Invoke CreateHardLink indirectly through the function pointer.
2711
2712 2009-01-20  Bruno Haible  <bruno@clisp.org>
2713
2714         Fix compilation failure on mingw.
2715         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
2716
2717 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
2718
2719         * doc/c-strtod.texi: Mention a couple of restrictions.
2720
2721 2009-01-20  Jim Meyering  <meyering@redhat.com>
2722
2723         gettimeofday: move more declarations out of functions
2724         * lib/gettimeofday.c: Move extern declarations of tzset and
2725         gmtime out of containing functions.  Prompted by Bruno Haible.
2726
2727 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
2728
2729         regex: do not depend on obsolete modules.
2730         * modules/regex: Remove memcmp and memmove.
2731
2732 2009-01-19  Bruno Haible  <bruno@clisp.org>
2733
2734         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
2735         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
2736         gl_BIGENDIAN, not AC_C_BIGENDIAN.
2737         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
2738         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
2739
2740 2009-01-19  Bruno Haible  <bruno@clisp.org>
2741
2742         * tests/test-link.c: Include <errno.h>.
2743         (main): Exit with code 77 when a hard link cannot be created due to
2744         the file system.
2745         * tests/test-link.sh: Skip test when a hard link cannot be created due
2746         to the file system.
2747         Suggested by Eric Blake.
2748
2749 2009-01-19  Martin Lambers  <marlam@marlam.de>
2750
2751         * modules/link-tests: New file.
2752         * tests/test-link.sh: New file.
2753         * tests/test-link.c: New file.
2754
2755 2009-01-19  Eric Blake  <ebb9@byu.net>
2756
2757         doc: mention another function added in cygwin 1.7.0
2758         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
2759         Another new function in cygwin 1.7.
2760
2761 2009-01-19  Bruno Haible  <bruno@clisp.org>
2762
2763         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
2764         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
2765         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
2766         gl_BIGENDIAN, not AC_C_BIGENDIAN.
2767         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
2768         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
2769         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2770         * m4/md4.m4 (gl_MD4): Likewise.
2771         * m4/md5.m4 (gl_MD5): Likewise.
2772         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
2773         * m4/sha1.m4 (gl_SHA1): Likewise.
2774         * m4/sha256.m4 (gl_SHA256): Likewise.
2775         * m4/sha512.m4 (gl_SHA512): Likewise.
2776
2777 2009-01-19  Bruno Haible  <bruno@clisp.org>
2778
2779         * modules/uniname/uniname-tests (Depends-on): Add progname.
2780         * tests/uniname/test-uninames.c: Include progname.h.
2781         (main): Call set_program_name.
2782
2783         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
2784         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
2785         (main): Call set_program_name.
2786
2787         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
2788         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
2789         (main): Call set_program_name.
2790
2791         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
2792         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
2793         (main): Call set_program_name.
2794
2795         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
2796         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
2797         (main): Call set_program_name.
2798
2799         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
2800         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
2801         (main): Call set_program_name.
2802
2803         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
2804         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
2805         (main): Call set_program_name.
2806
2807         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
2808         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
2809         (main): Call set_program_name.
2810
2811         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
2812         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
2813         (main): Call set_program_name.
2814
2815 2009-01-19  Eric Blake  <ebb9@byu.net>
2816
2817         test-unistd: test previous patch
2818         * tests/test-unistd.c: Test *_FILENO macros.
2819
2820         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
2821         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
2822         Guarantee a definition.
2823         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
2824         * modules/unistd-safer (Depends-on): Add dependency on unistd.
2825         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
2826         * lib/dup-safer.c (STDERR_FILENO): Likewise.
2827         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
2828         Likewise.
2829         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
2830         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
2831         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
2832         Likewise.
2833         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
2834         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
2835         (STDERR_FILENO): Likewise.
2836         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
2837         (STDERR_FILENO): Likewise.
2838         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
2839         (STDERR_FILENO): Likewise.
2840         Reported by Elbert Pol.
2841
2842 2009-01-19  Eric Blake  <ebb9@byu.net>
2843
2844         doc: mention more functions added in cygwin 1.7.0
2845         * doc/posix-functions/abort.texi (abort): Update wording related
2846         to cygwin.
2847         * doc/posix-functions/daylight.texi (daylight): Likewise.
2848         * doc/posix-functions/optarg.texi (optarg): Likewise.
2849         * doc/posix-functions/optarg.texi (opterr): Likewise.
2850         * doc/posix-functions/optarg.texi (optind): Likewise.
2851         * doc/posix-functions/optarg.texi (optopt): Likewise.
2852         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
2853         worked in 1.5.x, and was withdrawn in 1.7.
2854         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
2855         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
2856         cygwin versions.
2857         * doc/posix-functions/perror.texi (perror): Likewise.
2858         * doc/posix-functions/printf.texi (printf): Likewise.
2859         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
2860         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
2861         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2862         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2863         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2864         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
2865         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
2866         Likewise.
2867         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
2868         Likewise.
2869         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
2870         this function.
2871         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
2872         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
2873         Likewise.
2874         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
2875         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
2876         * doc/posix-functions/confstr.texi (confstr): Likewise.
2877         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
2878         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
2879         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
2880         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
2881         * doc/posix-functions/fputws.texi (fputws): Likewise.
2882         * doc/posix-functions/fwide.texi (fwide): Likewise.
2883         * doc/posix-functions/getwc.texi (getwc): Likewise.
2884         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
2885         * doc/posix-functions/putwc.texi (putwc): Likewise.
2886         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
2887         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
2888         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
2889         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
2890         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
2891         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
2892         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
2893         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
2894         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
2895         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
2896         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
2897
2898 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
2899
2900         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
2901         * lib/ioctl.c: Include <sys/ioctl.h>.
2902
2903 2009-01-19  Simon Josefsson  <simon@josefsson.org>
2904
2905         * modules/getdate-tests (Depends-on): Add progname.
2906         * tests/test-getdate.c: Use progname module, to avoid link errors
2907         on non-glibc systems.
2908
2909 2009-01-18  Simon Josefsson  <simon@josefsson.org>
2910
2911         * modules/filenamecat-tests (Depends-on): Add progname.
2912         * modules/fstrcmp-tests (Depends-on): Likewise.
2913
2914         * tests/test-filenamecat.c: Use progname module, to avoid link
2915         errors on non-glibc systems.
2916         * tests/test-fstrcmp.c: Likewise.
2917
2918 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
2919
2920         gettimeofday: avoid warning: nested extern declaration of 'localtime'
2921         * lib/gettimeofday.c: Move extern declaration out of function.
2922
2923 2009-01-18  Bruno Haible  <bruno@clisp.org>
2924
2925         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
2926         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
2927         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
2928
2929 2009-01-18  Bruno Haible  <bruno@clisp.org>
2930
2931         * lib/strftime.c (MEMPCPY): Remove unused macro.
2932         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
2933
2934 2009-01-18  Martin Lambers  <marlam@marlam.de>
2935
2936         New module 'link'.
2937         * lib/unistd.in.h (link): New declaration.
2938         * lib/link.c: New file.
2939         * m4/link.m4: New file.
2940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
2941         HAVE_LINK.
2942         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
2943         * modules/link: New file.
2944         * doc/posix-functions/link.texi: Mention the new module.
2945
2946 2009-01-18  Bruno Haible  <bruno@clisp.org>
2947
2948         * tests/test-avltree_list.c (main): Call set_program_name.
2949         * tests/test-avltree_oset.c (main): Likewise.
2950         * tests/test-obstack-printf.c: Include progname.h.
2951         (main): Call set_program_name.
2952         * tests/test-quotearg.c: Include progname.h.
2953         (main): Call set_program_name.
2954         * tests/test-xmemdup0.c: Include progname.h.
2955         (main): Call set_program_name.
2956
2957 2009-01-18  Bruno Haible  <bruno@clisp.org>
2958
2959         New module 'alphasort'.
2960         * lib/dirent.in.h (alphasort): New declaration.
2961         * lib/alphasort.c: New file, from glibc with modifications.
2962         * m4/alphasort.m4: New file.
2963         * modules/alphasort: New file.
2964         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
2965         HAVE_ALPHASORT.
2966         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
2967         HAVE_ALPHASORT.
2968         * doc/posix-functions/alphasort.texi: Mention the new module and the
2969         portability problems.
2970
2971 2009-01-18  Bruno Haible  <bruno@clisp.org>
2972
2973         New module 'scandir'.
2974         * lib/dirent.in.h (scandir): New declaration.
2975         * lib/scandir.c: New file, from glibc with modifications.
2976         * m4/scandir.m4: New file.
2977         * modules/scandir: New file.
2978         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
2979         HAVE_SCANDIR.
2980         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
2981         HAVE_SCANDIR.
2982         * doc/posix-functions/scandir.texi: Mention the new module and the
2983         portability problems.
2984
2985 2009-01-17  Bruno Haible  <bruno@clisp.org>
2986
2987         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
2988         Update documentation.
2989         (func_remove_suffix): Escape all dots in the suffix. Update
2990         documentation.
2991         (func_filter_filelist): Update documentation.
2992         Reported by Ralf Wildenhues.
2993
2994 2009-01-17  Bruno Haible  <bruno@clisp.org>
2995
2996         * modules/dprintf-posix-tests: New file.
2997         * tests/test-dprintf-posix.sh: New file.
2998         * tests/test-dprintf-posix.c: New file.
2999
3000         New modules 'dprintf', 'dprintf-posix'.
3001         * lib/stdio.in.h (dprintf): New declaration.
3002         * lib/dprintf.c: New file.
3003         * m4/dprintf.m4: New file.
3004         * m4/dprintf-posix.m4: New file.
3005         * modules/dprintf: New file.
3006         * modules/dprintf-posix: New file.
3007         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
3008         HAVE_DPRINTF, REPLACE_DPRINTF.
3009         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
3010         HAVE_DPRINTF, REPLACE_DPRINTF.
3011         * doc/posix-functions/dprintf.texi: Mention the new modules.
3012
3013 2009-01-17  Bruno Haible  <bruno@clisp.org>
3014
3015         * modules/vdprintf-posix-tests: New file.
3016         * tests/test-vdprintf-posix.sh: New file.
3017         * tests/test-vdprintf-posix.c: New file.
3018
3019         New modules 'vdprintf', 'vdprintf-posix'.
3020         * lib/stdio.in.h (vdprintf): New declaration.
3021         * lib/vdprintf.c: New file.
3022         * m4/vdprintf.m4: New file.
3023         * m4/vdprintf-posix.m4: New file.
3024         * modules/vdprintf: New file.
3025         * modules/vdprintf-posix: New file.
3026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
3027         HAVE_VDPRINTF, REPLACE_VDPRINTF.
3028         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
3029         HAVE_VDPRINTF, REPLACE_VDPRINTF.
3030         * doc/posix-functions/vdprintf.texi: Mention the new modules.
3031
3032 2009-01-17  Bruno Haible  <bruno@clisp.org>
3033
3034         Fix replacement of fopen on mingw.
3035         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
3036         mingw.
3037
3038 2009-01-17  Bruno Haible  <bruno@clisp.org>
3039
3040         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
3041         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
3042
3043 2009-01-17  Bruno Haible  <bruno@clisp.org>
3044
3045         Avoid test-fflush2.sh failure on mingw.
3046         * tests/test-fflush2.c: Include binary-io.h.
3047         (main): Put standard input into binary mode.
3048         * modules/fflush-tests (Depends-on): Add binary-io.
3049
3050 2009-01-17  Bruno Haible  <bruno@clisp.org>
3051
3052         * lib/wchar.in.h: In another particular situation, include only the
3053         system's <wchar.h> file.
3054         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
3055         Reported by Albert Chin-A-Young <china@thewrittenword.com>
3056         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
3057
3058 2009-01-17  Bruno Haible  <bruno@clisp.org>
3059
3060         Support for stripping executables in --enable-relocatable.
3061         * build-aux/install-reloc: Expect one more argument, or an environment
3062         variable RELOC_STRIP_PROG. If set, strip the destination program and
3063         its wrapper.
3064         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
3065         RELOC_STRIP_PROG.
3066         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
3067         to set RELOCATABLE_STRIP.
3068         * NEWS: Mention the new Makefile requirement.
3069
3070 2009-01-17  Bruno Haible  <bruno@clisp.org>
3071
3072         * build-aux/install-reloc: Remove debugging information left over by
3073         C compiler on MacOS X.
3074
3075 2009-01-17  Bruno Haible  <bruno@clisp.org>
3076
3077         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
3078         * lib/progreloc.c (find_executable): Fix type of pointer passed to
3079         _NSGetExecutablePath.
3080
3081 2009-01-16  Jim Meyering  <meyering@redhat.com>
3082
3083         strerror: avoid warnings about discarding "const"
3084         * lib/strerror.c (rpl_strerror): Instead of returning a const
3085         string from each and every "case", use a variable, and add a single
3086         cast after the switch.
3087
3088 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
3089
3090         * lib/arpa_inet.in.h: Add extern "C" block for C++.
3091
3092 2009-01-16  Bruno Haible  <bruno@clisp.org>
3093
3094         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
3095         array initializer syntax that also works in C++ mode.
3096         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3097
3098 2009-01-16  Jim Meyering  <meyering@redhat.com>
3099
3100         poll: suppress a warning
3101         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
3102         to ignore "...unsigned expression < 0 is always false" warnings.
3103
3104 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
3105
3106         poll: remove declarations of unused variables
3107         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
3108         sockbuf and optlen.
3109
3110 2009-01-15  Bruno Haible  <bruno@clisp.org>
3111
3112         Make fflush-after-ungetc POSIX compliant on BSD systems.
3113         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
3114         (clear_ungetc_buffer): Implement also for other systems.
3115         (rpl_fflush): On glibc systems, invoke
3116         clear_ungetc_buffer_preserving_position. Otherwise, invoke
3117         clear_ungetc_buffer after fetching the stream's position, not before.
3118
3119 2009-01-15  Bruno Haible  <bruno@clisp.org>
3120
3121         Make fflush-after-ungetc POSIX compliant on glibc systems.
3122         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
3123         after ungetc.
3124         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
3125         (rpl_fflush): On glibc systems, simply call the system's fflush
3126         function after clearing the ungetc buffer.
3127         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
3128         Instead, lseek only to the end of file, then use the system's fseeko
3129         for the rest. On glibc systems, reset the EOF indicator bit.
3130
3131 2009-01-15  Jim Meyering  <meyering@redhat.com>
3132
3133         openmp.m4: revert quote-adding change, for portability to older autoconf
3134         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
3135         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
3136         Simon Josefsson noticed the problem when using autoconf-2.61.
3137
3138 2009-01-15  Bruno Haible  <bruno@clisp.org>
3139
3140         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
3141         * tests/test-fflush2.c (ASSERT): Always fail.
3142         (main): Add two tests for fflush() after ungetc(), taking into account
3143         the Austin Group's clarification.
3144         Suggested by Eric Blake.
3145
3146 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
3147
3148         mktime.m4: remove K&R-style function prototypes
3149         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
3150         for the Sun C++ compiler.
3151
3152 2009-01-14  Bruno Haible  <bruno@clisp.org>
3153
3154         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
3155         while including <wchar.h>.
3156         * lib/wchar.in.h: In two particular situations on HP-UX, include only
3157         the system's <wchar.h> file.
3158         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3159
3160 2009-01-14  Bruno Haible  <bruno@clisp.org>
3161
3162         * m4/csharp.m4: Don't mention gettext on the serial number line.
3163         * m4/csharpexec.m4: Likewise.
3164         * m4/eaccess.m4: Likewise.
3165         * m4/javaexec.m4: Likewise.
3166         * m4/sig_atomic_t.m4: Likewise.
3167         * m4/tmpdir.m4: Likewise.
3168         * m4/intldir.m4: Bump gettext version.
3169         * m4/lib-ld.m4: Likewise.
3170
3171 2009-01-14  Bruno Haible  <bruno@clisp.org>
3172
3173         * lib/progname.c (set_program_name): Add more comments.
3174         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
3175
3176 2009-01-14  Simon Josefsson  <simon@josefsson.org>
3177
3178         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
3179         were sys/stat.h does not define it.
3180
3181 2009-01-14  Jim Meyering  <meyering@redhat.com>
3182
3183         many *.m4 files: improve m4 quoting
3184         99% of this change was performed by running the following commands:
3185         git ls-files | grep '\.m4$' | xargs perl -pi \
3186           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
3187           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
3188           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
3189           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
3190         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
3191         The remainder were to add Copyright dates, increment serial numbers,
3192         undo some changes in comments, exclude m4/intl.m4, and add quotes
3193         around the "1" in ",1" where the unusual spacing prohibited the
3194         above regexps from doing the job.  For more details, see
3195         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
3196         * m4/acl.m4: Modified.
3197         * m4/afs.m4: Likewise.
3198         * m4/alloca.m4: Likewise.
3199         * m4/argp.m4: Likewise.
3200         * m4/argz.m4: Likewise.
3201         * m4/atexit.m4: Likewise.
3202         * m4/bison-i18n.m4: Likewise.
3203         * m4/bison.m4: Likewise.
3204         * m4/byteswap.m4: Likewise.
3205         * m4/c-stack.m4: Likewise.
3206         * m4/c-strtod.m4: Likewise.
3207         * m4/calloc.m4: Likewise.
3208         * m4/canonicalize-lgpl.m4: Likewise.
3209         * m4/chown.m4: Likewise.
3210         * m4/clock_time.m4: Likewise.
3211         * m4/codeset.m4: Likewise.
3212         * m4/copy-file.m4: Likewise.
3213         * m4/csharp.m4: Likewise.
3214         * m4/csharpcomp.m4: Likewise.
3215         * m4/csharpexec.m4: Likewise.
3216         * m4/d-ino.m4: Likewise.
3217         * m4/d-type.m4: Likewise.
3218         * m4/dirfd.m4: Likewise.
3219         * m4/double-slash-root.m4: Likewise.
3220         * m4/eaccess.m4: Likewise.
3221         * m4/eealloc.m4: Likewise.
3222         * m4/environ.m4: Likewise.
3223         * m4/errno_h.m4: Likewise.
3224         * m4/euidaccess.m4: Likewise.
3225         * m4/execute.m4: Likewise.
3226         * m4/fatal-signal.m4: Likewise.
3227         * m4/fchdir.m4: Likewise.
3228         * m4/fcntl_h.m4: Likewise.
3229         * m4/fileblocks.m4: Likewise.
3230         * m4/filenamecat.m4: Likewise.
3231         * m4/findprog.m4: Likewise.
3232         * m4/flexmember.m4: Likewise.
3233         * m4/fnmatch.m4: Likewise.
3234         * m4/fopen.m4: Likewise.
3235         * m4/fpending.m4: Likewise.
3236         * m4/fprintf-posix.m4: Likewise.
3237         * m4/free.m4: Likewise.
3238         * m4/frexp.m4: Likewise.
3239         * m4/frexpl.m4: Likewise.
3240         * m4/fsusage.m4: Likewise.
3241         * m4/ftruncate.m4: Likewise.
3242         * m4/gc-camellia.m4: Likewise.
3243         * m4/gc-random.m4: Likewise.
3244         * m4/gc.m4: Likewise.
3245         * m4/getaddrinfo.m4: Likewise.
3246         * m4/getcwd-abort-bug.m4: Likewise.
3247         * m4/getcwd-path-max.m4: Likewise.
3248         * m4/getdate.m4: Likewise.
3249         * m4/getdomainname.m4: Likewise.
3250         * m4/getgroups.m4: Likewise.
3251         * m4/gethostname.m4: Likewise.
3252         * m4/gethrxtime.m4: Likewise.
3253         * m4/getline.m4: Likewise.
3254         * m4/getloadavg.m4: Likewise.
3255         * m4/getndelim2.m4: Likewise.
3256         * m4/getpass.m4: Likewise.
3257         * m4/gettext.m4: Likewise.
3258         * m4/gettime.m4: Likewise.
3259         * m4/gettimeofday.m4: Likewise.
3260         * m4/gnulib-common.m4: Likewise.
3261         * m4/group-member.m4: Likewise.
3262         * m4/host-os.m4: Likewise.
3263         * m4/iconv.m4: Likewise.
3264         * m4/iconv_open.m4: Likewise.
3265         * m4/inet_ntop.m4: Likewise.
3266         * m4/inet_pton.m4: Likewise.
3267         * m4/inline.m4: Likewise.
3268         * m4/intldir.m4: Likewise.
3269         * m4/intlmacosx.m4: Likewise.
3270         * m4/intmax.m4: Likewise.
3271         * m4/intmax_t.m4: Likewise.
3272         * m4/inttypes.m4: Likewise.
3273         * m4/inttypes_h.m4: Likewise.
3274         * m4/inttypes-pri.m4: Likewise.
3275         * m4/isapipe.m4: Likewise.
3276         * m4/isnand.m4: Likewise.
3277         * m4/isnanf.m4: Likewise.
3278         * m4/isnanl.m4: Likewise.
3279         * m4/javacomp.m4: Likewise.
3280         * m4/javaexec.m4: Likewise.
3281         * m4/jm-winsz1.m4: Likewise.
3282         * m4/jm-winsz2.m4: Likewise.
3283         * m4/lchown.m4: Likewise.
3284         * m4/lcmessage.m4: Likewise.
3285         * m4/ldexpl.m4: Likewise.
3286         * m4/lib-ld.m4: Likewise.
3287         * m4/lib-link.m4: Likewise.
3288         * m4/libsigsegv.m4: Likewise.
3289         * m4/link-follow.m4: Likewise.
3290         * m4/localcharset.m4: Likewise.
3291         * m4/locale-fr.m4: Likewise.
3292         * m4/locale-ja.m4: Likewise.
3293         * m4/locale-tr.m4: Likewise.
3294         * m4/locale-zh.m4: Likewise.
3295         * m4/lock.m4: Likewise.
3296         * m4/longlong.m4: Likewise.
3297         * m4/ls-mntd-fs.m4: Likewise.
3298         * m4/lstat.m4: Likewise.
3299         * m4/malloc.m4: Likewise.
3300         * m4/mathl.m4: Likewise.
3301         * m4/mbrtowc.m4: Likewise.
3302         * m4/mbstate_t.m4: Likewise.
3303         * m4/mbswidth.m4: Likewise.
3304         * m4/memchr.m4: Likewise.
3305         * m4/memcmp.m4: Likewise.
3306         * m4/memcpy.m4: Likewise.
3307         * m4/memmem.m4: Likewise.
3308         * m4/memmove.m4: Likewise.
3309         * m4/mempcpy.m4: Likewise.
3310         * m4/memrchr.m4: Likewise.
3311         * m4/memset.m4: Likewise.
3312         * m4/minmax.m4: Likewise.
3313         * m4/mkdir-slash.m4: Likewise.
3314         * m4/mkdtemp.m4: Likewise.
3315         * m4/mktime.m4: Likewise.
3316         * m4/mmap-anon.m4: Likewise.
3317         * m4/mountlist.m4: Likewise.
3318         * m4/nanosleep.m4: Likewise.
3319         * m4/nls.m4: Likewise.
3320         * m4/nocrash.m4: Likewise.
3321         * m4/open.m4: Likewise.
3322         * m4/openat.m4: Likewise.
3323         * m4/openmp.m4: Likewise.
3324         * m4/pathmax.m4: Likewise.
3325         * m4/perl.m4: Likewise.
3326         * m4/physmem.m4: Likewise.
3327         * m4/pipe.m4: Likewise.
3328         * m4/po.m4: Likewise.
3329         * m4/poll.m4: Likewise.
3330         * m4/posixtm.m4: Likewise.
3331         * m4/posixver.m4: Likewise.
3332         * m4/printf-frexp.m4: Likewise.
3333         * m4/printf-frexpl.m4: Likewise.
3334         * m4/printf-posix.m4: Likewise.
3335         * m4/printf-posix-rpl.m4: Likewise.
3336         * m4/printf.m4: Likewise.
3337         * m4/progtest.m4: Likewise.
3338         * m4/putenv.m4: Likewise.
3339         * m4/readline.m4: Likewise.
3340         * m4/readlink.m4: Likewise.
3341         * m4/readutmp.m4: Likewise.
3342         * m4/realloc.m4: Likewise.
3343         * m4/regex.m4: Likewise.
3344         * m4/relocatable.m4: Likewise.
3345         * m4/relocatable-lib.m4: Likewise.
3346         * m4/rename-dest-slash.m4: Likewise.
3347         * m4/rename.m4: Likewise.
3348         * m4/rmdir-errno.m4: Likewise.
3349         * m4/rmdir.m4: Likewise.
3350         * m4/roundf.m4: Likewise.
3351         * m4/roundl.m4: Likewise.
3352         * m4/rpmatch.m4: Likewise.
3353         * m4/save-cwd.m4: Likewise.
3354         * m4/selinux-selinux-h.m4: Likewise.
3355         * m4/setenv.m4: Likewise.
3356         * m4/settime.m4: Likewise.
3357         * m4/sig2str.m4: Likewise.
3358         * m4/sig_atomic_t.m4: Likewise.
3359         * m4/signalblocking.m4: Likewise.
3360         * m4/signbit.m4: Likewise.
3361         * m4/sigpipe.m4: Likewise.
3362         * m4/sockets.m4: Likewise.
3363         * m4/sockpfaf.m4: Likewise.
3364         * m4/st_dm_mode.m4: Likewise.
3365         * m4/stat-time.m4: Likewise.
3366         * m4/stdbool.m4: Likewise.
3367         * m4/stdint.m4: Likewise.
3368         * m4/stdint_h.m4: Likewise.
3369         * m4/stpcpy.m4: Likewise.
3370         * m4/stpncpy.m4: Likewise.
3371         * m4/strcase.m4: Likewise.
3372         * m4/strchrnul.m4: Likewise.
3373         * m4/strcspn.m4: Likewise.
3374         * m4/strdup.m4: Likewise.
3375         * m4/strftime.m4: Likewise.
3376         * m4/strndup.m4: Likewise.
3377         * m4/strnlen.m4: Likewise.
3378         * m4/strpbrk.m4: Likewise.
3379         * m4/strptime.m4: Likewise.
3380         * m4/strsep.m4: Likewise.
3381         * m4/strtod.m4: Likewise.
3382         * m4/strtoimax.m4: Likewise.
3383         * m4/strtok_r.m4: Likewise.
3384         * m4/strtol.m4: Likewise.
3385         * m4/strtoll.m4: Likewise.
3386         * m4/strtoul.m4: Likewise.
3387         * m4/strtoull.m4: Likewise.
3388         * m4/strtoumax.m4: Likewise.
3389         * m4/strverscmp.m4: Likewise.
3390         * m4/threadlib.m4: Likewise.
3391         * m4/timegm.m4: Likewise.
3392         * m4/tm_gmtoff.m4: Likewise.
3393         * m4/tmpdir.m4: Likewise.
3394         * m4/tmpfile.m4: Likewise.
3395         * m4/tzset.m4: Likewise.
3396         * m4/uintmax_t.m4: Likewise.
3397         * m4/unlinkdir.m4: Likewise.
3398         * m4/unlocked-io.m4: Likewise.
3399         * m4/uptime.m4: Likewise.
3400         * m4/userspec.m4: Likewise.
3401         * m4/utimbuf.m4: Likewise.
3402         * m4/utime.m4: Likewise.
3403         * m4/utimes-null.m4: Likewise.
3404         * m4/utimes.m4: Likewise.
3405         * m4/vararrays.m4: Likewise.
3406         * m4/vasnprintf.m4: Likewise.
3407         * m4/vfprintf-posix.m4: Likewise.
3408         * m4/vprintf-posix.m4: Likewise.
3409         * m4/wait-process.m4: Likewise.
3410         * m4/wchar_t.m4: Likewise.
3411         * m4/wint_t.m4: Likewise.
3412         * m4/write-any-file.m4: Likewise.
3413         * m4/yield.m4: Likewise.
3414
3415 2009-01-13  Bruno Haible  <bruno@clisp.org>
3416
3417         Avoid test-copy-file.sh failures when ACL support insufficient.
3418         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
3419         TESTS_ENVIRONMENT.
3420         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
3421         Reported by Jim Meyering.
3422
3423 2009-01-13  Bruno Haible  <bruno@clisp.org>
3424
3425         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
3426         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
3427         * modules/unistdio/u8-printf-parse (Files): Likewise.
3428         * modules/unistdio/u32-printf-parse (Files): Likewise.
3429         * modules/unistdio/ulc-printf-parse (Files): Likewise.
3430
3431 2009-01-13  Simon Josefsson  <simon@josefsson.org>
3432
3433         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
3434         and m4/inttypes_h.m4 too.
3435
3436 2009-01-12  Eric Blake  <ebb9@byu.net>
3437
3438         tests: IRIX 6.2 cc can't compile -0.0 into .data
3439         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
3440         rather than at compile-time.
3441         * tests/test-floorl.c (minus_zero): Likewise.
3442         * tests/test-frexpl.c (minus_zero): Likewise.
3443         * tests/test-isnan.c (minus_zerol): Likewise.
3444         * tests/test-isnanl.h (minus_zero): Likewise.
3445         * tests/test-ldexpl.c (minus_zero): Likewise.
3446         * tests/test-roundl.c (minus_zero): Likewise.
3447         * tests/test-signbit.c (minus_zerol): Likewise.
3448         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
3449         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
3450         * tests/test-truncl.c (minus_zero): Likewise.
3451         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
3452         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
3453         Reported by Tom G. Christensen and Nelson H. F. Beebe.
3454
3455 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
3456
3457         regex: fix glibc bug 9697
3458         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3459         handling.
3460
3461 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
3462
3463         regex: fix glibc bug 697
3464         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3465         being NULL also if there are no backreferences.
3466
3467 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
3468
3469         regex: merge glibc changes
3470         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3471         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3472         re_string_skip_chars, re_string_reconstruct): Likewise.
3473         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3474
3475 2009-01-07  Jim Meyering  <meyering@redhat.com>
3476
3477         poll: filter through cppi
3478         * lib/poll.c: Indent cpp directives to reflect nesting.
3479
3480 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
3481
3482         poll: don't return uninitialized
3483         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
3484
3485 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
3486
3487         avoid compile failure on AIX 6.1
3488         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
3489         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
3490
3491 2009-01-04  Jim Meyering  <meyering@redhat.com>
3492
3493         remove duplicate inclusion of <stdio.h>
3494         * tests/test-fprintf-posix.c: Likewise.
3495         * tests/test-printf-posix.c: Likewise.
3496         * tests/test-snprintf-posix.c: Likewise.
3497         * tests/test-sprintf-posix.c: Likewise.
3498         * tests/test-vasprintf-posix.c: Likewise.
3499         * tests/test-vfprintf-posix.c: Likewise.
3500         * tests/test-vprintf-posix.c: Likewise.
3501         * tests/test-vsnprintf-posix.c: Likewise.
3502         * tests/test-vsprintf-posix.c: Likewise.
3503
3504 2009-01-03  Jim Meyering  <meyering@redhat.com>
3505
3506         gnulib-tool: fix sed-based filtering
3507         * gnulib-tool (func_filter_filelist): Remove extra backslash
3508         in sed_fff_filter definition.
3509
3510 2009-01-02  Jim Meyering  <meyering@redhat.com>
3511
3512         strftime: avoid compilation failure on Solaris 2.6
3513         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
3514         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
3515         Don't #define mbrlen or mbsinit, since now they're guaranteed to
3516         be available.  Reported by Tom G. Christensen.  Details in
3517         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
3518
3519 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3520             Bruno Haible  <bruno@clisp.org>
3521
3522         Speed up gnulib-tool by doing more string processing through shell
3523         built-ins.
3524         * gnulib-tool (fast_func_append): New variable.
3525         (func_remove_prefix, func_remove_suffix): New functions.
3526         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
3527         (func_filter_filelist): New function.
3528         (func_get_dependencies): Use func_remove_suffix instead of sed.
3529         (func_get_automake_snippet): Use func_filter_filelist instead of a
3530         subshell and sed invocation.
3531
3532 2009-01-01  Bruno Haible  <bruno@clisp.org>
3533
3534         Fix a security bug.
3535         * gnulib-tool (func_import, import, update): Don't allow the characters
3536         '"', '$', '`', '\' in macro arguments that become part of commands that
3537         are evaluated.
3538
3539 2009-01-01  Bruno Haible  <bruno@clisp.org>
3540
3541         * gnulib-tool (func_reset_sigpipe): Add more comments.
3542
3543 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3544
3545         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
3546         func_emit_tests_Makefile_am, func_import): Abort loops early if we
3547         already know the answer.
3548
3549 2009-01-01  Jim Meyering  <meyering@redhat.com>
3550
3551         * lib/version-etc.c (version_etc_va): Update copyright year.
3552
3553 2008-12-30  Bruno Haible  <bruno@clisp.org>
3554
3555         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
3556         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
3557         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
3558
3559 2008-12-29  Eric Blake  <ebb9@byu.net>
3560
3561         multiarch: avoid autoconf AC_REQUIRE bug
3562         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
3563         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
3564         2.63 and older.
3565         Reported by Bruno Haible, and analyzed in
3566         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
3567
3568 2008-12-29  Bruno Haible  <bruno@clisp.org>
3569
3570         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
3571         files in subdirectories correctly.
3572         Reported by Ralf Wildenhues.
3573
3574 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3575
3576         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
3577         rather than 'join FILE -', for Solaris join.
3578
3579 2008-12-29  Bruno Haible  <bruno@clisp.org>
3580
3581         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
3582         quoting.
3583         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
3584         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
3585         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
3586         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
3587         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
3588         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
3589         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
3590         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
3591         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
3592         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
3593         * m4/nls.m4 (AM_NLS): Likewise.
3594         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
3595         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
3596         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
3597         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
3598         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
3599         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3600         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
3601         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
3602         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
3603         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
3604         * m4/xsize.m4 (gl_XSIZE): Likewise.
3605         Suggested by Jim Meyering.
3606
3607 2008-11-17  Bruce Korb  <bkorb@gnu.org>
3608
3609         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
3610         * lib/parse-duration.c: use a switch instead of cascading if's.
3611
3612 2008-12-29  Eric Blake  <ebb9@byu.net>
3613
3614         wchar.h: supply WEOF on Irix 5.3
3615         * lib/wchar.in.h (wint_t): Also supply WEOF.
3616         * lib/wctype.in.h (wint_t): Likewise.
3617         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
3618         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
3619         Reported by Tom G. Christensen.
3620
3621 2008-12-26  Bruno Haible  <bruno@clisp.org>
3622
3623         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
3624         i486, i586, i686.
3625
3626 2008-12-26  Bruno Haible  <bruno@clisp.org>
3627
3628         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
3629
3630 2008-12-26  Bruno Haible  <bruno@clisp.org>
3631
3632         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
3633         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
3634         not __STDC_CONSTANT_MACROS.
3635         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
3636
3637 2008-12-25  Bruno Haible  <bruno@clisp.org>
3638
3639         Add support for universal builds to vasnprintf.
3640         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
3641         universal builds, guess no.
3642         * modules/vasnprintf-posix (Depends-on): Add multiarch.
3643         * modules/vasprintf-posix (Depends-on): Likewise.
3644         * modules/fprintf-posix (Depends-on): Likewise.
3645         * modules/vfprintf-posix (Depends-on): Likewise.
3646         * modules/snprintf-posix (Depends-on): Likewise.
3647         * modules/vsnprintf-posix (Depends-on): Likewise.
3648         * modules/sprintf-posix (Depends-on): Likewise.
3649         * modules/vsprintf-posix (Depends-on): Likewise.
3650         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3651         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3652         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3653         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3654         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3655         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3656         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3657
3658         Add support for universal builds to <inttypes.h>.
3659         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
3660         _SCNu64_PREFIX): In Apple
3661         universal builds, define directly, using _LP64.
3662         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
3663         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
3664         * modules/inttypes (Depends-on): Add multiarch.
3665         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
3666
3667         Add support for universal builds to <stdint.h>.
3668         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
3669         universal builds, define directly, using _LP64.
3670         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
3671         Apple universal builds, don't test for the size and suffix of ptrdiff_t
3672         and size_t.
3673         * modules/stdint (Depends-on): Add multiarch.
3674         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
3675
3676         New module 'multiarch'.
3677         * modules/multiarch: New file.
3678         * m4/multiarch.m4: New file.
3679
3680 2008-12-25  Bruno Haible  <bruno@clisp.org>
3681
3682         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
3683
3684 2008-12-25  Bruno Haible  <bruno@clisp.org>
3685
3686         * modules/btowc (License): Relicense under LGPLv2+.
3687         * modules/mbsinit (License): Likewise.
3688         * modules/mbrtowc (License): Likewise.
3689         * modules/wcrtomb (License): Likewise.
3690         * modules/streq (License): Likewise.
3691         Reported by David Lutterkort <lutter@redhat.com>.
3692
3693 2008-12-23  Bruno Haible  <bruno@clisp.org>
3694
3695         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
3696
3697 2008-12-23  Bruno Haible  <bruno@clisp.org>
3698
3699         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
3700         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
3701         GETADDRINFO_LIB, not in LIBS.
3702         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
3703         * modules/canon-host (Link): Likewise.
3704         * NEWS: Mention the change.
3705         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
3706         GETADDRINFO_LIB.
3707
3708 2008-12-22  Bruno Haible  <bruno@clisp.org>
3709
3710         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
3711         * doc/posix-functions/iswalpha_l.texi: Likewise.
3712         * doc/posix-functions/iswblank_l.texi: Likewise.
3713         * doc/posix-functions/iswcntrl_l.texi: Likewise.
3714         * doc/posix-functions/iswctype_l.texi: Likewise.
3715         * doc/posix-functions/iswdigit_l.texi: Likewise.
3716         * doc/posix-functions/iswgraph_l.texi: Likewise.
3717         * doc/posix-functions/iswlower_l.texi: Likewise.
3718         * doc/posix-functions/iswprint_l.texi: Likewise.
3719         * doc/posix-functions/iswpunct_l.texi: Likewise.
3720         * doc/posix-functions/iswspace_l.texi: Likewise.
3721         * doc/posix-functions/iswupper_l.texi: Likewise.
3722         * doc/posix-functions/iswxdigit_l.texi: Likewise.
3723         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
3724         * doc/posix-functions/open_wmemstream.texi: Likewise.
3725         * doc/posix-functions/swscanf.texi: Likewise.
3726         * doc/posix-functions/towctrans_l.texi: Likewise.
3727         * doc/posix-functions/towlower.texi: Likewise.
3728         * doc/posix-functions/towlower_l.texi: Likewise.
3729         * doc/posix-functions/towupper.texi: Likewise.
3730         * doc/posix-functions/towupper_l.texi: Likewise.
3731         * doc/posix-functions/vfwprintf.texi: Likewise.
3732         * doc/posix-functions/vfwscanf.texi: Likewise.
3733         * doc/posix-functions/vswscanf.texi: Likewise.
3734         * doc/posix-functions/vwprintf.texi: Likewise.
3735         * doc/posix-functions/vwscanf.texi: Likewise.
3736         * doc/posix-functions/wcpcpy.texi: Likewise.
3737         * doc/posix-functions/wcpncpy.texi: Likewise.
3738         * doc/posix-functions/wcscasecmp.texi: Likewise.
3739         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
3740         * doc/posix-functions/wcscoll_l.texi: Likewise.
3741         * doc/posix-functions/wcsdup.texi: Likewise.
3742         * doc/posix-functions/wcsncasecmp.texi: Likewise.
3743         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
3744         * doc/posix-functions/wcsnlen.texi: Likewise.
3745         * doc/posix-functions/wcsnrtombs.texi: Likewise.
3746         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
3747         * doc/posix-functions/wctrans_l.texi: Likewise.
3748         * doc/posix-functions/wctype_l.texi: Likewise.
3749         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
3750         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
3751         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
3752         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
3753         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
3754         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
3755         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
3756         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
3757         * doc/glibc-functions/wcschrnul.texi: Likewise.
3758         * doc/glibc-functions/wcsftime_l.texi: Likewise.
3759         * doc/glibc-functions/wcstod_l.texi: Likewise.
3760         * doc/glibc-functions/wcstof_l.texi: Likewise.
3761         * doc/glibc-functions/wcstol_l.texi: Likewise.
3762         * doc/glibc-functions/wcstold_l.texi: Likewise.
3763         * doc/glibc-functions/wcstoll_l.texi: Likewise.
3764         * doc/glibc-functions/wcstoq.texi: Likewise.
3765         * doc/glibc-functions/wcstoul_l.texi: Likewise.
3766         * doc/glibc-functions/wcstoull_l.texi: Likewise.
3767         * doc/glibc-functions/wcstouq.texi: Likewise.
3768         * doc/glibc-functions/wmempcpy.texi: Likewise.
3769
3770 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
3771             Eric Blake  <ebb9@byu.net>
3772             Paolo Bonzini  <bonzini@gnu.org>
3773             Bruno Haible  <bruno@clisp.org>
3774
3775         Make c-stack work on Haiku.
3776         * lib/c-stack.c (SA_ONSTACK): Define fallback.
3777         (c_stack_action): Use SA_ONSTACK flag.
3778
3779 2008-12-22  Bruno Haible  <bruno@clisp.org>
3780
3781         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
3782
3783 2008-12-22  Bruno Haible  <bruno@clisp.org>
3784
3785         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
3786         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
3787         being overridden.
3788         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
3789         New macros.
3790         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
3791         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
3792         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
3793         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
3794
3795 2008-12-22  Bruno Haible  <bruno@clisp.org>
3796
3797         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
3798         from test code.
3799
3800 2008-12-22  Eric Blake  <ebb9@byu.net>
3801
3802         Avoid gcc warnings on cygwin.
3803         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
3804         Avoid unused variable.
3805         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
3806         Likewise.
3807
3808 2008-12-22  Bruno Haible  <bruno@clisp.org>
3809
3810         Remove HAVE_MBRTOWC conditionals.
3811         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
3812         (mbscasecmp): Assume mbrtowc function.
3813         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
3814         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
3815         * lib/mbschr.c: Include mbuiter.h unconditionally.
3816         (mbschr): Assume mbrtowc function.
3817         * lib/mbscspn.c: Include mbuiter.h unconditionally.
3818         (mbscspn): Assume mbrtowc function.
3819         * lib/mbslen.c: Include mbuiter.h unconditionally.
3820         (mbslen): Assume mbrtowc function.
3821         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
3822         (mbsncasecmp): Assume mbrtowc function.
3823         * lib/mbsnlen.c: Include mbiter.h unconditionally.
3824         (mbsnlen): Assume mbrtowc function.
3825         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
3826         (mbspbrk): Assume mbrtowc function.
3827         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
3828         (mbspcasecmp): Assume mbrtowc function.
3829         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
3830         (mbsrchr): Assume mbrtowc function.
3831         * lib/mbssep.c: Include mbuiter.h unconditionally.
3832         (mbssep): Assume mbrtowc function.
3833         * lib/mbsspn.c: Include mbuiter.h unconditionally.
3834         (mbsspn): Assume mbrtowc function.
3835         * lib/mbsstr.c: Include mbuiter.h unconditionally.
3836         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
3837         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
3838         (mbstok_r): Assume mbrtowc function.
3839         * lib/propername.c: Include mbuiter.h unconditionally.
3840         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
3841         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
3842         (trim2): Assume mbrtowc function.
3843         * lib/mbswidth.c (mbsinit): Remove fallback definition.
3844         (mbsnwidth): Assume mbrtowc function.
3845         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
3846         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
3847         fallback definitions.
3848         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
3849
3850 2008-12-22  Bruno Haible  <bruno@clisp.org>
3851
3852         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
3853
3854 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
3855
3856         * modules/regex: Request emulations for the mb*/wc* functions we need.
3857         * m4/regex.m4: Don't look for those functions here.
3858         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
3859
3860 2008-12-22  Bruno Haible  <bruno@clisp.org>
3861
3862         * modules/fnmatch (Depends-on): Remove duplicated dependency.
3863
3864 2008-12-21  Bruno Haible  <bruno@clisp.org>
3865
3866         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
3867         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
3868         (Include): Remove conditionalization.
3869         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
3870         (Include): Remove conditionalization.
3871         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
3872         (Include): Remove conditionalization.
3873         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
3874         * m4/mbfile.m4 (gl_MBFILE): Likewise.
3875         * NEWS: Mention the change.
3876         Reported by Alan Hourihane <alanh@fairlite.co.uk>
3877         via Sergey Poznyakoff <gray@gnu.org.ua>.
3878
3879 2008-12-21  Bruno Haible  <bruno@clisp.org>
3880
3881         * MODULES.html.sh (Extended multibyte and wide character utilities
3882         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
3883         wcrtomb, wcsrtombs.
3884         (Support for systems lacking POSIX:2008): Add accept, bind, close,
3885         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
3886         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
3887         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
3888
3889 2008-12-21  Bruno Haible  <bruno@clisp.org>
3890
3891         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
3892
3893 2008-12-21  Bruno Haible  <bruno@clisp.org>
3894
3895         * modules/wcsnrtombs-tests: New file.
3896         * tests/test-wcsnrtombs1.sh: New file.
3897         * tests/test-wcsnrtombs2.sh: New file.
3898         * tests/test-wcsnrtombs3.sh: New file.
3899         * tests/test-wcsnrtombs4.sh: New file.
3900         * tests/test-wcsnrtombs.c: New file.
3901
3902         New module 'wcsnrtombs'.
3903         * lib/wchar.in.h (wcsnrtombs): New declaration.
3904         * lib/wcsnrtombs.c: New file.
3905         * lib/wcsrtombs-state.c: New file.
3906         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
3907         (internal_state): Remove variable.
3908         * m4/wcsnrtombs.m4: New file.
3909         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
3910         compilation units.
3911         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
3912         HAVE_WCSNRTOMBS.
3913         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
3914         HAVE_WCSNRTOMBS.
3915         * modules/wcsnrtombs: New file.
3916         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
3917         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
3918
3919 2008-12-21  Bruno Haible  <bruno@clisp.org>
3920
3921         * modules/wcsrtombs-tests: New file.
3922         * tests/test-wcsrtombs1.sh: New file.
3923         * tests/test-wcsrtombs2.sh: New file.
3924         * tests/test-wcsrtombs3.sh: New file.
3925         * tests/test-wcsrtombs4.sh: New file.
3926         * tests/test-wcsrtombs.c: New file.
3927
3928         New module 'wcsrtombs'.
3929         * lib/wchar.in.h (wcsrtombs): New declaration.
3930         * lib/wcsrtombs.c: New file.
3931         * m4/wcsrtombs.m4: New file.
3932         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
3933         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
3934         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
3935         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
3936         * modules/wcsrtombs: New file.
3937         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
3938         bugs.
3939
3940 2008-12-21  Bruno Haible  <bruno@clisp.org>
3941
3942         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
3943         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
3944         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
3945         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
3946         if not correct.
3947         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
3948         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
3949         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
3950         m4/locale-zh.m4, m4/codeset.m4.
3951         * doc/posix-functions/wcrtomb.texi: Document the bug.
3952
3953 2008-12-21  Bruno Haible  <bruno@clisp.org>
3954
3955         Work around a btowc() bug on IRIX 6.5.
3956         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
3957         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
3958         REPLACE_WTOBC if not.
3959         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
3960         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
3961         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
3962
3963 2008-12-21  Bruno Haible  <bruno@clisp.org>
3964
3965         * modules/wcrtomb-tests: New file.
3966         * tests/test-wcrtomb.sh: New file.
3967         * tests/test-wcrtomb.c: New file.
3968
3969         New module 'wcrtomb'.
3970         * lib/wchar.in.h (wcrtomb): New declaration.
3971         * lib/wcrtomb.c: New file.
3972         * m4/wcrtomb.m4: New file.
3973         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
3974         HAVE_WCRTOMB.
3975         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
3976         HAVE_WCRTOMB.
3977         * modules/wcrtomb: New file.
3978         * doc/posix-functions/wcrtomb.texi: Mention the new module.
3979
3980 2008-12-21  Bruno Haible  <bruno@clisp.org>
3981
3982         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
3983         * modules/mbsrtowcs (Files): Likewise.
3984         * modules/wctob (Files): Likewise.
3985         * modules/c-strcase-tests (Files): Likewise.
3986         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
3987         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
3988         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
3989         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
3990         * modules/vasnprintf-posix-tests (Files): Likewise.
3991
3992 2008-12-21  William Pursell  <bill.pursell@gmail.com>
3993
3994         gitlog-to-changelog: pass all command-line arguments to git-log
3995         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
3996         it is sometimes convenient to filter the commits in various ways.
3997         gitlog-to-changelog only allows --since to specify a start date,
3998         but git-log itself supports many other filtering mechanisms.
3999         At the moment, I want to filter by branch name.  Rather than
4000         adding a --branch option to gitlog-to-changelog, it seems more
4001         flexible to simply pass all options directly to git-log and let
4002         git do the work.  Notice that this effectively makes --since a
4003         redundant option for gitlog-to-changelog, but removing it would
4004         require current usage to change since calls would then require
4005         an additional '--'.
4006
4007 2008-12-21  Bruno Haible  <bruno@clisp.org>
4008
4009         * modules/mbsnrtowcs-tests: New file.
4010         * tests/test-mbsnrtowcs1.sh: New file.
4011         * tests/test-mbsnrtowcs2.sh: New file.
4012         * tests/test-mbsnrtowcs3.sh: New file.
4013         * tests/test-mbsnrtowcs4.sh: New file.
4014         * tests/test-mbsnrtowcs.c: New file.
4015
4016         New module 'mbsnrtowcs'.
4017         * lib/wchar.in.h (mbsnrtowcs): New declaration.
4018         * lib/mbsnrtowcs.c: New file.
4019         * lib/mbsrtowcs-state.c: New file.
4020         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
4021         (internal_state): Remove variable.
4022         * m4/mbsnrtowcs.m4: New file.
4023         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
4024         compilation units.
4025         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
4026         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
4027         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
4028         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
4029         * modules/mbsnrtowcs: New file.
4030         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
4031         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
4032         portability problem.
4033
4034 2008-12-21  Bruno Haible  <bruno@clisp.org>
4035
4036         Work around mbsrtowcs bug.
4037         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
4038         (gl_FUNC_MBSRTOWCS): Invoke it.
4039         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
4040         m4/locale-zh.m4.
4041         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
4042
4043 2008-12-21  Bruno Haible  <bruno@clisp.org>
4044
4045         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
4046
4047 2008-12-21  Bruno Haible  <bruno@clisp.org>
4048
4049         Update doc for AIX.
4050         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
4051         16-bit wchar_t type.
4052         * doc/posix-functions/btowc.texi: Likewise.
4053         * doc/posix-functions/fgetwc.texi: Likewise.
4054         * doc/posix-functions/fgetws.texi: Likewise.
4055         * doc/posix-functions/fputwc.texi: Likewise.
4056         * doc/posix-functions/fputws.texi: Likewise.
4057         * doc/posix-functions/fwide.texi: Likewise.
4058         * doc/posix-functions/fwprintf.texi: Likewise.
4059         * doc/posix-functions/fwscanf.texi: Likewise.
4060         * doc/posix-functions/getwchar.texi: Likewise.
4061         * doc/posix-functions/getwc.texi: Likewise.
4062         * doc/posix-functions/iswalnum.texi: Likewise.
4063         * doc/posix-functions/iswalpha.texi: Likewise.
4064         * doc/posix-functions/iswblank.texi: Likewise.
4065         * doc/posix-functions/iswcntrl.texi: Likewise.
4066         * doc/posix-functions/iswctype.texi: Likewise.
4067         * doc/posix-functions/iswdigit.texi: Likewise.
4068         * doc/posix-functions/iswgraph.texi: Likewise.
4069         * doc/posix-functions/iswlower.texi: Likewise.
4070         * doc/posix-functions/iswprint.texi: Likewise.
4071         * doc/posix-functions/iswpunct.texi: Likewise.
4072         * doc/posix-functions/iswspace.texi: Likewise.
4073         * doc/posix-functions/iswupper.texi: Likewise.
4074         * doc/posix-functions/iswxdigit.texi: Likewise.
4075         * doc/posix-functions/mbrtowc.texi: Likewise.
4076         * doc/posix-functions/mbsrtowcs.texi: Likewise.
4077         * doc/posix-functions/mbstowcs.texi: Likewise.
4078         * doc/posix-functions/mbtowc.texi: Likewise.
4079         * doc/posix-functions/putwchar.texi: Likewise.
4080         * doc/posix-functions/putwc.texi: Likewise.
4081         * doc/posix-functions/swprintf.texi: Likewise.
4082         * doc/posix-functions/tolower.texi: Likewise.
4083         * doc/posix-functions/toupper.texi: Likewise.
4084         * doc/posix-functions/towctrans.texi: Likewise.
4085         * doc/posix-functions/ungetwc.texi: Likewise.
4086         * doc/posix-functions/vswprintf.texi: Likewise.
4087         * doc/posix-functions/wcrtomb.texi: Likewise.
4088         * doc/posix-functions/wcscat.texi: Likewise.
4089         * doc/posix-functions/wcschr.texi: Likewise.
4090         * doc/posix-functions/wcscmp.texi: Likewise.
4091         * doc/posix-functions/wcscoll.texi: Likewise.
4092         * doc/posix-functions/wcscpy.texi: Likewise.
4093         * doc/posix-functions/wcscspn.texi: Likewise.
4094         * doc/posix-functions/wcsftime.texi: Likewise.
4095         * doc/posix-functions/wcslen.texi: Likewise.
4096         * doc/posix-functions/wcsncat.texi: Likewise.
4097         * doc/posix-functions/wcsncmp.texi: Likewise.
4098         * doc/posix-functions/wcsncpy.texi: Likewise.
4099         * doc/posix-functions/wcspbrk.texi: Likewise.
4100         * doc/posix-functions/wcsrchr.texi: Likewise.
4101         * doc/posix-functions/wcsrtombs.texi: Likewise.
4102         * doc/posix-functions/wcsspn.texi: Likewise.
4103         * doc/posix-functions/wcsstr.texi: Likewise.
4104         * doc/posix-functions/wcstod.texi: Likewise.
4105         * doc/posix-functions/wcstof.texi: Likewise.
4106         * doc/posix-functions/wcstoimax.texi: Likewise.
4107         * doc/posix-functions/wcstok.texi: Likewise.
4108         * doc/posix-functions/wcstold.texi: Likewise.
4109         * doc/posix-functions/wcstoll.texi: Likewise.
4110         * doc/posix-functions/wcstol.texi: Likewise.
4111         * doc/posix-functions/wcstombs.texi: Likewise.
4112         * doc/posix-functions/wcstoull.texi: Likewise.
4113         * doc/posix-functions/wcstoul.texi: Likewise.
4114         * doc/posix-functions/wcstoumax.texi: Likewise.
4115         * doc/posix-functions/wcswidth.texi: Likewise.
4116         * doc/posix-functions/wcsxfrm.texi: Likewise.
4117         * doc/posix-functions/wctob.texi: Likewise.
4118         * doc/posix-functions/wctomb.texi: Likewise.
4119         * doc/posix-functions/wctrans.texi: Likewise.
4120         * doc/posix-functions/wctype.texi: Likewise.
4121         * doc/posix-functions/wcwidth.texi: Likewise.
4122         * doc/posix-functions/wmemchr.texi: Likewise.
4123         * doc/posix-functions/wmemcmp.texi: Likewise.
4124         * doc/posix-functions/wmemcpy.texi: Likewise.
4125         * doc/posix-functions/wmemmove.texi: Likewise.
4126         * doc/posix-functions/wmemset.texi: Likewise.
4127         * doc/posix-functions/wprintf.texi: Likewise.
4128         * doc/posix-functions/wscanf.texi: Likewise.
4129
4130 2008-12-21  Bruno Haible  <bruno@clisp.org>
4131
4132         Update doc for HP-UX 11.11.
4133         * doc/posix-functions/btowc.texi: Clarify that the function is missing
4134         in HP-UX version 11.00, not in all versions of HP-UX 11.
4135         * doc/posix-functions/fwide.texi: Likewise.
4136         * doc/posix-functions/fwprintf.texi: Likewise.
4137         * doc/posix-functions/fwscanf.texi: Likewise.
4138         * doc/posix-functions/inet_ntop.texi: Likewise.
4139         * doc/posix-functions/inet_pton.texi: Likewise.
4140         * doc/posix-functions/mbrlen.texi: Likewise.
4141         * doc/posix-functions/mbrtowc.texi: Likewise.
4142         * doc/posix-functions/mbsinit.texi: Likewise.
4143         * doc/posix-functions/mbsrtowcs.texi: Likewise.
4144         * doc/posix-functions/swprintf.texi: Likewise.
4145         * doc/posix-functions/swscanf.texi: Likewise.
4146         * doc/posix-functions/towctrans.texi: Likewise.
4147         * doc/posix-functions/vfwprintf.texi: Likewise.
4148         * doc/posix-functions/vswprintf.texi: Likewise.
4149         * doc/posix-functions/vwprintf.texi: Likewise.
4150         * doc/posix-functions/wcrtomb.texi: Likewise.
4151         * doc/posix-functions/wcsrtombs.texi: Likewise.
4152         * doc/posix-functions/wcsstr.texi: Likewise.
4153         * doc/posix-functions/wctob.texi: Likewise.
4154         * doc/posix-functions/wctrans.texi: Likewise.
4155         * doc/posix-functions/wmemchr.texi: Likewise.
4156         * doc/posix-functions/wmemcmp.texi: Likewise.
4157         * doc/posix-functions/wmemcpy.texi: Likewise.
4158         * doc/posix-functions/wmemmove.texi: Likewise.
4159         * doc/posix-functions/wmemset.texi: Likewise.
4160         * doc/posix-functions/wprintf.texi: Likewise.
4161         * doc/posix-functions/wscanf.texi: Likewise.
4162
4163 2008-12-21  Bruno Haible  <bruno@clisp.org>
4164
4165         Work around a portability problem.
4166         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
4167         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
4168
4169 2008-12-20  Bruno Haible  <bruno@clisp.org>
4170
4171         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
4172         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
4173         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
4174         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
4175         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
4176
4177         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
4178         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
4179         set.
4180         (GNULIB_defined_mbstate_t): New macro.
4181         (mbsinit): Redefine if REPLACE_MBSINIT is set.
4182         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
4183         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
4184         reuses the system's mbrtowc function but works around the bugs.
4185         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
4186         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
4187         macros.
4188         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
4189         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
4190         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
4191         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
4192         REPLACE_MBSINIT if mbsinit needs to be overridden.
4193         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
4194         REPLACE_MBSINIT, REPLACE_MBRTOWC.
4195         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
4196         REPLACE_MBSINIT, REPLACE_MBRTOWC.
4197         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
4198         m4/locale-zh.m4.
4199         (Depends): Add mbsinit.
4200         * modules/mbsinit (Depends): Add mbrtowc.
4201         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
4202
4203 2008-12-20  Bruno Haible  <bruno@clisp.org>
4204
4205         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
4206         so that there are no conversion errors on AIX.
4207         * tests/test-mbsrtowcs.c (main): LIkewise.
4208
4209 2008-12-20  Bruno Haible  <bruno@clisp.org>
4210
4211         Work around wctob bug on Solaris <= 9.
4212         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
4213         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
4214         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
4215         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
4216         * modules/wctob (Files): Add m4/locale-fr.m4.
4217         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
4218
4219 2008-12-20  Bruno Haible  <bruno@clisp.org>
4220
4221         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
4222         /dev/null.
4223         * tests/test-select-in.sh: Likewise.
4224         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4225
4226 2008-12-20  Bruno Haible  <bruno@clisp.org>
4227
4228         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
4229         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
4230         Cygwin 1.5.x.
4231
4232 2008-12-20  Bruno Haible  <bruno@clisp.org>
4233
4234         Ensure mbstate_t is defined on HP-UX 11.11.
4235         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
4236         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
4237         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
4238         AC_USE_SYSTEM_EXTENSIONS.
4239         * modules/fnmatch (Depends-on): Add extensions.
4240         * modules/mbrlen (Depends-on): Likewise.
4241         * modules/mbrtowc (Depends-on): Likewise.
4242         * modules/mbsinit (Depends-on): Likewise.
4243         * modules/mbsrtowcs (Depends-on): Likewise.
4244         * modules/mbswidth (Depends-on): Likewise.
4245         * modules/quotearg (Depends-on): Likewise.
4246         * modules/strftime (Depends-on): Likewise.
4247
4248 2008-12-20  Bruno Haible  <bruno@clisp.org>
4249
4250         Ensure wctob is declared on IRIX 6.5.
4251         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
4252         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
4253         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
4254         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
4255         of HAVE_WCTOB.
4256         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
4257         HAVE_WCTOB.
4258         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
4259
4260 2008-12-19  Bruno Haible  <bruno@clisp.org>
4261
4262         * modules/mbsrtowcs-tests: New file.
4263         * tests/test-mbsrtowcs1.sh: New file.
4264         * tests/test-mbsrtowcs2.sh: New file.
4265         * tests/test-mbsrtowcs3.sh: New file.
4266         * tests/test-mbsrtowcs4.sh: New file.
4267         * tests/test-mbsrtowcs.c: New file.
4268
4269         New module 'mbsrtowcs'.
4270         * lib/wchar.in.h (mbsrtowcs): New declaration.
4271         * lib/mbsrtowcs.c: New file.
4272         * m4/mbsrtowcs.m4: New file.
4273         * modules/mbsrtowcs: New file.
4274         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
4275         HAVE_MBSRTOWCS.
4276         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
4277         HAVE_MBSRTOWCS.
4278         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
4279
4280 2008-12-19  Bruno Haible  <bruno@clisp.org>
4281
4282         New module 'mbrlen'.
4283         * lib/wchar.in.h (mbrlen): New declaration.
4284         * lib/mbrlen.c: New file.
4285         * m4/mbrlen.m4: New file.
4286         * modules/mbrlen: New file.
4287         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
4288         HAVE_MBRLEN.
4289         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
4290         HAVE_MBRLEN.
4291         * doc/posix-functions/mbrlen.texi: Document the new module.
4292
4293 2008-12-19  Bruno Haible  <bruno@clisp.org>
4294
4295         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
4296         * modules/mbrtowc (Depends-on): Add verify.
4297         Suggested by Paul Eggert.
4298
4299 2008-12-18  Bruno Haible  <bruno@clisp.org>
4300
4301         * modules/mbsinit-tests: New file.
4302         * tests/test-mbsinit.sh: New file.
4303         * tests/test-mbsinit.c: New file.
4304
4305 2008-12-18  Bruno Haible  <bruno@clisp.org>
4306
4307         * modules/mbrtowc-tests: New file.
4308         * tests/test-mbrtowc1.sh: New file.
4309         * tests/test-mbrtowc2.sh: New file.
4310         * tests/test-mbrtowc3.sh: New file.
4311         * tests/test-mbrtowc4.sh: New file.
4312         * tests/test-mbrtowc.c: New file.
4313
4314         New module 'mbrtowc'.
4315         * lib/wchar.in.h (mbstate_t): Override when the system does not have
4316         mbsinit and mbrtowc.
4317         (mbrtowc): New declaration.
4318         * lib/mbrtowc.c: New file.
4319         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
4320         * modules/mbrtowc: New file.
4321         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
4322         HAVE_MBRTOWC.
4323         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
4324         HAVE_MBRTOWC.
4325         * doc/posix-functions/mbrtowc.texi: Document the new module.
4326
4327 2008-12-18  Bruno Haible  <bruno@clisp.org>
4328
4329         New module 'wctob'.
4330         * lib/wchar.in.h (wctob): New declaration.
4331         * lib/wctob.c: New file.
4332         * m4/wctob.m4: New file.
4333         * modules/wctob: New file.
4334         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
4335         HAVE_WCTOB.
4336         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
4337         * doc/posix-functions/wctob.texi: Document the new module.
4338
4339 2008-12-18  Bruno Haible  <bruno@clisp.org>
4340
4341         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
4342         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
4343
4344 2008-12-18  Simon Josefsson  <simon@josefsson.org>
4345
4346         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
4347         G. Christensen" <tgc@jupiterrise.com>.
4348
4349         * lib/flock.c: Need to include errno.h.  Reported by "Tom
4350         G. Christensen" <tgc@jupiterrise.com>.
4351
4352         * lib/flock.c: Need to include string.h.  Reported by "Tom
4353         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
4354         <ebb9@byu.net>.
4355
4356 2008-12-18  Bruno Haible  <bruno@clisp.org>
4357
4358         * m4/locale-ja.m4: New file, from GNU gettext.
4359
4360 2008-12-17  Bruno Haible  <bruno@clisp.org>
4361
4362         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
4363         Suggested by Eric Blake.
4364
4365 2008-12-17  Bruno Haible  <bruno@clisp.org>
4366
4367         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
4368
4369 2008-12-17  Bruno Haible  <bruno@clisp.org>
4370
4371         * lib/mbsinit.c: Include verify.h. Verify an assumption.
4372         * modules/mbsinit (Depends-on): Add verify.
4373         Suggested by Paul Eggert.
4374
4375 2008-12-17  Bruno Haible  <bruno@clisp.org>
4376
4377         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
4378         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
4379         gl_FUNC_MBRTOWC.
4380         * m4/mbiter.m4 (gl_MBITER): LIkewise.
4381         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
4382         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
4383         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
4384         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
4385         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
4386         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
4387         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
4388         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
4389         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
4390         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
4391         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
4392         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
4393         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
4394         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
4395         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
4396         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
4397         * modules/trim (configure.ac): Likewise.
4398
4399 2008-12-17  Bruno Haible  <bruno@clisp.org>
4400
4401         * modules/btowc-tests: New file.
4402         * tests/test-btowc1.sh: New file.
4403         * tests/test-btowc2.sh: New file.
4404         * tests/test-btowc.c: New file.
4405
4406         New module 'btowc'.
4407         * lib/wchar.in.h (btowc): New declaration.
4408         * lib/btowc.c: New file.
4409         * m4/btowc.m4: New file.
4410         * modules/btowc: New file.
4411         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
4412         HAVE_BTOWC.
4413         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
4414         * doc/posix-functions/btowc.texi: Document the new module.
4415
4416 2008-12-17  Bruno Haible  <bruno@clisp.org>
4417
4418         New module 'mbsinit'.
4419         * lib/wchar.in.h (mbsinit): New declaration.
4420         * lib/mbsinit.c: New file.
4421         * m4/mbsinit.m4: New file.
4422         * modules/mbsinit: New file.
4423         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
4424         HAVE_MBSINIT.
4425         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
4426         HAVE_MBSINIT.
4427         * doc/posix-functions/mbsinit.texi: Document the new module.
4428
4429 2008-12-16  Bruno Haible  <bruno@clisp.org>
4430
4431         * lib/unistd.in.h: Add comment.
4432         * tests/test-environ.c: Don't include <stdlib.h>.
4433
4434 2008-12-16  Bruno Haible  <bruno@clisp.org>
4435
4436         * lib/parse-duration.h (parse_duration): Document return value
4437         convention.
4438         * lib/parse-duration.c: Include specification header first. Add
4439         comments.
4440         (_): Remove macro.
4441         (parse_year_month_day, parse_hour_minute_second): Move side effects
4442         outside of strchr call.
4443         (parse_non_iso8601): Move side effects outside of isspace call.
4444         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
4445         call.
4446
4447 2008-12-16  Bruno Haible  <bruno@clisp.org>
4448
4449         * tests/test-parse-duration.sh: Produce no output when the test
4450         succeeds.
4451
4452 2008-12-16  Bruno Haible  <bruno@clisp.org>
4453
4454         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
4455         expressions.
4456
4457 2008-12-15  Bruno Haible  <bruno@clisp.org>
4458
4459         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
4460         * doc/glibc-functions/flistxattr.texi: Likewise.
4461         * doc/glibc-functions/fopencookie.texi: Likewise.
4462         * doc/glibc-functions/fremovexattr.texi: Likewise.
4463         * doc/glibc-functions/fsetxattr.texi: Likewise.
4464         * doc/glibc-functions/getxattr.texi: Likewise.
4465         * doc/glibc-functions/lgetxattr.texi: Likewise.
4466         * doc/glibc-functions/listxattr.texi: Likewise.
4467         * doc/glibc-functions/llistxattr.texi: Likewise.
4468         * doc/glibc-functions/lremovexattr.texi: Likewise.
4469         * doc/glibc-functions/lsetxattr.texi: Likewise.
4470         * doc/glibc-functions/removexattr.texi: Likewise.
4471         * doc/glibc-functions/setxattr.texi: Likewise.
4472         * doc/posix-functions/open_memstream.texi: Likewise.
4473
4474 2008-12-15  Eric Blake  <ebb9@byu.net>
4475
4476         Update doc for cygwin 1.7.
4477         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
4478         functions.
4479         * doc/posix-functions/fchmodat.texi: Likewise.
4480         * doc/posix-functions/fchownat.texi: Likewise.
4481         * doc/posix-functions/fdopendir.texi: Likewise.
4482         * doc/posix-functions/fmemopen.texi: Likewise.
4483         * doc/posix-functions/freeaddrinfo.texi: Likewise.
4484         * doc/posix-functions/fstatat.texi: Likewise.
4485         * doc/posix-functions/futimens.texi: Likewise.
4486         * doc/posix-functions/gai_strerror.texi: Likewise.
4487         * doc/posix-functions/getaddrinfo.texi: Likewise.
4488         * doc/posix-functions/getnameinfo.texi: Likewise.
4489         * doc/posix-functions/if_freenameindex.texi: Likewise.
4490         * doc/posix-functions/if_indextoname.texi: Likewise.
4491         * doc/posix-functions/if_nameindex.texi: Likewise.
4492         * doc/posix-functions/if_nametoindex.texi: Likewise.
4493         * doc/posix-functions/insque.texi: Likewise.
4494         * doc/posix-functions/linkat.texi: Likewise.
4495         * doc/posix-functions/llrint.texi: Likewise.
4496         * doc/posix-functions/llrintf.texi: Likewise.
4497         * doc/posix-functions/llrintl.texi: Likewise.
4498         * doc/posix-functions/lockf.texi: Likewise.
4499         * doc/posix-functions/lrintl.texi: Likewise.
4500         * doc/posix-functions/mkdirat.texi: Likewise.
4501         * doc/posix-functions/mkfifoat.texi: Likewise.
4502         * doc/posix-functions/mknodat.texi: Likewise.
4503         * doc/posix-functions/mq_close.texi: Likewise.
4504         * doc/posix-functions/mq_getattr.texi: Likewise.
4505         * doc/posix-functions/mq_notify.texi: Likewise.
4506         * doc/posix-functions/mq_open.texi: Likewise.
4507         * doc/posix-functions/mq_receive.texi: Likewise.
4508         * doc/posix-functions/mq_send.texi: Likewise.
4509         * doc/posix-functions/mq_setattr.texi: Likewise.
4510         * doc/posix-functions/mq_timedreceive.texi: Likewise.
4511         * doc/posix-functions/mq_timedsend.texi: Likewise.
4512         * doc/posix-functions/mq_unlink.texi: Likewise.
4513         * doc/posix-functions/open_memstream.texi: Likewise.
4514         * doc/posix-functions/openat.texi: Likewise.
4515         * doc/posix-functions/posix_fadvise.texi: Likewise.
4516         * doc/posix-functions/posix_fallocate.texi: Likewise.
4517         * doc/posix-functions/posix_madvise.texi: Likewise.
4518         * doc/posix-functions/posix_memalign.texi: Likewise.
4519         * doc/posix-functions/posix_openpt.texi: Likewise.
4520         * doc/posix-functions/readlinkat.texi: Likewise.
4521         * doc/posix-functions/remque.texi: Likewise.
4522         * doc/posix-functions/renameat.texi: Likewise.
4523         * doc/posix-functions/rintl.texi: Likewise.
4524         * doc/posix-functions/sem_unlink.texi: Likewise.
4525         * doc/posix-functions/shm_open.texi: Likewise.
4526         * doc/posix-functions/shm_unlink.texi: Likewise.
4527         * doc/posix-functions/signgam.texi: Likewise.
4528         * doc/posix-functions/sigset.texi: Likewise.
4529         * doc/posix-functions/stpcpy.texi: Likewise.
4530         * doc/posix-functions/stpncpy.texi: Likewise.
4531         * doc/posix-functions/strerror.texi: Likewise.
4532         * doc/posix-functions/strtod.texi: Likewise.
4533         * doc/posix-functions/symlinkat.texi: Likewise.
4534         * doc/posix-functions/unlinkat.texi: Likewise.
4535         * doc/posix-functions/utimensat.texi: Likewise.
4536         * doc/glibc-functions/bindresvport.texi: Likewise.
4537         * doc/glibc-functions/dn_expand.texi: Likewise.
4538         * doc/glibc-functions/exp10.texi: Likewise.
4539         * doc/glibc-functions/exp10f.texi: Likewise.
4540         * doc/glibc-functions/fgetxattr.texi: Likewise.
4541         * doc/glibc-functions/flistxattr.texi: Likewise.
4542         * doc/glibc-functions/fopencookie.texi: Likewise.
4543         * doc/glibc-functions/freeifaddrs.texi: Likewise.
4544         * doc/glibc-functions/fremovexattr.texi: Likewise.
4545         * doc/glibc-functions/fsetxattr.texi: Likewise.
4546         * doc/glibc-functions/getifaddrs.texi: Likewise.
4547         * doc/glibc-functions/getxattr.texi: Likewise.
4548         * doc/glibc-functions/lgetxattr.texi: Likewise.
4549         * doc/glibc-functions/listxattr.texi: Likewise.
4550         * doc/glibc-functions/llistxattr.texi: Likewise.
4551         * doc/glibc-functions/lremovexattr.texi: Likewise.
4552         * doc/glibc-functions/lsetxattr.texi: Likewise.
4553         * doc/glibc-functions/pow10.texi: Likewise.
4554         * doc/glibc-functions/pow10f.texi: Likewise.
4555         * doc/glibc-functions/rcmd_af.texi: Likewise.
4556         * doc/glibc-functions/removexattr.texi: Likewise.
4557         * doc/glibc-functions/res_init.texi: Likewise.
4558         * doc/glibc-functions/res_mkquery.texi: Likewise.
4559         * doc/glibc-functions/res_query.texi: Likewise.
4560         * doc/glibc-functions/res_querydomain.texi: Likewise.
4561         * doc/glibc-functions/res_send.texi: Likewise.
4562         * doc/glibc-functions/rresvport_af.texi: Likewise.
4563         * doc/glibc-functions/setxattr.texi: Likewise.
4564         * doc/glibc-functions/strcasestr.texi: Likewise.
4565
4566 2008-12-15  Bruno Haible  <bruno@clisp.org>
4567
4568         Fix compilation error on OSF/1 4.0.
4569         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
4570         <sys/time.h>, simply delegate to the system header.
4571         Reported by Daniel Richard G. <oss@teragram.com>.
4572
4573 2008-12-15  Bruno Haible  <bruno@clisp.org>
4574
4575         * doc/posix-functions/openat.texi: Mention the 'openat' module.
4576         * doc/posix-functions/fchmodat.texi: Likewise.
4577         * doc/posix-functions/fchownat.texi: Likewise.
4578         * doc/posix-functions/fdopendir.texi: Likewise.
4579         * doc/posix-functions/fstatat.texi: Likewise.
4580         * doc/posix-functions/mkdirat.texi: Likewise.
4581         * doc/posix-functions/unlinkat.texi: Likewise.
4582
4583 2008-12-14  Bruno Haible  <bruno@clisp.org>
4584
4585         Update doc for POSIX:2008.
4586         * doc/posix-functions/faccessat.texi: New file.
4587         * doc/posix-functions/fchmodat.texi: New file.
4588         * doc/posix-functions/fchownat.texi: New file.
4589         * doc/posix-functions/fdopendir.texi: New file.
4590         * doc/posix-functions/fstatat.texi: New file.
4591         * doc/posix-functions/futimens.texi: New file.
4592         * doc/posix-functions/linkat.texi: New file.
4593         * doc/posix-functions/mkdirat.texi: New file.
4594         * doc/posix-functions/mkfifoat.texi: New file.
4595         * doc/posix-functions/mknodat.texi: New file.
4596         * doc/posix-functions/open_wmemstream.texi: New file.
4597         * doc/posix-functions/openat.texi: New file.
4598         * doc/posix-functions/psiginfo.texi: New file.
4599         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
4600         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
4601         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
4602         * doc/posix-functions/readlinkat.texi: New file.
4603         * doc/posix-functions/renameat.texi: New file.
4604         * doc/posix-functions/strerror_l.texi: New file.
4605         * doc/posix-functions/symlinkat.texi: New file.
4606         * doc/posix-functions/unlinkat.texi: New file.
4607         * doc/posix-functions/utimensat.texi: New file.
4608         * doc/gnulib.texi (Function Substitutes): Add these subsections.
4609
4610 2008-12-14  Bruno Haible  <bruno@clisp.org>
4611
4612         Update doc for POSIX:2008.
4613         * doc/posix-functions/alphasort.texi: Renamed from
4614         doc/glibc-functions/alphasort.texi.
4615         * doc/posix-functions/dirfd.texi: Renamed from
4616         doc/glibc-functions/dirfd.texi.
4617         * doc/posix-functions/dprintf.texi: Renamed from
4618         doc/glibc-functions/dprintf.texi.
4619         * doc/posix-functions/duplocale.texi: Renamed from
4620         doc/glibc-functions/duplocale.texi.
4621         * doc/posix-functions/fexecve.texi: Renamed from
4622         doc/glibc-functions/fexecve.texi.
4623         * doc/posix-functions/fmemopen.texi: Renamed from
4624         doc/glibc-functions/fmemopen.texi.
4625         * doc/posix-functions/freelocale.texi: Renamed from
4626         doc/glibc-functions/freelocale.texi.
4627         * doc/posix-functions/getdate_err.texi: Renamed from
4628         doc/glibc-functions/getdate_err.texi.
4629         * doc/posix-functions/isalnum_l.texi: Renamed from
4630         doc/glibc-functions/isalnum_l.texi.
4631         * doc/posix-functions/isalpha_l.texi: Renamed from
4632         doc/glibc-functions/isalpha_l.texi.
4633         * doc/posix-functions/isblank_l.texi: Renamed from
4634         doc/glibc-functions/isblank_l.texi.
4635         * doc/posix-functions/iscntrl_l.texi: Renamed from
4636         doc/glibc-functions/iscntrl_l.texi.
4637         * doc/posix-functions/isdigit_l.texi: Renamed from
4638         doc/glibc-functions/isdigit_l.texi.
4639         * doc/posix-functions/isgraph_l.texi: Renamed from
4640         doc/glibc-functions/isgraph_l.texi.
4641         * doc/posix-functions/islower_l.texi: Renamed from
4642         doc/glibc-functions/islower_l.texi.
4643         * doc/posix-functions/isprint_l.texi: Renamed from
4644         doc/glibc-functions/isprint_l.texi.
4645         * doc/posix-functions/ispunct_l.texi: Renamed from
4646         doc/glibc-functions/ispunct_l.texi.
4647         * doc/posix-functions/isspace_l.texi: Renamed from
4648         doc/glibc-functions/isspace_l.texi.
4649         * doc/posix-functions/isupper_l.texi: Renamed from
4650         doc/glibc-functions/isupper_l.texi.
4651         * doc/posix-functions/iswalnum_l.texi: Renamed from
4652         doc/glibc-functions/iswalnum_l.texi.
4653         * doc/posix-functions/iswalpha_l.texi: Renamed from
4654         doc/glibc-functions/iswalpha_l.texi.
4655         * doc/posix-functions/iswblank_l.texi: Renamed from
4656         doc/glibc-functions/iswblank_l.texi.
4657         * doc/posix-functions/iswcntrl_l.texi: Renamed from
4658         doc/glibc-functions/iswcntrl_l.texi.
4659         * doc/posix-functions/iswctype_l.texi: Renamed from
4660         doc/glibc-functions/iswctype_l.texi.
4661         * doc/posix-functions/iswdigit_l.texi: Renamed from
4662         doc/glibc-functions/iswdigit_l.texi.
4663         * doc/posix-functions/iswgraph_l.texi: Renamed from
4664         doc/glibc-functions/iswgraph_l.texi.
4665         * doc/posix-functions/iswlower_l.texi: Renamed from
4666         doc/glibc-functions/iswlower_l.texi.
4667         * doc/posix-functions/iswprint_l.texi: Renamed from
4668         doc/glibc-functions/iswprint_l.texi.
4669         * doc/posix-functions/iswpunct_l.texi: Renamed from
4670         doc/glibc-functions/iswpunct_l.texi.
4671         * doc/posix-functions/iswspace_l.texi: Renamed from
4672         doc/glibc-functions/iswspace_l.texi.
4673         * doc/posix-functions/iswupper_l.texi: Renamed from
4674         doc/glibc-functions/iswupper_l.texi.
4675         * doc/posix-functions/iswxdigit_l.texi: Renamed from
4676         doc/glibc-functions/iswxdigit_l.texi.
4677         * doc/posix-functions/isxdigit_l.texi: Renamed from
4678         doc/glibc-functions/isxdigit_l.texi.
4679         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
4680         doc/glibc-functions/mbsnrtowcs.texi.
4681         * doc/posix-functions/mkdtemp.texi: Renamed from
4682         doc/glibc-functions/mkdtemp.texi.
4683         * doc/posix-functions/newlocale.texi: Renamed from
4684         doc/glibc-functions/newlocale.texi.
4685         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
4686         doc/glibc-functions/nl_langinfo_l.texi.
4687         * doc/posix-functions/open_memstream.texi: Renamed from
4688         doc/glibc-functions/open_memstream.texi.
4689         * doc/posix-functions/opterr.texi: Renamed from
4690         doc/glibc-functions/opterr.texi.
4691         * doc/posix-functions/optind.texi: Renamed from
4692         doc/glibc-functions/optind.texi.
4693         * doc/posix-functions/optopt.texi: Renamed from
4694         doc/glibc-functions/optopt.texi.
4695         * doc/posix-functions/psignal.texi: Renamed from
4696         doc/glibc-functions/psignal.texi.
4697         * doc/posix-functions/scandir.texi: Renamed from
4698         doc/glibc-functions/scandir.texi.
4699         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
4700         doc/glibc-functions/sched_get_priority_min.texi.
4701         * doc/posix-functions/signgam.texi: Renamed from
4702         doc/glibc-functions/signgam.texi.
4703         * doc/posix-functions/stpcpy.texi: Renamed from
4704         doc/glibc-functions/stpcpy.texi.
4705         * doc/posix-functions/stpncpy.texi: Renamed from
4706         doc/glibc-functions/stpncpy.texi.
4707         * doc/posix-functions/strcasecmp_l.texi: Renamed from
4708         doc/glibc-functions/strcasecmp_l.texi.
4709         * doc/posix-functions/strcoll_l.texi: Renamed from
4710         doc/glibc-functions/strcoll_l.texi.
4711         * doc/posix-functions/strfmon_l.texi: Renamed from
4712         doc/glibc-functions/strfmon_l.texi.
4713         * doc/posix-functions/strftime_l.texi: Renamed from
4714         doc/glibc-functions/strftime_l.texi.
4715         * doc/posix-functions/strncasecmp_l.texi: Renamed from
4716         doc/glibc-functions/strncasecmp_l.texi.
4717         * doc/posix-functions/strndup.texi: Renamed from
4718         doc/glibc-functions/strndup.texi.
4719         * doc/posix-functions/strnlen.texi: Renamed from
4720         doc/glibc-functions/strnlen.texi.
4721         * doc/posix-functions/strsignal.texi: Renamed from
4722         doc/glibc-functions/strsignal.texi.
4723         * doc/posix-functions/strxfrm_l.texi: Renamed from
4724         doc/glibc-functions/strxfrm_l.texi.
4725         * doc/posix-functions/timer_gettime.texi: Renamed from
4726         doc/glibc-functions/timer_gettime.texi.
4727         * doc/posix-functions/tolower_l.texi: Renamed from
4728         doc/glibc-functions/tolower_l.texi.
4729         * doc/posix-functions/toupper_l.texi: Renamed from
4730         doc/glibc-functions/toupper_l.texi.
4731         * doc/posix-functions/towctrans_l.texi: Renamed from
4732         doc/glibc-functions/towctrans_l.texi.
4733         * doc/posix-functions/towlower_l.texi: Renamed from
4734         doc/glibc-functions/towlower_l.texi.
4735         * doc/posix-functions/towupper_l.texi: Renamed from
4736         doc/glibc-functions/towupper_l.texi.
4737         * doc/posix-functions/uselocale.texi: Renamed from
4738         doc/glibc-functions/uselocale.texi.
4739         * doc/posix-functions/vdprintf.texi: Renamed from
4740         doc/glibc-functions/vdprintf.texi.
4741         * doc/posix-functions/wcpcpy.texi:
4742         Renamed from doc/glibc-functions/wcpcpy.texi.
4743         * doc/posix-functions/wcpncpy.texi: Renamed from
4744         doc/glibc-functions/wcpncpy.texi.
4745         * doc/posix-functions/wcscasecmp.texi: Renamed from
4746         doc/glibc-functions/wcscasecmp.texi.
4747         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
4748         doc/glibc-functions/wcscasecmp_l.texi.
4749         * doc/posix-functions/wcscoll_l.texi: Renamed from
4750         doc/glibc-functions/wcscoll_l.texi.
4751         * doc/posix-functions/wcsdup.texi: Renamed from
4752         doc/glibc-functions/wcsdup.texi.
4753         * doc/posix-functions/wcsncasecmp.texi: Renamed from
4754         doc/glibc-functions/wcsncasecmp.texi.
4755         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
4756         doc/glibc-functions/wcsncasecmp_l.texi.
4757         * doc/posix-functions/wcsnlen.texi: Renamed from
4758         doc/glibc-functions/wcsnlen.texi.
4759         * doc/posix-functions/wcsnrtombs.texi: Renamed from
4760         doc/glibc-functions/wcsnrtombs.texi.
4761         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
4762         doc/glibc-functions/wcsxfrm_l.texi.
4763         * doc/posix-functions/wctrans_l.texi: Renamed from
4764         doc/glibc-functions/wctrans_l.texi.
4765         * doc/posix-functions/wctype_l.texi: Renamed from
4766         doc/glibc-functions/wctype_l.texi.
4767         * doc/gnulib.texi (Function Substitutes): Add these subsections.
4768         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
4769         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
4770         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
4771         these subsections.
4772         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
4773         Remove sections.
4774
4775 2008-12-14  Bruno Haible  <bruno@clisp.org>
4776
4777         Update doc for POSIX:2008.
4778         * doc/posix-functions/*.texi: Update URL of POSIX specification.
4779
4780 2008-12-14  Bruno Haible  <bruno@clisp.org>
4781
4782         Update doc for POSIX:2008.
4783         * doc/pastposix-functions/bcmp.texi: Renamed from
4784         doc/posix-functions/bcmp.texi.
4785         * doc/pastposix-functions/bcopy.texi: Renamed from
4786         doc/posix-functions/bcopy.texi.
4787         * doc/pastposix-functions/bsd_signal.texi: Renamed from
4788         doc/posix-functions/bsd_signal.texi.
4789         * doc/pastposix-functions/bzero.texi: Renamed from
4790         doc/posix-functions/bzero.texi.
4791         * doc/pastposix-functions/ecvt.texi: Renamed from
4792         doc/posix-functions/ecvt.texi.
4793         * doc/pastposix-functions/fcvt.texi: Renamed from
4794         doc/posix-functions/fcvt.texi.
4795         * doc/pastposix-functions/ftime.texi: Renamed from
4796         doc/posix-functions/ftime.texi.
4797         * doc/pastposix-functions/gcvt.texi: Renamed from
4798         doc/posix-functions/gcvt.texi.
4799         * doc/pastposix-functions/getcontext.texi: Renamed from
4800         doc/posix-functions/getcontext.texi.
4801         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
4802         doc/posix-functions/gethostbyaddr.texi.
4803         * doc/pastposix-functions/gethostbyname.texi: Renamed from
4804         doc/posix-functions/gethostbyname.texi.
4805         * doc/pastposix-functions/getwd.texi: Renamed from
4806         doc/posix-functions/getwd.texi.
4807         * doc/pastposix-functions/h_errno.texi: Renamed from
4808         doc/posix-functions/h_errno.texi.
4809         * doc/pastposix-functions/index.texi: Renamed from
4810         doc/posix-functions/index.texi.
4811         * doc/pastposix-functions/makecontext.texi: Renamed from
4812         doc/posix-functions/makecontext.texi.
4813         * doc/pastposix-functions/mktemp.texi: Renamed from
4814         doc/posix-functions/mktemp.texi.
4815         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
4816         doc/posix-functions/pthread_attr_getstackaddr.texi.
4817         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
4818         doc/posix-functions/pthread_attr_setstackaddr.texi.
4819         * doc/pastposix-functions/rindex.texi: Renamed from
4820         doc/posix-functions/rindex.texi.
4821         * doc/pastposix-functions/scalb.texi: Renamed from
4822         doc/posix-functions/scalb.texi.
4823         * doc/pastposix-functions/setcontext.texi: Renamed from
4824         doc/posix-functions/setcontext.texi.
4825         * doc/pastposix-functions/swapcontext.texi: Renamed from
4826         doc/posix-functions/swapcontext.texi.
4827         * doc/pastposix-functions/ualarm.texi: Renamed from
4828         doc/posix-functions/ualarm.texi.
4829         * doc/pastposix-functions/usleep.texi: Renamed from
4830         doc/posix-functions/usleep.texi.
4831         * doc/pastposix-functions/vfork.texi: Renamed from
4832         doc/posix-functions/vfork.texi.
4833         * doc/pastposix-functions/wcswcs.texi: Renamed from
4834         doc/posix-functions/wcswcs.texi.
4835         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
4836         (Function Substitutes): Update.
4837
4838 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4839
4840         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
4841         m4/strerror.m4.
4842
4843 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4844             Bruno Haible  <bruno@clisp.org>
4845
4846         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
4847
4848 2008-12-13  Bruno Haible  <bruno@clisp.org>
4849
4850         * modules/strtoull (Depends-on): Remove unistd.
4851
4852 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4853
4854         * modules/strtoull (Depends-on): Add stdlib.
4855
4856 2008-12-11  Simon Josefsson  <simon@josefsson.org>
4857
4858         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
4859
4860 2008-12-10  Jim Meyering  <meyering@redhat.com>
4861
4862         gl_ASSERT: don't say assertions are disabled when they're not
4863         * m4/assert.m4 (gl_ASSERT): Do not make configure report
4864         "checking whether to enable assertions... no", when they are in
4865         fact enabled.  This is solely a bug in the output of configure.
4866         In spite of saying "no", NDEBUG was not defined in that case.
4867         Also, as noted by Eric Blake, leave assertions enabled upon
4868         --enable-assert=INVALID.
4869
4870 2008-12-10  Bruno Haible  <bruno@clisp.org>
4871
4872         Change MODULES.html to refer to POSIX:2008 where possible.
4873         * MODULES.html.sh (POSIX2008_URL): New variable.
4874         (posix_headers): Remove sys/timeb, ucontext.
4875         (posix2001_headers): New variable.
4876         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
4877         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
4878         index, makecontext, mktemp, pthread_attr_getstackaddr,
4879         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
4880         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
4881         (posix2001_functions): New variable.
4882         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
4883         otherwise.
4884
4885 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4886
4887         add missing include to parse-duration.c
4888         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
4889         * modules/parse-duration (Depends-on): Add xalloc.
4890
4891         fix sed script reading maint.mk
4892         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
4893         (syntax-check-rules): Use it.
4894
4895 2008-12-09  Bruno Haible  <bruno@clisp.org>
4896
4897         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
4898         MacOS X 10.4/PowerPC.
4899         Reported by Simon Josefsson.
4900
4901 2008-12-08  Jim Meyering  <meyering@redhat.com>
4902
4903         work around mingw's lack of some S_IF definitions
4904         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
4905         Reported by Simon Josefsson.
4906
4907 2008-12-08  Bruno Haible  <bruno@clisp.org>
4908
4909         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
4910         applied to variables. Needed on MacOS X 10.4/PowerPC.
4911         Reported by Simon Josefsson.
4912
4913 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
4914         and Eric Blake  <ebb9@byu.net>
4915
4916         assert: honor --enable-assert
4917         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
4918         order to honor --enable-assert, rather than treating it as a
4919         synonym for --disable-assert.
4920
4921 2008-12-08  Jim Meyering  <meyering@redhat.com>
4922
4923         * lib/posixtm.c: Remove now-useless declaration of mktime.
4924
4925         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
4926
4927 2008-12-07  Bruno Haible  <bruno@clisp.org>
4928
4929         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
4930         test_once): Mark functions as static.
4931         * tests/test-tls.c (test_tls): Likewise.
4932
4933 2008-12-07  Bruno Haible  <bruno@clisp.org>
4934
4935         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
4936         iconv_register_autodetect.
4937
4938 2008-12-07  Jim Meyering  <meyering@redhat.com>
4939
4940         posixtm.c: avoid a warning
4941         * lib/posixtm.c (posixtime): Don't initialize tm0.
4942         It's no longer needed to placate gcc4's -Wuninitialized,
4943         and the attempt to placate would elicit a new warning.
4944
4945         unicodeio.c: mark unused parameters
4946         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
4947         (fallback_failure_callback): Likewise.
4948
4949 2008-12-07  Bruno Haible  <bruno@clisp.org>
4950
4951         * gnulib-tool (func_create_testdir): When building the tests
4952         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
4953         Reported by Simon Josefsson.
4954
4955 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4956
4957         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
4958
4959 2008-12-06  Bruno Haible  <bruno@clisp.org>
4960
4961         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
4962         Suggested by Eric Blake.
4963
4964 2008-12-06  Bruno Haible  <bruno@clisp.org>
4965
4966         Fix a c-stack test failure on MacOS X.
4967         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
4968         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
4969         handler for SIGBUS as well.
4970         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
4971         install a signal handler for SIGBUS as well.
4972         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
4973
4974 2008-12-06  Bruno Haible  <bruno@clisp.org>
4975
4976         Advocacy documentation.
4977         * doc/gnulib-intro.texi (Benefits): New section.
4978         * doc/gnulib.texi: Update.
4979
4980 2008-12-06  Bruno Haible  <bruno@clisp.org>
4981
4982         Document the 'manywarnings' module.
4983         * doc/manywarnings.texi: New file.
4984         * doc/gnulib.texi: Include it.
4985
4986 2008-12-05  Eric Blake  <ebb9@byu.net>
4987
4988         tests: silence some gcc warnings
4989         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
4990         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
4991         type mismatches.
4992
4993 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4994             Bruno Haible  <bruno@clisp.org>
4995
4996         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
4997
4998 2008-11-29  Jim Meyering  <meyering@redhat.com>
4999
5000         unicodeio.c: mark unused parameters
5001         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
5002         (fallback_failure_callback): Likewise.
5003
5004         fts: fix a thinko
5005         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
5006         (set_stat_type): Return S_IF*-valued "type" directly.
5007         Prompted by James Youngman's spotting a related bug.
5008         Confirmed by further testing through find.
5009
5010         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
5011         * lib/fts.c (D_TYPE): Define.
5012         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
5013         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
5014         (s_ifmt_shift_bits): New function.
5015         (set_stat_type): New function.
5016         (fts_build): When not calling fts_stat, call set_stat_type
5017         to propagate dirent.d_type info to fts_read caller.
5018         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
5019         fts_statp->st_mode type information may be valid.
5020
5021 2008-11-28  Simon Josefsson  <simon@josefsson.org>
5022
5023         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
5024         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
5025         <sds@gnu.org>.
5026
5027 2008-11-20  Bruno Haible  <bruno@clisp.org>
5028
5029         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
5030         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
5031         INCLUDE_NEXT.
5032         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
5033         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
5034         * modules/math (Makefile.am): Substitute
5035         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
5036         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5037
5038 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
5039             Bruno Haible  <bruno@clisp.org>
5040
5041         * lib/stdint.in.h: Define all type macros so that their expansion is
5042         a single typedef'ed token. Fixes a compilation failure in Boost which
5043         does "using ::int8_t;".
5044
5045 2008-11-18  Simon Josefsson  <simon@josefsson.org>
5046
5047         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
5048         gl_MANYWARN_ALL_GCC.
5049         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
5050         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
5051         * modules/manywarnings: New file.
5052         * MODULES.html.sh: Mention manywarnings module.
5053
5054 2008-11-18  Bruno Haible  <bruno@clisp.org>
5055
5056         * doc/gnulib-tool.texi (Unit tests): New section.
5057
5058 2008-11-18  Simon Josefsson  <simon@josefsson.org>
5059
5060         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
5061         paths like 'lib/po/foo.po'.
5062
5063 2008-11-17  Simon Josefsson  <simon@josefsson.org>
5064
5065         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
5066         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
5067
5068 2008-11-17  Simon Josefsson  <simon@josefsson.org>
5069
5070         * m4/warnings.m4: Use CPPFLAGS to really check whether the
5071         parameter works.
5072
5073 2008-11-17  Simon Josefsson  <simon@josefsson.org>
5074
5075         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
5076
5077 2008-11-17  Bruce Korb  <bkorb@gnu.org>
5078
5079         * modules/parse-duration-tests: New file.
5080         * tests/test-parse-duration.sh: New file.
5081         * tests/test-parse-duration.c: New file.
5082
5083         New module 'parse-duration'.
5084         * lib/parse-duration.h: New file.
5085         * lib/parse-duration.c: New file.
5086         * modules/parse-duration: New file.
5087
5088 2008-11-17  Bruno Haible  <bruno@clisp.org>
5089
5090         * tests/test-select-out.sh: Comment out the first pipe test.
5091         Reported by Simon Josefsson.
5092
5093 2008-11-17  Bruno Haible  <bruno@clisp.org>
5094
5095         * modules/getaddrinfo (Depends-on): Add servent, hostent.
5096         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
5097         gl_HOSTENT.
5098
5099 2008-11-17  Bruno Haible  <bruno@clisp.org>
5100
5101         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
5102         -lnetwork and -lnet. Needed for Haiku and BeOS.
5103
5104 2008-11-16  Bruno Haible  <bruno@clisp.org>
5105
5106         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
5107
5108 2008-11-16  Bruno Haible  <bruno@clisp.org>
5109
5110         Avoid test failure on Haiku.
5111         * tests/test-fsync.c: Include <errno.h>.
5112         (main): Don't require that fsync (0) fails.
5113
5114 2008-11-15  Bruno Haible  <bruno@clisp.org>
5115
5116         New module 'hostent'.
5117         * modules/hostent: New file.
5118         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
5119
5120 2008-11-15  Bruno Haible  <bruno@clisp.org>
5121
5122         New module 'servent'.
5123         * modules/servent: New file.
5124         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
5125
5126 2008-11-15  Bruno Haible  <bruno@clisp.org>
5127
5128         Avoid generating same test program with two different rules.
5129         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
5130         test-frexp to test-frexp-nolibm.
5131         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
5132         test-frexpl to test-frexpl-nolibm.
5133
5134 2008-11-15  Bruno Haible  <bruno@clisp.org>
5135
5136         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
5137         $(FREXPL_LIBM).
5138
5139 2008-11-15  Bruno Haible  <bruno@clisp.org>
5140
5141         * lib/netdb.in.h: Activate the definitions also when the system's
5142         <netdb.h> has 'struct addrinfo'.
5143         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
5144         EAI_OVERFLOW or AI_NUMERICSERV.
5145         * doc/posix-headers/netdb.texi: Document the problem.
5146
5147 2008-11-15  Bruno Haible  <bruno@clisp.org>
5148
5149         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
5150
5151         Make the 'sched' module work on platforms where <sched.h> exists but
5152         is incomplete (such as Haiku).
5153         * lib/sched.in.h; Include the system's <sched.h> if it exists.
5154         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
5155         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
5156         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
5157         HAVE_STRUCT_SCHED_PARAM.
5158         * modules/sched (Depends-on): Add include_next.
5159         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
5160         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
5161         * doc/posix-headers/sched.texi: Document the issue.
5162
5163 2008-11-13  Jim Meyering  <meyering@redhat.com>
5164
5165         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
5166         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
5167         test would fail due to the difference in the Report bugs to ...
5168         line.  The expected address is empty, "<>", while the actual
5169         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
5170
5171 2008-11-12  Bruno Haible  <bruno@clisp.org>
5172
5173         lstat: don't compile lstat.c on systems lacking lstat
5174         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
5175         which don't have lstat; this is handled by lib/sys_stat.in.h already.
5176         Reported by Daniel P. Berrange via Jim Meyering.
5177
5178 2008-11-12  Jim Meyering  <meyering@redhat.com>
5179
5180         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
5181
5182 2008-11-12  Simon Josefsson  <simon@josefsson.org>
5183
5184         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
5185         instead.
5186
5187 2008-11-12  Bruno Haible  <bruno@clisp.org>
5188
5189         * lib/unicodeio.c: Include unistr.h.
5190         (utf8_wctomb): Remove function.
5191         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
5192
5193 2008-11-12  Simon Josefsson  <simon@josefsson.org>
5194
5195         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
5196         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
5197         <bruno@clisp.org>.
5198         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
5199
5200 2008-11-12  Simon Josefsson  <simon@josefsson.org>
5201
5202         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
5203         * doc/gnulib.texi: Add section for warnings.
5204
5205 2008-11-11  Bruno Haible  <bruno@clisp.org>
5206
5207         * lib/sockets.h: Add a comment.
5208
5209 2008-11-11  Karl Berry  <karl@gnu.org>
5210
5211         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
5212
5213 2008-11-11  Eric Blake  <ebb9@byu.net>
5214
5215         fdl.texi: avoid git symlinks
5216         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
5217
5218 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
5219
5220         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
5221
5222 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
5223
5224         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
5225         (gl_WARN_ADD): Substitute $2 if literal.
5226
5227 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
5228
5229         * m4/warning.m4: Remove.
5230
5231 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
5232
5233         * m4/warnings.m4: Almost complete rewrite. :-)
5234
5235 2008-11-10  Simon Josefsson  <simon@josefsson.org>
5236
5237         * modules/warnings: New module.
5238         * m4/warnings.m4: New file.
5239         * MODULES.html.sh: Mention warnings module.
5240         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
5241         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5242
5243 2008-11-10  Eric Blake  <ebb9@byu.net>
5244
5245         fdl.texi: make a symlink to the latest version
5246         * doc/standards.texi: Revert today's earlier change.
5247         * doc/fdl-1.2.texi: Rename from old fdl.texi...
5248         * doc/fdl.texi: ...and replace this with a symlink to the newer
5249         fdl-1.3.texi.
5250
5251 2008-11-10  Bruno Haible  <bruno@clisp.org>
5252
5253         * tests/test-select-fd.c (main): Accept the result file name as fourth
5254         argument.
5255         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
5256         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
5257
5258 2008-11-10  Bruno Haible  <bruno@clisp.org>
5259
5260         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
5261         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
5262         as autoconf-substituted macros.
5263         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
5264         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
5265         gl_NETDB_H_DEFAULTS. Set these variables.
5266         * modules/netdb (Makefile.am): Substitute these variables.
5267
5268 2008-11-10  Eric Blake  <ebb9@byu.net>
5269
5270         standards.texi: include correct file for FDL 1.3
5271         * doc/standards.texi (GNU Free Documentation License): Change
5272         include file to pull in FDL 1.3, not 1.2.
5273
5274         fdl.texi: revert accidental change to license
5275         * doc/fdl.texi: This is FDL 1.2, not 1.3.
5276
5277 2008-11-10  Bruno Haible  <bruno@clisp.org>
5278
5279         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
5280         cross-compiling guesses also when the native compile gives no result.
5281
5282 2008-11-10  Bruno Haible  <bruno@clisp.org>
5283
5284         * lib/spawni.c (__spawni): Force variable into the stack.
5285
5286 2008-11-10  Bruno Haible  <bruno@clisp.org>
5287
5288         Add support for Haiku.
5289         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
5290         glibc and BeOS, but also on Haiku.
5291         * lib/fpurge.c (fpurge): Likewise.
5292         * lib/freadable.c (freadable): Likewise.
5293         * lib/freadahead.c (freadahead): Likewise.
5294         * lib/freading.c (freading): Likewise.
5295         * lib/freadptr.c (freadptr): Likewise.
5296         * lib/freadseek.c (freadptrinc): Likewise.
5297         * lib/fseeko.c (rpl_fseeko): Likewise.
5298         * lib/fseterr.c (fseterr): Likewise.
5299         * lib/fwritable.c (fwritable): Likewise.
5300         * lib/fwriting.c (fwriting): Likewise.
5301         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
5302
5303 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
5304
5305         * lib/config.charset: Treat Haiku like BeOS.
5306
5307 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
5308
5309         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
5310         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
5311
5312 2008-11-08  Bruno Haible  <bruno@clisp.org>
5313
5314         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
5315         AC_CACHE_CHECK.
5316
5317 2008-11-08  Bruno Haible  <bruno@clisp.org>
5318
5319         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
5320
5321 2008-11-08  Bruno Haible  <bruno@clisp.org>
5322
5323         * tests/test-select-fd.c: New file.
5324         * tests/test-select-in.sh: New file.
5325         * tests/test-select-out.sh: New file.
5326         * tests/test-select-stdin.c: New file.
5327         * modules/select-tests (Files): Add the new files.
5328         (Depends-on): Add gettimeofday.
5329         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
5330         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
5331         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
5332
5333 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
5334             Bruno Haible  <bruno@clisp.org>
5335
5336         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
5337
5338 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
5339
5340         * build-aux/pmccabe2html: Added support for C++ source files.
5341
5342 2008-11-05  Ben Pfaff  <blp@gnu.org>
5343
5344         Fix lib/close.c build on Windows.
5345         * modules/close (Files): Add lib/w32sock.h.
5346
5347 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
5348
5349         Accept Bison's NEWS format.
5350         * build-aux/announce-gen (print_news_deltas): Tweak
5351         $re_prefix.
5352
5353 2008-11-04  Bruno Haible  <bruno@clisp.org>
5354
5355         * modules/random_r (Maintainer): Add glibc.
5356
5357 2008-11-04  Simon Josefsson  <simon@josefsson.org>
5358
5359         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
5360         by karl@freefriends.org (Karl Berry).
5361         * doc/alloca.texi: Likewise.
5362         * doc/c-ctype.texi: Likewise.
5363         * doc/c-strcase.texi: Likewise.
5364         * doc/c-strcaseeq.texi: Likewise.
5365         * doc/c-strcasestr.texi: Likewise.
5366         * doc/c-strstr.texi: Likewise.
5367         * doc/c-strtod.texi: Likewise.
5368         * doc/c-strtold.texi: Likewise.
5369         * doc/ctime.texi: Likewise.
5370         * doc/error.texi: Likewise.
5371         * doc/fdl.texi: Likewise.
5372         * doc/gcd.texi: Likewise.
5373         * doc/getdate.texi: Likewise.
5374         * doc/gnulib-intro.texi: Likewise.
5375         * doc/gnulib-tool.texi: Likewise.
5376         * doc/gnulib.texi: Likewise.
5377         * doc/inet_ntoa.texi: Likewise.
5378         * doc/maintain.texi: Likewise.
5379         * doc/make-stds.texi: Likewise.
5380         * doc/quote.texi: Likewise.
5381         * doc/regexprops-generic.texi: Likewise.
5382         * doc/standards.texi: Likewise.
5383         * doc/verify.texi: Likewise.
5384         * doc/visibility.texi: Likewise.
5385         * doc/gnulib.texi (GNU Free Documentation License): Include
5386         fdl-1.3.texi instead of fdl.texi.
5387
5388 2008-11-04  Simon Josefsson  <simon@josefsson.org>
5389
5390         * doc/fdl-1.3.texi: New file, from
5391         <http://www.gnu.org/licenses/fdl-1.3.texi>.
5392         * modules/fdl-1.3: Add.
5393         * MODULES.html.sh: Add fdl-1.3.
5394
5395 2008-11-03  Bruno Haible  <bruno@clisp.org>
5396
5397         Make determination of absolute name of header file work with AIX xlc.
5398         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
5399         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
5400         preprocessing.
5401         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
5402         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
5403
5404 2008-11-03  Simon Josefsson  <simon@josefsson.org>
5405
5406         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
5407         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
5408         <ludo@gnu.org>.
5409
5410 2008-11-02  Bruno Haible  <bruno@clisp.org>
5411
5412         Mark 'strpbrk' obsolete.
5413         * modules/strpbrk (Status, Notice): New sections.
5414         * modules/strtok_r (Depends-on): Add strpbrk.
5415
5416 2008-11-02  Bruno Haible  <bruno@clisp.org>
5417
5418         Mark 'strdup' obsolete.
5419         * modules/strdup (Status, Notice): New sections.
5420         * modules/findprog (Depends-on): Add strdup.
5421         * modules/getaddrinfo (Depends-on): Likewise.
5422         * modules/localename (Depends-on): Likewise.
5423         * modules/relocatable-lib (Depends-on): Likewise.
5424         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
5425         * modules/relocatable-prog (Depends-on): Likewise.
5426         * modules/trim (Depends-on): Likewise.
5427         * modules/unictype/gen-ctype (Depends-on): Likewise.
5428         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
5429
5430 2008-11-02  Bruno Haible  <bruno@clisp.org>
5431
5432         Mark 'strcspn' obsolete.
5433         * modules/strcspn (Status, Notice): New sections.
5434
5435 2008-11-02  Bruno Haible  <bruno@clisp.org>
5436
5437         Mark 'rmdir' obsolete.
5438         * modules/rmdir (Status, Notice): New sections.
5439         * modules/clean-temp (Depends-on): Add rmdir.
5440         * modules/openat (Depends-on): Likewise.
5441
5442 2008-11-02  Bruno Haible  <bruno@clisp.org>
5443
5444         Mark 'raise' obsolete.
5445         * modules/raise (Status, Notice): New sections.
5446         (Include): Specify <signal.h>.
5447         * modules/stdio (Depends-on): Add raise.
5448         * modules/write (Depends-on): Likewise.
5449
5450 2008-11-02  Bruno Haible  <bruno@clisp.org>
5451
5452         Mark 'memset' obsolete.
5453         * modules/memset (Status, Notice): New sections.
5454
5455 2008-11-02  Bruno Haible  <bruno@clisp.org>
5456
5457         Mark 'memmove' obsolete.
5458         * modules/memmove (Status, Notice): New sections.
5459         * modules/argp (Depends-on): Add memmove.
5460         * modules/argz (Depends-on): Likewise.
5461         * modules/canonicalize (Depends-on): Likewise.
5462         * modules/canonicalize-lgpl (Depends-on): Likewise.
5463         * modules/fts (Depends-on): Likewise.
5464         * modules/getcwd (Depends-on): Likewise.
5465         * modules/human (Depends-on): Likewise.
5466         * modules/regex (Depends-on): Likewise.
5467         * modules/striconveh (Depends-on): Likewise.
5468         * modules/trim (Depends-on): Likewise.
5469         * modules/unistr/u8-move (Depends-on): Likewise.
5470         * modules/unistr/u16-move (Depends-on): Likewise.
5471         * modules/unistr/u32-move (Depends-on): Likewise.
5472
5473 2008-11-02  Bruno Haible  <bruno@clisp.org>
5474
5475         Mark 'memcpy' obsolete.
5476         * modules/memcpy (Status, Notice): New sections.
5477
5478 2008-11-02  Bruno Haible  <bruno@clisp.org>
5479
5480         Mark 'memcmp' obsolete.
5481         * modules/memcmp (Status, Notice): New sections.
5482         * modules/argmatch (Depends-on): Add memchr.
5483         * modules/backupfile (Depends-on): Likewise.
5484         * modules/c-strcasestr (Depends-on): Likewise.
5485         * modules/crypto/des (Depends-on): Likewise.
5486         * modules/csharpcomp (Depends-on): Likewise.
5487         * modules/fnmatch (Depends-on): Likewise.
5488         * modules/git-merge-changelog (Depends-on): Likewise.
5489         * modules/isnand (Depends-on): Likewise.
5490         * modules/isnand-nolibm (Depends-on): Likewise.
5491         * modules/isnanf (Depends-on): Likewise.
5492         * modules/isnanf-nolibm (Depends-on): Likewise.
5493         * modules/isnanl (Depends-on): Likewise.
5494         * modules/isnanl-nolibm (Depends-on): Likewise.
5495         * modules/mbchar (Depends-on): Likewise.
5496         * modules/memcoll (Depends-on): Likewise.
5497         * modules/quotearg (Depends-on): Likewise.
5498         * modules/regex (Depends-on): Likewise.
5499         * modules/relocatable-prog (Depends-on): Likewise.
5500         * modules/same (Depends-on): Likewise.
5501         * modules/signbit (Depends-on): Likewise.
5502         * modules/strcasestr-simple (Depends-on): Likewise.
5503         * modules/unictype/gen-ctype (Depends-on): Likewise.
5504         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
5505         * modules/uniname/uniname (Depends-on): Likewise.
5506         * modules/unistr/u8-cmp (Depends-on): Likewise.
5507
5508 2008-11-02  Bruno Haible  <bruno@clisp.org>
5509
5510         Mark 'memchr' obsolete.
5511         * modules/memchr (Status, Notice): New sections.
5512         * modules/argp (Depends-on): Add memchr.
5513         * modules/base64 (Depends-on): Likewise.
5514         * modules/c-strcasestr (Depends-on): Likewise.
5515         * modules/chdir-long (Depends-on): Likewise.
5516         * modules/fnmatch (Depends-on): Likewise.
5517         * modules/getsubopt (Depends-on): Likewise.
5518         * modules/git-merge-changelog (Depends-on): Likewise.
5519         * modules/glob (Depends-on): Likewise.
5520         * modules/strcasestr-simple (Depends-on): Likewise.
5521         * modules/strnlen (Depends-on): Likewise.
5522
5523 2008-11-02  Bruno Haible  <bruno@clisp.org>
5524
5525         Mark 'atexit' obsolete.
5526         * modules/atexit (Status, Notice): New sections.
5527         * modules/chdir-long (Depends-on): Add atexit.
5528         * modules/wait-process (Depends-on): Likewise.
5529
5530 2008-11-02  Bruno Haible  <bruno@clisp.org>
5531
5532         * gnulib-tool: New option --with-obsolete.
5533         (func_usage): Document it.
5534         (func_modules_transitive_closure): Drop obsolete dependencies if
5535         incobsolete is not true.
5536         (func_import): Read and save the incobsolete variable to the cache.
5537
5538 2008-11-02  Bruno Haible  <bruno@clisp.org>
5539
5540         * modules/TEMPLATE-EXTENDED: New field 'Status'.
5541         * gnulib-tool: New option --extract-status.
5542         (func_usage): Document it.
5543         (sed_extract_prog): Recognize it.
5544         (func_get_status): New function.
5545
5546 2008-10-30  Simon Josefsson  <simon@josefsson.org>
5547
5548         * modules/sockets (License): Change from LGPL to LGPLv2+.
5549
5550 2008-10-28  Simon Josefsson  <simon@josefsson.org>
5551
5552         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
5553
5554 2008-10-28  Simon Josefsson  <simon@josefsson.org>
5555
5556         * MODULES.html.sh (Support for systems lacking POSIX:2001):
5557         Mention times and sys_times.
5558         * modules/sys_times, modules/sys_times-tests: New modules.
5559         * modules/times, modules/times-tests: Likewise
5560         * m4/sys_times_h.m4: New file.
5561         * lib/sys_times.in.h: Likewise
5562         * lib/times.c: Likewise.
5563         * tests/test-sys_times.c: Likewise.
5564         * tests/test-times.c: Likewise.
5565         * doc/posix-headers/sys_times.texi: Update.
5566         * doc/posix-functions/times.texi: Update.
5567
5568 2008-10-28  Jim Meyering  <meyering@redhat.com>
5569
5570         * modules/tempname (Depends-on): Add lstat.
5571
5572         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
5573
5574 2008-10-28  Simon Josefsson  <simon@josefsson.org>
5575
5576         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
5577         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
5578         using idiom used elsewhere in gnulib.
5579
5580 2008-10-27  Jim Meyering  <meyering@redhat.com>
5581
5582         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
5583
5584 2008-10-27  Simon Josefsson  <simon@josefsson.org>
5585
5586         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
5587         TESTS_ENVIRONMENT, for shell scripts that needs to call built
5588         programs.
5589         * tests/test-argp-2.sh: Use $EXEEXT when needed.
5590
5591 2008-10-27  Simon Josefsson  <simon@josefsson.org>
5592
5593         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
5594
5595 2008-10-27  Bruno Haible  <bruno@clisp.org>
5596
5597         * tests/test-lstat.c: Include <stdio.h>.
5598
5599 2008-10-27  Simon Josefsson  <simon@josefsson.org>
5600
5601         * modules/lstat-tests: New module.
5602         * tests/test-lstat.c: New file.
5603
5604 2008-10-26  Jim Meyering  <meyering@redhat.com>
5605
5606         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
5607
5608 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5609             Bruno Haible  <bruno@clisp.org>
5610
5611         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
5612         * modules/configmake (Include): Add a note that the include must come
5613         after all system headers.
5614         * lib/javaversion.c: Include configmake.h after all other includes.
5615
5616 2008-10-26  Bruno Haible  <bruno@clisp.org>
5617
5618         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
5619         HAVE_STRUCT_RANDOM_DATA to 1.
5620         (gl_STDLIB_H): Simplify.
5621
5622 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5623
5624         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
5625         substitute HAVE_STRUCT_RANDOM_DATA.
5626         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
5627         random_data.
5628         * modules/stdlib (Makefile.am): Substitute
5629         HAVE_STRUCT_RANDOM_DATA.
5630
5631 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5632
5633         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
5634         * doc/gnulib-intro.texi (Copyright): Likewise.
5635
5636 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5637
5638         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
5639         findings.
5640
5641 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
5642             Bruno Haible  <bruno@clisp.org>
5643
5644         * lib/unistd.in.h: Include <winsock2.h>.
5645         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
5646         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
5647         Provide dummy declarations.
5648         (gethostname): Override.
5649         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
5650         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
5651         gl_PREREQ_SYS_H_WINSOCK2.
5652         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
5653         * doc/posix-functions/gethostname.texi: More details.
5654
5655 2008-10-25  Bruno Haible  <bruno@clisp.org>
5656
5657         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
5658         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
5659         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
5660
5661         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
5662         here ...
5663         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
5664         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
5665         gl_UNISTD_H_DEFAULTS.
5666
5667 2008-10-25  Eric Blake  <ebb9@byu.net>
5668
5669         signbit: avoid spurious compiler failure
5670         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
5671         declarations inside function.
5672
5673 2008-10-24  Simon Josefsson  <simon@josefsson.org>
5674             Bruno Haible  <bruno@clisp.org>
5675
5676         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
5677         * modules/random_r (Depends-on): Add stdint.
5678
5679 2008-10-24  Bruno Haible  <bruno@clisp.org>
5680
5681         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
5682         Eggert.
5683         * modules/strerror (License): Likewise.
5684
5685 2008-10-24  Jim Meyering  <meyering@redhat.com>
5686
5687         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
5688         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
5689
5690 2008-10-24  Eric Blake  <ebb9@byu.net>
5691
5692         getgroups: fix compilation when getgroups is available
5693         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
5694         but with <config.h> override of getgroups disabled.
5695
5696 2008-10-24  Simon Josefsson  <simon@josefsson.org>
5697
5698         * doc/gnulib.texi (Header files): Add note about C++ problems.
5699         Explained by Bruno Haible <bruno@clisp.org>.
5700
5701 2008-10-23  Bruno Haible  <bruno@clisp.org>
5702
5703         Define a dummy SA_NODEFER macro on Interix.
5704         * lib/signal.in.h (SA_NODEFER): Define fallback.
5705         Reported by Aleksey Cheusov <cheusov@tut.by> via
5706         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
5707
5708 2008-10-23  Bruno Haible  <bruno@clisp.org>
5709
5710         * modules/freadahead (License): Change to LGPLv2+.
5711         Suggested by Simon Josefsson.
5712
5713 2008-10-23  Jim Meyering  <meyering@redhat.com>
5714
5715         random_r: new module
5716         * modules/random_r: New file.
5717         * m4/random_r.m4: New file.
5718         * lib/random_r.c: New file, from glibc.
5719         * modules/random_r-tests: New file.
5720         * tests/test-random_r.c: New file.
5721         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
5722          Declare.
5723         (RAND_MAX): Define.
5724         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
5725         * modules/stdlib: Substitute them, too.
5726         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
5727         * doc/glibc-functions/initstate_r.texi: Mention the new module.
5728         * doc/glibc-functions/random_r.texi: Likewise.
5729         * doc/glibc-functions/setstate_r.texi: Likewise.
5730         * doc/glibc-functions/srandom_r.texi: Likewise.
5731         * config/srclist.txt: Mention it.
5732
5733 2008-10-23  David Lutterkort  <lutter@redhat.com>
5734
5735         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
5736         link requirement
5737
5738 2008-10-23  Jim Meyering  <meyering@redhat.com>
5739
5740         selinux-h: mark parameters of stub functions as intentionally unused
5741         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
5742         * lib/se-context.in.h: Likewise.
5743
5744 2008-10-22  Simon Josefsson  <simon@josefsson.org>
5745
5746         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
5747
5748 2008-10-22  Simon Josefsson  <simon@josefsson.org>
5749
5750         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
5751
5752 2008-10-22  Eric Blake  <ebb9@byu.net>
5753
5754         glthread/thread: avoid compiler warning
5755         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
5756         Add unreachable abort to silence compiler.
5757
5758 2008-10-22  Eric Blake  <ebb9@byu.net>
5759
5760         netdb: also supply struct addrinfo for cygwin 1.5.x
5761         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
5762         older cygwin.
5763         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
5764         cygwin.
5765         * doc/posix-headers/netdb.texi (netdb.h): Document this.
5766
5767 2008-10-22  Bruno Haible  <bruno@clisp.org>
5768
5769         * users.txt: Update entry about pspp.
5770
5771 2008-10-21  Bruno Haible  <bruno@clisp.org>
5772
5773         Simplification.
5774         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
5775         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
5776
5777         Simplification.
5778         * lib/ioctl.c (ioctl): Don't undefine.
5779         * lib/socket.c (socket): Don't undefine.
5780
5781         Remove unused module indicator macros.
5782         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
5783         GNULIB_$1 as a C macro.
5784
5785         * doc/posix-functions/close.texi: Undo last change.
5786         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
5787         Windows platforms.
5788
5789 2008-10-21  Bruno Haible  <bruno@clisp.org>
5790
5791         Add gethostname() declaration to <unistd.h>.
5792         * lib/unistd.in.h (gethostname): New declaration.
5793         * lib/gethostname.c: Include <unistd.h>.
5794         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
5795         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
5796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
5797         and HAVE_GETHOSTNAME.
5798         * modules/gethostname (Depends-on): Add unistd.
5799         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5800         (Include): Specify <unistd.h>.
5801         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
5802         HAVE_GETHOSTNAME.
5803         * tests/test-gethostname.c: Include <unistd.h> first.
5804
5805 2008-10-21  Bruno Haible  <bruno@clisp.org>
5806
5807         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
5808         * modules/select-tests (Depends-on): Likewise.
5809         Reported by Simon Josefsson.
5810
5811 2008-10-21  Simon Josefsson  <simon@josefsson.org>
5812
5813         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
5814         * lib/accept.c: New file, based on winsock.c.
5815         * lib/bind.c: New file, based on winsock.c.
5816         * lib/connect.c: New file, based on winsock.c.
5817         * lib/getpeername.c: New file, based on winsock.c.
5818         * lib/getsockname.c: New file, based on winsock.c.
5819         * lib/getsockopt.c: New file, based on winsock.c.
5820         * lib/ioctl.c: New file, based on winsock.c.
5821         * lib/listen.c: New file, based on winsock.c.
5822         * lib/recv.c: New file, based on winsock.c.
5823         * lib/recvfrom.c: New file, based on winsock.c.
5824         * lib/send.c: New file, based on winsock.c.
5825         * lib/sendto.c: New file, based on winsock.c.
5826         * lib/setsockopt.c: New file, based on winsock.c.
5827         * lib/shutdown.c: New file, based on winsock.c.
5828         * lib/socket.c: New file, based on winsock.c.
5829         * lib/w32sock.h: New file, based on winsock.c.
5830         * lib/winsock.c: Remove file.
5831         * modules/accept: Likewise.
5832         * modules/bind: Likewise.
5833         * modules/connect: Likewise.
5834         * modules/getpeername: Likewise.
5835         * modules/getsockname: Likewise.
5836         * modules/getsockopt: Likewise.
5837         * modules/ioctl: Likewise.
5838         * modules/listen: Likewise.
5839         * modules/recv: Likewise.
5840         * modules/recvfrom: Likewise.
5841         * modules/send: Likewise.
5842         * modules/sendto: Likewise.
5843         * modules/setsockopt: Likewise.
5844         * modules/shutdown: Likewise.
5845         * modules/socket: Use socket.c instead of winsock.c.
5846         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
5847         * doc/posix-functions/accept.texi: Doc fix.
5848         * doc/posix-functions/bind.texi: Doc fix.
5849         * doc/posix-functions/close.texi: Doc fix.
5850         * doc/posix-functions/connect.texi: Doc fix.
5851         * doc/posix-functions/getpeername.texi: Doc fix.
5852         * doc/posix-functions/getsockname.texi: Doc fix.
5853         * doc/posix-functions/getsockopt.texi: Doc fix.
5854         * doc/posix-functions/ioctl.texi: Doc fix.
5855         * doc/posix-functions/listen.texi: Doc fix.
5856         * doc/posix-functions/recv.texi: Doc fix.
5857         * doc/posix-functions/recvfrom.texi: Doc fix.
5858         * doc/posix-functions/send.texi: Doc fix.
5859         * doc/posix-functions/sendto.texi: Doc fix.
5860         * doc/posix-functions/setsockopt.texi: Doc fix.
5861         * doc/posix-functions/shutdown.texi: Doc fix.
5862         * doc/posix-functions/socket.texi: Doc fix.
5863
5864 2008-10-20  Bruno Haible  <bruno@clisp.org>
5865
5866         Take into account the role of SIGABRT_COMPAT on Windows 2008.
5867         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
5868         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
5869         as an alias for SIGABRT.
5870         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
5871         (sigaction): Map it to SIGABRT.
5872         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
5873
5874 2008-10-20  Bruno Haible  <bruno@clisp.org>
5875
5876         * lib/fts.c: Don't include lstat.h.
5877         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
5878
5879         Move the lstat() declaration to <sys/stat.h>.
5880         * lib/lstat.h: Remove file.
5881         * lib/sys_stat.in.h: Add special invocation convention.
5882         (lstat): New declaration.
5883         * lib/lstat.c (orig_lstat): New function.
5884         (rpl_lstat): Use orig_lstat instead of lstat.
5885         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
5886         AC_C_INLINE. Set REPLACE_LSTAT.
5887         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
5888         and REPLACE_LSTAT.
5889         * modules/lstat (Files): Remove lib/lstat.h.
5890         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
5891         (Include): Specify <sys/stat.h> instead of lstat.h.
5892         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
5893         REPLACE_LSTAT.
5894         * NEWS: Mention the change.
5895
5896 2008-10-20  Bruno Haible  <bruno@clisp.org>
5897
5898         * modules/posix_spawn-tests: New file.
5899         * tests/test-posix_spawn3.c: New file.
5900
5901 2008-10-20  Bruno Haible  <bruno@clisp.org>
5902
5903         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
5904         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
5905         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
5906         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
5907         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
5908
5909 2008-10-20  Bruno Haible  <bruno@clisp.org>
5910
5911         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
5912         of posix_spawn on AIX 5.3.
5913
5914 2008-10-20  Bruno Haible  <bruno@clisp.org>
5915
5916         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
5917
5918 2008-10-20  Bruno Haible  <bruno@clisp.org>
5919
5920         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
5921         of AC_LANG_PROGRAM.
5922
5923 2008-10-20  Simon Josefsson  <simon@josefsson.org>
5924
5925         * lib/netdb.in.h: Don't define GNU specific constants until they
5926         are supported or needed.  Reported by Bruno Haible
5927         <bruno@clisp.org>.
5928
5929 2008-10-20  Simon Josefsson  <simon@josefsson.org>
5930
5931         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
5932
5933 2008-10-20  Simon Josefsson  <simon@josefsson.org>
5934
5935         * lib/getaddrinfo.h: Remove file.
5936         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
5937         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
5938         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
5939         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
5940         * modules/netdb: Substitute GNULIB_GETADDRINFO.
5941         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
5942         * tests/test-getaddrinfo.c: Likewise.
5943         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
5944         * NEWS: Mention change.
5945
5946 2008-10-19  Bruno Haible  <bruno@clisp.org>
5947
5948         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
5949
5950 2008-10-19  Bruno Haible  <bruno@clisp.org>
5951
5952         * lib/wait-process.c: Include simply <sys/wait.h>.
5953         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
5954         WIFSTOPPED): Remove fallback definitions.
5955         * modules/wait-process (Depends-on): Add sys_wait.
5956
5957         New module 'sys_wait'.
5958         * modules/sys_wait: New file.
5959         * lib/sys_wait.in.h: New file, partially copied from
5960         lib/wait-process.c.
5961         * m4/sys_wait_h.m4: New file.
5962         * doc/posix-headers/sys_wait.texi: Mention the new module.
5963
5964 2008-10-19  Bruno Haible  <bruno@clisp.org>
5965
5966         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
5967
5968 2008-10-19  Bruno Haible  <bruno@clisp.org>
5969
5970         Assume that waitpid() fills an 'int' status, not a 'union wait'.
5971         * lib/wait-process.c (WAIT_T): Remove type.
5972         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
5973         (wait_subprocess): Update.
5974
5975 2008-10-19  Bruno Haible  <bruno@clisp.org>
5976
5977         New module 'atoll'.
5978         * modules/atoll: New file.
5979         * lib/stdlib.in.h (atoll): New declaration.
5980         * lib/atoll.c: New file, from glibc with modifications.
5981         * m4/atoll.m4: New file.
5982         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
5983         HAVE_ATOLL.
5984         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
5985         * doc/posix-functions/atoll.texi: Mention the new module.
5986
5987 2008-10-19  Bruno Haible  <bruno@clisp.org>
5988
5989         Add strtoull() declaration to <stdlib.h>.
5990         * lib/stdlib.in.h (strtoull): New declaration.
5991         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
5992         Set HAVE_STRTOULL.
5993         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
5994         HAVE_STRTOULL.
5995         * modules/strtoull (Depends-on): Add stdlib.
5996         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5997         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
5998         HAVE_STRTOULL.
5999
6000 2008-10-19  Bruno Haible  <bruno@clisp.org>
6001
6002         Add strtoll() declaration to <stdlib.h>.
6003         * lib/stdlib.in.h (strtoll): New declaration.
6004         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
6005         Set HAVE_STRTOLL.
6006         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
6007         HAVE_STRTOLL.
6008         * modules/strtoll (Depends-on): Add stdlib.
6009         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6010         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
6011
6012 2008-10-19  Bruno Haible  <bruno@clisp.org>
6013
6014         * modules/bcopy (Depends-on): Add strings.
6015         (Include): Specify <strings.h>.
6016
6017 2008-10-19  Bruno Haible  <bruno@clisp.org>
6018
6019         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
6020
6021 2008-10-19  Bruno Haible  <bruno@clisp.org>
6022
6023         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
6024         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
6025         mingw.
6026
6027 2008-10-19  Bruno Haible  <bruno@clisp.org>
6028
6029         * lib/atanl.c: Don't include isnanl.h.
6030         * lib/cosl.c: Likewise.
6031         * lib/ldexpl.c: Likewise.
6032         * lib/logl.c: Likewise.
6033         * lib/sinl.c: Likewise.
6034         * lib/sqrtl.c: Likewise.
6035         * lib/tanl.c: Likewise.
6036
6037         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
6038         * lib/isnanf.h: Remove file.
6039         * lib/isnand.h: Remove file.
6040         * lib/isnanl.h: Remove file.
6041         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
6042         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
6043         macros.
6044         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
6045         HAVE_ISNANF, don't define it as a C macro.
6046         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
6047         HAVE_ISNAND, don't define it as a C macro.
6048         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
6049         HAVE_ISNANL, don't define it as a C macro.
6050         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
6051         HAVE_ISNAN[FDL].
6052         * modules/isnanf (Files): Remove lib/isnanf.h.
6053         (Depends-on): Add math.
6054         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6055         (Include): Specify <math.h> instead of isnanf.h.
6056         * modules/isnand (Files): Remove lib/isnand.h.
6057         (Depends-on): Add math.
6058         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6059         (Include): Specify <math.h> instead of isnand.h.
6060         * modules/isnanl (Files): Remove lib/isnanl.h.
6061         (Depends-on): Add math.
6062         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
6063         (Include): Specify <math.h> instead of isnanl.h.
6064         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
6065         HAVE_ISNAN[FDL].
6066         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
6067         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
6068         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
6069         * NEWS: Mention the change.
6070
6071 2008-10-18  Bruno Haible  <bruno@clisp.org>
6072
6073         Add getusershell(), setusershell(), endusershell() declarations to
6074         <unistd.h>.
6075         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
6076         declarations.
6077         * lib/getusershell.c: Include unistd.h.
6078         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
6079         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
6080         HAVE_GETUSERSHELL.
6081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
6082         and HAVE_GETUSERSHELL.
6083         * modules/getusershell (Depends-on): Add unistd, extensions.
6084         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6085         (Include): Specify <unistd.h>.
6086         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
6087         HAVE_GETUSERSHELL.
6088
6089 2008-10-18  Bruno Haible  <bruno@clisp.org>
6090
6091         Add a getloadavg() declaration to <stdlib.h>.
6092         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
6093         getloadavg declaration.
6094         (getloadavg): New declaration.
6095         * lib/getloadavg.c: Include <stdlib.h> first.
6096         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
6097         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
6098         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
6099         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
6100         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
6101         * modules/getloadavg (Depends-on): Add stdlib, extensions.
6102         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6103         (Include): Specify <stdlib.h>.
6104         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
6105         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
6106
6107 2008-10-18  Bruno Haible  <bruno@clisp.org>
6108
6109         * lib/dirchownmod.c: Don't include lchmod.h.
6110
6111         Move the lchmod() declaration to <sys/stat.h>.
6112         * lib/lchmod.h: Remove file.
6113         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
6114         (lchmod): New declaration, moved here from lib/lchown.h.
6115         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
6116         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
6117         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
6118         and HAVE_LCHMOD.
6119         * modules/lchmod (Files): Remove lib/lchmod.h.
6120         (Depends-on): Add sys_stat, extensions.
6121         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
6122         (Include): Specify <sys/stat.h> instead of lchmod.h.
6123         * modules/sys_stat (Depends-on): Add link-warning.
6124         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
6125         definition of GL_LINK_WARNING.
6126         * NEWS: Mention the change.
6127
6128 2008-10-18  Bruno Haible  <bruno@clisp.org>
6129
6130         * lib/fchdir.c: Don't include dirfd.h.
6131         * lib/fts.c: Likewise.
6132         * lib/getcwd.c: Likewise.
6133         * lib/glob.c: Likewise.
6134
6135         Move the dirfd() declaration to <dirent.h>.
6136         * lib/dirfd.h: Remove file.
6137         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
6138         (dirfd): New declaration.
6139         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
6140         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
6141         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
6142         HAVE_DECL_DIRFD.
6143         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
6144         HAVE_DECL_DIRFD.
6145         * modules/dirfd (Files): Remove lib/dirfd.h.
6146         (Depends-on): Add dirent, extensions.
6147         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
6148         (Include): Specify <dirent.h> instead of dirfd.h.
6149         * modules/dirent (Depends-on): Add link-warning.
6150         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
6151         definition of GL_LINK_WARNING.
6152         * NEWS: Mention the change.
6153
6154 2008-10-18  Bruno Haible  <bruno@clisp.org>
6155
6156         Move the euidaccess() declaration to <unistd.h>.
6157         * lib/euidaccess.h: Remove file.
6158         * lib/unistd.in.h (euidaccess): New declaration.
6159         * lib/euidaccess.c: Don't include euidaccess.h.
6160         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
6161         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
6162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
6163         and HAVE_EUIDACCESS.
6164         * modules/euidaccess (Files): Remove lib/euidaccess.h.
6165         (Depends-on): Add unistd.
6166         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6167         (Include): Specify <unistd.h> instead of euidaccess.h.
6168         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
6169         HAVE_EUIDACCESS.
6170         * NEWS: Mention the change.
6171
6172 2008-10-18  Bruno Haible  <bruno@clisp.org>
6173
6174         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
6175
6176         Move the getdomainname() declaration to <unistd.h>.
6177         * lib/getdomainname.h: Remove file.
6178         * lib/unistd.in.h (getdomainname): New declaration.
6179         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
6180         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
6181         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
6182         HAVE_GETDOMAINNAME.
6183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6184         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
6185         * modules/getdomainname (Files): Remove lib/getdomainname.h.
6186         (Depends-on): Add unistd, extensions.
6187         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6188         (Includes): Specify <unistd.h> instead of getdomainname.h.
6189         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
6190         HAVE_GETDOMAINNAME.
6191         * NEWS: Mention the change.
6192
6193 2008-10-18  Bruno Haible  <bruno@clisp.org>
6194
6195         * modules/dirent: New file.
6196         * m4/dirent_h.m4: New file.
6197         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
6198         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
6199         * modules/fchdir (Files): Remove lib/dirent.in.h.
6200         (Depends-on): Add dirent.
6201         (Makefile.am): Move rules to modules/dirent.
6202         * doc/posix-headers/dirent.texi: Mention the new module.
6203
6204 2008-10-18  Bruno Haible  <bruno@clisp.org>
6205
6206         Avoid -Wunused-parameter warnings in public gnulib header files.
6207         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
6208         macro.
6209         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
6210
6211 2008-10-18  Bruno Haible  <bruno@clisp.org>
6212
6213         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
6214         * doc/glibc-functions/error.texi: Mention the module 'error'.
6215         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
6216         * doc/glibc-functions/getdomainname.texi: Mention the module
6217         'getdomainname'.
6218         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
6219         * doc/glibc-functions/getpagesize.texi: Mention the module
6220         'getpagesize'.
6221         * doc/glibc-functions/getusershell.texi: Mention the module
6222         'getusershell'.
6223         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
6224         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
6225         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
6226         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
6227         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
6228         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
6229         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
6230         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
6231         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
6232         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
6233         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
6234         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
6235         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
6236         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
6237
6238 2008-10-17  Bruno Haible  <bruno@clisp.org>
6239
6240         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
6241         HP-UX and IRIX, use -0.0L.
6242         * tests/test-ceill.c (minus_zero): Likewise.
6243         * tests/test-floorl.c (minus_zero): Likewise.
6244         * tests/test-frexpl.c (minus_zero): Likewise.
6245         * tests/test-isnan.c (minus_zerol): Likewise.
6246         * tests/test-isnanl.h (minus_zero): Likewise.
6247         * tests/test-ldexpl.c (minus_zero): Likewise.
6248         * tests/test-roundl.c (minus_zero): Likewise.
6249         * tests/test-signbit.c (minus_zerol): Likewise.
6250         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
6251         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
6252         * tests/test-truncl.c (minus_zero): Likewise.
6253         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
6254         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
6255         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
6256         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
6257
6258 2008-10-17  Bruno Haible  <bruno@clisp.org>
6259
6260         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
6261         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
6262         that it gets activated only for gcc >= 3.0.
6263         * lib/dirent.in.h: Likewise.
6264         * lib/errno.in.h: Likewise.
6265         * lib/fcntl.in.h: Likewise.
6266         * lib/float.in.h: Likewise.
6267         * lib/iconv.in.h: Likewise.
6268         * lib/inttypes.in.h: Likewise.
6269         * lib/locale.in.h: Likewise.
6270         * lib/math.in.h: Likewise.
6271         * lib/netdb.in.h: Likewise.
6272         * lib/netinet_in.in.h: Likewise.
6273         * lib/search.in.h: Likewise.
6274         * lib/signal.in.h: Likewise.
6275         * lib/spawn.in.h: Likewise.
6276         * lib/stdarg.in.h: Likewise.
6277         * lib/stdint.in.h: Likewise.
6278         * lib/stdio.in.h: Likewise.
6279         * lib/stdlib.in.h: Likewise.
6280         * lib/string.in.h: Likewise.
6281         * lib/strings.in.h: Likewise.
6282         * lib/sys_file.in.h: Likewise.
6283         * lib/sys_ioctl.in.h: Likewise.
6284         * lib/sys_select.in.h: Likewise.
6285         * lib/sys_socket.in.h: Likewise.
6286         * lib/sys_stat.in.h: Likewise.
6287         * lib/sys_time.in.h: Likewise.
6288         * lib/sysexits.in.h: Likewise.
6289         * lib/time.in.h: Likewise.
6290         * lib/unistd.in.h: Likewise.
6291         * lib/wchar.in.h: Likewise.
6292         * lib/wctype.in.h: Likewise.
6293         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
6294
6295 2008-10-17  Jim Meyering  <meyering@redhat.com>
6296
6297         ignore-value: don't depend on inline module
6298         * modules/ignore-value (Depends-on): Remove 'inline'.
6299         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
6300         Suggestion from Bruno Haible.
6301
6302 2008-10-17  Bruno Haible  <bruno@clisp.org>
6303
6304         New implementation of condition variables for Win32.
6305         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
6306         (gl_linked_waitqueue_t): New type.
6307         (gl_cond_t): Use it.
6308         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
6309         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
6310         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
6311         (glthread_cond_init_func, glthread_cond_wait_func,
6312         glthread_cond_timedwait_func, glthread_cond_signal_func,
6313         glthread_cond_broadcast_func, glthread_cond_destroy_func):
6314         Reimplemented on the basis of gl_linked_waitqueue_t.
6315         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
6316         gl_waitqueue_t.
6317         (gl_rwlock_t): Update.
6318         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
6319
6320 2008-10-17  Simon Josefsson  <simon@josefsson.org>
6321
6322         * modules/recvfrom (Depends-on): Add dependency on getpeername.
6323         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
6324
6325 2008-10-17  Jim Meyering  <meyering@redhat.com>
6326
6327         ignore-value: new module
6328         * modules/ignore-value: New file.
6329         * lib/ignore-value.h: New file.
6330         * MODULES.html.sh (Compiler warning management): New section,
6331         just for this module.  More to come.
6332
6333 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
6334
6335         open-safer.c: avoid 'signed and unsigned in conditional...' warning
6336         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
6337         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
6338
6339 2008-10-16  Jim Meyering  <meyering@redhat.com>
6340
6341         openat-die.c: avoid 'no previous prototype' warning
6342         * lib/openat-die.c: Include "openat.h".
6343         Reported by Reuben Thomas <rrt@sc3d.org>.
6344
6345 2008-10-16  Simon Josefsson  <simon@josefsson.org>
6346
6347         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
6348         * lib/netdb.in.h: Fix typo.
6349         Reported by Bruno Haible  <bruno@clisp.org>
6350
6351         * lib/netdb.in.h: Include sys/socket.h for platforms without
6352         netdb.h, to get structures like hostent on MinGW.
6353         * modules/netdb (Depends-on): Add sys_socket.
6354
6355 2008-10-15  Simon Josefsson  <simon@josefsson.org>
6356
6357         * modules/netdb, modules/netdb-tests: New file.
6358         * m4/netdb_h.m4: New file.
6359         * lib/netdb.in.h: Add, currently just an empty file pending
6360         definitions.
6361         * tests/test-netdb.c: New file.
6362         * doc/posix-headers/netdb.texi: Mention that we replace it if
6363         needed.
6364         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
6365         netdb.
6366
6367 2008-10-15  Simon Josefsson  <simon@josefsson.org>
6368
6369         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
6370         with code.
6371
6372 2008-10-13  Bruno Haible  <bruno@clisp.org>
6373
6374         * lib/glthread/cond.c (glthread_cond_wait_func,
6375         glthread_cond_timedwait_func): Add a comment.
6376
6377 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
6378
6379         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
6380         * tests/test-select.c: Likewise,
6381
6382 2008-10-13  Bruno Haible  <bruno@clisp.org>
6383
6384         * lib/glthread/cond.c (glthread_cond_wait_func,
6385         glthread_cond_timedwait_func): Fix variable name.
6386         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
6387
6388 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
6389
6390         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
6391         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
6392         struct sockaddr.sa_len.
6393         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
6394
6395 2008-10-13  Simon Josefsson  <simon@josefsson.org>
6396
6397         * build-aux/pmccabe2html: Add css and css_url parameters.
6398
6399 2008-10-12  Bruno Haible  <bruno@clisp.org>
6400
6401         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
6402         calling aclx_get.
6403         Reported by Rainer Tammer <tammer@tammer.net>.
6404
6405 2008-10-12  Bruno Haible  <bruno@clisp.org>
6406
6407         Use msvcrt aware primitives for creation/termination of Win32 threads.
6408         * lib/glthread/thread.c: Include <process.h>.
6409         (glthread_create_func): Use _beginthreadex instead of CreateThread.
6410         (wrapper_func): Update signature.
6411         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
6412
6413 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
6414             Bruno Haible  <bruno@clisp.org>
6415
6416         Provide a Win32 implementation of the 'cond' module.
6417         * lib/glthread/cond.h [USE_WIN32]: New implementation.
6418         * lib/glthread/cond.c (glthread_cond_init_func,
6419         glthread_cond_wait_func, glthread_cond_timedwait_func,
6420         glthread_cond_signal_func, glthread_cond_broadcast_func,
6421         glthread_cond_destroy_func) [USE_WIN32]: New functions.
6422         * modules/cond (Dependencies): Add gettimeofday.
6423
6424 2008-10-11  Bruno Haible  <bruno@clisp.org>
6425
6426         Make sleep work on older versions of mingw.
6427         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
6428         only whether it exists.
6429         * doc/posix-functions/sleep.texi: Mention the problem with older
6430         versions of mingw.
6431
6432 2008-10-11  Bruno Haible  <bruno@clisp.org>
6433
6434         New module 'shutdown'.
6435         * modules/shutdown: New file.
6436         * lib/sys_socket.in.h (shutdown): New declaration.
6437         * lib/winsock.c (shutdown): New function.
6438         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
6439         GNULIB_SHUTDOWN.
6440         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
6441         * doc/posix-functions/shutdown.texi: Document the new module.
6442
6443 2008-10-11  Jim Meyering  <meyering@redhat.com>
6444
6445         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
6446
6447 2008-10-11  Bruno Haible  <bruno@clisp.org>
6448
6449         New module 'fclose'.
6450         * modules/fclose: New file.
6451         * lib/stdio.in.h (fclose): New declaration.
6452         * lib/fclose.c: New file.
6453         * m4/fclose.m4: New file.
6454         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
6455         REPLACE_FCLOSE.
6456         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
6457         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
6458         REPLACE_FCLOSE.
6459         * modules/close (Depends-on): fclose.
6460         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
6461
6462 2008-10-11  Bruno Haible  <bruno@clisp.org>
6463
6464         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
6465         set errno and don't call _close.
6466
6467 2008-10-10  Bruno Haible  <bruno@clisp.org>
6468
6469         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
6470         ACL, not afterwards. Fixes test failure on Cygwin.
6471
6472 2008-10-09  Ben Pfaff  <blp@gnu.org>
6473
6474         * build-aux/announce-gen: Fix gnulib version related part of usage
6475         message.  Die with a useful error message if no tarballs are
6476         found.
6477
6478 2008-10-10  Jim Meyering  <meyering@redhat.com>
6479
6480         bootstrap: use git's --depth=N option only if it's supported
6481         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
6482         recognize the --depth option.  Reported by Pádraig Brady.
6483
6484 2008-10-09  Bruno Haible  <bruno@clisp.org>
6485
6486         New module 'ioctl'.
6487         * modules/ioctl: New file.
6488         * lib/sys_socket.in.h (ioctl): Remove declaration.
6489         * lib/winsock.c: Include <sys/ioctl.h>.
6490         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
6491         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
6492         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
6493         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
6494         * doc/posix-functions/ioctl.texi: Mention the new module.
6495
6496 2008-10-09  Bruno Haible  <bruno@clisp.org>
6497
6498         New module 'sys_ioctl'.
6499         * lib/sys_ioctl.in.h: New file.
6500         * m4/sys_ioctl_h.m4: New file.
6501         * modules/sys_ioctl: New file.
6502         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
6503
6504 2008-10-09  Bruno Haible  <bruno@clisp.org>
6505
6506         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
6507         * lib/winsock.c: Include <stdarg.h>.
6508         (rpl_ioctl): Change to second argument 'int' and then varargs.
6509
6510 2008-10-09  Bruno Haible  <bruno@clisp.org>
6511
6512         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
6513         when the sys_socket module is present and the system has <winsock2.h>.
6514
6515 2008-10-09  Bruno Haible  <bruno@clisp.org>
6516
6517         * doc/posix-functions/close.texi: Mention module 'close' instead of
6518         module 'sys_socket'.
6519
6520 2008-10-09  Bruno Haible  <bruno@clisp.org>
6521
6522         * doc/glibc-headers/sys_ioctl.texi: New file.
6523         * doc/gnulib.texi: Include it.
6524
6525 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6526             Bruno Haible  <bruno@clisp.org>
6527
6528         Combine the two replacements of 'close'.
6529         * lib/sys_socket.in.h (close): Define to a reminder to include
6530         <unistd.h>.
6531         (_gl_close_fd_maybe_socket): New declaration.
6532         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
6533         * lib/winsock.c (close): Remove undefinition.
6534         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
6535         needed for the gnulib module 'close'.
6536         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
6537         define to an error symbol or to a warning, if suitable.
6538         * lib/close.c: Include <sys/socket.h>.
6539         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
6540         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
6541         UNISTD_H_HAVE_WINSOCK2_H.
6542         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
6543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6544         UNISTD_H_HAVE_WINSOCK2_H.
6545         * modules/sys_socket (Files): Add m4/unistd_h.m4.
6546         (configure.ac): Set a module indicator.
6547         (Makefile.am): Substitute GNULIB_CLOSE.
6548         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
6549         * modules/poll-tests (Depends-on): Add close.
6550         * modules/select-tests (Depends-on): Likewise.
6551
6552 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6553             Bruno Haible  <bruno@clisp.org>
6554
6555         New module 'close'.
6556         * modules/close: New file.
6557         * lib/unistd.in.h (close): Move declaration out of the
6558         FCHDIR_REPLACEMENT scope.
6559         (_gl_unregister_fd): New declaration.
6560         * lib/close.c: New file.
6561         * lib/fchdir.c (rpl_close): Remove function.
6562         * m4/close.m4: New file.
6563         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
6564         close.
6565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
6566         REPLACE_CLOSE.
6567         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
6568         REPLACE_CLOSE.
6569         * modules/fchdir (Depends-on): Add close.
6570
6571 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6572             Bruno Haible  <bruno@clisp.org>
6573
6574         * lib/fcntl.in.h (open): Simplify conditionals.
6575         (_gl_register_fd): New declaration.
6576         * lib/fchdir.c (rpl_open): Remove function.
6577         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
6578         also.
6579         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
6580         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
6581         open.
6582
6583 2008-10-09  Jim Meyering  <meyering@redhat.com>
6584
6585         GNUmakefile: use the more name-space-friendly "_version"
6586         * top/GNUmakefile (_dummy): Update.
6587         (_version): Rename from "version".
6588
6589 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6590             Bruno Haible  <bruno@clisp.org>
6591
6592         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
6593         rpl_close.
6594         (_gl_register_fd): New function, extracted from rpl_open.
6595         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
6596         (rpl_open, rpl_opendir): Use _gl_register_fd.
6597
6598 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6599
6600         Fix organization of 'open' replacement.
6601         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
6602         (gl_FUNC_OPEN): Use it.
6603         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
6604
6605 2008-10-08  Bruno Haible  <bruno@clisp.org>
6606
6607         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
6608
6609 2008-10-08  Simon Josefsson  <simon@josefsson.org>
6610
6611         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
6612         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
6613         listen).
6614
6615 2008-10-08  Eric Blake  <ebb9@byu.net>
6616
6617         GNUmakefile: add 'make version' target
6618         * top/GNUmakefile (_curr-ver): Split version update rules...
6619         (version): ...into a target.
6620
6621 2008-10-07  Bruno Haible  <bruno@clisp.org>
6622
6623         Use a more portable replacement expression for -0.0L.
6624         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
6625         instead of -0.0L. Fix m4 quotation.
6626
6627         * tests/test-signbit.c: Include <float.h>.
6628         (minus_zero): New variable.
6629         (test_signbitl): Use minus_zero instead of -zero.
6630         * modules/signbit-tests (Depends-on): Add float.
6631
6632         * tests/test-ceill.c: Include <float.h>.
6633         (zero): Remove variable.
6634         (minus_zero): New variable.
6635         (main): Use minus_zero instead of -zero.
6636         * modules/ceill-tests (Depends-on): Add float.
6637
6638         * tests/test-floorl.c: Include <float.h>.
6639         (zero): Remove variable.
6640         (minus_zero): New variable.
6641         (main): Use minus_zero instead of -zero.
6642         * modules/floorl-tests (Depends-on): Add float.
6643
6644         * tests/test-roundl.c: Include <float.h>.
6645         (zero): Remove variable.
6646         (minus_zero): New variable.
6647         (main): Use minus_zero instead of -zero.
6648         * modules/roundl-tests (Depends-on): Add float.
6649
6650         * tests/test-truncl.c: Include <float.h>.
6651         (zero): Remove variable.
6652         (minus_zero): New variable.
6653         (main): Use minus_zero instead of -zero.
6654         * modules/truncl-tests (Depends-on): Add float.
6655
6656         * tests/test-frexpl.c (zero): Remove variable.
6657         (minus_zero): New variable.
6658         (main): Use minus_zero instead of -zero.
6659         * modules/frexpl-tests (Depends-on): Add float.
6660
6661         * tests/test-isnan.c (zerol): Remove variable.
6662         (minus_zerol): New variable.
6663         (test_long_double): Use minus_zerol instead of -zerol.
6664         * modules/isnan-tests (Depends-on): Add float.
6665
6666         * tests/test-isnanl.h (zero): Remove variable.
6667         (minus_zero): New variable.
6668         (main): Use minus_zero instead of -zero.
6669         * modules/isnanl-nolibm-tests (Depends-on): Add float.
6670         * modules/isnanl-tests (Depends-on): Add float.
6671
6672         * tests/test-ldexpl.c (zero): Remove variable.
6673         (minus_zero): New variable.
6674         (main): Use minus_zero instead of -zero.
6675         * modules/ldexpl-tests (Depends-on): Add float.
6676
6677         * tests/test-snprintf-posix.h (zerol): Remove variable.
6678         (minus_zerol): New variable.
6679         (test_function): Use minus_zerol instead of -zerol.
6680         * modules/snprintf-posix-tests (Depends-on): Add float.
6681         * modules/vsnprintf-posix-tests (Depends-on): Add float.
6682
6683         * tests/test-sprintf-posix.h (zerol): Remove variable.
6684         (minus_zerol): New variable.
6685         (test_function): Use minus_zerol instead of -zerol.
6686         * modules/sprintf-posix-tests (Depends-on): Add float.
6687         * modules/vsprintf-posix-tests (Depends-on): Add float.
6688
6689         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
6690         (minus_zerol): New variable.
6691         (test_function): Use minus_zerol instead of -zerol.
6692         * modules/vasnprintf-posix-tests (Depends-on): Add float.
6693
6694         * tests/test-vasprintf-posix.c (zerol): Remove variable.
6695         (minus_zerol): New variable.
6696         (test_function): Use minus_zerol instead of -zerol.
6697         * modules/vasprintf-posix-tests (Depends-on): Add float.
6698
6699 2008-10-07  Simon Josefsson  <simon@josefsson.org>
6700
6701         * MODULES.html.sh (Support for building documentation): Mention
6702         pmccabe2html.  Sort entries.
6703
6704         Add pmccabe2html module, from gnupdf.
6705         * build-aux/pmccabe.css: New file.
6706         * build-aux/pmccabe2html: New file.
6707         * m4/pmccabe2html.m4: New file.
6708         * modules/pmccabe2html: New file.
6709
6710 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
6711
6712         flock: new module
6713         * MODULES.html.sh: Add to list of modules.
6714         * lib/flock.c: flock implementation for Windows and Unix systems
6715         which have fcntl.
6716         * doc/glibc-functions/flock.texi: Update documentation.
6717         * lib/sys_file.in.h: <sys/file.h> header file.
6718         * m4/flock.m4: M4 macros.
6719         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
6720         * modules/flock: flock module.
6721         * modules/flock-tests: flock tests module.
6722         * modules/sys_file: sys/file.h module.
6723         * tests/test-flock.c: test suite for flock.
6724
6725 2008-10-06  Jim Meyering  <meyering@redhat.com>
6726
6727         bootstrap: check for LT_INIT more portably still ;-)
6728         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
6729         Spotted by Bruno Haible.
6730
6731 2008-10-06  Eric Blake  <ebb9@byu.net>
6732
6733         test-signbit: avoid tripping Irix cc bug on -0.0L
6734         * tests/test-signbit.c (minus_zerol): Delete, and replace with
6735         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
6736         entire testsuite consistent and avoids an Irix 6.2 bug.
6737
6738 2008-10-05  Bruno Haible  <bruno@clisp.org>
6739             Jim Meyering  <jim@meyering.net>
6740
6741         Add an option for ignoring EPIPE during close_stdout.
6742         * lib/closeout.h: Include <stdbool.h>.
6743         (close_stdout_set_ignore_EPIPE): New declaration.
6744         * lib/closeout.c: Include <stdbool.h>.
6745         (ignore_EPIPE): New variable.
6746         (close_stdout_set_ignore_EPIPE): New function.
6747         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
6748         * lib/close-stream.c (close_stream): Mention the possible EPIPE
6749         failure.
6750         * modules/closeout (Depends-on): Add stdbool.
6751
6752 2008-10-05  Bruno Haible  <bruno@clisp.org>
6753
6754         * modules/accept: New file.
6755         * modules/bind: New file.
6756         * modules/connect: New file.
6757         * modules/getpeername: New file.
6758         * modules/getsockname: New file.
6759         * modules/getsockopt: New file.
6760         * modules/listen: New file.
6761         * modules/recv: New file.
6762         * modules/recvfrom: New file.
6763         * modules/send: New file.
6764         * modules/sendto: New file.
6765         * modules/setsockopt: New file.
6766         * modules/socket: New file.
6767         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
6768         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6769         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
6770         the particular module is requested. Add a link warning when the
6771         particular module is not requested.
6772         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
6773         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
6774         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
6775         the particular module is requested.
6776         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
6777         gl_SYS_SOCKET_H_DEFAULTS): New macros.
6778         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
6779         * modules/sys_socket (Depends-on): Add link-warning.
6780         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
6781         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
6782         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
6783         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
6784         GL_LINK_WARNING.
6785         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
6786         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
6787         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
6788         * doc/posix-functions/getpeername.texi: Mention the new module
6789         'getpeername'.
6790         * doc/posix-functions/getsockname.texi: Mention the new module
6791         'getsockname'.
6792         * doc/posix-functions/getsockopt.texi: Mention the new module
6793         'getsockopt'.
6794         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
6795         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
6796         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
6797         * doc/posix-functions/send.texi: Mention the new module 'send'.
6798         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
6799         * doc/posix-functions/setsockopt.texi: Mention the new module
6800         'setsockopt'.
6801         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
6802         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
6803         listen, connect, accept.
6804         * modules/select-tests (Depends-on): Likewise.
6805
6806 2008-10-05  Bruno Haible  <bruno@clisp.org>
6807
6808         * lib/winsock.c (strerror): Remove unused #undef.
6809         (rpl_close): Remove unused local variable.
6810
6811         * modules/sys_socket (Depends-on); Add errno.
6812
6813 2008-10-05  Bruno Haible  <bruno@clisp.org>
6814
6815         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
6816         (select): Add a link warning when the 'select' module is not used.
6817         * modules/sys_select (Depends-on): Add link-warning.
6818         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
6819         Suggested by Paolo Bonzini.
6820
6821 2008-10-05  Jim Meyering  <meyering@redhat.com>
6822
6823         bootstrap: check for LT_INIT more portably
6824         * build-aux/bootstrap: Avoid using grep -E, since it's not
6825         portable enough.  Suggestion from Bruno Haible.
6826
6827 2008-10-05  Bruno Haible  <bruno@clisp.org>
6828
6829         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
6830         as being fixed by gnulib.
6831
6832 2008-10-05  Bruno Haible  <bruno@clisp.org>
6833
6834         * modules/select-tests: New file, mostly copied from
6835         modules/sys_select-tests.
6836         * tests/test-select.c: New file, mostly copied from
6837         tests/test-sys_select.c.
6838         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
6839         * modules/sys_select-tests (Depends-on): Remove all dependencies.
6840         (Makefile.am): Remove test_sys_select_LDADD.
6841
6842         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
6843         to an undefined symbol, for an error message.
6844         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
6845         (gl_SYS_SELECT_H_DEFAULTS): New macro.
6846         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
6847         winsock-select.c here.
6848         * modules/sys_select (Files): Remove lib/winsock-select.c.
6849         (Depends-on): Remove alloca.
6850         (Makefile.am): Substitute GNULIB_SELECT.
6851         * modules/select: New file.
6852         * doc/posix-functions/select.texi: Update.
6853
6854 2008-10-05  Bruno Haible  <bruno@clisp.org>
6855
6856         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
6857         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
6858         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
6859         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
6860         getdtablesize.
6861         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
6862         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
6863
6864 2008-10-05  Bruno Haible  <bruno@clisp.org>
6865
6866         * modules/getdtablesize-tests: New file.
6867         * tests/test-getdtablesize.c: New file.
6868
6869         New module 'getdtablesize'.
6870         * lib/unistd.in.h (getdtablesize): New declaration.
6871         * lib/getdtablesize.c: New file.
6872         * m4/getdtablesize.m4: New file.
6873         * modules/getdtablesize: New file.
6874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6875         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
6876         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
6877         HAVE_GETDTABLESIZE.
6878         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
6879
6880 2008-10-05  Bruno Haible  <bruno@clisp.org>
6881
6882         * modules/sched (Makefile.am): Fix typo.
6883         Reported by Simon Josefsson.
6884
6885 2008-10-05  Jim Meyering  <meyering@redhat.com>
6886
6887         bootstrap: check for LT_INIT, too
6888         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
6889         are deprecated.  Suggestion from Ralf Wildenhues.
6890
6891 2008-10-05  Bruno Haible  <bruno@clisp.org>
6892
6893         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
6894         overriding them by ours.
6895         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
6896
6897 2008-10-05  Jim Meyering  <meyering@redhat.com>
6898
6899         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
6900         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
6901         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
6902
6903 2008-10-04  Bruno Haible  <bruno@clisp.org>
6904
6905         * modules/dup2 (License): Change to LGPLv2+.
6906         * modules/sleep (License): Likewise.
6907         * modules/perror (License): Likewise.
6908         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
6909         Blake.
6910         * modules/signal (License): Likewise.
6911         * modules/sigprocmask (License): Likewise.
6912         * modules/raise (License): Change to LGPLv2+, with approval by Jim
6913         Meyering.
6914
6915 2008-10-04  Bruno Haible  <bruno@clisp.org>
6916
6917         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
6918         Reported by Rainer Tammer <tammer@tammer.net>.
6919
6920 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
6921             Bruno Haible  <bruno@clisp.org>
6922
6923         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
6924         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
6925         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
6926
6927 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
6928
6929         filevercmp: new module
6930         * lib/filevercmp.h: New function filevercmp comparing version strings.
6931         * lib/filevercmp.c: Implementation of filevercmp function.
6932         * modules/filevercmp: Module metadata.
6933         * tests/test-filevercmp.c: Unit test for new module.
6934         * modules/filevercmp-tests: Unit test metadata.
6935         * MODULES.html.sh: Add filevercmp module.
6936
6937 2008-10-03  Bruno Haible  <bruno@clisp.org>
6938
6939         * lib/c-ctype.h: Add comment.
6940         Reported by Jim Meyering.
6941
6942 2008-10-02  Bruno Haible  <bruno@clisp.org>
6943
6944         * modules/posix_spawn-internal (Depends-on): Add 'open'.
6945
6946 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
6947
6948         * build-aux/bootstrap: Allow renaming bootstrap, and change the
6949         name of bootstrap.conf accordingly.
6950
6951 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
6952
6953         * build-aux/bootstrap: Install git-merge-changelog configuration
6954         items into .gitconfig if needed.
6955
6956 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
6957
6958         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
6959         git repository, and initialize/update it accordingly.
6960
6961 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
6962
6963         * modules/fsync-tests: New file.
6964         * tests/test-fsync.c: New file.
6965
6966         New module 'fsync'.
6967         * lib/fsync.c: New file.
6968         * m4/fsync.m4: New file.
6969         * modules/fsync: New file.
6970         * lib/unistd.in.h (fsync): New declaration.
6971         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
6972         GNULIB_FSYNC and HAVE_FSYNC.
6973         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
6974         * MODULES.html.sh (posix_functions): Add fsync.
6975         * doc/posix-functions/fsync.texi: Mention the new module.
6976
6977 2008-10-02  Jim Meyering  <meyering@redhat.com>
6978
6979         fts.c: sync with similar code from coreutils' remove.c
6980         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
6981         Guard also with "#if defined __linux__", since for now at least,
6982         this code is Linux-kernel-specific.
6983
6984 2008-10-02  Jim Meyering  <meyering@redhat.com>
6985
6986         fts: bug fixes
6987         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
6988         Include <sys/vfs.h>, not <sys/statfs.h>.
6989
6990         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
6991         Include <sys/vfs.h>, not <sys/statfs.h>.
6992
6993 2008-10-01  Bruno Haible  <bruno@clisp.org>
6994
6995         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
6996         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
6997         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
6998         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
6999         * doc/posix-functions/posix_spawnp.texi: Likewise.
7000         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
7001         whether posix_spawn actually works.
7002         * m4/pipe.m4 (gl_PIPE): Likewise.
7003         * modules/execute (Files): Add m4/posix_spawn.m4.
7004         * modules/pipe (Files): Add m4/posix_spawn.m4.
7005         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
7006
7007 2008-10-01  Jim Meyering  <meyering@redhat.com>
7008
7009         remove trailing spaces
7010         * NEWS: Likewise.
7011         * lib/poll.c (poll): Likewise.
7012         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
7013         * lib/winsock.c (rpl_close): Likewise.
7014         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
7015         * modules/yield: Likewise.
7016         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
7017         * tests/test-sys_select.c (connect_to_socket): Likewise.
7018
7019         fts.c: adjust a new interface to be more generally useful
7020         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
7021         (fts_build): Adjust caller.
7022
7023 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7024
7025         * modules/cond-tests: New file.
7026         * tests/test-cond.c: New file.
7027
7028 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7029             Bruno Haible  <bruno@clisp.org>
7030
7031         * modules/cond (Dependencies): Add errno, time.
7032         * lib/glthread/cond.h: Include <time.h>.
7033         (gl_cond_define, gl_cond_define_initialized): Use the same definition
7034         across platforms.
7035
7036 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7037             Bruno Haible  <bruno@clisp.org>
7038
7039         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
7040
7041 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7042             Bruno Haible  <bruno@clisp.org>
7043
7044         * modules/tls-tests (Depends-on): Add thread, yield.
7045         (configure.ac): Remove all checks.
7046         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
7047         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
7048         gl_thread_self): Remove definitions. Include glthread/thread.h and
7049         glthread/yield.h instead.
7050         (test_tls): Pass an additional NULL argument to gl_thread_join.
7051
7052 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7053             Bruno Haible  <bruno@clisp.org>
7054
7055         * modules/lock-tests (Depends-on): Add thread, yield.
7056         (configure.ac): Remove all checks.
7057         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
7058         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
7059         gl_thread_self): Remove definitions. Include glthread/thread.h and
7060         glthread/yield.h instead.
7061         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
7062         additional NULL argument to gl_thread_join.
7063
7064 2008-09-30  Bruno Haible  <bruno@clisp.org>
7065
7066         Fix the Win32 implementation of the 'thread' module.
7067         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
7068         pointer type.
7069         (gl_thread_self): Invoke gl_thread_self_func.
7070         (gl_thread_self_func): New declaration.
7071         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
7072         (do_init_self_key, init_self_key): New functions.
7073         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
7074         Remove some fields.
7075         (running_threads, running_lock): Remove variables.
7076         (get_current_thread_handle): New function.
7077         (gl_thread_self_func, wrapper_func, glthread_create_func,
7078         glthread_join_func, gl_thread_exit_func): Largely rewritten and
7079         simplified.
7080
7081 2008-09-30  Bruno Haible  <bruno@clisp.org>
7082
7083         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
7084         files.
7085
7086 2008-09-30  Jim Meyering  <meyering@redhat.com>
7087
7088         fts.m4: correct the test for statfs.f_type
7089         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
7090         when checking for statfs.f_type.
7091
7092 2008-09-15  Simon Josefsson  <simon@josefsson.org>
7093
7094         tests: avoid some compiler warnings
7095         * tests/test-memchr.c (main): Pass NULL indirectly.
7096         * tests/test-getdate.c (main): Remove unused variable 'ret'.
7097
7098 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
7099
7100         getdate.y: disallow countable dayshifts like "4 yesterday ago"
7101         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
7102         exactly specified dayshifts.
7103         (dayshift): New rule.
7104         (rel): Add dayshift.
7105         (relative_time_table) [tomorrow, yesterday, today, now]:
7106         Use tDAY_SHIFT in place of tDAY_UNIT.
7107         * tests/test-getdate.c: Add tests for now-disallowed countable
7108         dayshifts, e.g., "4 yesterday ago".
7109
7110 2008-09-29  Bruno Haible  <bruno@clisp.org>
7111
7112         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
7113         * tests/test-posix_spawn1.in.sh: Renamed from
7114         tests/test-posix_spawn.in.sh.
7115         * tests/test-posix_spawn2.c: New file.
7116         * tests/test-posix_spawn2.in.sh: New file.
7117         * modules/posix_spawnp-tests (Files): Update.
7118         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
7119
7120 2008-09-29  Bruno Haible  <bruno@clisp.org>
7121
7122         Propagate effects of putenv/setenv/unsetenv to child processes.
7123         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
7124         * lib/pipe.c (create_pipe): Likewise.
7125
7126 2008-09-29  Bruno Haible  <bruno@clisp.org>
7127
7128         Enable use of shell scripts as executables in mingw.
7129         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
7130         run the program as a shell script.
7131         * lib/pipe.c (create_pipe): Likewise.
7132         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
7133         resulting array.
7134
7135 2008-09-29  Eric Blake  <ebb9@byu.net>
7136
7137         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
7138
7139 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
7140
7141         * doc/posix-functions/accept.texi: Update mingw problems.
7142         * doc/posix-functions/bind.texi: Update mingw problems.
7143         * doc/posix-functions/close.texi: Update mingw problems.
7144         * doc/posix-functions/connect.texi: Update mingw problems.
7145         * doc/posix-functions/getpeername.texi: Update mingw problems.
7146         * doc/posix-functions/getsockname.texi: Update mingw problems.
7147         * doc/posix-functions/getsockopt.texi: Update mingw problems.
7148         * doc/posix-functions/ioctl.texi: Update mingw problems.
7149         * doc/posix-functions/listen.texi: Update mingw problems.
7150         * doc/posix-functions/recv.texi: Update mingw problems.
7151         * doc/posix-functions/recvfrom.texi: Update mingw problems.
7152         * doc/posix-functions/select.texi: Update mingw problems.
7153         * doc/posix-functions/send.texi: Update mingw problems.
7154         * doc/posix-functions/sendto.texi: Update mingw problems.
7155         * doc/posix-functions/setsockopt.texi: Update mingw problems.
7156         * doc/posix-functions/socket.texi: Update mingw problems.
7157
7158 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
7159             Bruno Haible  <bruno@clisp.org>
7160
7161         * lib/sys_select.in.h: Include sys/time.h.
7162         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
7163         * modules/sys_select: Depend on sys_time.
7164         * tests/test-sys_select.c: Test that sys/select.h defines struct
7165         timeval fully.
7166
7167 2008-09-29  Bruno Haible  <bruno@clisp.org>
7168
7169         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
7170         * lib/sys_select.in.h: Likewise.
7171
7172 2008-09-29  Bruno Haible  <bruno@clisp.org>
7173
7174         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
7175
7176 2008-09-29  Bruno Haible  <bruno@clisp.org>
7177
7178         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
7179         Set LIBSOCKET instead of augmenting LIBS.
7180         * modules/sockets (Link): New section.
7181         * modules/sockets-tests (test_sockets_LDADD): New variable.
7182         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
7183         * modules/poll-tests (test_poll_LDADD): New variable.
7184         * NEWS: Document the change.
7185
7186 2008-09-29  Bruno Haible  <bruno@clisp.org>
7187
7188         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
7189         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
7190         ARPA_INET_H directly.
7191         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7192
7193 2008-09-28  Bruno Haible  <bruno@clisp.org>
7194
7195         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
7196         from gl_HEADER_SYS_SOCKET.
7197         (gl_HEADER_SYS_SOCKET): Invoke it.
7198         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7199
7200 2008-09-28  Bruno Haible  <bruno@clisp.org>
7201
7202         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
7203         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
7204         Needed on OSF/1 4.0.
7205
7206 2008-09-28  Bruno Haible  <bruno@clisp.org>
7207
7208         Override open more carefully.
7209         * lib/open.c (orig_open): New function.
7210         (rpl_open): Use orig_open instead of open.
7211         * lib/fcntl.in.h: Add special invocation convention.
7212         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
7213         (gl_FUNC_OPEN): Invoke it.
7214
7215         Override freopen more carefully.
7216         * lib/freopen.c (orig_freopen): New function.
7217         (rpl_freopen): Use orig_freopen instead of freopen.
7218         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
7219         (gl_FUNC_FREOPEN): Invoke it.
7220
7221         Override fopen more carefully.
7222         * lib/fopen.c (orig_fopen): New function.
7223         (rpl_fopen): Use orig_fopen instead of fopen.
7224         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
7225         (gl_FUNC_FOPEN): Invoke it.
7226         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
7227
7228 2008-09-28  Bruno Haible  <bruno@clisp.org>
7229
7230         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
7231         SIGPIPE.
7232
7233 2008-09-28  Bruno Haible  <bruno@clisp.org>
7234
7235         * tests/test-sigaction.c (handler, main): Disable the check whether
7236         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
7237         glibc systems with LinuxThreads.
7238
7239 2008-09-28  Bruno Haible  <bruno@clisp.org>
7240
7241         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
7242
7243         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
7244         with AIX xlc.
7245         * lib/fcntl.in.h (open): Likewise.
7246         Reported by Rainer Tammer <tammer@tammer.net>.
7247
7248 2008-09-28  Bruno Haible  <bruno@clisp.org>
7249
7250         * modules/posix_spawnp-tests: New file.
7251         * tests/test-posix_spawn.c: New file.
7252         * tests/test-posix_spawn.in.sh: New file.
7253
7254         New module 'posix_spawnp'.
7255         * modules/posix_spawnp: New file.
7256         * lib/spawnp.c: New file, from GNU libc with modifications.
7257         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
7258
7259         New module 'posix_spawn'.
7260         * modules/posix_spawn: New file.
7261         * lib/spawn.c: New file, from GNU libc with modifications.
7262         * doc/posix-functions/posix_spawn.texi: Mention the new module.
7263
7264         New module 'posix_spawnattr_destroy'.
7265         * modules/posix_spawnattr_destroy: New file.
7266         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
7267         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
7268         module.
7269
7270         New module 'posix_spawnattr_setsigmask'.
7271         * modules/posix_spawnattr_setsigmask: New file.
7272         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
7273         modifications.
7274         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
7275         new module.
7276
7277         New module 'posix_spawnattr_getsigmask'.
7278         * modules/posix_spawnattr_getsigmask: New file.
7279         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
7280         modifications.
7281         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
7282         new module.
7283
7284         New module 'posix_spawnattr_setsigdefault'.
7285         * modules/posix_spawnattr_setsigdefault: New file.
7286         * lib/spawnattr_setdefault.c: New file, from GNU libc with
7287         modifications.
7288         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
7289         new module.
7290
7291         New module 'posix_spawnattr_getsigdefault'.
7292         * modules/posix_spawnattr_getsigdefault: New file.
7293         * lib/spawnattr_getdefault.c: New file, from GNU libc with
7294         modifications.
7295         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
7296         new module.
7297
7298         New module 'posix_spawnattr_setschedpolicy'.
7299         * modules/posix_spawnattr_setschedpolicy: New file.
7300         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
7301         modifications.
7302         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
7303         new module.
7304
7305         New module 'posix_spawnattr_getschedpolicy'.
7306         * modules/posix_spawnattr_getschedpolicy: New file.
7307         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
7308         modifications.
7309         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
7310         new module.
7311
7312         New module 'posix_spawnattr_setschedparam'.
7313         * modules/posix_spawnattr_setschedparam: New file.
7314         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
7315         modifications.
7316         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
7317         new module.
7318
7319         New module 'posix_spawnattr_getschedparam'.
7320         * modules/posix_spawnattr_getschedparam: New file.
7321         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
7322         modifications.
7323         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
7324         new module.
7325
7326         New module 'posix_spawnattr_setpgroup'.
7327         * modules/posix_spawnattr_setpgroup: New file.
7328         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
7329         modifications.
7330         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
7331         module.
7332
7333         New module 'posix_spawnattr_getpgroup'.
7334         * modules/posix_spawnattr_getpgroup: New file.
7335         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
7336         modifications.
7337         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
7338         module.
7339
7340         New module 'posix_spawnattr_setflags'.
7341         * modules/posix_spawnattr_setflags: New file.
7342         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
7343         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
7344         module.
7345
7346         New module 'posix_spawnattr_getflags'.
7347         * modules/posix_spawnattr_getflags: New file.
7348         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
7349         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
7350         module.
7351
7352         New module 'posix_spawnattr_init'.
7353         * modules/posix_spawnattr_init: New file.
7354         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
7355         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
7356         module.
7357
7358         New module 'posix_spawn_file_actions_destroy'.
7359         * modules/posix_spawn_file_actions_destroy: New file.
7360         * lib/spawn_faction_destroy.c: New file, from GNU libc with
7361         modifications.
7362         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
7363         the new module.
7364
7365         New module 'posix_spawn_file_actions_addopen'.
7366         * modules/posix_spawn_file_actions_addopen: New file.
7367         * lib/spawn_faction_addopen.c: New file, from GNU libc with
7368         modifications.
7369         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
7370         the new module.
7371
7372         New module 'posix_spawn_file_actions_adddup2'.
7373         * modules/posix_spawn_file_actions_adddup2: New file.
7374         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
7375         modifications.
7376         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
7377         the new module.
7378
7379         New module 'posix_spawn_file_actions_addclose'.
7380         * modules/posix_spawn_file_actions_addclose: New file.
7381         * lib/spawn_faction_addclose.c: New file, from GNU libc with
7382         modifications.
7383         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
7384         the new module.
7385
7386         New module 'posix_spawn_file_actions_init'.
7387         * modules/posix_spawn_file_actions_init: New file.
7388         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
7389         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
7390         new module.
7391
7392         New module 'posix_spawn-internal'.
7393         * modules/posix_spawn-internal: New file.
7394         * lib/spawn_int.h: New file, from GNU libc with modifications.
7395         * lib/spawni.c: New file, from GNU libc with modifications.
7396         * m4/posix_spawn.m4: New file.
7397
7398         New module 'spawn'.
7399         * modules/spawn: New file.
7400         * lib/spawn.in.h: New file, from GNU libc with modifications.
7401         * m4/spawn_h.m4: New file.
7402         * doc/posix-headers/spawn.texi: Mention the new module.
7403
7404 2008-09-28  Bruno Haible  <bruno@clisp.org>
7405
7406         * modules/sched-tests: New file.
7407         * tests/test-sched.c: New file.
7408
7409         New module 'sched'.
7410         * modules/sched: New file.
7411         * lib/sched.in.h: New file.
7412         * m4/sched_h.m4: New file.
7413         * doc/posix-headers/sched.texi: Mention the new module.
7414
7415 2008-09-27  Eric Blake  <ebb9@byu.net>
7416
7417         Fix previous patch, and tweak references to $0.
7418         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
7419         (func_version, func_gnulib_dir): Don't call this program
7420         gnulib-tool.
7421         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
7422         with using $0 in function.
7423         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
7424         (func_fatal_error): Reuse the name the user invoked us with.
7425
7426 2008-09-27  Bruno Haible  <bruno@clisp.org>
7427
7428         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
7429         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
7430         (gl_ICONV_H): Not here.
7431         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
7432         instead of assigning ICONV_H directly.
7433
7434         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
7435         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
7436         WCHAR_H directly.
7437
7438 2008-09-27  Bruno Haible  <bruno@clisp.org>
7439
7440         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
7441         * modules/arpa_inet (Depends-on): Add link-warning.
7442         (Makefile.am): Insert the definition of GL_LINK-WARNING.
7443         * modules/unistd (Makefile.am): Likewise.
7444
7445 2008-09-26  Bruno Haible  <bruno@clisp.org>
7446
7447         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
7448         variables.
7449         (func_version): Essentially copied from gnulib-tool.
7450         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
7451         func_readlink): Copied from gnulib-tool.
7452
7453 2008-09-26  Bruno Haible  <bruno@clisp.org>
7454
7455         * gnulib-tool (func_version): Change directory to $gnulib_dir before
7456         invoking git-version-gen.
7457
7458 2008-09-26  Bruno Haible  <bruno@clisp.org>
7459
7460         * posix-modules: Update to directory names changed on 2008-01-19.
7461         Remove commas in output before splitting into words. No more need to
7462         avoid 'ftruncate' since 2007-02-19.
7463
7464 2008-09-26  Bruno Haible  <bruno@clisp.org>
7465
7466         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
7467
7468 2008-09-26  Bruno Haible  <bruno@clisp.org>
7469
7470         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
7471         * modules/fwriteerror (Depends-on): Add errno.
7472
7473 2008-09-26  Bruno Haible  <bruno@clisp.org>
7474
7475         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
7476         * tests/test-vc-list-files-cvs.sh: Likewise.
7477
7478 2008-09-26  Bruno Haible  <bruno@clisp.org>
7479
7480         * doc/posix-headers/sys_resource.texi: Reorder items.
7481
7482 2008-09-26  Jim Meyering  <meyering@redhat.com>
7483
7484         fts: tweak inode comparison function
7485         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
7486         inode numbers, as documented.
7487
7488         fts: sort dirent entries on inode number before traversing
7489         This avoids a quadratic, seek-related performance penalty when
7490         operating on a directory containing many entries (measurable at 10k;
7491         3.5 hours at 2 million entries with a cold cache) on certain types
7492         of file systems, including ext3 and ext4, but not tmpfs.
7493         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
7494         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
7495         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
7496         (fs_handles_readdir_ordered_dirents_efficiently): New function.
7497         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
7498         (fts_build): Set the stat.st_ino member from D_INO.
7499         If it is likely to be useful, sort dirent entries on inode number.
7500
7501         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
7502         and the struct statfs.f_type member.
7503         * modules/fts (Depends-on): Add d-ino.
7504
7505 2008-09-26  Bruno Haible  <bruno@clisp.org>
7506
7507         * modules/sigpipe-die (Depends-on): Add sigpipe.
7508
7509         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
7510         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
7511         and GNULIB_STDIO_H_SIGPIPE are set.
7512         * lib/stdio-write.c: New file.
7513         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
7514         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
7515         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
7516         REPLACE_STDIO_WRITE_FUNCS.
7517         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
7518         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
7519         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
7520         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
7521         * modules/stdio (Files): Add lib/stdio-write.c.
7522         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
7523         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
7524         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
7525         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
7526         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
7527         REPLACE_FPRINTF_POSIX.
7528         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
7529         REPLACE_PRINTF_POSIX.
7530         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
7531         REPLACE_VFPRINTF_POSIX.
7532         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
7533         REPLACE_VPRINTF_POSIX.
7534         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
7535         SIGPIPE issue.
7536         * doc/posix-functions/fputc.texi: Likewise.
7537         * doc/posix-functions/fputs.texi: Likewise.
7538         * doc/posix-functions/fwrite.texi: Likewise.
7539         * doc/posix-functions/printf.texi: Likewise.
7540         * doc/posix-functions/putc.texi: Likewise.
7541         * doc/posix-functions/putchar.texi: Likewise.
7542         * doc/posix-functions/puts.texi: Likewise.
7543         * doc/posix-functions/vfprintf.texi: Likewise.
7544         * doc/posix-functions/vprintf.texi: Likewise.
7545
7546         * modules/safe-write (Depends-on): Add write.
7547
7548         * modules/sigpipe-tests: New file.
7549         * tests/test-sigpipe.c: New file.
7550         * tests/test-sigpipe.sh: New file.
7551
7552         * modules/write: New file.
7553         * lib/unistd.in.h: Include <sys/types.h>.
7554         (write): New declaration.
7555         * lib/write.c: New file.
7556         * m4/write.m4: New file.
7557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7558         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
7559         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
7560         GNULIB_WRITE, REPLACE_WRITE.
7561         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
7562         and the SIGPIPE issue.
7563
7564         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
7565         (raise): New declaration.
7566         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
7567         (ext_signal): New function.
7568         (rpl_raise): New function.
7569         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7570         GNULIB_SIGNAL_H_SIGPIPE.
7571         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
7572         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
7573
7574         * modules/sigpipe: New file.
7575         * m4/sigpipe.m4: New file.
7576
7577 2008-09-25  Derek Price  <derek@ximbiot.com>
7578             Bruno Haible  <bruno@clisp.org>
7579
7580         * gnulib-tool (func_import): Report all license incompatibilities, not
7581         just the first one.
7582
7583 2008-09-25  Bruno Haible  <bruno@clisp.org>
7584
7585         * gnulib-tool (func_import): When computing the edits, consider not
7586         only the Makefile.ams that exist but also those that will be generated.
7587
7588 2008-09-25  Simon Josefsson  <simon@josefsson.org>
7589
7590         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
7591         fixes gnulib-tool --test warning about duplicate dependency.
7592
7593 2008-09-25  Bruno Haible  <bruno@clisp.org>
7594
7595         * gnulib-tool: Don't ask the user to perform edits in the generated
7596         Makefile.ams.
7597         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
7598         apply to the Makefile.am being generated.
7599         (func_emit_tests_Makefile_am): Execute edits that apply to the
7600         Makefile.am being generated.
7601         (func_import): Setup list of Makefile.am edits before emitting the
7602         Makefile.ams, not at the end.
7603         (func_create_testdir): Update.
7604         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7605
7606 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7607
7608         * gnulib-tool (func_import): Store the --tests-base option in the
7609         comment in gnulib-cache.m4.
7610
7611 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
7612
7613         * NEWS: Document increased portability that sys_select now provides.
7614
7615         * lib/sys_select.in.h: Install select wrapper.
7616         * lib/sys_socket.in.h: Use more descriptive name when there is no
7617         select wrapper.
7618         * lib/winsock-select.c: New.
7619         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
7620         Require gl_HEADER_SYS_SOCKET.
7621         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
7622         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
7623         * tests/test-sys_select.c: Add functional tests.
7624
7625 2008-09-24  Eric Blake  <ebb9@byu.net>
7626
7627         open, fopen: close fd leak in last patch
7628         * lib/open.c (rpl_open): Close fd before returning error.
7629         * lib/fopen.c (rpl_fopen): Close fd before returning error.
7630         * doc/posix-functions/open.texi (open): Document that Irix also
7631         has the bug.
7632         * doc/posix-functions/fopen.texi (fopen): Likewise.
7633         Reported by Paolo Bonzini.
7634
7635 2008-09-24  Bruno Haible  <bruno@clisp.org>
7636
7637         Ensure that a filename ending in a slash cannot be used to access a
7638         non-directory.
7639         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
7640         to check whether it's really a directory.
7641         * lib/fopen.c: Include fcntl.h, unistd.h.
7642         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
7643         and fdopen().
7644         * modules/fopen (Depends-on): Add unistd.
7645         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
7646         * tests/test-fopen.c (main): Likewise.
7647         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
7648         * doc/posix-functions/fopen.texi: Likewise.
7649         Reported by Eric Blake.
7650
7651 2008-09-23  Eric Blake  <ebb9@byu.net>
7652
7653         c-stack: avoid compiler optimizations when provoking overflow
7654         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
7655         recursion harder to optimize, to ensure a stack overflow occurs.
7656         * tests/test-c-stack.c (recurse): Likewise.
7657         Borrowed from libsigsegv.
7658
7659         c-stack: work around Irix sigaltstack bug
7660         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
7661         whether sigaltstack uses wrong end of stack_t (copied in part from
7662         libsigsegv).
7663         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
7664         Irix bug, without requiring an over-allocation.
7665         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
7666         bug.
7667
7668         fopen: document mingw bug on directories
7669         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
7670         not allowing a stream visiting a directory, even though reading
7671         from such a stream is not portable.
7672
7673 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
7674
7675         * lib/poll.c: Rewrite.
7676         * modules/poll: Depend on alloca.
7677
7678 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
7679
7680         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
7681         instead define prototypes for a full set of wrappers.  Ensure
7682         that Cygwin does not use the compatibility code, which is only
7683         for MinGW.
7684         * lib/winsock.c: New.
7685         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
7686         * modules/sys_socket: Add lib/winsock.c.
7687
7688         * modules/poll-tests: Add errno and perror.
7689         * tests/test-poll.c: Use ioctl, not ioctlsocket.
7690
7691 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
7692
7693         * tests/test-poll.c: Downgrade minimum needed Winsock version.
7694
7695 2008-09-23  Bruno Haible  <bruno@clisp.org>
7696
7697         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
7698         * doc/glibc-functions/*: Likewise.
7699
7700 2008-09-23  Simon Josefsson  <simon@josefsson.org>
7701
7702         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
7703         success.
7704
7705 2008-09-22  Eric Blake  <ebb9@byu.net>
7706             Bruno Haible  <bruno@clisp.org>
7707
7708         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
7709         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
7710         supply %A but mishandle pseudo-NaN.
7711         Reported by Simon Josefsson.
7712
7713 2008-09-21  Bruno Haible  <bruno@clisp.org>
7714
7715         * tests/test-lock.c (main): Tweak skip message.
7716         * tests/test-tls.c (main): Likewise.
7717
7718 2008-09-21  Bruno Haible  <bruno@clisp.org>
7719
7720         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
7721         whether 'struct sigaction' has sa_sigaction here...
7722         (gl_PREREQ_SIG_HANDLER_H): ... not here.
7723         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
7724
7725 2008-09-21  Bruno Haible  <bruno@clisp.org>
7726
7727         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
7728         section.
7729         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
7730         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
7731         the new section.
7732         (Support for obsolete systems lacking POSIX:2001): New section.
7733         (String handling <string.h>): Move strdup to the new section.
7734         Suggested by Simon Josefsson and Paolo Bonzini.
7735
7736 2008-09-21  Bruno Haible  <bruno@clisp.org>
7737
7738         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
7739         exponents in %e and %g results on 'long double'. Needed for mingw's
7740         improved *printf functions.
7741         * tests/test-vasprintf-posix.c (test_function): Likewise.
7742         * tests/test-snprintf-posix.h (test_function): Likewise.
7743         * tests/test-sprintf-posix.h (test_function): Likewise.
7744         Reported by Eric Blake.
7745
7746 2008-09-21  Bruno Haible  <bruno@clisp.org>
7747
7748         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
7749         * tests/test-sprintf-posix.h (test_function): Likewise.
7750
7751 2008-09-21  Bruno Haible  <bruno@clisp.org>
7752
7753         * modules/getpass (Depends-on): Add strdup-posix.
7754
7755         New module 'strdup-posix'.
7756         * modules/strdup-posix: New file.
7757         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
7758         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
7759         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7760         REPLACE_STRDUP.
7761         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
7762         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
7763         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
7764         strdup-posix.
7765
7766         * modules/strdup (Depends-on): Remove malloc-posix.
7767
7768 2008-09-20  Bruno Haible  <bruno@clisp.org>
7769
7770         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
7771         Wildenhues.
7772
7773 2008-09-20  Bruno Haible  <bruno@clisp.org>
7774
7775         Ensure that wint_t gets defined on IRIX 5.3.
7776         * lib/wchar.in.h (wint_t): Define if not defined by the system.
7777         * lib/wctype.in.h (wint_t): Likewise.
7778         (__wctype_wint_t): Remove type.
7779         (isw*): Use wint_t instead of __wctype_wint_t.
7780         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
7781         * modules/wchar (Files): Add m4/wint_t.m4.
7782         (Makefile.am): Substitute HAVE_WINT_T.
7783         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
7784         * tests/test-wctype.c: Check that wint_t is defined.
7785         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
7786         * doc/posix-headers/wctype.texi: Likewise.
7787         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7788
7789 2008-09-18  Bruno Haible  <bruno@clisp.org>
7790
7791         * gnulib-tool (func_exit): Update comment.
7792
7793 2008-09-18  Simon Josefsson  <simon@josefsson.org>
7794
7795         * modules/getaddrinfo (Depends-on): Remove strdup, this module
7796         assumes strdup exists and does not depend on strdup to return
7797         ENOMEM on out of memory conditions.
7798
7799 2008-09-18  Bruno Haible  <bruno@clisp.org>
7800
7801         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
7802         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
7803         digits for the exponent.
7804
7805 2008-09-18  Jim Meyering  <meyering@redhat.com>
7806             Bruno Haible  <bruno@clisp.org>
7807
7808         * lib/vasnprintf.c (decimal_point_char): Define also if
7809         NEED_PRINTF_INFINITE_LONG_DOUBLE.
7810
7811 2008-09-16  Bruno Haible  <bruno@clisp.org>
7812         and Eric Blake  <ebb9@byu.net>
7813
7814         vasnprintf: support Irix 5.3
7815         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
7816         that mishandle long double infinity.
7817         Reported by Tom G. Christensen.
7818
7819 2008-09-16  Bruno Haible  <bruno@clisp.org>
7820
7821         * doc/glibc-functions/scandir.texi: Mention the function is missing on
7822         Solaris 9.
7823         * doc/glibc-functions/alphasort.texi: Likewise.
7824         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
7825
7826 2008-09-16  Jim Meyering  <meyering@redhat.com>
7827
7828         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
7829         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
7830         a umask modification leak out of a subshell.  Otherwise, the
7831         opensolaris /bin/sh would be accepted and thus cause unwarranted
7832         failures in the coreutils test suite.
7833
7834 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
7835
7836         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
7837         to succeed.
7838
7839 2008-09-16  Jim Meyering  <meyering@redhat.com>
7840
7841         avoid spurious test failure when library is built without ACL support
7842         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
7843         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
7844         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
7845         * tests/test-copy-acl.sh: Likewise.
7846
7847 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7848
7849         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
7850         based on character occurrence counts.
7851
7852 2008-09-15  Eric Blake  <ebb9@byu.net>
7853
7854         tests: avoid some compiler warnings
7855         * tests/test-memchr.c (main): Pass NULL indirectly.
7856         * tests/test-closein.c (main): Avoid unused variable.
7857
7858 2008-09-15  Bruno Haible  <bruno@clisp.org>
7859
7860         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
7861         are missing on OpenBSD 4.0 individually.
7862         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7863
7864 2008-09-15  Bruno Haible  <bruno@clisp.org>
7865
7866         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
7867         * doc/posix-functions/strerror.texi: Mention also Cygwin.
7868         * doc/posix-functions/perror.texi: Likewise.
7869         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
7870         is missing.
7871         Reported by Eric Blake.
7872
7873         * lib/errno.in.h: Use replacement values >= 2000.
7874         Reported by Eric Blake.
7875
7876 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7877
7878         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
7879         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
7880         limit.
7881         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
7882         compareseq was aborted.
7883
7884 2008-09-14  Bruno Haible  <bruno@clisp.org>
7885
7886         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
7887         yvec_edit_count.
7888         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
7889         (fstrcmp_bounded): Simplify result computation accordingly.
7890
7891 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7892
7893         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
7894         (fstrcmp): Define in terms of fstrcmp_bounded.
7895         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
7896         lower_bound argument.
7897         Return quickly if the result is certainly < lower_bound.
7898         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
7899
7900 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7901
7902         * lib/diffseq.h (EARLY_ABORT): New macro.
7903         (compareseq): Change return type to bool. Return true when EARLY_ABORT
7904         evaluates to true.
7905
7906 2008-09-14  Bruno Haible  <bruno@clisp.org>
7907
7908         * modules/perror-tests: New file.
7909         * tests/test-perror.sh: New file.
7910         * tests/test-perror.c: New file.
7911
7912         New module 'perror'.
7913         * lib/stdio.in.h (perror): New declaration.
7914         * lib/perror.c: New file.
7915         * m4/perror.m4: New file.
7916         * modules/perror: New file.
7917         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
7918         * doc/posix-functions/perror.texi: Mention the perror module.
7919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
7920         REPLACE_PERROR.
7921         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
7922         REPLACE_PERROR.
7923
7924 2008-09-14  Bruno Haible  <bruno@clisp.org>
7925
7926         * modules/stdio (Makefile.am): Reorder to match the order in
7927         lib/stdio.in.h.
7928         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
7929
7930 2008-09-13  Bruno Haible  <bruno@clisp.org>
7931
7932         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
7933
7934 2008-09-13  Bruno Haible  <bruno@clisp.org>
7935
7936         Extend strerror to cover the added errno values.
7937         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
7938         (rpl_strerror): Provide error messages for the added errno values and
7939         for the WSA* values.
7940         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
7941         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
7942         strerror.
7943         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
7944         * modules/strerror (Depends-on): Add errno.
7945         * doc/posix-functions/strerror.texi: Document the change.
7946         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
7947         and EOVERFLOW.
7948
7949 2008-09-13  Bruno Haible  <bruno@clisp.org>
7950
7951         * modules/EOVERFLOW: Remove file.
7952         * m4/eoverflow.m4: Remove file.
7953         * modules/EOVERFLOW-tests: Remove file.
7954         * tests/test-EOVERFLOW.c: Remove file.
7955         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
7956         * modules/ftell (Depends-on): Likewise.
7957         * modules/getdelim (Depends-on): Likewise.
7958         * modules/getugroups (Depends-on): Likewise.
7959         * modules/poll (Depends-on): Likewise.
7960         * modules/snprintf (Depends-on): Likewise.
7961         * modules/sprintf-posix (Depends-on): Likewise.
7962         * modules/vasnprintf (Depends-on): Likewise.
7963         * modules/vasprintf (Depends-on): Likewise.
7964         * modules/vfprintf-posix (Depends-on): Likewise.
7965         * modules/vsnprintf (Depends-on): Likewise.
7966         * modules/vsprintf-posix (Depends-on): Likewise.
7967         * modules/xvasprintf (Depends-on): Likewise.
7968         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7969         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
7970         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
7971         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
7972         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7973         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
7974         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
7975         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
7976         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7977         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
7978         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
7979         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
7980         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7981         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
7982         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
7983         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
7984         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7985         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
7986         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
7987         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
7988         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7989         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
7990         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
7991         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
7992         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
7993         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7994         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
7995         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
7996         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
7997         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
7998         * MODULES.html.sh: Remove EOVERFLOW.
7999         * NEWS: Mention the change.
8000
8001 2008-09-13  Bruno Haible  <bruno@clisp.org>
8002
8003         * modules/errno-tests: New file.
8004         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
8005
8006         * lib/errno.in.h: New file.
8007         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
8008         * modules/errno: New file.
8009         * doc/posix-headers/errno.texi: Update documentation.
8010         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
8011
8012 2008-09-13  Bruno Haible  <bruno@clisp.org>
8013
8014         * tests/test-poll.c: Use #if for native Windows, rather than testing
8015         __MSVCRT__.
8016
8017 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8018             Bruno Haible  <bruno@clisp.org>
8019
8020         * lib/glob.c: Don't include <pwd.h> on native Windows.
8021         (WINDOWS32): New macro.
8022         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
8023
8024 2008-09-13  Bruno Haible  <bruno@clisp.org>
8025
8026         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
8027         (ETIMEDOUT): Remove macro.
8028         (glthread_cond_timedwait_multithreaded): New declaration.
8029         (glthread_cond_timedwait): Use it.
8030         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
8031         (glthread_cond_timedwait_multithreaded): New function.
8032
8033 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
8034
8035         * modules/poll-tests: Do not check for io.h.
8036         * tests/test-poll.c: Check for __MSVCRT__ instead.
8037
8038 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
8039
8040         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
8041         * modules/poll-tests: Add inet_pton, stdbool, sockets.
8042         * tests/test-poll.c: Use them.  Use _pipe on Windows.
8043
8044 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
8045
8046         * modules/poll-tests: New.
8047         * tests/test-poll.c: New.
8048
8049 2008-09-12  Eric Blake  <ebb9@byu.net>
8050
8051         frexp: test for NetBSD failure on -0.0
8052         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
8053         not all, bugs from NetBSD 3.0 have been fixed.
8054         * doc/posix-functions/frexp.texi (frexp): Document bug.
8055         Reported by Thomas Klausner.
8056
8057         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
8058         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
8059         literal -0.0.
8060         Reported by Jonathan C. Patschke <jp@centtech.com>.
8061
8062 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8063
8064         * lib/glthread/cond.h: Use dummy implementation also if
8065         USE_WIN32_THREADS.
8066
8067 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8068
8069         * modules/fnmatch-posix (License): Change to LGPLv2+.
8070         * modules/fnmatch-gnu (License): Likewise.
8071
8072 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8073
8074         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
8075
8076 2008-09-11  Jim Meyering  <meyering@redhat.com>
8077
8078         * users.txt: Add gtk-vnc.
8079
8080 2008-09-08  Simon Josefsson  <simon@josefsson.org>
8081
8082         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
8083         rotate amounts.
8084
8085         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
8086         required for 16-bit and 8-bit rotates.
8087         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
8088         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
8089         UINT8_MAX instead of hard-coded constants.
8090         Suggested by Paul Eggert.
8091
8092 2008-09-07  Bruno Haible  <bruno@clisp.org>
8093
8094         * tests/test-striconveh.c (main): Check behaviour when converting from
8095         UTF-7.
8096
8097         Make striconveh work better with stateful encodings.
8098         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
8099         that iconv does not increment the inptr when returning -1/EINVAL.
8100
8101 2008-09-07  Bruno Haible  <bruno@clisp.org>
8102
8103         * build-aux/config.rpath: Update according to libtool-2.2.6.
8104         * build-aux/config.libpath: Likewise.
8105
8106 2008-09-06  Bruno Haible  <bruno@clisp.org>
8107
8108         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
8109         * lib/freadptr.c (freadptr): Likewise.
8110         * lib/freadseek.c (freadptrinc): Likewise.
8111         Reported by Simon Josefsson.
8112
8113 2008-09-06  Bruno Haible  <bruno@clisp.org>
8114
8115         * modules/freadptr (License): Change to LGPLv2+.
8116         * modules/freadseek (License): Likewise.
8117         Suggested by Eric Blake.
8118
8119         * modules/memchr2 (License): Change to LGPLv2+.
8120         Approved by Eric Blake.
8121
8122 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8123             Bruno Haible  <bruno@clisp.org>
8124
8125         Make gnulib-tool work with native 'sed' on AIX.
8126         * gnulib-tool (sed_noop): New variable.
8127         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
8128         func_add_or_update, func_create_testdir): Use it to initialize sed
8129         script variables.
8130         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8131
8132 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
8133             Bruno Haible  <bruno@clisp.org>
8134
8135         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
8136         also works after #include directives.
8137
8138 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
8139
8140         getdate.y: reject an out-of-range timezone value
8141         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
8142         the range [-24...+24].  When specified with only one or two digits,
8143         * tests/test-getdate.c: Tests for the fix.
8144         * doc/getdate.texi: Document this change.
8145
8146 2008-09-03  Bruno Haible  <bruno@clisp.org>
8147
8148         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
8149
8150 2008-09-02  Simon Josefsson  <simon@josefsson.org>
8151
8152         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
8153         <bruce.korb@gmail.com> with ideas from Ben Pfaff
8154         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
8155         Blake <ebb9@byu.net>.
8156
8157         * tests/test-bitrotate.c: Add more test vectors.
8158
8159 2008-09-02  Eric Blake  <ebb9@byu.net>
8160
8161         vasnprintf-posix: handle large precision via %.*d
8162         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
8163         when handling it ourselves.
8164         * tests/test-vasnprintf-posix.c (test_function): Add test.
8165         * tests/test-snprintf-posix.h (test_function): Likewise.
8166         * tests/test-sprintf-posix.h (test_function): Likewise.
8167         * tests/test-vasprintf-posix.c (test_function): Likewise.
8168         Reported by Alain Guibert.
8169
8170 2008-09-01  Eric Blake  <ebb9@byu.net>
8171
8172         c-stack: make configure-time check more robust
8173         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
8174         successful sigaction call.
8175         Reported by Tom G. Christensen.
8176
8177 2008-09-01  Bruno Haible  <bruno@clisp.org>
8178
8179         New module 'findprog-lgpl'.
8180         * modules/findprog-lgpl: New file.
8181         * lib/findprog-lgpl.c: New file.
8182         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
8183         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
8184         to decide whether to use strdup or xstrdup, concatenated_filename or
8185         xconcatenated_filename.
8186
8187 2008-09-01  Bruno Haible  <bruno@clisp.org>
8188
8189         Split module 'concat-filename' into 'concat-filename' (LGPL) and
8190         'xconcat-filename' (GPL).
8191         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
8192         (License): Change to LGPLv2+.
8193         * modules/xconcat-filename: New file.
8194         * lib/concat-filename.h (concatenated_filename): Change specification.
8195         (xconcatenated_filename): New declaration.
8196         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
8197         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
8198         memory situations.
8199         * lib/xconcat-filename.c: New file.
8200         * NEWS: Mention the change.
8201         * lib/findprog.c: Include concat-filename.h, not filename.h.
8202         (find_in_path): Use xconcatenated_filename instead of
8203         concatenated_filename.
8204         * lib/javacomp.c: Include concat-filename.h, not filename.h.
8205         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
8206         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
8207         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
8208         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
8209         instead of concatenated_filename.
8210         * lib/javaexec.c: Include concat-filename.h, not filename.h.
8211         (execute_java_class): Use xconcatenated_filename instead of
8212         concatenated_filename.
8213         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
8214         * modules/javacomp (Depends-on): Likewise.
8215         * modules/javaexec (Depends-on): Likewise.
8216
8217 2008-09-01  Bruno Haible  <bruno@clisp.org>
8218
8219         Split module 'filename' into 'filename' and 'concat-filename'.
8220         * modules/filename: Keep only lib/filename.h.
8221         (License): Change to LGPLv2+.
8222         * modules/concat-filename: New file, extracted from modules/filename.
8223         * lib/filename.h (concatenated_filename): Remove declaration.
8224         * lib/concat-filename.h: New file, extracted from lib/filename.h.
8225         * lib/concat-filename.c: Include concat-filename.h.
8226         * NEWS: Mention the change.
8227
8228 2008-09-01  Simon Josefsson  <simon@josefsson.org>
8229
8230         * lib/bitrotate.h (rotl8, rotr8): Add.
8231
8232         * modules/bitrotate (configure.ac): Need
8233         AC_REQUIRE([AC_C_INLINE]).
8234         (Description): Mention stdint.h.  Reported by Bruno Haible
8235         <bruno@clisp.org>.
8236
8237         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
8238         Paolo Bonzini <bonzini@gnu.org>.
8239
8240 2008-08-31  Bruno Haible  <bruno@clisp.org>
8241
8242         Assume Solaris specific bi-arch conventions on Solaris systems.
8243         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
8244         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
8245         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
8246         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
8247         like acl_libdirstem.
8248         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
8249         acl_libdirstem.
8250         * NEWS: Mention the change.
8251         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
8252
8253 2008-08-31  Jim Meyering  <meyering@redhat.com>
8254
8255         * lib/strftime.h: Add comments describing the two added arguments.
8256
8257         remove duplicate #include directives
8258         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
8259         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
8260
8261 2008-08-31  Bruno Haible  <bruno@clisp.org>
8262
8263         New module 'sigpipe-die'.
8264         * modules/sigpipe-die: New file.
8265         * lib/sigpipe-die.h: New file.
8266         * lib/sigpipe-die.c: New file.
8267         * MODULES.html.sh (Signal handling): Add sigpipe-die.
8268
8269 2008-08-31  Bruno Haible  <bruno@clisp.org>
8270
8271         Don't override previously installed signal handlers.
8272         * lib/fatal-signal.c (saved_sigactions): New variable.
8273         (uninstall_handlers): Reset the signal to the saved handler, not
8274         to SIG_DFL (except when ignored).
8275         (install_handlers): Save the previous handlers.
8276
8277 2008-08-30  Bruno Haible  <bruno@clisp.org>
8278
8279         * gnulib-tool (func_reset_sigpipe): New function.
8280         (func_get_automake_snippet, func_modules_transitive_closure,
8281         func_import): Invoke it before a join command that reads from stdin,
8282         to avoid "echo: write error: Broken pipe" error messages on stderr.
8283         Reported by Sam Steingold <sds@gnu.org>.
8284
8285 2008-08-30  Bruno Haible  <bruno@clisp.org>
8286
8287         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
8288         Code copied from m4/open.m4.
8289         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
8290         access and the filename ends in a slash. Code copied from lib/open.c.
8291         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
8292         * tests/test-fopen.c (main): Check against bug with trailing slash.
8293
8294 2008-08-29  Bruno Haible  <bruno@clisp.org>
8295
8296         Avoid some "gcc -pedantic" warnings.
8297         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
8298         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
8299         * lib/dirent.in.h: Likewise.
8300         * lib/fcntl.in.h: Likewise.
8301         * lib/float.in.h: Likewise.
8302         * lib/iconv.in.h: Likewise.
8303         * lib/inttypes.in.h: Likewise.
8304         * lib/locale.in.h: Likewise.
8305         * lib/math.in.h: Likewise.
8306         * lib/netinet_in.in.h: Likewise.
8307         * lib/search.in.h: Likewise.
8308         * lib/signal.in.h: Likewise.
8309         * lib/stdarg.in.h: Likewise.
8310         * lib/stdint.in.h: Likewise.
8311         * lib/stdio.in.h: Likewise.
8312         * lib/stdlib.in.h: Likewise.
8313         * lib/string.in.h: Likewise.
8314         * lib/strings.in.h: Likewise.
8315         * lib/sys_select.in.h: Likewise.
8316         * lib/sys_socket.in.h: Likewise.
8317         * lib/sys_stat.in.h: Likewise.
8318         * lib/sys_time.in.h: Likewise.
8319         * lib/sysexits.in.h: Likewise.
8320         * lib/time.in.h: Likewise.
8321         * lib/unistd.in.h: Likewise.
8322         * lib/wchar.in.h: Likewise.
8323         * lib/wctype.in.h: Likewise.
8324         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
8325         * modules/fchdir (Makefile.am): Likewise.
8326         * modules/fcntl (Makefile.am): Likewise.
8327         * modules/float (Makefile.am): Likewise.
8328         * modules/iconv_open (Makefile.am): Likewise.
8329         * modules/inttypes (Makefile.am): Likewise.
8330         * modules/locale (Makefile.am): Likewise.
8331         * modules/math (Makefile.am): Likewise.
8332         * modules/netinet_in (Makefile.am): Likewise.
8333         * modules/search (Makefile.am): Likewise.
8334         * modules/signal (Makefile.am): Likewise.
8335         * modules/stdarg (Makefile.am): Likewise.
8336         * modules/stdint (Makefile.am): Likewise.
8337         * modules/stdio (Makefile.am): Likewise.
8338         * modules/stdlib (Makefile.am): Likewise.
8339         * modules/string (Makefile.am): Likewise.
8340         * modules/strings (Makefile.am): Likewise.
8341         * modules/sys_select (Makefile.am): Likewise.
8342         * modules/sys_socket (Makefile.am): Likewise.
8343         * modules/sys_stat (Makefile.am): Likewise.
8344         * modules/sys_time (Makefile.am): Likewise.
8345         * modules/sysexits (Makefile.am): Likewise.
8346         * modules/time (Makefile.am): Likewise.
8347         * modules/unistd (Makefile.am): Likewise.
8348         * modules/wchar (Makefile.am): Likewise.
8349         * modules/wctype (Makefile.am): Likewise.
8350         Reported by Reuben Thomas <rrt@sc3d.org>.
8351
8352 2008-08-29  Bruno Haible  <bruno@clisp.org>
8353
8354         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
8355         any more.
8356
8357 2008-08-29  Simon Josefsson  <simon@josefsson.org>
8358
8359         * MODULES.html.sh (Misc): Add bitrotate.
8360
8361         * modules/bitrotate: New file.
8362
8363         * lib/bitrotate.h: New file.
8364
8365         * modules/bitrotate-tests: New file.
8366
8367         * tests/test-bitrotate.c: New file.
8368
8369         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
8370         on the bitrotate module.
8371
8372         * lib/arctwo.c: Use new bitrotate module.
8373
8374 2008-08-29  Jim Meyering  <meyering@redhat.com>
8375
8376         bootstrap: merge changes from coreutils
8377         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
8378         of copied files.  Remove a kludge, now that this is fixed.
8379         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
8380         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
8381         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
8382
8383 2008-08-29  Bruno Haible  <bruno@clisp.org>
8384
8385         * MODULES.html.sh: Remove --cvs-urls option.
8386
8387 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
8388
8389         maint.mk: adjust to file name change
8390         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
8391
8392 2008-08-28  Jim Meyering  <meyering@redhat.com>
8393
8394         * modules/getndelim2 (License): Relicense to LGPLv2+.
8395         Approved by Richard Stallman for the version of 1995, and by
8396         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
8397
8398 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
8399
8400         * lib/getdelim.c (flockfile, funlockfile): Make all of them
8401         dummy if one is not available.  Do not touch them if
8402         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
8403         (getc_maybe_unlocked): New.
8404         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
8405
8406 2008-08-26  Eric Blake  <ebb9@byu.net>
8407
8408         doc/INSTALL: resync from autoconf
8409         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
8410         (INSTALL_PRELUDE): Delete; this is done more efficiently by
8411         moving...
8412         * install.texi [!autoconf]: ...here.  Resync from autoconf.
8413         * INSTALL: Regenerate.
8414         * INSTALL.ISO: New file.
8415         * INSTALL.UTF-8: Likewise.
8416
8417 2008-08-26  Jim Meyering  <meyering@redhat.com>
8418
8419         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
8420         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
8421         these definitions conditional, so that they may be overridden, too.
8422
8423 2008-08-26  Bruno Haible  <bruno@clisp.org>
8424
8425         Generate INSTALL file variants with prettier quotes.
8426         * doc/Makefile (INSTALL_PRELUDE): New macro.
8427         (INSTALL): Use it.
8428         (INSTALL.ISO, INSTALL.UTF-8): New rules.
8429
8430 2008-08-26  Bruno Haible  <bruno@clisp.org>
8431
8432         Run makeinfo in an English locale.
8433         * doc/Makefile (MAKEINFO): New variable.
8434
8435 2008-08-26  Bruno Haible  <bruno@clisp.org>
8436
8437         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
8438         Suggested by Eric Blake.
8439
8440 2008-08-25  Bruno Haible  <bruno@clisp.org>
8441
8442         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
8443
8444 2008-08-25  Eric Blake  <ebb9@byu.net>
8445
8446         c-stack: test that stack overflow can be caught
8447         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
8448         that platform allows handling stack overflow; at least OS/2 EMX
8449         has sigaltstack, but crashes before transferring control to
8450         handler on stack overflow.
8451         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
8452         check for HAVE_STACK_OVERFLOW_HANDLING.
8453         Reported by Elbert Pol.
8454
8455 2008-08-25  Bruno Haible  <bruno@clisp.org>
8456
8457         * doc/posix-functions/strftime.texi: Fix description of strftime
8458         module.
8459
8460 2008-08-24  Bruno Haible  <bruno@clisp.org>
8461
8462         * tests/uniwidth/test-uc_width2.c: New file.
8463         * tests/uniwidth/test-uc_width2.sh: New file.
8464         * modules/uniwidth/width-tests (Files): Add the new files.
8465         (TESTS): Add uniwidth/test-uc_width2.sh.
8466         (TESTS_ENVIRONMENT): New variable.
8467         (check_PROGRAMS): Add test-uc_width2.
8468         (test_uc_width2_SOURCES): New variable.
8469
8470         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
8471         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
8472         not 0x00AB.
8473         Reported by Alexander V. Lukyanov <lav@netis.ru>.
8474
8475 2008-08-22  Eric Blake  <ebb9@byu.net>
8476
8477         test-lock, test-tls: mention why a test is skipped
8478         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
8479         skipped.
8480         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
8481
8482         count-one-bits: relax license
8483         * modules/count-one-bits (License): Relicense to LGPLv2+.
8484         Suggested by Ludovic Courtès, approved by Ben Pfaff.
8485
8486 2008-08-22  Andreas Schwab  <schwab@suse.de>
8487
8488         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
8489         Remove spurious space in assignment.
8490
8491 2008-08-21  Simon Josefsson  <simon@josefsson.org>
8492
8493         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
8494         Paul Eggert <eggert@CS.UCLA.EDU>.
8495
8496 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
8497
8498         * modules/gettext: Add m4/threadlib.m4.
8499
8500 2008-08-19  Eric Blake  <ebb9@byu.net>
8501
8502         test-c-stack: fix compilation failure on FreeBSD 5.0
8503         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
8504         headers before <sys/resource.h>.
8505         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
8506         the bug.
8507         Reported by Nelson H. F. Beebe.
8508
8509         strverscmp: migrate from "strverscmp.h" to <string.h>
8510         * modules/string (Makefile.am): Add new hooks.
8511         * modules/strverscmp (Files): Remove strverscmp.h.
8512         (Depends-on): Add string.
8513         (configure.ac): Add indicator.
8514         (Include): Mention new header.
8515         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
8516         defaults.
8517         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
8518         results.
8519         * lib/strverscmp.h: Delete.
8520         * lib/string.in.h (strverscmp): Provide declaration, when needed.
8521         * tests/test-strverscmp.c (includes): Adjust client.
8522         * lib/check-version.c (includes): Likewise.
8523         * NEWS: Document the change.
8524
8525         strverscmp: add unit test
8526         * modules/strverscmp-tests: New file.
8527         * tests/test-strverscmp.c: Likewise.
8528
8529 2008-08-19  Simon Josefsson  <simon@josefsson.org>
8530
8531         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
8532         regarding Windows crypto stuff, from Mono.
8533
8534 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
8535
8536         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
8537         if present, for intel RND.  Return error on failures.
8538
8539 2008-08-18  Ben Pfaff  <blp@gnu.org>
8540
8541         gitlog-to-changelog: give better diagnostic for failed pipe-open
8542         * build-aux/gitlog-to-changelog: Improve error message: suggest
8543         that the version of Git may be too old.
8544
8545 2008-08-18  Simon Josefsson  <simon@josefsson.org>
8546
8547         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
8548         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
8549
8550 2008-08-18  Bruno Haible  <bruno@clisp.org>
8551
8552         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
8553         pthread_in_use().
8554
8555 2008-08-18  Bruno Haible  <bruno@clisp.org>
8556
8557         * lib/glthread/threadlib.c: Include <pthread.h>.
8558
8559 2008-08-18  Bruno Haible  <bruno@clisp.org>
8560
8561         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
8562         glthread_recursive_lock_* macros.
8563         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
8564         Fix syntax error.
8565
8566 2008-08-18  Bruno Haible  <bruno@clisp.org>
8567
8568         * lib/glthread/thread.c: Avoid forcing a context switch right after
8569         thread creation.
8570
8571 2008-08-17  Bruno Haible  <bruno@clisp.org>
8572
8573         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
8574         * lib/glthread/thread.h: Provide Win32 specific implementation.
8575         * modules/thread (Files): Add lib/glthread/thread.c.
8576         (Depends-on): Add lock.
8577         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
8578
8579 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8580
8581         New module 'yield'.
8582         * modules/yield: New file.
8583         * lib/glthread/yield.h: New file.
8584         * m4/yield.m4: New file.
8585         * MODULES.html.sh (Multithreading): Add yield.
8586
8587 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8588
8589         New module 'thread'.
8590         * modules/thread: New file.
8591         * lib/glthread/thread.h: New file.
8592         * m4/thread.m4: New file.
8593         * MODULES.html.sh (Multithreading): Add thread.
8594
8595 2008-08-17  Bruno Haible  <bruno@clisp.org>
8596
8597         * lib/glthread/lock.h: Include <stdlib.h> always.
8598         * lib/glthread/tls.h: Likewise.
8599         * lib/glthread/cond.h: Likewise.
8600
8601 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8602
8603         New module 'cond'.
8604         * modules/cond: New file.
8605         * lib/glthread/cond.h: New file.
8606         * lib/glthread/cond.c: New file.
8607         * m4/cond.m4: New file.
8608         * MODULES.html.sh (Multithreading): Add cond.
8609
8610 2008-08-16  Eric Blake  <ebb9@byu.net>
8611
8612         c-stack: fix regression on Irix 5.3 from 2008-06-21
8613         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
8614         sa_sigaction...
8615         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
8616         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
8617         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
8618         * modules/signal (Makefile.am): Use the value.
8619         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
8620         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
8621         * doc/posix-headers/signal.texi (signal.h): Document this
8622         portability issue.
8623         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
8624         Reported by Tom G. Christensen.
8625
8626 2008-08-17  Bruno Haible  <bruno@clisp.org>
8627
8628         New module 'threadlib'.
8629         * modules/threadlib: New file.
8630         * lib/glthread/threadlib.c: New file, extracted from
8631         lib/glthread/lock.c.
8632         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
8633         functions.
8634         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
8635         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
8636         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
8637         macros.
8638         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
8639         (gl_DISABLE_THREADS): Remove macro.
8640         * modules/lock (Files): Remove build-aux/config.rpath.
8641         (Depends-on): Remove havelib. Add threadlib.
8642         (configure.ac-early): Remove section.
8643         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
8644         * modules/tls (Depends-on): Remove lock. Add threadlib.
8645         (Link): New section, copied from threadlib.
8646         * MODULES.html.sh (Multithreading): Add threadlib.
8647
8648 2008-08-14  Bruno Haible  <bruno@clisp.org>
8649
8650         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
8651         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
8652         glthread_rwlock_unlock, glthread_rwlock_destroy,
8653         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
8654         glthread_recursive_lock_destroy): Define as macros always.
8655         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
8656         glthread_lock_lock.
8657         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
8658         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
8659         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
8660         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
8661         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
8662         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
8663         (glthread_recursive_lock_lock_func): Renamed from
8664         glthread_recursive_lock_lock.
8665         (glthread_recursive_lock_unlock_func): Renamed from
8666         glthread_recursive_lock_unlock.
8667         (glthread_recursive_lock_destroy_func): Renamed from
8668         glthread_recursive_lock_destroy.
8669
8670 2008-08-14  Bruno Haible  <bruno@clisp.org>
8671
8672         * lib/glthread/lock.h: Renamed from lib/lock.h.
8673         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
8674         * lib/glthread/tls.h: Renamed from lib/tls.h.
8675         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
8676         * lib/fstrcmp.c: Update includes.
8677         * lib/strsignal.c: Update includes.
8678         * modules/lock (Files, Makefile.am): Update.
8679         (Include): Change to "glthread/lock.h".
8680         * modules/tls (Files, Makefile.am): Update.
8681         (Include): Change to "glthread/tls.h".
8682         * tests/test-lock.c: Update includes.
8683         * tests/test-tls.c: Update includes.
8684         * NEWS: Mention the renamed header files.
8685
8686 2008-08-11  Jim Meyering  <meyering@redhat.com>
8687
8688         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
8689
8690 2008-08-11  Eric Blake  <ebb9@byu.net>
8691
8692         test-c-stack: avoid C99-ism
8693         * tests/test-c-stack.c (main): Fix whitespace, move declaration
8694         before statement.
8695         Reported by Alain Guibert.
8696
8697 2008-08-10  Jim Meyering  <meyering@redhat.com>
8698
8699         ensure that return value of uinttostr et al are not ignored
8700         * lib/inttostr.h (__GNUC_PREREQ): Define.
8701         (__attribute_warn_unused_result__): Define.
8702         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
8703
8704 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
8705
8706         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
8707         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
8708
8709 2008-08-07  Jim Meyering  <meyering@redhat.com>
8710
8711         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
8712
8713         * modules/mkstemp (License): Relicense under LGPLv2+.
8714         * modules/tempname (License): Likewise.
8715
8716 2008-08-06  Bruno Haible  <bruno@clisp.org>
8717
8718         * lib/poll.c (poll): Further micro-optimization.
8719
8720 2008-08-06  Jim Meyering  <meyering@redhat.com>
8721
8722         inet_pton.c: use locale-independent tolower
8723         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
8724         (inet_pton6): Use c_tolower rather than tolower.
8725         * modules/inet_pton (Depends-on): Add c-ctype.
8726
8727 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
8728
8729         * lib/poll.c (poll): Avoid division when timeout is 0, cache
8730         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
8731
8732 2008-08-06  Jim Meyering  <meyering@redhat.com>
8733
8734         * modules/inet_pton (License): Relicense under LGPLv2+.
8735
8736 2008-08-03  Bruno Haible  <bruno@clisp.org>
8737
8738         Additional non-aborting API for lock and tls.
8739         * lib/lock.h: Include <errno.h>.
8740         (glthread_lock_init): New macro/function.
8741         (gl_lock_init): Define as wrapper around glthread_lock_init.
8742         (glthread_lock_lock): New macro/function.
8743         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
8744         (glthread_lock_unlock): New macro/function.
8745         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
8746         (glthread_lock_destroy): New macro/function.
8747         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
8748         (glthread_rwlock_init): New macro/function.
8749         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
8750         (glthread_rwlock_rdlock): New macro/function.
8751         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
8752         (glthread_rwlock_wrlock): New macro/function.
8753         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
8754         (glthread_rwlock_unlock): New macro/function.
8755         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
8756         (glthread_rwlock_destroy): New macro/function.
8757         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
8758         (glthread_recursive_lock_init): New macro/function.
8759         (gl_recursive_lock_init): Define as wrapper around
8760         glthread_recursive_lock_init.
8761         (glthread_recursive_lock_lock): New macro/function.
8762         (gl_recursive_lock_lock): Define as wrapper around
8763         glthread_recursive_lock_lock.
8764         (glthread_recursive_lock_unlock): New macro/function.
8765         (gl_recursive_lock_unlock): Define as wrapper around
8766         glthread_recursive_lock_unlock.
8767         (glthread_recursive_lock_destroy): New macro/function.
8768         (gl_recursive_lock_destroy): Define as wrapper around
8769         glthread_recursive_lock_destroy.
8770         (glthread_once): New macro/function.
8771         (gl_once): Define as wrapper around glthread_once.
8772         Update function declarations.
8773         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
8774         glthread_rwlock_init. Return error code.
8775         (glthread_rwlock_rdlock_multithreaded): Renamed from
8776         glthread_rwlock_rdlock. Return error code.
8777         (glthread_rwlock_wrlock_multithreaded): Renamed from
8778         glthread_rwlock_wrlock. Return error code.
8779         (glthread_rwlock_unlock_multithreaded): Renamed from
8780         glthread_rwlock_unlock. Return error code.
8781         (glthread_rwlock_destroy_multithreaded): Renamed from
8782         glthread_rwlock_destroy. Return error code.
8783         (glthread_recursive_lock_init_multithreaded): Renamed from
8784         glthread_recursive_lock_init. Return error code.
8785         (glthread_recursive_lock_lock_multithreaded): Renamed from
8786         glthread_recursive_lock_lock. Return error code.
8787         (glthread_recursive_lock_unlock_multithreaded): Renamed from
8788         glthread_recursive_lock_unlock. Return error code.
8789         (glthread_recursive_lock_destroy_multithreaded): Renamed from
8790         glthread_recursive_lock_destroy. Return error code.
8791         (glthread_once_call): Make static.
8792         (glthread_once_multithreaded): Renamed from glthread_once.
8793         * lib/tls.h: Include <errno.h>.
8794         (glthread_tls_key_init): New macro/function.
8795         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
8796         (glthread_tls_set): New macro/function.
8797         (gl_tls_set): Define as wrapper around glthread_tls_set.
8798         (glthread_tls_key_destroy): New macro/function.
8799         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
8800         Update function declarations.
8801         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
8802         glthread_tls_get.
8803         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
8804
8805 2008-08-04  Eric Blake  <ebb9@byu.net>
8806
8807         gnumakefile: use space, not TAB, outside of targets
8808         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
8809
8810 2008-08-02  Jim Meyering  <meyering@redhat.com>
8811
8812         getdate.y: avoid locale-dependent date parsing failure
8813         In Turkish locales, getdate would fail to recognize keywords
8814         containing a lowercase "i".  The solution is not to rely on
8815         locale-sensitive case-conversion.
8816         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
8817         (lookup_word): Use c_toupper in place of toupper.
8818         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
8819         Reported by Vefa Bicakci <bicave@superonline.com> in
8820         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
8821         * modules/getdate (Depends-on): Add c-ctype.
8822
8823 2008-08-02  Bruno Haible  <bruno@clisp.org>
8824
8825         * gnulib-tool (func_import): When updating or creating a .gitignore
8826         file, prepend each added line with a slash, and ignore leading slashes
8827         from the existing lines.
8828         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
8829
8830 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8831
8832         Portability fix for GNU make 3.79.1.
8833         * top/GNUmakefile: Avoid 'else COND', which older GNU make
8834         versions do not understand.
8835
8836 2008-08-01  Bruno Haible  <bruno@clisp.org>
8837
8838         Work around bug of HP-UX 10.20 cc with -0.0 literal.
8839         * tests/test-isnanf.h (zero): New variable.
8840         (main): Avoid literal -0.0f.
8841         * tests/test-isnand.h (zero): New variable.
8842         (main): Avoid literal -0.0.
8843         * tests/test-isnanl.h (zero): New variable.
8844         (main): Avoid literal -0.0L.
8845         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
8846         (test_float, test_double, test_long_double): Avoid literals -0.0f,
8847         -0.0, -0.0L.
8848         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
8849         (test_signbitd): Avoid literal -0.0.
8850         (test_signbitl): Avoid literal -0.0L.
8851         * tests/test-ceilf1.c (zero): New variable.
8852         (main): Avoid literal -0.0f.
8853         * tests/test-ceill.c (zero): New variable.
8854         (main): Avoid literal -0.0L.
8855         * tests/test-floorf1.c (zero): New variable.
8856         (main): Avoid literal -0.0f.
8857         * tests/test-floorl.c (zero): New variable.
8858         (main): Avoid literal -0.0L.
8859         * tests/test-roundf1.c (zero): New variable.
8860         (main): Avoid literal -0.0f.
8861         * tests/test-round1.c (zero): New variable.
8862         (main): Avoid literal -0.0.
8863         * tests/test-roundl.c (zero): New variable.
8864         (main): Avoid literal -0.0L.
8865         * tests/test-truncf1.c (zero): New variable.
8866         (main): Avoid literal -0.0f.
8867         * tests/test-trunc1.c (zero): New variable.
8868         (main): Avoid literal -0.0.
8869         * tests/test-truncl.c (zero): New variable.
8870         (main): Avoid literal -0.0L.
8871         * tests/test-frexp.c (zero): New variable.
8872         (main): Avoid literal -0.0.
8873         * tests/test-frexpl.c (zero): New variable.
8874         (main): Avoid literal -0.0L.
8875         * tests/test-ldexpl.c (zero): New variable.
8876         (main): Avoid literal -0.0L.
8877         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
8878         (zerod, zerol): New variables.
8879         (test_function): Avoid literals -0.0, -0.0L.
8880         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
8881         (zerod, zerol): New variables.
8882         (test_function): Avoid literals -0.0, -0.0L.
8883         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
8884         (zerod, zerol): New variables.
8885         (test_function): Avoid literals -0.0, -0.0L.
8886         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
8887         (zerod, zerol): New variables.
8888         (test_function): Avoid literals -0.0, -0.0L.
8889         * tests/test-strtod.c (zero): New variable.
8890         (main): Avoid literal -0.0.
8891         Reported by Jonathan C. Patschke <jp@centtech.com>.
8892
8893 2008-07-31  Jim Meyering  <meyering@redhat.com>
8894
8895         sha256.h: correct definition of SHA224_DIGEST_SIZE
8896         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
8897         Reported by Paulie Pena IV <paulie4@gmail.com>.
8898         Define as 224 / 8, rather than as a literal.
8899         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
8900         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
8901         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
8902
8903 2008-07-31  Bruno Haible  <bruno@clisp.org>
8904
8905         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
8906         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
8907         Reported by Jonathan Patschke <jp@centtech.com>.
8908
8909 2008-07-31  Bruno Haible  <bruno@clisp.org>
8910
8911         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
8912         Reported by Paolo Bonzini <bonzini@gnu.org>.
8913
8914 2008-07-30  Eric Blake  <ebb9@byu.net>
8915
8916         test-strtod: allow compilation without -lm
8917         * tests/test-strtod.c (main): Avoid link dependence on fabs.
8918         Reported by Dennis Clarke <blastwave@gmail.com>.
8919
8920 2008-07-28  Jim Meyering  <meyering@redhat.com>
8921
8922         bootstrap: work also when there are no .po files in po/
8923         * build-aux/bootstrap (update_po_files): Complete the change
8924         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
8925
8926 2008-07-27  Jim Meyering  <meyering@redhat.com>
8927
8928         * users.txt: Add zile.
8929
8930 2008-07-26  Ben Pfaff  <blp@gnu.org>
8931
8932         Add missing dependencies on new m4/exponent[fdl].m4 files.
8933         * modules/isnanf-nolibm: Add m4/exponentf.m4.
8934         * modules/isnand-nolibm: Add m4/exponentd.m4.
8935         * modules/isnanl-nolibm: Add m4/exponentl.m4.
8936         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
8937         m4/isnan[fdl].m4, because the macros actually used moved.
8938         Reported by Jim Meyering.
8939
8940 2008-07-14  Ben Pfaff  <blp@gnu.org>
8941
8942         Add isinf module.
8943         * lib/isinf.c: New file.
8944         * lib/math.in.h: Define isinf macro if we have decided to replace
8945         it.
8946         * m4/isinf.m4: New file.
8947         * m4/math_h.m4: Initialize and substitute variables for isinf
8948         module.
8949         * modules/isinf: New file.
8950         * modules/isinf-tests: New file.
8951         * modules/math: Add substitutions for new module.
8952         * tests/test-isinf.c: New file.
8953         * doc/posix-functions/isinf.texi: Mention new module.
8954         * MODULES.html.sh: Mention new module.
8955
8956 2008-07-14  Ben Pfaff  <blp@gnu.org>
8957
8958         Factor out some macros for use by additional modules.
8959         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
8960         exponentf.m4.
8961         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
8962         exponentd.m4.
8963         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
8964         file exponentl.m4.
8965         * m4/exponentf.m4: New file.
8966         * m4/exponentd.m4: New file.
8967         * m4/exponentl.m4: New file.
8968         * modules/isnanf: Use new file m4/exponentf.m4.
8969         * modules/isnand: Use new file m4/exponentd.m4.
8970         * modules/isnanl: Use new file m4/exponentl.m4.
8971
8972 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
8973
8974         mktime.c: normalize tp->tm_isdst value to -1/0/1.
8975         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
8976         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
8977         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
8978
8979         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
8980         readlink on platforms without PATH_MAX.
8981
8982 2008-07-21  Eric Blake  <ebb9@byu.net>
8983
8984         Warn, not fail, on stale version.
8985         * top/GNUmakefile (_curr-ver): Tone down previous patch.
8986
8987         Don't allow installation with stale devel version number.
8988         * top/GNUmakefile (_is-install-target): New macro.
8989         (_curr-ver): Forbid installation with stale version number.
8990
8991 2008-07-20  Bruno Haible  <bruno@clisp.org>
8992
8993         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
8994         TESTS_ENVIRONMENT.
8995         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
8996
8997 2008-07-20  Bruno Haible  <bruno@clisp.org>
8998
8999         * lib/c-stack.h (c_stack_action): Add documentation.
9000         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
9001
9002 2008-07-20  Bruno Haible  <bruno@clisp.org>
9003
9004         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
9005         * modules/readlink (License): Likewise.
9006
9007 2008-07-17  Eric Blake  <ebb9@byu.net>
9008
9009         * modules/c-stack (Link): Fix typo.
9010
9011         Make c-stack use libsigsegv, when available.
9012         * modules/c-stack (Depends-on): Add libsigsegv.
9013         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
9014         needed.
9015         * lib/c-stack.c (SIGSTKSZ): Define fallback.
9016         (segv_handler, overflow_handler, c_stack_action)
9017         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
9018         implementation when libsigsegv is available, but only when using
9019         the library is necessary.
9020         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
9021         comment, explaining why XSI check fails on Linux.
9022         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
9023         * tests/test-c-stack2.sh: Tweak skip message.
9024         * NEWS: Document new link-time requirements.
9025
9026 2008-07-16  Eric Blake  <ebb9@byu.net>
9027
9028         c-stack: Expose false positives when not using libsigsegv.
9029         * modules/c-stack-tests (Files): Expand test.
9030         * tests/test-c-stack.c (main): Add means to conditionally trigger
9031         non-overflow SIGSEGV.
9032         * tests/test-c-stack2.sh: New file.
9033
9034 2008-07-14  Bruno Haible  <bruno@clisp.org>
9035
9036         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
9037         Reported by Eric Blake.
9038
9039 2008-07-14  Sam Steingold  <sds@gnu.org>
9040             Bruno Haible  <bruno@clisp.org>
9041
9042         New module libsigsegv.
9043         * modules/libsigsegv: New file.
9044         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
9045         modifications.
9046         * MODULES.html.sh (Signal handling): New section.
9047
9048 2008-07-14  Bruno Haible  <bruno@clisp.org>
9049
9050         * modules/unictype/ctype-* (Description): Add the word "function".
9051         Improves the resulting doc in MODULES.html.
9052
9053 2008-07-12  Ben Pfaff  <blp@gnu.org>
9054
9055         Add longlong module.
9056         * modules/longlong: New file.
9057
9058 2008-07-12  Bruno Haible  <bruno@clisp.org>
9059
9060         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
9061         to empty.
9062
9063 2008-07-10  Ben Pfaff  <blp@gnu.org>
9064
9065         Add isnan module.
9066         * doc/posix-functions/isnan.texi: Mention new module.
9067         * lib/math.in.h: Define isnan macro if we have decided to replace
9068         it.
9069         * m4/isnan.m4: New file.
9070         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
9071         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
9072         also.
9073         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
9074         redundancy.
9075         * m4/math_h.m4: Initialize and substitute variables for isnan
9076         module.
9077         * modules/isnan: New file.
9078         * modules/isnan-tests: New file.
9079         * modules/math: Add substitutions for new module.
9080         * tests/test-isnan.c: New file.
9081         * MODULES.html.sh: Mention new module.
9082
9083 2008-07-10  Ben Pfaff  <blp@gnu.org>
9084
9085         Add isnanf module.
9086         * lib/isnanf.m4: New file.
9087         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
9088         (gl_HAVE_ISNANF_IN_LIBM): New macro.
9089         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
9090         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
9091         * modules/isnanf: New file.
9092         * modules/isnanf-tests: New file.
9093         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
9094         files.
9095         * tests/test-isnanf-nolibm.c: factored most of its contents into
9096         new file tests/test-isnanf.h.
9097         * tests/test-isnanf.h: New file.
9098         * tests/test-isnanf.c: New file.
9099         * MODULES.html.sh: Mention new module.
9100         * doc/glibc-functions/isnanf.texi: Mention new module.
9101
9102 2008-07-10  Ben Pfaff  <blp@gnu.org>
9103
9104         Add isnand module.
9105         * lib/isnand.h: New file.
9106         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
9107         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
9108         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
9109         functionality also.
9110         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
9111         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
9112         (gl_HAVE_ISNAND_IN_LIBM): New macro.
9113         * modules/isnand: New file.
9114         * modules/isnand-tests: New file.
9115         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
9116         files.
9117         * tests/test-isnand-nolibm.c: factored most of its contents into
9118         new file tests/test-isnand.h.
9119         * tests/test-isnand.h: New file.
9120         * tests/test-isnand.c: New file.
9121         * MODULES.html.sh: Mention new module.
9122
9123 2008-07-10  Ben Pfaff  <blp@gnu.org>
9124
9125         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
9126         * lib/isnand.h: Rename lib/isnand-nolibm.h.
9127         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
9128         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
9129         * modules/isnanf-nolibm: Update references to renamed files.
9130         * modules/isnand-nolibm: Likewise.
9131         * modules/isnanf-nolibm-tests: Likewise.
9132         * modules/isnand-nolibm-tests: Likewise.
9133         * lib/frexp.c: Likewise.
9134         * lib/isfinite.c: Likewise.
9135         * lib/signbitd.c: Likewise.
9136         * lib/signbitf.c: Likewise.
9137         * lib/vasnprintf.c: Likewise.
9138         * tests/test-ceilf1.c: Likewise.
9139         * tests/test-ceilf2.c: Likewise.
9140         * tests/test-floorf1.c: Likewise.
9141         * tests/test-floorf2.c: Likewise.
9142         * tests/test-frexp.c: Likewise.
9143         * tests/test-round1.c: Likewise.
9144         * tests/test-round2.c: Likewise.
9145         * tests/test-roundf1.c: Likewise.
9146         * tests/test-strtod.c: Likewise.
9147         * tests/test-trunc1.c: Likewise.
9148         * tests/test-trunc2.c: Likewise.
9149         * tests/test-truncf1.c: Likewise.
9150         * tests/test-truncf2.c: Likewise.
9151         * NEWS: Mention the renamed header files.
9152
9153 2008-07-11  Jim Meyering  <meyering@redhat.com>
9154
9155         vc-list-files: make the last-resort awk code more portable
9156         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
9157         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
9158         does not support it.
9159
9160 2008-07-10  Eric Blake  <ebb9@byu.net>
9161
9162         Work with tar's bootstrap.
9163         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
9164         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
9165         an m4 comment.
9166
9167 2008-07-09  Jim Meyering  <meyering@redhat.com>
9168
9169         posix-shell.m4: fix typo that made this test malfunction
9170         * m4/posix-shell.m4: Remove capitalization in variable name.
9171
9172 2008-07-08  Bruno Haible  <bruno@clisp.org>
9173
9174         * m4/onceonly.m4: Update comments.
9175         Reported by Ben Pfaff <blp@cs.stanford.edu>.
9176
9177 2008-07-04  Jim Meyering  <meyering@redhat.com>
9178
9179         * users.txt: Add vc-dwim.
9180         (bison, coreutils): Use the gitweb URL.
9181
9182 2008-07-03  Jim Meyering  <meyering@redhat.com>
9183
9184         * users.txt: Add libffcall.  From Sam Steingold.
9185
9186 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
9187
9188         getdate.y: do not ignore TZ with relative day, month or year offset
9189         * lib/getdate.y (get_date): Move the tz-handling block to follow the
9190         relative-date-handling, since otherwise, the latter would clobber the
9191         sole output (an updated Start value) of the tz-handling block.
9192         * tests/test-getdate.c: Tests for the fix
9193
9194 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9195
9196         Recognize 'foo_LIBRARIES += libgnu.a'.
9197         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
9198         makefile snippet has already specified an installation location,
9199         also using '+='.
9200
9201 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
9202
9203         getdate.y: factor out common actions
9204         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
9205         Use them in place of open-coded actions.
9206
9207 2008-07-01  Simon Josefsson  <simon@josefsson.org>
9208
9209         Add self-test for getdate module.
9210         * modules/getdate-tests: New file.
9211         * tests/test-getdate.c: New file.
9212
9213 2008-06-29  Bruno Haible  <bruno@clisp.org>
9214
9215         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
9216         .gitignore.
9217         Reported by Sylvain Beucler <beuc@beuc.net>.
9218
9219 2008-06-29  Bruno Haible  <bruno@clisp.org>
9220
9221         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
9222         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
9223
9224 2008-06-29  Bruno Haible  <bruno@clisp.org>
9225
9226         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
9227         EXTRA_DIST.
9228         Reported by Sylvain Beucler <beuc@beuc.net>.
9229
9230 2008-06-26  Jim Meyering  <meyering@redhat.com>
9231
9232         make several modules depend on the "open" module
9233         This provides slightly increased consistency when opening-for-write
9234         the name of a non-directory spelled with a trailing slash.
9235         * modules/chdir-safer: Likewise.
9236         * modules/chown: Likewise.
9237         * modules/clean-temp: Likewise.
9238         * modules/copy-file: Likewise.
9239         * modules/fchdir: Likewise.
9240         * modules/fcntl-safer: Likewise.
9241         * modules/pipe: Likewise.
9242         * modules/utime: Likewise.
9243         Prompted by Eric Blake and Bruno Haible.
9244
9245 2008-06-24  Andreas Schwab  <schwab@suse.de>
9246
9247         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
9248         literals can be used as initializers for global variables.
9249
9250 2008-06-23  Eric Blake  <ebb9@byu.net>
9251
9252         Make gnulib-cache.m4 easier to diff.
9253         * gnulib-tool (func_import): Allow newlines when reading cached
9254         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
9255
9256 2008-06-23  Bruno Haible  <bruno@clisp.org>
9257
9258         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
9259         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
9260         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
9261         m4/signalblocking.m4.
9262         (gl_PREREQ_SIGACTION): Don't invoke it.
9263         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
9264         gl_PREREQ_SIG_HANDLER_H.
9265         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
9266         Don't check for sigaction here.
9267
9268 2008-06-23  Bruno Haible  <bruno@clisp.org>
9269
9270         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
9271         (install_handlers): Don't set the SA_RESETHAND flag.
9272
9273 2008-06-23  Bruno Haible  <bruno@clisp.org>
9274
9275         * m4/sigaction.m4: Comment fixes.
9276         * lib/signal.in.h: Likewise.
9277
9278 2008-06-23  Eric Blake  <ebb9@byu.net>
9279
9280         Fix typo.
9281         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
9282
9283         Avoid SA_ namespace.
9284         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
9285         Reported by Ralf Wildenhues.
9286
9287         Avoid test failure due to SA_RESTORER.
9288         * tests/test-sigaction.c (SA_MASK): New macro.
9289         (main): Avoid failing due to extension flags being set.
9290         Reported by Jim Meyering.
9291
9292         Revert use of sig-handler.h in sigprocmask.c.
9293         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
9294         it requires the existence of struct sigaction.
9295         * lib/sigprocmask.c (handler_t): Restore typedef.
9296         (rpl_signal, old_handlers): Use local type.
9297
9298 2008-06-22  Bruno Haible  <bruno@clisp.org>
9299
9300         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
9301         conditionally.
9302         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9303
9304 2008-06-22  Bruno Haible  <bruno@clisp.org>
9305
9306         * doc/posix-functions/siginterrupt.texi: Move note.
9307
9308         * lib/signal.in.h (SA_RESTART): New macro.
9309         * lib/sigaction.c: Update comment.
9310
9311         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
9312
9313         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
9314         (gl_PREREQ_SIGPROCMASK): Invoke it.
9315         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
9316
9317         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
9318
9319         * lib/sigprocmask.c: Update a comment.
9320
9321 2008-06-21  Eric Blake  <ebb9@byu.net>
9322
9323         Use sigaction module rather than signal().
9324         * modules/c-stack (Depends-on): Add sigaction.
9325         * modules/fatal-signal (Depends-on): Likewise.
9326         * modules/nanosleep (Depends-on): Likewise.
9327         * modules/sigprocmask (Files): Add sig-handler.h.
9328         * modules/sigaction (Files): Likewise.
9329         * lib/sig-handler.h (get_handler): New file, suggested by Paul
9330         Eggert.
9331         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
9332         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
9333         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
9334         (init_fatal_signals): Likewise.
9335         * lib/nanosleep.c (rpl_nanosleep): Likewise.
9336         (siginterrupt): Delete fallback.
9337         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
9338         instead.
9339         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
9340         siginterrupt.
9341
9342         New module sigaction, for mingw.
9343         * modules/sigaction: New module...
9344         * modules/sigaction-tests: ...and its test.
9345         * m4/sigaction.m4: New file.
9346         * lib/sigaction.c: Likewise.
9347         * tests/test-sigaction.c: Likewise.
9348         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
9349         * modules/signal (Makefile.am): Likewise.
9350         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
9351         needed.
9352         * doc/posix-headers/signal.texi (signal.h): Mention provided
9353         types.
9354         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
9355         that sigaction is preferable.
9356         * doc/posix-functions/sigaction.texi (sigaction): Mention new
9357         module.
9358         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
9359         sigaction.
9360
9361         Improve robustness of sigprocmask by overriding signal.
9362         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
9363         is in use.
9364         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
9365         (SIGKILL, SIGSTOP): Provide fallbacks.
9366         (rpl_signal): Implement.
9367         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
9368         signal can be called inside handlers.
9369
9370         Fix nanosleep module on mingw.
9371         * modules/nanosleep (Depends-on): Add sys_select.
9372         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
9373
9374         Fix licensing of sigprocmask.
9375         * modules/raise (License): Relicense as LGPL.
9376
9377 2008-06-21  Bruno Haible  <bruno@clisp.org>
9378
9379         * lib/propername.c (proper_name_utf8): Don't use the transliterated
9380         result if it contains question marks.
9381         Reported by Michael Geng <linux@michaelgeng.de>.
9382
9383 2008-06-19  Bruno Haible  <bruno@clisp.org>
9384
9385         Fix CVS-ism.
9386         * doc/gnulib.texi: Include updated-stamp.texi.
9387         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
9388         (updated-stamp.texi): New rule.
9389         (gnulib.info): Depend on it.
9390         * doc/.gitignore: Add updated-stamp.texi.
9391         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
9392
9393 2008-06-19  Bruno Haible  <bruno@clisp.org>
9394
9395         * doc/Makefile (gnulib.info): Update and simplify dependencies.
9396         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
9397
9398 2008-06-19  Eric Blake  <ebb9@byu.net>
9399
9400         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
9401         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
9402         Reported by Stepan Kasal.
9403
9404 2008-06-18  Bruno Haible  <bruno@clisp.org>
9405
9406         * lib/fatal-signal.c (init_fatal_signals): Add comment.
9407         Reported by Eric Blake.
9408
9409 2008-06-18  Eric Blake  <ebb9@byu.net>
9410
9411         Work around cygwin 1.5.25 strsignal bug.
9412         * tests/test-strsignal.c: Allow for const char *.
9413         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
9414
9415 2008-06-18  Simon Josefsson  <simon@josefsson.org>
9416
9417         * users.txt: Update URL to article and add author/date
9418         information.
9419
9420 2008-06-17  Bruno Haible  <bruno@clisp.org>
9421
9422         New macro gl_DISABLE_THREADS.
9423         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
9424         if the user did not pass --enable-threads or --disable-threads option.
9425         (gl_DISABLE_THREADS): New macro.
9426         Reported by Eric Blake <ebb9@byu.net>.
9427
9428 2008-06-17  Bruno Haible  <bruno@clisp.org>
9429
9430         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
9431         when the macro ignores it.
9432         Based on a patch by Eric Blake <ebb9@byu.net>.
9433
9434 2008-06-17  Bruno Haible  <bruno@clisp.org>
9435
9436         * modules/tls (License): Change to LGPLv2+.
9437         Reported by Eric Blake.
9438
9439 2008-06-17  Eric Blake  <ebb9@byu.net>
9440
9441         Simplify c-stack prerequisites.
9442         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
9443         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
9444         no longer requires <ucontext.h> to exist.  Optimize setrlimit
9445         check.
9446         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
9447         <sys/resource.h>.
9448
9449         Move c-stack test into testsuite.
9450         * modules/c-stack-tests: New file.
9451         * lib/c-stack.c [DEBUG]: Move test program...
9452         * tests/test-c-stack.c: ...into this new file.  Skip rather than
9453         fail test if sigaltstack is lacking.
9454         * tests/test-c-stack.sh: New driver file.
9455
9456 2008-06-16  Eric Blake  <ebb9@byu.net>
9457
9458         Use raise module consistently.
9459         * modules/fatal-signal (Depends-on): Add raise.
9460         * modules/sigprocmask (Depends-on): Likewise.
9461         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
9462         * lib/sigprocmask.c (sigprocmask): Likewise.
9463         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
9464         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
9465
9466         Fix compliance bug in sigpending.
9467         * lib/sigprocmask.c (sigpending): Return pending array via
9468         parameter, not return value.
9469
9470 2008-06-14  Eric Blake  <ebb9@byu.net>
9471
9472         Improve obstack-printf test code.
9473         * tests/test-obstack-printf.c (test_function): Fix comment, and
9474         simplify usage of obstack_* in macros.  Add a test for coverage.
9475         Reported by Bruno Haible.
9476
9477 2008-06-14  Bruno Haible  <bruno@clisp.org>
9478
9479         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
9480         array size as a constant, not as a const variable.
9481         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
9482         AC_USE_SYSTEM_EXTENSIONS.
9483         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
9484         Test whether the obstack_printf function actually exists.
9485         * modules/obstack-printf (Depends-on): Add extensions.
9486         (Include): Remove obstack.h.
9487         * modules/obstack-printf-posix (Depends-on): Add extensions.
9488         (Include): Remove obstack.h.
9489
9490 2008-06-13  Eric Blake  <ebb9@byu.net>
9491
9492         Add obstack-printf and obstack-printf-posix modules.
9493         * modules/obstack-printf: New file.
9494         * modules/obstack-printf-posix: Likewise.
9495         * MODULES.html.sh (Misc): Mention them.
9496         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
9497         Likewise.
9498         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
9499         Likewise.
9500         * modules/stdio (Makefile.am): Accomodate new modules.
9501         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9502         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
9503         Declare.
9504         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
9505         functions.
9506         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
9507         (gl_REPLACE_OBSTACK_PRINTF): New macros
9508         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
9509         * tests/test-obstack-printf.c: New file.
9510         * modules/obstack-printf-tests: Likewise.
9511         * modules/obstack-printf-posix-tests: Likewise.
9512
9513 2008-06-11  Bruno Haible  <bruno@clisp.org>
9514
9515         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
9516         * lib/open.c: Include errno.h.
9517         (open): Fail when attempting to write to a file that has a trailing
9518         slash.
9519         * tests/test-open.c (main): Test against trailing slash bug.
9520         * doc/posix-functions/open.texi: Mention the trailing slash bug.
9521
9522 2008-06-10  Bruno Haible  <bruno@clisp.org>
9523
9524         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
9525         for $? to work inside the trap command, with various /bin/sh-s.
9526         * tests/test-vc-list-files-cvs.sh: Likewise.
9527
9528 2008-06-10  Bruno Haible  <bruno@clisp.org>
9529
9530         * lib/acl-internal.h: Don't include gettext.h here.
9531         * lib/set-mode-acl.c: Include gettext.h here.
9532         * lib/copy-acl.c: Likewise.
9533
9534 2008-06-10  Bruno Haible  <bruno@clisp.org>
9535
9536         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
9537         * lib/wait-process.c (wait_subprocess): Likewise.
9538         * lib/execute.h (execute): Add termsigp argument.
9539         * lib/execute.c (execute): Likewise.
9540         * lib/csharpcomp.c (compile_csharp_using_pnet,
9541         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
9542         * lib/csharpexec.c (execute_csharp_using_pnet,
9543         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
9544         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
9545         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
9546         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
9547         is_jikes_present): Update.
9548         * lib/javaexec.c (execute_java_class): Update.
9549         * lib/javaversion.c (execute_and_read_line): Update.
9550         * NEWS: Document the changes.
9551         Reported by Eric Blake.
9552
9553 2008-06-10  Eric Blake  <ebb9@byu.net>
9554
9555         Add missing include.
9556         * tests/test-strstr.c (includes): Add <signal.h>.
9557         * tests/test-strcasestr.c (includes): Likewise.
9558         * tests/test-memmem.c (includes): Likewise.
9559
9560 2008-06-10  Bruno Haible  <bruno@clisp.org>
9561
9562         * lib/wait-process.c (wait_subprocess): Add an assertion.
9563
9564 2008-06-10  Bruno Haible  <bruno@clisp.org>
9565
9566         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
9567
9568 2008-06-10  Bruno Haible  <bruno@clisp.org>
9569
9570         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
9571         using alarm().
9572         * tests/test-strcasestr.c (main): Likewise.
9573         * tests/test-strstr.c (main): Likewise.
9574
9575 2008-06-09  Bruno Haible  <bruno@clisp.org>
9576
9577         Work around the Solaris 10 ACE ACLs ABI change.
9578         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
9579         declare if ACL_NO_TRIVIAL is present.
9580         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
9581         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
9582         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
9583         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
9584         define if ACL_NO_TRIVIAL is present.
9585         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
9586         and use the current ABI.
9587         (file_has_acl): Use same #if condition as elsewhere.
9588         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
9589         in use, and use the current ABI.
9590         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
9591         Reported by Jim Meyering.
9592
9593 2008-06-09  Eric Blake  <ebb9@byu.net>
9594
9595         Work around environments that (stupidly) ignore SIGALRM.
9596         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
9597         before using alarm().
9598         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9599         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9600         Reported by Ian Beckwith <ianb@erislabs.net>.
9601
9602         Produce autobuild blurb earlier in log.
9603         * modules/autobuild (configure.ac-early): Move AB_INIT here.
9604
9605 2008-06-09  Jim Meyering  <meyering@redhat.com>
9606         and OndÅ™ej Vašík  <ovasik@redhat.com>
9607
9608         utimens.c: correct kernel bug work-around
9609         OndÅ™ej Vašík found that the invalid return value of 280 indicates
9610         failure, not success, and the kernel bug we're trying to work
9611         around affects not just the utimensat call, but also the fallback
9612         futimens call.
9613         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
9614         not success.
9615         [HAVE_FUTIMENS]: Use the same work-around, here.
9616
9617 2008-06-09  Jim Meyering  <meyering@redhat.com>
9618
9619         add more guards around definition of ACE_-related code
9620         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
9621         ALLOW and ACE_OWNER are also defined.
9622
9623 2008-06-08  Bruno Haible  <bruno@clisp.org>
9624
9625         * lib/acl-internal.h: Add me as co-author.
9626         * lib/file-has-acl.c: Likewise.
9627         * lib/set-mode-acl.c: Likewise.
9628         * lib/copy-acl.c: Likewise.
9629
9630 2008-06-08  Bruno Haible  <bruno@clisp.org>
9631
9632         Add support for AIX ACLs.
9633         * lib/acl-internal.h (acl_nontrivial): New declaration.
9634         * lib/file-has-acl.c (acl_nontrivial): New function.
9635         (file_has_acl): Add implementation using AIX 4 ACL API.
9636         * lib/set-mode-acl.c (qset_acl): Likewise.
9637         * lib/copy-acl.c (qcopy_acl): Likewise.
9638
9639 2008-06-08  Bruno Haible  <bruno@clisp.org>
9640
9641         Add support for HP-UX ACLs.
9642         * lib/acl-internal.h (acl_nontrivial): New declaration.
9643         * lib/file-has-acl.c (acl_nontrivial): New function.
9644         (file_has_acl): Add implementation using HP-UX 11 ACL API.
9645         * lib/set-mode-acl.c (qset_acl): Likewise.
9646         * lib/copy-acl.c (qcopy_acl): Likewise.
9647
9648 2008-06-08  Bruno Haible  <bruno@clisp.org>
9649
9650         Add support for Cygwin ACLs.
9651         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
9652         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
9653         the chmod_or_fchmod call.
9654         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
9655
9656 2008-06-08  Bruno Haible  <bruno@clisp.org>
9657
9658         Fix bug with setuid modes in Solaris 10+ code.
9659         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
9660         succeeded, when the mode contains some special bits.
9661
9662 2008-06-08  Bruno Haible  <bruno@clisp.org>
9663
9664         Add support for Solaris 7..10 ACLs.
9665         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
9666         declarations.
9667         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
9668         functions.
9669         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
9670         * lib/set-mode-acl.c (qset_acl): Likewise.
9671         * lib/copy-acl.c (qcopy_acl): Likewise.
9672
9673 2008-06-08  Bruno Haible  <bruno@clisp.org>
9674
9675         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
9676         declaration.
9677         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
9678         (acl_access_nontrivial): Remove MacOS X case.
9679         (file_has_acl): Use acl_extended_nontrivial.
9680         * lib/copy-acl.c (qcopy_acl): Likewise.
9681
9682 2008-06-08  Bruno Haible  <bruno@clisp.org>
9683
9684         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
9685
9686 2008-06-08  Jim Meyering  <meyering@redhat.com>
9687
9688         * modules/acl (Maintainer): Add Bruno Haible.
9689
9690 2008-06-07  Bruno Haible  <bruno@clisp.org>
9691
9692         Improve support for Tru64 ACLs.
9693         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
9694         ACL on OSF/1.
9695
9696 2008-06-07  Bruno Haible  <bruno@clisp.org>
9697
9698         Add support for MacOS X ACLs.
9699         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
9700         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
9701         * lib/set-mode-acl.c (qset_acl): Likewise.
9702         * lib/copy-acl.c (qcopy_acl): Likewise.
9703
9704 2008-06-07  Bruno Haible  <bruno@clisp.org>
9705
9706         Fix memory leak introduced on 2008-05-22.
9707         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
9708         use.
9709
9710 2008-06-07  Bruno Haible  <bruno@clisp.org>
9711
9712         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
9713         to construct an empty ACL.
9714
9715 2008-06-07  Bruno Haible  <bruno@clisp.org>
9716
9717         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
9718         precisely.
9719         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
9720
9721 2008-06-07  Bruno Haible  <bruno@clisp.org>
9722
9723         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
9724         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
9725
9726 2008-06-07  Bruno Haible  <bruno@clisp.org>
9727
9728         * doc/posix-functions/_setjmp.texi: Explain the use of this function
9729         regardless of POSIX.
9730         * doc/posix-functions/_longjmp.texi: Likewise.
9731         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
9732         SystemV platform in this case.
9733
9734 2008-06-06  Eric Blake  <ebb9@byu.net>
9735
9736         Document abort() bugs.
9737         * doc/posix-functions/abort.texi (abort): Mention anomalies.
9738
9739         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
9740         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
9741         sigsetjmp.
9742         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
9743         siglongjmp, but only as a macro.
9744         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
9745         is obsolete.
9746         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
9747
9748         Tweak documentation to cover cygwin argz bugs.
9749         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
9750         argz bug fix; no code change needed since no cygwin releases
9751         occurred between the last fix and the bug being tested.
9752         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
9753         module and recently fixed cygwin bugs.
9754         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
9755         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
9756         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
9757         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
9758         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
9759         Likewise.
9760         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
9761         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
9762         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
9763         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
9764         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
9765         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
9766         Likewise.
9767
9768         Avoid gcc warning on cygwin.
9769         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
9770         !ACL_NO_TRIVIAL]: Avoid unused variable.
9771
9772 2008-06-05  Eric Blake  <ebb9@byu.net>
9773
9774         Be tolerant of UNKNOWN version in gnulib-tool test dir.
9775         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
9776         git-version-gen fails to come up with a version.
9777         Reported by Simon Josefsson.
9778
9779 2008-06-05  Jim Meyering  <meyering@redhat.com>
9780             Paul Eggert  <eggert@cs.ucla.edu>
9781
9782         utimens.c: work around a probable Linux kernel bug
9783         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
9784         appears to be a kernel bug that causes utimensat to return 280
9785         instead of 0, indicating success.
9786
9787 2008-06-04  Bruno Haible  <bruno@clisp.org>
9788
9789         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
9790         2008-06-01 commit.
9791
9792 2008-06-04  Bruno Haible  <bruno@clisp.org>
9793
9794         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
9795         * lib/file-has-acl.c (acl_access_nontrivial): New function.
9796         (file_has_acl): Use it. Save errno afterwards.
9797         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
9798
9799 2008-06-03  Bruno Haible  <bruno@clisp.org>
9800
9801         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
9802         draft code. Simplify #ifs.
9803         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
9804         Put Solaris code after POSIX-draft code. Fix comments regarding
9805         Solaris 10, HP-UX. Mention Cygwin.
9806         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
9807
9808 2008-06-03  Eric Blake  <ebb9@byu.net>
9809
9810         Provide fallback for older kernels.
9811         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
9812         Provide runtime fallback if kernel lacks support.
9813         Reported by Mike Frysinger.
9814
9815 2008-06-02  Bruno Haible  <bruno@clisp.org>
9816
9817         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
9818         it exists.
9819
9820 2008-06-02  Bruno Haible  <bruno@clisp.org>
9821
9822         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
9823         * lib/copy-acl.c (qcopy_acl): Update comment.
9824
9825 2008-06-02  Bruno Haible  <bruno@clisp.org>
9826
9827         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
9828         like ACL APIs.
9829
9830 2008-06-02  Bruno Haible  <bruno@clisp.org>
9831
9832         * tests/test-file-has-acl.sh: Use different code for Cygwin.
9833         * tests/test-set-mode-acl.sh: Likewise.
9834         * tests/test-copy-acl.sh: Likewise.
9835         * tests/test-copy-file.sh: Likewise.
9836
9837 2008-06-02  Bruno Haible  <bruno@clisp.org>
9838
9839         * tests/test-file-has-acl.sh: Remove unused code.
9840
9841 2008-06-01  Bruno Haible  <bruno@clisp.org>
9842
9843         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
9844         (copy_acl): Just a wrapper around qcopy_acl that emits the error
9845         messages.
9846         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
9847
9848 2008-06-01  Bruno Haible  <bruno@clisp.org>
9849
9850         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
9851         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
9852         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
9853         APIs.
9854         * modules/acl-tests (configure.ac): Remove tests now contained in
9855         m4/acl.m4.
9856
9857 2008-06-02  Jim Meyering  <meyering@redhat.com>
9858
9859         announce-gen: use a better key-server host name
9860         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
9861         it may be more consistently reliable.  Suggested by Werner Koch
9862         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
9863
9864 2008-06-01  Bruno Haible  <bruno@clisp.org>
9865
9866         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
9867         Reported by Voroskoi Andras <voroskoi@gmail.com>.
9868
9869 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
9870
9871         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
9872
9873 2008-06-01  Bruno Haible  <bruno@clisp.org>
9874
9875         New ACL tests.
9876         * tests/test-file-has-acl.sh: New file.
9877         * tests/test-file-has-acl.c: New file.
9878         * tests/test-set-mode-acl.sh: New file.
9879         * tests/test-set-mode-acl.c: New file.
9880         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
9881         * tests/test-copy-acl.c: New file.
9882         * modules/acl-tests: New file, based on modules/copy-file-tests.
9883         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
9884         (Depends-on): Add acl-tests.
9885         (configure.ac): Remove checks.
9886         (Makefile.am): Don't create test-sameacls program here any more.
9887
9888 2008-06-01  Bruno Haible  <bruno@clisp.org>
9889
9890         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
9891         * tests/test-sameacls.c: Include progname.h.
9892         (main): Invoke set_program_name. Portability fixes for MacOS X,
9893         Solaris, HP-UX.
9894
9895 2008-06-01  Bruno Haible  <bruno@clisp.org>
9896
9897         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
9898         function.
9899         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
9900
9901 2008-06-01  Bruno Haible  <bruno@clisp.org>
9902
9903         * modules/rpmatch (Depends-on): Add strdup.
9904
9905 2008-06-01  Bruno Haible  <bruno@clisp.org>
9906
9907         * lib/pipe.c: Include unistd-safer.h.
9908         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
9909         * modules/pipe (Depends-on): Add unistd-safer.
9910
9911 2008-05-30  Simon Josefsson  <simon@josefsson.org>
9912
9913         * modules/autobuild (configure.ac): Call AB_INIT.
9914
9915 2008-05-30  Simon Josefsson  <simon@josefsson.org>
9916
9917         * tests/test-getaddrinfo.c: Don't print debug messages by default.
9918         Suggested by Bruno Haible <bruno@clisp.org>.
9919
9920 2008-05-30  Simon Josefsson  <simon@josefsson.org>
9921
9922         * tests/test-base64.c: Cast size_t to unsigned long when invoking
9923         printf.  Use %lu instead of %d.  Reported by Bruno Haible
9924         <bruno@clisp.org>.
9925
9926 2008-05-29  Eric Blake  <ebb9@byu.net>
9927
9928         Prefer new POSIX 200x interfaces over futimesat.
9929         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
9930         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
9931         when available.
9932         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
9933
9934 2008-05-28  Bruno Haible  <bruno@clisp.org>
9935
9936         * modules/stpcpy (License): Change to LGPLv2+.
9937         Requested by David Lutterkort <dlutter@redhat.com>.
9938
9939 2008-05-27  Bruno Haible  <bruno@clisp.org>
9940
9941         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
9942         current mingw.
9943         Reported by Jose E. Marchesi <jemarch@gnu.org>.
9944
9945 2008-05-27  Bruno Haible  <bruno@clisp.org>
9946
9947         * modules/iconv_open (Link): New section, from module 'iconv'.
9948         * modules/striconv (Link): Likewise.
9949         * modules/striconveh (Link): Likewise.
9950         * modules/xstriconv (Link): Likewise.
9951         * modules/unicodeio (Link): Likewise.
9952         * modules/propername (Link): Likewise.
9953         Reported by Jim Meyering.
9954
9955 2008-05-26  Jim Meyering  <meyering@redhat.com>
9956
9957         sha256: do not artificially restrict buffer length to be < 2^32
9958         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
9959         uint32_t to size_t.
9960         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
9961         to match.
9962
9963         avoid unaligned access errors, e.g., on sparc
9964         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
9965         direct access through a possibly-unaligned uint64* pointer.
9966         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
9967         direct access through a possibly-unaligned uint32* pointer.
9968         Prompted by this patch from Tom "spot" Callaway:
9969         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
9970
9971         sha512.c: fix typo in comment
9972         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
9973
9974 2008-05-25  Bruno Haible  <bruno@clisp.org>
9975
9976         * lib/set-mode-acl.c: Renamed from lib/acl.c.
9977         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
9978         (Makefile.am): Update lib_SOURCES.
9979
9980 2008-05-25  Bruno Haible  <bruno@clisp.org>
9981
9982         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
9983
9984 2008-05-25  Jim Meyering  <meyering@redhat.com>
9985
9986         useless-if-before-free: freed expr may have white-space differences
9987         * build-aux/useless-if-before-free: Recognize cases in which the
9988         freed expression differs from the tested one in embedded white
9989         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
9990         $1 was used, so we can't make any regexp shy.  Improved tests now
9991         detect this.
9992
9993         useless-if-before-free: accept white space in the expression.
9994         * build-aux/useless-if-before-free: For now, any white space
9995         in the expression must be identical in the free argument.
9996
9997         useless-if-before-free: efficiency tweak
9998         * build-aux/useless-if-before-free: Make the expression-matching
9999         regexp "shy".
10000         Make the *outer* regexp shy, not the expr-matching one.
10001
10002         update code-in-comment to accept cast of free arg
10003         * build-aux/useless-if-before-free: Update regexp.
10004
10005 2008-05-25  Bruno Haible  <bruno@clisp.org>
10006
10007         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
10008         * modules/copy-file-tests (Files, Makefile.am): Update.
10009         * tests/test-copy-file.c (func_test_copy): Update.
10010
10011 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
10012
10013         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
10014
10015 2008-05-23  Bruno Haible  <bruno@clisp.org>
10016
10017         Improve support for ACLs on OSF/1.
10018         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
10019         Remove fallback for unknown flavors of ACLs.
10020
10021 2008-05-22  Bruno Haible  <bruno@clisp.org>
10022
10023         Add support for ACLs on OSF/1.
10024         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
10025         replacements.
10026         (acl_free_text): New macro fallback.
10027         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
10028         acl_free.
10029         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
10030         acl_free_text function. Require AC_C_INLINE.
10031
10032 2008-05-22  Bruno Haible  <bruno@clisp.org>
10033
10034         Make copy_acl work on MacOS X 10.5.
10035         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
10036         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
10037         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
10038         If MODE_INSIDE_ACL, don't assume that every system has the same text
10039         representation for ACLs as FreeBSD.
10040         * lib/copy-acl.c (copy_acl): Add support for platforms with
10041         !MODE_INSIDE_ACL.
10042         * lib/file-has-acl.c (file_has_acl): Likewise.
10043         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
10044         FreeBSD, MacOS X, or IRIX, respectively.
10045
10046 2008-05-22  Bruno Haible  <bruno@clisp.org>
10047
10048         * lib/acl.h: Don't include <sys/acl.h>.
10049         (GETACLCNT): Move fallback to lib/acl-internal.h.
10050         * lib/acl-internal.h: Include <sys/acl.h> here.
10051         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
10052
10053 2008-05-22  Bruno Haible  <bruno@clisp.org>
10054
10055         Split off copy_acl function to separate file.
10056         * lib/copy-acl.c: New file, extracted from lib/acl.c.
10057         * lib/acl.c (copy_acl): Moved function to separate file.
10058         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
10059         * modules/acl (Files): Add lib/copy-acl.c.
10060         (Makefiles.am): Augment lib_SOURCES.
10061
10062 2008-05-22  Bruno Haible  <bruno@clisp.org>
10063
10064         * modules/copy-file-tests: New file.
10065         * tests/test-copy-file.sh: New file.
10066         * tests/test-copy-file.c: New file.
10067         * tests/test-copy-file-sameacls.c: New file.
10068
10069 2008-05-22  Eric Blake  <ebb9@byu.net>
10070
10071         Avoid gcc warning.
10072         * tests/test-memcmp.c (main): Pass NULL indirectly.
10073
10074 2008-05-21  Bruno Haible  <bruno@clisp.org>
10075
10076         Add reference doc about ACLs.
10077         * doc/acl-resources.txt: New file.
10078         * doc/acl-cygwin.txt: New file.
10079
10080 2008-05-21  Bruno Haible  <bruno@clisp.org>
10081
10082         Avoid one more warning from gcc.
10083         * lib/vasnprintf.c (IF_LINT): Update comments.
10084         (VASNPRINTF): Use it also for the 'prefix' array initializer.
10085
10086 2008-05-21  Jim Meyering  <meyering@redhat.com>
10087
10088         avoid a warning from gcc
10089         * lib/vasnprintf.c (IF_LINT): Define.
10090         (scale10_round_decimal_long_double):
10091         Use it to avoid a "may be used uninitialized" warning.
10092         (scale10_round_decimal_double): Likewise.
10093
10094 2008-05-21  Simon Josefsson  <simon@josefsson.org>
10095
10096         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
10097         declared.
10098
10099 2008-05-20  Bruno Haible  <bruno@clisp.org>
10100
10101         * tests/test-memcmp.c (main): Test also the sign of the result. Test
10102         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
10103
10104 2008-05-20  Simon Josefsson  <simon@josefsson.org>
10105
10106         * modules/memcmp-tests: New file.
10107         * tests/test-memcmp.c: New file.
10108
10109 2008-05-19  Bruno Haible  <bruno@clisp.org>
10110
10111         * modules/propername (Notice, configure.ac): Put quoted "..." into
10112         --keyword option.
10113         * lib/propername.h: Update comments accordingly.
10114         Reported by Eric Blake.
10115
10116 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
10117
10118         * modules/getpass-gnu (Depends-on): Add fseeko.
10119
10120 2008-05-19  Simon Josefsson  <simon@josefsson.org>
10121
10122         * modules/base64-tests: New file.
10123
10124 2008-05-19  Bo Borgerson <gigabo@gmail.com>
10125
10126         * lib/base64.c (base64_decode_ctx): If a decode context structure
10127         was passed in use it to ignore newlines.  If a context structure
10128         was _not_ passed in, continue to treat newlines as garbage (this
10129         is the historical behavior).  Formerly base64_decode.
10130         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
10131         takes a decode context structure.
10132         * lib/base64.h (base64_decode): Macro for four-argument calls.
10133         (base64_decode_alloc): Likewise.
10134         * lib/base64.c (base64_decode_ctx): If a decode context structure
10135         was passed in use it to ignore newlines.  If a context structure
10136         was _not_ passed in, continue to treat newlines as garbage (this
10137         is the historical behavior).  Formerly base64_decode.
10138         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
10139         takes a decode context structure.
10140         * lib/base64.h (base64_decode): Macro for four-argument calls.
10141         (base64_decode_alloc): Likewise.
10142
10143 2008-05-19  Jim Meyering  <meyering@redhat.com>
10144
10145         avoid a warning from gcc
10146         * lib/trim.c (IF_LINT): Define.
10147         (trim2): Use it to avoid a "may be used uninitialized" warning.
10148
10149         Fix doc typo.
10150         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
10151
10152 2008-05-19  Bruno Haible  <bruno@clisp.org>
10153
10154         * doc/glibc-functions/getpass.texi: Document limits of other
10155         implementations.
10156
10157 2008-05-19  Simon Josefsson  <simon@josefsson.org>
10158             Bruno Haible <bruno@clisp.org>
10159
10160         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
10161
10162 2008-05-18  Bruno Haible  <bruno@clisp.org>
10163
10164         * modules/propername: New file, from GNU gettext.
10165         * lib/propername.h: New file, from GNU gettext.
10166         * lib/propername.c: New file, from GNU gettext.
10167         * MODULES.html.sh (Internationalization functions): Add propername.
10168
10169 2008-05-16  Jim Meyering  <meyering@redhat.com>
10170             Bruno Haible  <bruno@clisp.org>
10171
10172         Avoid some warnings from "gcc -Wshadow".
10173         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
10174
10175 2008-05-15  Eric Blake  <ebb9@byu.net>
10176
10177         Extend previous patch to cygwin 1.7.0.
10178         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
10179         fast implementation in cygwin >= 1.7.0.
10180         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10181         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10182
10183 2008-05-15  Bruno Haible  <bruno@clisp.org>
10184
10185         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
10186         implementation in glibc >= 2.9.
10187         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10188         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10189
10190 2008-05-15  Bruno Haible  <bruno@clisp.org>
10191
10192         * MODULES.html.sh (Internationalization functions): Remove linebreak.
10193         (Unicode string functions): Add unilbrk/*.
10194         Reported by Karl Berry.
10195
10196 2008-05-15  Eric Blake  <ebb9@byu.net>
10197
10198         Fix violation of <stdbool.h> replacement in regex.
10199         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
10200         * lib/regexec.c (re_search_internal): Likewise.
10201         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
10202
10203 2008-05-15  Jim Meyering  <meyering@redhat.com>
10204
10205         avoid distracting test output when git or cvs is not found
10206         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
10207         * tests/test-vc-list-files-git.sh: Likewise.
10208
10209 2008-05-15  Eric Blake  <ebb9@byu.net>
10210
10211         Glibc finally accepted the memmem speedup code, bugzilla #5514.
10212         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
10213         glibc version.
10214         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10215         * doc/posix-functions/strstr.texi (strstr): Likewise.
10216         * lib/str-two-way.h (MAX): Sychronize with glibc.
10217
10218 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
10219
10220         * lib/regcomp.c (optimize_utf8): Add a note on why we test
10221         opr.ctx_type.
10222         (calc_first): Initialize constraint field.
10223         (duplicate_node_closure): Use it instead of special casing ANCHORS.
10224         Fix grammar.
10225         (duplicate_node): Merge constraint field for all node types.
10226         (calc_eclosure_iter): Look at constraint field for all node types.
10227         * lib/regex_internal.c (create_cd_newstate): Don't look at
10228         opr.ctx_type.
10229
10230 2008-05-14  Bruno Haible  <bruno@clisp.org>
10231
10232         Help GCC to do better code generation.
10233         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
10234         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
10235         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
10236         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
10237         Declare with attribute 'malloc' if supported.
10238
10239 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
10240
10241         use "echo STR|wc -c" rather than unportable "expr length STR"
10242         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
10243         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
10244
10245 2008-05-14  Jim Meyering  <meyering@redhat.com>
10246
10247         use dd ibs=$n count=1 ... rather than less-portable head -c$n
10248         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
10249         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
10250         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
10251         via Collin Lasse.
10252
10253 2008-05-14  Eric Blake  <ebb9@byu.net>
10254
10255         Avoid quadratic growth in gl_LIBSOURCES.
10256         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
10257         Suggested by Bruno Haible.
10258
10259         Test xmemdup0.
10260         * modules/xmemdup0-tests: New file.
10261         * tests/test-xmemdup0.c: Likewise.
10262
10263 2008-05-13  Eric Blake  <ebb9@byu.net>
10264
10265         Split xmemdup0 into its own module.
10266         * modules/xmemdup0: New file.
10267         * lib/xmemdup0.h: Likewise.
10268         * lib/xmemdup0.c: Likewise.
10269         * MODULES.html.sh (Memory management functions): Add xmemdup0.
10270         * lib/xalloc.h (xmemdup0): Remove.
10271         * lib/xmalloc.c (xmemdup0): Likewise.
10272
10273 2008-05-13  Eric Blake  <ebb9@byu.net>
10274             Bruno Haible  <bruno@clisp.org>
10275
10276         Reduce number of forks required during autoconf.
10277         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
10278         and gl_LIBSOURCES_DIR.
10279         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
10280         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
10281         m4_syscmd per file.
10282         <m4_foreach_w>: Move...
10283         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
10284
10285 2008-05-13  Eric Blake  <ebb9@byu.net>
10286
10287         * gnulib-tool: Fix various comment typos.
10288
10289 2008-05-12  Bruno Haible  <bruno@clisp.org>
10290
10291         Tailor the linebreaking algorithm.
10292         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
10293
10294 2008-05-12  Bruno Haible  <bruno@clisp.org>
10295
10296         Update to Unicode 5.0.0.
10297         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
10298         LBP_JV, LBP_JT. Redistribute values.
10299         (unilbrk_table): Change size.
10300         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
10301         Unicode TR#14 rev. 22.
10302         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
10303         LBP_JV, LBP_JT. Redistribute values.
10304         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
10305         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
10306         Update.
10307         * lib/unilbrk/lbrkprop1.h: Regenerated.
10308         * lib/unilbrk/lbrkprop2.h: Regenerated.
10309         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
10310         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
10311         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
10312         Likewise.
10313         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
10314         Likewise.
10315         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
10316         result.
10317         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
10318         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
10319         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
10320         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
10321         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
10322         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
10323
10324 2008-05-11  Bruno Haible  <bruno@clisp.org>
10325
10326         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
10327
10328 2008-05-11  Bruno Haible  <bruno@clisp.org>
10329
10330         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
10331         * modules/unilbrk/gen-lbrk: New file.
10332
10333 2008-05-11  Bruno Haible  <bruno@clisp.org>
10334
10335         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
10336         * m4/sha512.m4 (gl_SHA512): Likewise.
10337
10338 2008-05-11  Jim Meyering  <meyering@redhat.com>
10339
10340         New modules: crypto/sha256, crypto/sha512 (from coreutils)
10341         * modules/crypto/sha256: New file.
10342         * modules/crypto/sha512: Likewise.
10343         * lib/sha256.c: Likewise.
10344         * lib/sha256.h: Likewise.
10345         * lib/sha512.c: Likewise.
10346         * lib/sha512.h: Likewise.
10347         * lib/u64.h: Likewise.
10348         * m4/sha256.m4: Likewise.
10349         * m4/sha512.m4: Likewise.
10350         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
10351
10352 2008-05-10  Bruno Haible  <bruno@clisp.org>
10353
10354         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
10355         (Input/Output <stdio.h>): Add xprintf.
10356         (Signal handling <signal.h>): Add strsignal.
10357         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
10358         (Core language properties): Add func.
10359         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
10360         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
10361         strings.
10362         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
10363         (Input/output): New section.
10364         (File system functions): Add openat-die, stat-macros.
10365         (Networking functions): Add sockets.
10366         (Unicode string functions): Add unictype/*.
10367         (Support for building libraries and executables): Add gperf.
10368         (Support for building documentation): Add agpl-3.0.
10369         (Misc): Add nocrash.
10370
10371 2008-05-10  Bruno Haible  <bruno@clisp.org>
10372
10373         * modules/unictype/gen-ctype: New file.
10374
10375 2008-05-10  Jim Meyering  <meyering@redhat.com>
10376
10377         Make chdir-safer.c more efficient on a system with no symlinks.
10378         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
10379         also if ELOOP is zero.  Suggested by Bruno Haible.
10380
10381         Make chdir-safer.c slightly safer.
10382         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
10383         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
10384
10385         Avoid compile failure on systems without ELOOP (like mingw).
10386         * lib/chdir-safer.c (ELOOP): Define if not already defined.
10387         Reported by Bruno Haible.
10388
10389 2008-05-10  Bruno Haible  <bruno@clisp.org>
10390
10391         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
10392         (is_utf8_encoding): Use a case-insensitive comparison.
10393         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
10394         streq.
10395
10396 2008-05-10  Bruno Haible  <bruno@clisp.org>
10397
10398         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
10399         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
10400         * lib/unilbrk/ulc-common.h (iconv_string_length,
10401         iconv_string_keeping_offsets): Remove declarations.
10402         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
10403         Don't include <iconv.h>, streq.h, xsize.h.
10404         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
10405         conversion.
10406         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
10407         <iconv.h>, streq.h, xsize.h.
10408         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
10409         conversion.
10410         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
10411         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
10412         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
10413         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
10414
10415 2008-05-10  Bruno Haible  <bruno@clisp.org>
10416
10417         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
10418         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
10419
10420         * modules/unilbrk/u32-width-linebreaks-tests: New file.
10421         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
10422
10423         * modules/unilbrk/u16-width-linebreaks-tests: New file.
10424         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
10425
10426         * modules/unilbrk/u8-width-linebreaks-tests: New file.
10427         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
10428
10429         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
10430         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
10431
10432         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
10433         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
10434
10435         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
10436         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
10437
10438         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
10439         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
10440
10441 2008-05-10  Bruno Haible  <bruno@clisp.org>
10442
10443         Split up 'linebreak' module.
10444         * lib/unilbrk.h: New file, based on lib/linebreak.h.
10445         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
10446         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
10447         modifications.
10448         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
10449         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
10450         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
10451         lib/linebreak.c.
10452         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
10453         lib/linebreak.c.
10454         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
10455         lib/linebreak.c.
10456         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
10457         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
10458         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
10459         lib/linebreak.c.
10460         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
10461         lib/linebreak.c.
10462         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
10463         lib/linebreak.c.
10464         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
10465         lib/linebreak.c.
10466         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
10467         lib/linebreak.c.
10468         * modules/unilbrk/base: New file.
10469         * modules/unilbrk/tables: New file.
10470         * modules/unilbrk/u8-possible-linebreaks: New file.
10471         * modules/unilbrk/u16-possible-linebreaks: New file.
10472         * modules/unilbrk/u32-possible-linebreaks: New file.
10473         * modules/unilbrk/ulc-common: New file.
10474         * modules/unilbrk/ulc-possible-linebreaks: New file.
10475         * modules/unilbrk/u8-width-linebreaks: New file.
10476         * modules/unilbrk/u16-width-linebreaks: New file.
10477         * modules/unilbrk/u32-width-linebreaks: New file.
10478         * modules/unilbrk/ulc-width-linebreaks: New file.
10479         * lib/linebreak.h: Remove file.
10480         * lib/linebreak.c: Remove file.
10481         * m4/linebreak.m4: Remove file.
10482         * modules/linebreak: Remove file.
10483         * NEWS: Mention the changes.
10484
10485 2008-05-09  Eric Blake  <ebb9@byu.net>
10486
10487         Add xmemdup0.
10488         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
10489         implementation.
10490         * lib/xmalloc.c (xmemdup0): New C implementation.
10491
10492 2008-05-08  Bruno Haible  <bruno@clisp.org>
10493
10494         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
10495
10496 2008-05-07  Eric Blake  <ebb9@byu.net>
10497
10498         Support cross-compilation of <wctype.h>.
10499         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
10500         AC_CACHE_CHECK.
10501
10502 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
10503
10504         * build-aux/vc-list-files: Add support for bzr.
10505
10506 2008-05-03  Jim Meyering  <meyering@redhat.com>
10507
10508         avoid failed assertion with tight malloc
10509         * tests/test-getndelim2.c: Correct an off-by-one assertion.
10510
10511 2008-05-03  Simon Josefsson  <simon@josefsson.org>
10512
10513         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
10514         are needed from arpa/inet.h.
10515         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
10516         Reported by Bruno Haible.
10517
10518 2008-05-02  Jim Meyering  <meyering@redhat.com>
10519
10520         avoid compilation error on FreeBSD 6
10521         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
10522
10523 2008-05-01  Jim Meyering  <meyering@redhat.com>
10524
10525         useless-if-before-free: correct --help's exit status description
10526         * build-aux/useless-if-before-free (usage): Like grep, exit 0
10527         for one or more matches, etc.  Reported by Bruno Haible.
10528
10529         vc-list-files: make the stand-alone gnulib test work
10530         * modules/vc-list-files-tests (configure.ac):
10531         Define and AC_SUBST abs_aux_dir.
10532         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
10533         $(abs_top_srcdir) to each script and having each of them
10534         duplicate the work of setting PATH, set PATH here, using
10535         the new variable, abs_aux_dir instead.
10536         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
10537         * tests/test-vc-list-files-git.sh: Likewise.
10538         Reported by Bruno Haible.
10539
10540 2008-05-01  Bruno Haible  <bruno@clisp.org>
10541
10542         * lib/getndelim2.c (getndelim2): Fix newsize computation during
10543         reallocation. Rename 'done' to 'found_delimiter'.
10544
10545 2008-05-01  Jim Meyering  <meyering@redhat.com>
10546
10547         vc-list-files: accommodate /bin/sh like the one from Solaris 10
10548         * build-aux/vc-list-files: Use `...`, not $(...).
10549
10550 2008-04-30  Jim Meyering  <meyering@redhat.com>
10551
10552         add tests for vc-list-files
10553         * modules/vc-list-files-tests: New module.
10554         * tests/test-vc-list-files-cvs.sh: New file.
10555         * tests/test-vc-list-files-git.sh: New file.
10556
10557         avoid a warning from gcc
10558         * lib/getndelim2.c (IF_LINT): Define.
10559         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
10560
10561         vc-list-files: work properly with build-aux/cvsu, too
10562         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
10563         to all cvs-based clauses.
10564
10565         vc-list-files: work properly in the CVS+awk case, too
10566         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
10567
10568         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
10569         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
10570         take more than one file argument, so .  Add quotes, just in case $dir
10571         ever contains a shell meta-character.  Prompted by Soren Hansen in
10572         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
10573
10574 2008-04-29  Eric Blake  <ebb9@byu.net>
10575
10576         Optimize getndelim2 to use block operations when possible.
10577         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
10578         freadseek, and memchr2.
10579         * lib/getndelim2.c (getndelim2): Use them for block reads.
10580
10581 2008-04-29  Bruno Haible  <bruno@clisp.org>
10582
10583         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
10584         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
10585         * modules/inet_ntop (Depends-on): Add extensions.
10586         * modules/inet_pton (Depends-on): Likewise.
10587         Reported by Simon Josefsson.
10588
10589 2008-04-29  Jim Meyering  <meyering@redhat.com>
10590
10591         When the is more than one match in a block, match all of them.
10592         * build-aux/useless-if-before-free: Iterate through each block
10593         until there are no more matches.
10594
10595         Fix broken useless-if-before-free script.
10596         * build-aux/useless-if-before-free: Fix typo: missing "?" after
10597         the expression to match cast of argument to free-like function.
10598
10599 2008-04-29  Eric Blake  <ebb9@byu.net>
10600
10601         Use new header.
10602         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
10603
10604 2008-04-29  Jim Meyering  <meyering@redhat.com>
10605
10606         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
10607         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
10608         by gnulib to exist and to declare e.g., inet_ntop.
10609         Don't include "inet_ntop.h", now removed.
10610
10611         * m4/arpa_inet_h.m4: Remove trailing blanks.
10612
10613 2008-04-29  Eric Blake  <ebb9@byu.net>
10614
10615         Silence valgrind on safe reads beyond potential array bounds.
10616         * lib/rawmemchr.valgrind: New file.
10617         * lib/strchrnul.valgrind: Likewise.
10618         * modules/rawmemchr (Files): Distribute new file.
10619         * modules/strchrnul (Files): Likewise.
10620         Suggested by Bruno Haible.
10621
10622 2008-04-29  Bruno Haible  <bruno@clisp.org>
10623
10624         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
10625         (inet_ntop, inet_pton): Change portability warning's wording.
10626         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
10627         Invoke gl_CHECK_NEXT_HEADERS.
10628         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
10629         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
10630         set ARPA_INET_H.
10631         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
10632         * modules/arpa_inet (Description): No longer only for systems that
10633         lack it.
10634         (Depends-on): Add include_next.
10635         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
10636         HAVE_ARPA_INET_H.
10637
10638 2008-04-29  Jim Meyering  <meyering@redhat.com>
10639
10640         * modules/mkdir (License): Re-license as LGPLv2+.
10641
10642 2008-04-29  Bruno Haible  <bruno@clisp.org>
10643
10644         * modules/rawmemchr (Maintainer): Set to Eric.
10645         * modules/strchrnul (Maintainer): Likewise.
10646
10647 2008-04-29  Simon Josefsson  <simon@josefsson.org>
10648
10649         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
10650         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
10651
10652         * modules/arpa_inet (arpa/inet.h): Use them.
10653
10654 2008-04-28  Eric Blake  <ebb9@byu.net>
10655
10656         Test getndelim2.
10657         * modules/getndelim2-tests: New file.
10658         * tests/test-getndelim2.c: Likewise.
10659         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
10660         stream.
10661         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
10662
10663         * MODULES.html.sh: Document new module.
10664
10665 2008-04-20  Bruno Haible  <bruno@clisp.org>
10666
10667         * lib/c-stack.c (die): Use raise.
10668         * modules/c-stack (Depends-on): Add raise.
10669
10670 2008-04-28  Bruno Haible  <bruno@clisp.org>
10671
10672         Expect rpmatch to be declared.
10673         * lib/yesno.c (rpmatch): Remove declaration.
10674
10675         Declare rpmatch.
10676         * lib/stdlib.in.h (rpmatch): New declaration.
10677         * lib/rpmatch.c: Include <stdlib.h> first.
10678         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
10679         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
10680         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
10681         HAVE_RPMATCH.
10682         * modules/rpmatch (Depends-on): Add stdlib, extensions.
10683         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10684         (Include): Set to <stdlib.h>.
10685         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
10686         HAVE_RPMATCH.
10687         * NEWS: Document the change.
10688
10689 2008-04-28  Bruno Haible  <bruno@clisp.org>
10690
10691         Change rpmatch to use nl_langinfo when appropriate.
10692         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
10693         (N_): New macro.
10694         (localized_pattern): New function/macro.
10695         (try): Remove match, nomatch arguments. Copy the pattern into safe
10696         memory before caching it.
10697         (rpmatch): Use localized_pattern. Add translator comments.
10698         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
10699         Suggested by Eric Blake.
10700         * modules/rpmatch (Depends-on): Add stdbool.
10701
10702 2008-04-28  Eric Blake  <ebb9@byu.net>
10703
10704         Add rawmemchr module, matching glibc.
10705         * modules/string (Makefile.am): New indicator.
10706         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
10707         * lib/string.in.h (rawmemchr): Declare when appropriate.
10708         * modules/rawmemchr: New file.
10709         * m4/rawmemchr.m4: Likewise.
10710         * lib/rawmemchr.c: Likewise.
10711         * modules/rawmemchr-tests: Likewise.
10712         * tests/test-rawmemchr.c: Likewise.
10713         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
10714         module.
10715         * modules/strchrnul (Depends-on): Add rawmemchr.
10716         * lib/strchrnul.c (strchrnul): Optimize a corner case.
10717
10718         Whitespace cleanup.
10719         * tests/test-strchrnul.c: Reindent.
10720         * lib/strchrnul.c: Likewise.
10721
10722         Optimize and test strchrnul.
10723         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
10724         * modules/strchrnul-tests: New file.
10725         * tests/test-strchrnul.c: Likewise.
10726
10727         Remove intprops dependency.
10728         * modules/memchr (Depends-on): Remove intprops.
10729         * modules/memrchr (Depends-on): Likewise.
10730         * modules/memchr2 (Depends-on): Likewise.
10731         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
10732         * lib/memrchr.c (__memrchr): Likewise.
10733         * lib/memrchr2.c (memchr2): Likewise.
10734         Reported by Simon Josefsson.
10735
10736 2008-04-28  Simon Josefsson  <simon@josefsson.org>
10737
10738         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
10739         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10740
10741 2008-04-28  Simon Josefsson  <simon@josefsson.org>
10742
10743         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
10744
10745         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
10746
10747         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
10748
10749         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
10750         declarations.
10751         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
10752
10753         * m4/inet_pton.m4: Don't check for header files.
10754
10755         * m4/inet_ntop.m4: Don't check for header files.
10756
10757 2008-04-28  Simon Josefsson  <simon@josefsson.org>
10758
10759         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
10760         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
10761         trigger for cygwin).
10762         Reported by Bruno Haible  <bruno@clisp.org>.
10763
10764 2008-04-28  Bruno Haible  <bruno@clisp.org>
10765
10766         * doc/posix-functions/strdup.texi: Mention mingw problem.
10767
10768 2008-04-27  Bruno Haible  <bruno@clisp.org>
10769
10770         * modules/stat-time-tests (Depends-on): Add sleep.
10771         * tests/test-stat-time.c (force_unlink): New function.
10772         (cleanup): Use it.
10773         (test_mtime): Remove the ctime related tests.
10774         (test_ctime): New function, containing the ctime related tests.
10775         (main): Call test_ctime, except on native Windows platforms.
10776
10777 2008-04-27  Bruno Haible  <bruno@clisp.org>
10778
10779         * lib/rpmatch.c (rpmatch): Add some comments.
10780         Reported by James Youngman <jay@gnu.org>.
10781
10782 2008-04-27  Bruno Haible  <bruno@clisp.org>
10783
10784         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
10785         quiet NaNs.
10786
10787 2008-04-27  Bruno Haible  <bruno@clisp.org>
10788
10789         Make test-yesno.sh work on mingw.
10790         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
10791         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
10792         (main): Set stdin to binary mode.
10793         * modules/yesno-tests (Depends-on): Add binary-io.
10794
10795 2008-04-27  Bruno Haible  <bruno@clisp.org>
10796
10797         Fix 'isfinite' on x86, x86_64, ia64 platforms.
10798         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
10799         argument that lie outside the IEEE 854 domain.
10800         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
10801         (gl_ISFINITE): Use it.
10802         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
10803
10804 2008-04-27  Bruno Haible  <bruno@clisp.org>
10805
10806         Allow local renaming in config.h.
10807         * lib/memrchr.c (memrchr): Don't undefine outside libc.
10808
10809 2008-04-27  Bruno Haible  <bruno@clisp.org>
10810
10811         * lib/memchr.c (__memchr): Change type of 'i'.
10812         * lib/memchr2.c (memchr2): Likewise.
10813
10814 2008-04-26  Eric Blake  <ebb9@byu.net>
10815         and Bruno Haible  <bruno@clisp.org>
10816
10817         Optimize and test memrchr.
10818         * modules/memrchr (Depends-on): Add intprops.
10819         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
10820         * modules/memrchr-tests: New file.
10821         * tests/test-memrchr.c: New file.
10822
10823 2008-04-26  Bruno Haible  <bruno@clisp.org>
10824
10825         Add tentative support for DragonFly BSD.
10826         * lib/stdio-impl.h: Add macros for DragonFly BSD.
10827         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
10828         fp.
10829         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
10830         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
10831         * lib/fpurge.c (fpurge): Likewise.
10832         * lib/freadable.c (freaadable): Likewise.
10833         * lib/freadahead.c (freadahead): Likewise.
10834         * lib/freading.c (freading): Likewise.
10835         * lib/freadptr.c (freadptr): Likewise.
10836         * lib/freadseek.c (freadptrinc): Likewise.
10837         * lib/fseeko.c (fseeko): Likewise.
10838         * lib/fseterr.c (fseterr): Likewise.
10839         * lib/fwritable.c (fwritable): Likewise.
10840         * lib/fwriting.c (fwriting): Likewise.
10841
10842 2008-04-26  Bruno Haible  <bruno@clisp.org>
10843
10844         * lib/stdio-impl.h: New file.
10845         * lib/fbufmode.c: Include stdio-impl.h.
10846         (fbufmode): Use fp_, remove redundant #defines.
10847         * lib/fflush.c: Include stdio-impl.h.
10848         (clear_ungetc_buffer): Remove redundant #defines.
10849         * lib/fpurge.c: Include stdio-impl.h.
10850         (fpurge): Remove redundant #defines.
10851         * lib/freadable.c: Include stdio-impl.h.
10852         (freadable): Remove redundant #defines.
10853         * lib/freadahead.c: Include stdio-impl.h.
10854         (freadahead): Remove redundant #defines.
10855         * lib/freading.c: Include stdio-impl.h.
10856         (freading): Remove redundant #defines.
10857         * lib/freadptr.c: Include stdio-impl.h.
10858         (freadptr): Remove redundant #defines.
10859         * lib/freadseek.c: Include stdio-impl.h.
10860         (freadptrinc): Remove redundant #defines.
10861         * lib/fseeko.c: Include stdio-impl.h.
10862         (rpl_fseeko): Remove redundant #defines.
10863         * lib/fseterr.c: Include stdio-impl.h.
10864         (fseterr): Remove redundant #defines.
10865         * lib/fwritable.c: Include stdio-impl.h.
10866         (fwritable: Remove redundant #defines.
10867         * lib/fwriting.c: Include stdio-impl.h.
10868         (fwriting): Remove redundant #defines.
10869         * modules/fbufmode (Files): Add lib/stdio-impl.h.
10870         * modules/fflush (Files): Likewise.
10871         * modules/fpurge (Files): Likewise.
10872         * modules/freadable (Files): Likewise.
10873         * modules/freadahead (Files): Likewise.
10874         * modules/freading (Files): Likewise.
10875         * modules/freadptr (Files): Likewise.
10876         * modules/freadseek (Files): Likewise.
10877         * modules/fseeko (Files): Likewise.
10878         * modules/fseterr (Files): Likewise.
10879         * modules/fwritable (Files): Likewise.
10880         * modules/fwriting (Files): Likewise.
10881
10882 2008-04-26  Bruno Haible  <bruno@clisp.org>
10883
10884         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
10885         restore_seek_optimization, update_fpos_cache): New functions, extracted
10886         from rpl_fflush.
10887         (rpl_fflush): Use them.
10888         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
10889         (gl_REPLACE_FFLUSH): Use it.
10890
10891 2008-04-26  Bruno Haible  <bruno@clisp.org>
10892
10893         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
10894         on Solaris.
10895         * tests/test-xstrtoimax.sh: Likewise.
10896         * tests/test-xstrtoumax.sh: Likewise.
10897         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10898
10899 2008-04-26  Bruno Haible  <bruno@clisp.org>
10900
10901         * modules/memchr-tests: New file.
10902         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
10903
10904 2008-04-26  Eric Blake  <ebb9@byu.net>
10905             Bruno Haible  <bruno@clisp.org>
10906
10907         * lib/memchr.c: Include intprops.h.
10908         (__memchr): Optimize parallel detection of matching bytes. Rename local
10909         variables. Add explanatory comments.
10910
10911 2008-04-26  Bruno Haible  <bruno@clisp.org>
10912
10913         Fix module 'memchr', broken since 2000-10-28.
10914         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
10915
10916 2008-04-26  Bruno Haible  <bruno@clisp.org>
10917
10918         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
10919         comments.
10920
10921 2008-04-25  Eric Blake  <ebb9@byu.net>
10922
10923         Use native fstatat on cygwin 1.7.0.
10924         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
10925         first.
10926
10927 2008-04-23  Eric Blake  <ebb9@byu.net>
10928
10929         Improve memchr2 performance.
10930         * lib/memchr2.c (memchr2): Further optimize parallel detection of
10931         NUL bytes.
10932         * modules/memchr2 (Depends-on): Use intprops.h.
10933
10934 2008-04-23  Simon Josefsson  <simon@josefsson.org>
10935
10936         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
10937         an inline function instead of a CPP macro.  Patch by Ben Pfaff
10938         <blp@cs.stanford.edu>.
10939
10940 2008-04-23  Simon Josefsson  <simon@josefsson.org>
10941
10942         * lib/arpa_inet.in.h: New file.
10943
10944         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
10945         (Makefile.am): Sed in substitute header file.
10946
10947         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
10948         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
10949
10950         * modules/inet_ntop (configure.ac): Use
10951         gl_ARPA_INET_MODULE_INDICATOR.
10952
10953         * modules/inet_pton (configure.ac): Use
10954         gl_ARPA_INET_MODULE_INDICATOR.
10955
10956 2008-04-22  Jim Meyering  <meyering@redhat.com>
10957
10958         * modules/verify (License): Re-license as LGPLv2+.
10959
10960 2008-04-22  Simon Josefsson  <simon@josefsson.org>
10961
10962         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
10963         parameter to void* as per POSIX standard (MinGW uses char*).
10964
10965 2008-04-21  Bruno Haible  <bruno@clisp.org>
10966
10967         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
10968         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
10969         Define to replacements if REPLACE_ISWCNTRL is 1.
10970         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
10971         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
10972         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
10973         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
10974         what it fixes.
10975         * doc/posix-functions/iswalpha.texi: Likewise.
10976         * doc/posix-functions/iswblank.texi: Likewise.
10977         * doc/posix-functions/iswcntrl.texi: Likewise.
10978         * doc/posix-functions/iswdigit.texi: Likewise.
10979         * doc/posix-functions/iswgraph.texi: Likewise.
10980         * doc/posix-functions/iswlower.texi: Likewise.
10981         * doc/posix-functions/iswprint.texi: Likewise.
10982         * doc/posix-functions/iswpunct.texi: Likewise.
10983         * doc/posix-functions/iswspace.texi: Likewise.
10984         * doc/posix-functions/iswupper.texi: Likewise.
10985         * doc/posix-functions/iswxdigit.texi: Likewise.
10986         Reported by Alain Guibert.
10987
10988 2008-04-21  Bruno Haible  <bruno@clisp.org>
10989
10990         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
10991         Patch by Alain Guibert.
10992
10993 2008-04-21  Bruno Haible  <bruno@clisp.org>
10994
10995         Fix test failures on mingw.
10996         * tests/test-xstrtol.c (print_no_progname): New function.
10997         (main): Install it in error_print_progname hook.
10998         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
10999         * tests/test-xstrtoimax.sh: Likewise.
11000         * tests/test-xstrtoumax.sh: Likewise.
11001
11002 2008-04-21  Bruno Haible  <bruno@clisp.org>
11003
11004         Fix test failure on mingw.
11005         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
11006
11007 2008-04-21  Bruno Haible  <bruno@clisp.org>
11008
11009         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
11010         Actually assign a value.
11011
11012 2008-04-20  Bruno Haible  <bruno@clisp.org>
11013
11014         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
11015         take 2.
11016         * lib/canonicalize.c (canonicalize_file_name): Elide if the
11017         'canonicalize-lgpl' module is also used.
11018         * lib/canonicalize-lgpl.c: Undo last change.
11019         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
11020
11021 2008-04-20  Bruno Haible  <bruno@clisp.org>
11022
11023         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
11024         config.h. Provide _mkdir based fallback for mingw.
11025         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
11026         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
11027         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
11028         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
11029         rather than defining mkdir in config.h.
11030         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
11031         (gl_SYS_STAT_H_DEFAULTS): New macro.
11032         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
11033         HAVE_IO_H any more.
11034         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
11035         HAVE_DECL_MKDIR and HAVE_IO_H.
11036
11037 2008-04-20  Bruno Haible  <bruno@clisp.org>
11038
11039         * lib/isapipe.c: Port to native Windows platforms.
11040
11041 2008-04-20  Bruno Haible  <bruno@clisp.org>
11042
11043         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
11044
11045 2008-04-21  Eric Blake  <ebb9@byu.net>
11046
11047         Work around preprocessors that don't handle UINTMAX_MAX.
11048         * lib/memchr2.c (memchr2): Avoid embedded #if.
11049         Reported by Alain Guibert, fix suggested by Bruno Haible.
11050
11051 2008-04-21  Simon Josefsson  <simon@josefsson.org>
11052
11053         * doc/posix-functions/strftime.texi (strftime): Explain better
11054         Windows incompatibility.  Suggested by Micah Cowan
11055         <micah@cowan.name>.
11056
11057 2008-04-20  Bruno Haible  <bruno@clisp.org>
11058
11059         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
11060         unistr/u8-mblen.
11061
11062 2008-04-20  Bruno Haible  <bruno@clisp.org>
11063
11064         Fix test failure on platforms with non-GNU iconv.
11065         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
11066         (U_TO_U8): Use it, rather than u16_to_u8.
11067         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
11068         units at the end of the input string.
11069         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
11070
11071 2008-04-20  Bruno Haible  <bruno@clisp.org>
11072
11073         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
11074         when the resulting length is 0.
11075         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
11076
11077 2008-04-20  Bruno Haible  <bruno@clisp.org>
11078
11079         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
11080         works.
11081         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
11082
11083 2008-04-20  Bruno Haible  <bruno@clisp.org>
11084
11085         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
11086         * modules/tsearch-tests (configure.ac): Test for initstate function.
11087
11088 2008-04-20  Bruno Haible  <bruno@clisp.org>
11089
11090         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
11091         for nlink_t if missing.
11092         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
11093
11094 2008-04-19  Bruno Haible  <bruno@clisp.org>
11095
11096         Work around snprintf bug on Linux libc5.
11097         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
11098         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
11099         gl_SNPRINTF_SIZE1.
11100         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11101         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
11102         that test failed.
11103         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11104         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
11105         * modules/snprintf (Files): Add m4/printf.m4.
11106         * modules/vsnprintf (Files): Likewise.
11107         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
11108         * doc/posix-functions/vsnprintf.texi: Likewise.
11109
11110 2008-04-19  Bruno Haible  <bruno@clisp.org>
11111
11112         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
11113         from 0.0058 to less than 10^-7.
11114
11115 2008-04-19  Bruno Haible  <bruno@clisp.org>
11116
11117         Fix rounding when a precision is given.
11118         * lib/vasnprintf.c (is_borderline): New function.
11119         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
11120         9...9x.
11121         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
11122         %e, %g.
11123         * tests/test-vasprintf-posix.c (test_function): Likewise.
11124         * tests/test-snprintf-posix.h (test_function): Likewise.
11125         * tests/test-sprintf-posix.h (test_function): Likewise.
11126         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
11127         * tests/test-printf-posix.h (test_function): Likewise.
11128         * tests/test-printf-posix.output: Update.
11129         Reported by John Darrington <john@darrington.wattle.id.au> via
11130         Ben Pfaff <blp@cs.stanford.edu>.
11131
11132 2008-04-18  Simon Josefsson  <simon@josefsson.org>
11133
11134         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
11135         Suggested by Bruno Haible <bruno@clisp.org>.
11136
11137 2008-04-17  Bruno Haible  <bruno@clisp.org>
11138
11139         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
11140         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
11141         implementation.
11142         Patch by Bruce Merry <bmerry@gmail.com>.
11143
11144 2008-04-17  Simon Josefsson  <simon@josefsson.org>
11145
11146         * doc/posix-functions/strftime.texi (strftime): Mention that %e
11147         doesn't work under Windows.
11148
11149 2008-04-16  Bruno Haible  <bruno@clisp.org>
11150
11151         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
11152         New macros.
11153         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
11154         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
11155         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
11156         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
11157         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
11158         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
11159         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
11160         macros.
11161         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
11162         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
11163         Northern Sotho, Uighur.
11164
11165 2008-04-16  Bruno Haible  <bruno@clisp.org>
11166
11167         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
11168         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
11169         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
11170         Reported by Daniel Bergström <daniel@octocode.com>.
11171
11172 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
11173             Bruno Haible  <bruno@clisp.org>
11174
11175         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
11176         function.
11177         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
11178         New functions, mostly extracted from gl_locale_name_default.
11179         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
11180
11181 2008-04-16  Eric Blake  <ebb9@byu.net>
11182
11183         Adjust strtod detection to catch glibc 2.7 bug.
11184         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
11185         Reported by John Gatewood Ham.
11186
11187 2008-04-16  Bruno Haible  <bruno@clisp.org>
11188
11189         Add tentative support for Linux libc5.
11190         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
11191         * lib/fpurge.c (fpurge): Likewise.
11192         * lib/freadable.c (freadable): Likewise.
11193         * lib/freadahead.c (freadahead): Likewise.
11194         * lib/freading.c (freading): Likewise.
11195         * lib/freadptr.c (freadptr): Likewise.
11196         * lib/freadseek.c (freadptrinc): Likewise.
11197         * lib/fseeko.c (rpl_fseeko): Likewise.
11198         * lib/fseterr.c (fseterr): Likewise.
11199         * lib/fwritable.c (fwritable): Likewise.
11200         * lib/fwriting.c (fwriting): Likewise.
11201         Reported by Alain Guibert <alguibert+bts@free.fr>.
11202
11203 2008-04-15  Bruno Haible  <bruno@clisp.org>
11204
11205         * modules/mathl (configure.ac): Define module indicator.
11206
11207 2008-04-15  Bruno Haible  <bruno@clisp.org>
11208
11209         * lib/logl.c (logl): Remove unused variables.
11210
11211 2008-04-15  Bruno Haible  <bruno@clisp.org>
11212
11213         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
11214         fails.
11215
11216 2008-04-15  Bruno Haible  <bruno@clisp.org>
11217
11218         * lib/trim.c (trim2): Fix argument of isspace() macro.
11219
11220 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
11221
11222         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
11223         to 0.
11224         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
11225
11226 2008-04-14  Bruno Haible  <bruno@clisp.org>
11227
11228         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
11229         AC_LANG_PROGRAM argument.
11230         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
11231         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
11232         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
11233         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11234         * m4/math_h.m4 (gl_MATH_H): Likewise.
11235         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
11236         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11237         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
11238         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
11239         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
11240         * m4/regex.m4 (gl_REGEX): Likewise.
11241         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
11242         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
11243         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11244         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
11245         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
11246         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
11247         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11248         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
11249
11250 2008-04-14  Jim Meyering  <meyering@redhat.com>
11251
11252         test-strtod: fix typos: s/abs/fabs/
11253         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
11254
11255 2008-04-13  Bruno Haible  <bruno@clisp.org>
11256
11257         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
11258         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
11259         module is also used and while not building the reloc-wrapper.
11260
11261 2008-04-13  Bruno Haible  <bruno@clisp.org>
11262
11263         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
11264
11265 2008-04-13  Bruno Haible  <bruno@clisp.org>
11266
11267         Fix AIX compilation failure introduced on 2008-04-02.
11268         * tests/test-frexp.c (exp): Undefine before redefining.
11269         * tests/test-frexpl.c (exp): Likewise.
11270
11271 2008-04-13  Bruno Haible  <bruno@clisp.org>
11272
11273         Work around a HP-UX stdio bug.
11274         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
11275         * tests/test-ftello.c (main): Likewise.
11276         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
11277         * doc/posix-functions/ftello.texi: Likewise.
11278
11279 2008-04-13  Bruno Haible  <bruno@clisp.org>
11280
11281         Make test-signbit pass on HP-UX/hppa.
11282         * tests/test-signbit.c (minus_zerol): New variable.
11283         (test_signbitl): Use it.
11284
11285 2008-04-13  Bruno Haible  <bruno@clisp.org>
11286
11287         Make truncl work on OSF/1 4.0.
11288         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
11289         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
11290         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
11291         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
11292         HAVE_DECL_TRUNCL.
11293         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
11294         HAVE_DECL_TRUNCL.
11295         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
11296
11297 2008-04-13  Bruno Haible  <bruno@clisp.org>
11298
11299         * lib/unictype.h: Remove trailing comma from enumeration definitions.
11300
11301 2008-04-13  Bruno Haible  <bruno@clisp.org>
11302
11303         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
11304         expression, so as to avoid HP-UX 11 cc compiler bug.
11305
11306 2008-04-13  Bruno Haible  <bruno@clisp.org>
11307
11308         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
11309
11310 2008-04-13  Bruno Haible  <bruno@clisp.org>
11311
11312         * lib/git-merge-changelog.c: Remove empty declaration outside of
11313         functions.
11314
11315 2008-04-13  Bruno Haible  <bruno@clisp.org>
11316
11317         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
11318
11319 2008-04-13  Bruno Haible  <bruno@clisp.org>
11320
11321         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
11322         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
11323         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
11324         also if it exists but lacks definitions of the SHUT_* macros.
11325         * modules/sys_socket (Description): Update.
11326         Reported by Elbert Pol <e.pol@chello.nl>.
11327
11328 2008-04-13  Bruno Haible  <bruno@clisp.org>
11329
11330         * lib/localcharset.c (OS2): Don't redefine if already defined.
11331         Reported by Elbert Pol <e.pol@chello.nl>.
11332
11333 2008-04-13  Bruno Haible  <bruno@clisp.org>
11334
11335         * lib/binary-io.h [__EMX__]: Include <io.h>.
11336         Reported by Elbert Pol <e.pol@chello.nl>.
11337
11338 2008-04-12  Bruno Haible  <bruno@clisp.org>
11339
11340         * lib/fpucw.h: Enable the definitions also for x86_64.
11341         Needed for NetBSD/x86_64.
11342         Reported by Thomas Klausner <tk@giga.or.at>.
11343
11344 2008-04-12  Bruno Haible  <bruno@clisp.org>
11345
11346         * tests/test-strtod.c: Include isnand.h.
11347         (main): Use isnand instead of isnan.
11348         Reported by Jim Meyering.
11349
11350 2008-04-12  Bruno Haible  <bruno@clisp.org>
11351
11352         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
11353         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
11354
11355 2008-04-12  Jim Meyering  <meyering@redhat.com>
11356
11357         * m4/math_h.m4 (gl_MATH_H): Fix typos.
11358
11359 2008-04-12  Bruno Haible  <bruno@clisp.org>
11360
11361         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
11362         Reported by Elbert Pol <e.pol@chello.nl>.
11363
11364 2008-04-12  Eric Blake  <ebb9@byu.net>
11365
11366         Work around Solaris 10 math.h bug.
11367         * m4/math_h.m4 (gl_MATH_H): Check for bug.
11368         (gl_MATH_H_DEFAULTS): Set up default.
11369         * modules/math (Makefile.am): Replace new indicators.
11370         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
11371         * tests/test-math.c (main): Test this.
11372         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
11373         * doc/posix-headers/math.texi (math.h): Mention bug.
11374         Reported by Nelson H. F. Beebe and Jim Meyering.
11375
11376 2008-04-11  Bruno Haible  <bruno@clisp.org>
11377
11378         Adapt to future versions of Apple GCC.
11379         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
11380         Reported by Peter O'Gorman <peter@pogma.com>.
11381
11382 2008-04-11  Bruno Haible  <bruno@clisp.org>
11383
11384         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
11385
11386 2008-04-11  Bruno Haible  <bruno@clisp.org>
11387
11388         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
11389
11390         * modules/getaddrinfo-tests (Makefile.am): Define
11391         test_getaddrinfo_LDADD.
11392
11393 2008-04-11  Bruno Haible  <bruno@clisp.org>
11394
11395         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
11396         (init): Fix syntax error.
11397         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
11398         is declared.
11399
11400 2008-04-11  Bruno Haible  <bruno@clisp.org>
11401
11402         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
11403         * modules/glob (Depends-on): Add stdbool.
11404
11405 2008-04-11  Bruno Haible  <bruno@clisp.org>
11406
11407         * lib/trim.c: Include <string.h>.
11408
11409 2008-04-11  Eric Blake  <ebb9@byu.net>
11410
11411         Avoid compile failure on OS/2.
11412         * lib/regex_internal.h (internal_function): Disable optimization
11413         on OS/2 (__EMX__), where it caused compiler error.
11414         Reported by Elbert Pol.
11415
11416 2008-04-11  Bruno Haible  <bruno@clisp.org>
11417
11418         Flush the standard error stream before aborting. Needed on mingw.
11419         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
11420         * tests/test-array_list.c (ASSERT): Likewise.
11421         * tests/test-array_oset.c (ASSERT): Likewise.
11422         * tests/test-avltree_list.c (ASSERT): Likewise.
11423         * tests/test-avltree_oset.c (ASSERT): Likewise.
11424         * tests/test-avltreehash_list.c (ASSERT): Likewise.
11425         * tests/test-binary-io.c (ASSERT): Likewise.
11426         * tests/test-byteswap.c (ASSERT): Likewise.
11427         * tests/test-c-ctype.c (ASSERT): Likewise.
11428         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
11429         * tests/test-c-strcasestr.c (ASSERT): Likewise.
11430         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
11431         * tests/test-c-strstr.c (ASSERT): Likewise.
11432         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
11433         * tests/test-canonicalize.c (ASSERT): Likewise.
11434         * tests/test-carray_list.c (ASSERT): Likewise.
11435         * tests/test-ceilf1.c (ASSERT): Likewise.
11436         * tests/test-ceilf2.c (ASSERT): Likewise.
11437         * tests/test-ceill.c (ASSERT): Likewise.
11438         * tests/test-count-one-bits.c (ASSERT): Likewise.
11439         * tests/test-fbufmode.c (ASSERT): Likewise.
11440         * tests/test-fflush2.c (ASSERT): Likewise.
11441         * tests/test-floorf1.c (ASSERT): Likewise.
11442         * tests/test-floorf2.c (ASSERT): Likewise.
11443         * tests/test-floorl.c (ASSERT): Likewise.
11444         * tests/test-fopen.c (ASSERT): Likewise.
11445         * tests/test-fpending.c (ASSERT): Likewise.
11446         * tests/test-fprintf-posix.c (ASSERT): Likewise.
11447         * tests/test-fpurge.c (ASSERT): Likewise.
11448         * tests/test-freadable.c (ASSERT): Likewise.
11449         * tests/test-freadahead.c (ASSERT): Likewise.
11450         * tests/test-freading.c (ASSERT): Likewise.
11451         * tests/test-freadptr.c (ASSERT): Likewise.
11452         * tests/test-freadptr2.c (ASSERT): Likewise.
11453         * tests/test-freadseek.c (ASSERT): Likewise.
11454         * tests/test-freopen.c (ASSERT): Likewise.
11455         * tests/test-frexp.c (ASSERT): Likewise.
11456         * tests/test-frexpl.c (ASSERT): Likewise.
11457         * tests/test-fseek.c (ASSERT): Likewise.
11458         * tests/test-fseeko.c (ASSERT): Likewise.
11459         * tests/test-fstrcmp.c (ASSERT): Likewise.
11460         * tests/test-ftell.c (ASSERT): Likewise.
11461         * tests/test-ftello.c (ASSERT): Likewise.
11462         * tests/test-func.c (ASSERT): Likewise.
11463         * tests/test-fwritable.c (ASSERT): Likewise.
11464         * tests/test-fwriting.c (ASSERT): Likewise.
11465         * tests/test-getdelim.c (ASSERT): Likewise.
11466         * tests/test-getline.c (ASSERT): Likewise.
11467         * tests/test-i-ring.c (ASSERT): Likewise.
11468         * tests/test-iconv-utf.c (ASSERT): Likewise.
11469         * tests/test-iconv.c (ASSERT): Likewise.
11470         * tests/test-isfinite.c (ASSERT): Likewise.
11471         * tests/test-isnand.c (ASSERT): Likewise.
11472         * tests/test-isnanf.c (ASSERT): Likewise.
11473         * tests/test-isnanl.h (ASSERT): Likewise.
11474         * tests/test-ldexpl.c (ASSERT): Likewise.
11475         * tests/test-linked_list.c (ASSERT): Likewise.
11476         * tests/test-linkedhash_list.c (ASSERT): Likewise.
11477         * tests/test-localename.c (ASSERT): Likewise.
11478         * tests/test-lseek.c (ASSERT): Likewise.
11479         * tests/test-mbscasecmp.c (ASSERT): Likewise.
11480         * tests/test-mbscasestr1.c (ASSERT): Likewise.
11481         * tests/test-mbscasestr2.c (ASSERT): Likewise.
11482         * tests/test-mbscasestr3.c (ASSERT): Likewise.
11483         * tests/test-mbscasestr4.c (ASSERT): Likewise.
11484         * tests/test-mbschr.c (ASSERT): Likewise.
11485         * tests/test-mbscspn.c (ASSERT): Likewise.
11486         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
11487         * tests/test-mbspbrk.c (ASSERT): Likewise.
11488         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
11489         * tests/test-mbsrchr.c (ASSERT): Likewise.
11490         * tests/test-mbsspn.c (ASSERT): Likewise.
11491         * tests/test-mbsstr1.c (ASSERT): Likewise.
11492         * tests/test-mbsstr2.c (ASSERT): Likewise.
11493         * tests/test-mbsstr3.c (ASSERT): Likewise.
11494         * tests/test-memchr2.c (ASSERT): Likewise.
11495         * tests/test-memmem.c (ASSERT): Likewise.
11496         * tests/test-open.c (ASSERT): Likewise.
11497         * tests/test-printf-frexp.c (ASSERT): Likewise.
11498         * tests/test-printf-frexpl.c (ASSERT): Likewise.
11499         * tests/test-printf-posix.c (ASSERT): Likewise.
11500         * tests/test-quotearg.c (ASSERT): Likewise.
11501         * tests/test-rbtree_list.c (ASSERT): Likewise.
11502         * tests/test-rbtree_oset.c (ASSERT): Likewise.
11503         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
11504         * tests/test-round1.c (ASSERT): Likewise.
11505         * tests/test-roundf1.c (ASSERT): Likewise.
11506         * tests/test-roundl.c (ASSERT): Likewise.
11507         * tests/test-signbit.c (ASSERT): Likewise.
11508         * tests/test-sleep.c (ASSERT): Likewise.
11509         * tests/test-snprintf-posix.c (ASSERT): Likewise.
11510         * tests/test-snprintf.c (ASSERT): Likewise.
11511         * tests/test-sprintf-posix.c (ASSERT): Likewise.
11512         * tests/test-stat-time.c (ASSERT): Likewise.
11513         * tests/test-strcasestr.c (ASSERT): Likewise.
11514         * tests/test-strerror.c (ASSERT): Likewise.
11515         * tests/test-striconv.c (ASSERT): Likewise.
11516         * tests/test-striconveh.c (ASSERT): Likewise.
11517         * tests/test-striconveha.c (ASSERT): Likewise.
11518         * tests/test-strsignal.c (ASSERT): Likewise.
11519         * tests/test-strstr.c (ASSERT): Likewise.
11520         * tests/test-strtod.c (ASSERT): Likewise.
11521         * tests/test-trunc1.c (ASSERT): Likewise.
11522         * tests/test-trunc2.c (ASSERT): Likewise.
11523         * tests/test-truncf1.c (ASSERT): Likewise.
11524         * tests/test-truncf2.c (ASSERT): Likewise.
11525         * tests/test-truncl.c (ASSERT): Likewise.
11526         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
11527         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
11528         * tests/test-vasnprintf.c (ASSERT): Likewise.
11529         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
11530         * tests/test-vasprintf.c (ASSERT): Likewise.
11531         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
11532         * tests/test-vprintf-posix.c (ASSERT): Likewise.
11533         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
11534         * tests/test-vsnprintf.c (ASSERT): Likewise.
11535         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
11536         * tests/test-wcwidth.c (ASSERT): Likewise.
11537         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
11538         * tests/test-xprintf-posix.c (ASSERT): Likewise.
11539         * tests/test-xvasprintf.c (ASSERT): Likewise.
11540         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
11541         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
11542         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
11543         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
11544         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
11545         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
11546         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
11547         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
11548         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
11549         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
11550         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
11551         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
11552         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
11553         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
11554         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
11555         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
11556         * tests/unictype/test-block_list.c (ASSERT): Likewise.
11557         * tests/unictype/test-block_of.c (ASSERT): Likewise.
11558         * tests/unictype/test-block_test.c (ASSERT): Likewise.
11559         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
11560         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
11561         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
11562         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
11563         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
11564         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
11565         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
11566         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
11567         * tests/unictype/test-combining.c (ASSERT): Likewise.
11568         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
11569         * tests/unictype/test-digit.c (ASSERT): Likewise.
11570         * tests/unictype/test-mirror.c (ASSERT): Likewise.
11571         * tests/unictype/test-numeric.c (ASSERT): Likewise.
11572         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
11573         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
11574         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
11575         * tests/unictype/test-scripts.c (ASSERT): Likewise.
11576         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
11577         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
11578         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
11579         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
11580         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
11581         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
11582         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
11583         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
11584         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
11585         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
11586         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
11587         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
11588         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
11589         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
11590         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
11591         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
11592         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
11593         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
11594         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
11595         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
11596         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
11597         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
11598         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
11599         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
11600         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
11601         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
11602         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
11603         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
11604         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
11605         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
11606         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
11607         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
11608         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
11609         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
11610         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
11611         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
11612         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
11613         Reported by Eric Blake.
11614
11615 2008-04-11  Bruno Haible  <bruno@clisp.org>
11616
11617         * lib/wchar.in.h: Tweak comment.
11618
11619 2008-04-11  Bruno Haible  <bruno@clisp.org>
11620
11621         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
11622         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
11623         gl_COMMON.
11624         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
11625
11626 2008-04-11  Bruno Haible  <bruno@clisp.org>
11627
11628         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
11629
11630 2008-04-11  Simon Josefsson  <simon@josefsson.org>
11631
11632         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
11633         of attempting to use non-existing /dev/*random.  Based on patch
11634         from Adam Strzelecki <ono@java.pl> in
11635         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
11636
11637 2008-04-08  Bruno Haible  <bruno@clisp.org>
11638
11639         Add tentative support for emx+gcc.
11640         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
11641         * lib/fpurge.c (fpurge): Likewise.
11642         * lib/freadable.c (freadable): Likewise.
11643         * lib/freadahead.c (freadahead): Likewise.
11644         * lib/freading.c (freading): Likewise.
11645         * lib/freadptr.c (freadptr): Likewise.
11646         * lib/freadseek.c (freadptrinc): Likewise.
11647         * lib/fseeko.c (rpl_fseeko): Likewise.
11648         * lib/fseterr.c (fseterr): Likewise.
11649         * lib/fwritable.c (fwritable): Likewise.
11650         * lib/fwriting.c (fwriting): Likewise.
11651         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
11652
11653 2008-04-09  Eric Blake  <ebb9@byu.net>
11654
11655         Avoid some autoconf warnings.
11656         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
11657         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
11658         * m4/afs.m4 (gl_AFS): Likewise.
11659         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
11660         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
11661         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
11662         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
11663         (gl_INTEGER_TYPE_SUFFIX): Likewise.
11664         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
11665         (AC_CHECK_DECLS_ONCE): Likewise.
11666         Rename file...
11667         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
11668         gnulib-tool requires autoconf 2.59 or better.
11669         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
11670
11671 2008-04-08  Eric Blake  <ebb9@byu.net>
11672
11673         Use 'git describe --match' if present (added in git 1.5.5).
11674         * build-aux/git-version-gen: Limit result to tags that match 'v*'
11675         if possible.
11676
11677 2008-04-08  Bruno Haible  <bruno@clisp.org>
11678
11679         Add tentative support for OpenServer.
11680         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
11681         _ptr, _cnt.
11682         * lib/fpurge.c (fpurge): Likewise.
11683         * lib/freadable.c (freadable): Likewise.
11684         * lib/freadahead.c (freadahead): Likewise.
11685         * lib/freading.c (freading): Likewise.
11686         * lib/freadptr.c (freadptr): Likewise.
11687         * lib/freadseek.c (freadptrinc): Likewise.
11688         * lib/fseeko.c (rpl_fseeko): Likewise.
11689         * lib/fseterr.c (fseterr): Likewise.
11690         * lib/fwritable.c (fwritable): Likewise.
11691         * lib/fwriting.c (fwriting): Likewise.
11692         Reported by Roger Cornelius <rac@tenzing.org> and
11693         Brian K. White <brian@aljex.com>.
11694
11695 2008-04-06  Jim Meyering  <meyering@redhat.com>
11696
11697         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
11698
11699 2008-04-06  Bruno Haible  <bruno@clisp.org>
11700
11701         Avoid possible error with non-ASCII bytes in UTF-8 locales.
11702         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
11703         * tests/test-printf-posix.sh: Likewise.
11704         * tests/test-vfprintf-posix.sh: Likewise.
11705         * tests/test-vprintf-posix.sh: Likewise.
11706         * tests/test-xprintf-posix.sh: Likewise.
11707
11708 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11709
11710         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
11711         hide error from 'ls', needed on OS/2.
11712         Report by Elbert Pol <elbert.pol@gmail.com>.
11713
11714 2008-04-04  Eric Blake  <ebb9@byu.net>
11715
11716         Make test-fseeko.c failures meaningful.
11717         * tests/test-fseeko.c: Print line number on failure.
11718         * tests/test-fseek.c: Likewise.
11719         Reported by Nelson H. F. Beebe.
11720
11721         Improve strtod bug detection check.
11722         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
11723         required for Solaris 10.
11724         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
11725
11726 2008-04-04  Bruno Haible  <bruno@clisp.org>
11727
11728         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
11729         by m4/setenv.m4.
11730
11731 2008-04-03  Eric Blake  <ebb9@byu.net>
11732
11733         Ensure sane .version contents.
11734         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
11735         version string.
11736         * build-aux/git-version-gen: Improve documentation.
11737
11738         Make GNU make output nicer.
11739         * top/GNUmakefile [!_have-Makefile]: Add dependency on
11740         MAKECMDGOALS to enforce message for all command line targets.  Set
11741         srcdir for use in maint.mk.
11742
11743         Another maintainer tweak.
11744         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
11745         a target that regenerates version.
11746
11747 2008-04-03  Jim Meyering  <meyering@redhat.com>
11748
11749         vc-list-files: don't cause coreutils "make po-check" failure
11750         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
11751
11752 2008-04-03  Eric Blake  <ebb9@byu.net>
11753
11754         Allow VPATH usage of vc-list-files.
11755         * build-aux/vc-list-files (scriptversion): Add timestamp.
11756         (options): Add --help, --version, -C.
11757         (CVS): Support installed cvsu.
11758
11759 2008-04-02  Bruno Haible  <bruno@clisp.org>
11760
11761         Avoid some "statement with no effect" warnings from gcc.
11762         * tests/test-wctype.c (main): Explicitly ignore unused values.
11763         Reported by Jim Meyering.
11764
11765 2008-04-02  Jim Meyering  <meyering@redhat.com>
11766
11767         Avoid some warnings from "gcc -Wshadow".
11768         * tests/test-frexp.c (exp): Define to a different identifier.
11769         * tests/test-frexpl.c (exp): Likewise.
11770
11771 2008-04-03  Jim Meyering  <meyering@redhat.com>
11772
11773         bootstrap: remove dangling *.[ch] symlinks from lib
11774         * build-aux/bootstrap [dangling symlink removal]: Move find's
11775         -depth option to precede all others, to avoid a warning.
11776         Remove *.[ch] files too, and from "$source_base" (usually lib/).
11777
11778 2008-04-02  Bruno Haible  <bruno@clisp.org>
11779
11780         Avoid some warnings from "gcc -Wshadow".
11781         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
11782         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
11783         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
11784         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
11785         Reported by Jim Meyering.
11786
11787 2008-04-01  Bruno Haible  <bruno@clisp.org>
11788
11789         Fix test to work on IRIX 6.5 with cc.
11790         * tests/test-math.c (numeric_equal): New function.
11791         (main): Use it.
11792
11793 2008-04-01  Bruno Haible  <bruno@clisp.org>
11794
11795         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
11796
11797 2008-04-01  Bruno Haible  <bruno@clisp.org>
11798
11799         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
11800         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11801         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
11802         (Depends-on): Remove math.
11803
11804         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
11805         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11806         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
11807         (Depends-on): Remove math.
11808
11809         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
11810         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11811         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
11812         (Depends-on): Remove math.
11813         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
11814         (Depends-on): Remove math.
11815
11816         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
11817         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11818         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
11819         (Depends-on): Remove math.
11820         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
11821         (Depends-on): Remove math.
11822
11823         * tests/test-round1.c: Include nan.h.
11824         (main): Use NaNd instead of NAN.
11825         * modules/round-tests (Files): Add tests/nan.h.
11826
11827         * tests/test-trunc1.c: Include nan.h.
11828         (main): Use NaNd instead of NAN.
11829         * modules/trunc-tests (Files): Add tests/nan.h.
11830
11831         * tests/test-roundf1.c: Include nan.h.
11832         (main): Use NaNf instead of NAN.
11833         * modules/roundf-tests (Files): Add tests/nan.h.
11834
11835         * tests/test-truncf1.c: Include nan.h.
11836         (main): Use NaNf instead of NAN.
11837         * modules/truncf-tests (Files): Add tests/nan.h.
11838
11839         * tests/test-ceilf1.c: Include nan.h.
11840         (main): Use NaNf instead of NAN.
11841         * modules/ceilf-tests (Files): Add tests/nan.h.
11842
11843         * tests/test-floorf1.c: Include nan.h.
11844         (main): Use NaNf instead of NAN.
11845         * modules/floorf-tests (Files): Add tests/nan.h.
11846
11847         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
11848         (main): Use NaNf instead of NAN.
11849         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
11850
11851         * tests/test-isnand.c: Include nan.h instead of <math.h>.
11852         (main): Use NaNd instead of NAN.
11853         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
11854
11855         * tests/test-frexp.c: Include nan.h.
11856         (main): Use NaNd instead of NAN.
11857         * modules/frexp-tests (Files): Add tests/nan.h.
11858
11859         * lib/isnan.c: Don't include <math.h>.
11860         (FUNC): Don't use NAN macro.
11861         * modules/isnand-nolibm (Depends-on): Remove math.
11862         * modules/isnanf-nolibm (Depends-on): Remove math.
11863         * modules/isnanl (Depends-on): Remove math.
11864         * modules/isnanl-nolibm (Depends-on): Remove math.
11865
11866         * tests/nan.h: New file.
11867
11868 2008-04-01  Eric Blake  <ebb9@byu.net>
11869
11870         Fix typos.
11871         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
11872         values to be the right type.
11873
11874         For now, cater to gnulib strtod inaccuracies.
11875         * tests/test-strtod.c (main): Allow 1-ulp error on expected
11876         fractional results.  While not as nice from a QoI perspective, it
11877         is a quicker patch than correctly implementing decimal to binary
11878         rounding.
11879
11880 2008-03-31  Eric Blake  <ebb9@byu.net>
11881
11882         Guarantee a definition of NAN.
11883         * lib/math.in.h (NAN): Define if missing.
11884         * tests/test-math.c (main): Test it.
11885         * doc/posix-headers/math.texi (math.h): Document this.
11886         * lib/isnan.c (rpl_isnand): Use it.
11887         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
11888         * tests/test-floorf1.c (NaN): Likewise.
11889         * tests/test-frexp.c (NaN): Likewise.
11890         * tests/test-isnand.c (NaN): Likewise.
11891         * tests/test-isnanf.c (NaN): Likewise.
11892         * tests/test-round1.c (NaN): Likewise.
11893         * tests/test-roundf1.c (NaN): Likewise.
11894         * tests/test-snprintf-posix.h (NaN): Likewise.
11895         * tests/test-sprintf-posix.h (NaN): Likewise.
11896         * tests/test-trunc1.c (NaN): Likewise.
11897         * tests/test-truncf1.c (NaN): Likewise.
11898         * tests/test-vasnprintf-posix.c (NaN): Likewise.
11899         * tests/test-vasprintf-posix.c (NaN): Likewise.
11900         * modules/isnand-nolibm (Depends-on): Add math.
11901         * modules/isnanf-nolibm (Depends-on): Likewise.
11902         * modules/isnanl (Depends-on): Likewise.
11903         * modules/isnanl-nolibm (Depends-on): Likewise.
11904         * modules/snprintf-posix-tests (Depends-on): Likewise.
11905         * modules/sprintf-posix-tests (Depends-on): Likewise.
11906         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
11907         * modules/vsprintf-posix-tests (Depends-on): Likewise.
11908         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
11909         * modules/vasprintf-posix-tests (Depends-on): Likewise.
11910
11911 2008-03-31  Bruno Haible  <bruno@clisp.org>
11912
11913         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
11914         * doc/posix-functions/strtod.texi: Likewise.
11915
11916 2008-03-31  Bruno Haible  <bruno@clisp.org>
11917
11918         * tests/test-strtod.c (main): Don't use C99 syntax.
11919
11920 2008-03-31  Bruno Haible  <bruno@clisp.org>
11921
11922         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
11923         Reported by Eric Blake.
11924
11925 2008-03-31  Jim Meyering  <meyering@redhat.com>
11926
11927         Don't compare actual signbit return values.
11928         * tests/test-strtod.c (main): Rather, compare only their
11929         zero/non-zero nature.
11930
11931 2008-03-31  Eric Blake  <ebb9@byu.net>
11932
11933         More strtod documentation.
11934         * doc/posix-functions/strtod.texi (strtod): Interpret more test
11935         failures as distinct bugs.
11936
11937 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
11938
11939         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
11940         Problem reported by Erik Benada in
11941         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
11942
11943 2008-03-30  Bruno Haible  <bruno@clisp.org>
11944
11945         * tests/test-strtod.c: Add comments about which assertion fails on which
11946         platform.
11947         * doc/posix-functions/strtod.texi: Add info about many more platforms.
11948
11949 2008-03-30  Eric Blake  <ebb9@byu.net>
11950
11951         Test signbit behavior on zeros.
11952         * tests/test-signbit.c (test_signbitf): Add tests for zero.
11953         (test_signbitd, test_signbitl): Likewise.
11954
11955         More strtod touchups.
11956         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
11957         sign of negative underflow, for now.  Use .5, not .1.
11958         * doc/posix-functions/strtod.texi (strtod): Mention these
11959         limitations.
11960         Reported by Jim Meyering.
11961
11962 2008-03-30  Bruno Haible  <bruno@clisp.org>
11963
11964         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
11965         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
11966
11967 2008-03-30  Bruno Haible  <bruno@clisp.org>
11968
11969         Avoid failure when attempting to return empty iconv results on some
11970         platforms.
11971         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
11972         allocation, don't report ENOMEM when the resulting string is empty.
11973
11974 2008-03-30  Bruno Haible  <bruno@clisp.org>
11975
11976         Fix buffer overrun.
11977         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
11978         Don't consider the width for tmp_length. Check count against tmp_length
11979         before doing the padding. Ensure enough allocation during padding.
11980
11981 2008-03-30  Eric Blake  <ebb9@byu.net>
11982
11983         strtod touchups.
11984         * lib/strtod.c (strtod): Avoid compiler warnings.
11985         Reported by Jim Meyering.
11986
11987 2008-03-30  Bruno Haible  <bruno@clisp.org>
11988
11989         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
11990         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
11991         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
11992         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
11993         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
11994         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
11995         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
11996         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
11997
11998         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
11999         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
12000         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
12001         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
12002         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
12003         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
12004         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
12005         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
12006
12007         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
12008         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
12009         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
12010         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
12011         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
12012         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
12013         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
12014         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
12015
12016         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
12017         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
12018
12019         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
12020         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
12021
12022         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
12023         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
12024
12025         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
12026         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
12027         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
12028
12029         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
12030         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
12031         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
12032
12033         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
12034         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
12035         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
12036
12037         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
12038         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
12039         * modules/vasprintf (Depends-on): Add EOVERFLOW.
12040
12041         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
12042         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
12043         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
12044         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
12045         (Depends-on): Add EOVERFLOW.
12046         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
12047         (Depends-on): Add EOVERFLOW.
12048         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
12049         (Depends-on): Add EOVERFLOW.
12050         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
12051         (Depends-on): Add EOVERFLOW.
12052         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
12053         (Depends-on): Add EOVERFLOW.
12054         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
12055         (Depends-on): Add EOVERFLOW.
12056         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
12057         (Depends-on): Add EOVERFLOW.
12058         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
12059         (Depends-on): Add EOVERFLOW.
12060
12061         * lib/sprintf.c (EOVERFLOW): Remove fallback.
12062         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
12063         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
12064
12065         * lib/snprintf.c (EOVERFLOW): Remove fallback.
12066         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
12067         * modules/snprintf (Depends-on): Add EOVERFLOW.
12068
12069         * lib/poll.c (EOVERFLOW): Remove fallback.
12070         * modules/poll (Depends-on): Add EOVERFLOW.
12071
12072         * lib/getugroups.c (EOVERFLOW): Remove fallback.
12073         * modules/getugroups (Depends-on): Add EOVERFLOW.
12074
12075         * lib/getdelim.c (EOVERFLOW): Remove fallback.
12076         * modules/getdelim (Depends-on): Add EOVERFLOW.
12077
12078         * lib/ftell.c (EOVERFLOW): Remove fallback.
12079         * modules/ftell (Depends-on): Add EOVERFLOW.
12080
12081         * lib/fprintf.c (EOVERFLOW): Remove fallback.
12082         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
12083         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
12084
12085         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
12086
12087         * modules/EOVERFLOW-tests: New file.
12088         * tests/test-EOVERFLOW.c: New file.
12089
12090         * modules/EOVERFLOW: New file.
12091         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
12092
12093 2008-03-30  Bruno Haible  <bruno@clisp.org>
12094
12095         Fix bug introduced on 2007-06-10.
12096         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
12097         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
12098
12099 2008-03-30  Bruno Haible  <bruno@clisp.org>
12100
12101         Improve freadseek's efficiency after ungetc.
12102         * lib/freadseek.c: Include freadahead.h.
12103         (freadptrinc): New function, extracted from freadseek.
12104         (freadseek): Use it in a loop. Use freadahead to determine the number
12105         of loop iterations.
12106         * modules/freadseek (Depends-on): Add freadahead.
12107         (configure.ac): Require AC_C_INLINE.
12108
12109 2008-03-30  Bruno Haible  <bruno@clisp.org>
12110
12111         * lib/freadseek.c (freadseek): Don't ignore the return value of
12112         freadptr.
12113
12114 2008-03-29  Eric Blake  <ebb9@byu.net>
12115
12116         Add hex float support.
12117         * modules/strtod (Depends-on): Add c-ctype.
12118         (Link): Mention POW_LIB.
12119         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
12120         whitespace between 'e' and exponent.
12121         * tests/test-strtod.c (main): Enable hex float tests.
12122         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
12123         now provides.
12124
12125         Document various strtod bugs, with some fixes.
12126         * doc/posix-functions/strtod.texi (strtod): Document bugs with
12127         "-0x", "inf", "nan", and hex constants.
12128         * doc/posix-functions/atof.texi (atof): Likewise.
12129         * modules/stdlib (Makefile.am): Support strtod.
12130         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
12131         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
12132         detect additional strtod bugs.
12133         * lib/stdlib.in.h (rpl_strtod): Add declarations.
12134         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
12135         bool where appropriate.  Parse 'inf' and 'nan'.
12136         * tests/test-strtod.c: New file.
12137         * modules/strtod (Depends-on): Add stdbool, stdlib.
12138         (configure.ac): Turn on module indicator.
12139         * modules/strtod-tests: New module.
12140
12141 2008-03-29  Eric Blake  <ebb9@byu.net>
12142
12143         Fix ftell on mingw.
12144         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
12145         * modules/ftell-tests (Depends-on): Add binary-io.
12146         * modules/ftello-tests (Depends-on): Likewise.
12147         * tests/test-ftell.c (main): Enhance test to cover behavior after
12148         ungetc.  Enforce binary mode.
12149         * tests/test-ftello.c (main): Likewise.
12150
12151         Pass test-freadseek on cygwin.
12152         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
12153         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
12154         ungetc buffer.
12155
12156         * tests/test-fflush2.c (main): Fix typo.
12157
12158 2008-03-29  Bruno Haible  <bruno@clisp.org>
12159
12160         * tests/test-fflush2.c (main): Temporarily disable the contents of
12161         this test.
12162         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
12163         Reported by Eric Blake.
12164
12165 2008-03-28  Simon Josefsson  <simon@josefsson.org>
12166
12167         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
12168         (GC_SHA224_DIGEST_SIZE): Add.
12169
12170         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
12171         (gc_hash_digest_length): Likewise.
12172         (gc_hash_buffer): Likewise.
12173
12174 2008-03-25  Bruno Haible  <bruno@clisp.org>
12175
12176         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
12177         detail which gettext release to use.
12178         Reported by Simon Josefsson.
12179
12180 2008-03-26  Jim Meyering  <meyering@redhat.com>
12181
12182         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
12183         * modules/gnumakefile (clean-GNUmakefile): Also, use
12184         test ... && ... || : syntax rather than if-then ... fi.
12185
12186         gnumakefile: Don't double-quote-expand $(VPATH) value.
12187         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
12188
12189 2008-03-24  Eric Blake  <ebb9@byu.net>
12190
12191         Alter GNUmakefile to install into top directory.
12192         * modules/maintainer-makefile: Split, and add dependency...
12193         * modules/gnumakefile: to this new module.
12194         * build-aux/GNUmakefile: Move...
12195         * top/GNUmakefile: ...here.
12196         * build-aux/maint.mk: Move...
12197         * top/maint.mk: ...here.
12198         * MODULES.html.sh (Support for maintaining...): Document new
12199         module.
12200
12201 2008-03-23  Bruno Haible  <bruno@clisp.org>
12202
12203         * gnulib-tool: New options --vc-files, --no-vc-files.
12204         (func_usage): Document them.
12205         (vc_files): New variable.
12206         (func_import): Consider vc_files.
12207         (func_create_testdir): Set vc_files to empty.
12208         Suggested by Jim Meyering and Karl Berry.
12209
12210 2008-03-23  Bruno Haible  <bruno@clisp.org>
12211
12212         Fix regex compilation error on HP-UX 11.
12213         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
12214         * modules/regex (Files): Add m4/mbstate_t.m4.
12215         Reported by Ton Voon <ton.voon@altinity.com>.
12216
12217 2008-03-23  Bruno Haible  <bruno@clisp.org>
12218
12219         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
12220
12221 2008-03-23  Eric Blake  <ebb9@byu.net>
12222             Bruno Haible  <bruno@clisp.org>
12223
12224         Install files from top/ in the destination directory.
12225         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
12226         augmentation also for the files from top/.
12227         (func_import, func_create_testdir): Rewrite file names:
12228         top/filename -> filename.
12229
12230 2008-03-23  Bruno Haible  <bruno@clisp.org>
12231
12232         Tweak "gnulib --version" output.
12233         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
12234
12235 2008-03-23  Bruno Haible  <bruno@clisp.org>
12236
12237         Tweak "gnulib --version" output.
12238         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
12239         rather than contents of ChangeLog, when possible.
12240
12241 2008-03-21  Eric Blake  <ebb9@byu.net>
12242
12243         More --version tweaks.
12244         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
12245         date of last ChangeLog entry.
12246
12247 2008-03-21  Jim Meyering  <meyering@redhat.com>
12248
12249         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
12250
12251 2008-03-20  Eric Blake  <ebb9@byu.net>
12252
12253         VPATH fix.
12254         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
12255
12256 2008-03-20  Simon Josefsson  <simon@josefsson.org>
12257
12258         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
12259         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
12260
12261 2008-03-20  Eric Blake  <ebb9@byu.net>
12262
12263         Sync GNUmakefile with coreutils.
12264         * build-aux/GNUmakefile (have-Makefile): Rename...
12265         (_have-Makefile): ...to this, for namespace consideration.
12266         (GNUmakefile.cfg): Include, if present.
12267         (_autoreconf): Define a default.
12268         (_is-dist-target): New rule for rebuilds to pick up intra-release
12269         version.
12270         (maint-cfg.mk): Rename...
12271         (cfg.mk): ...to this.
12272
12273 2008-03-18  Jim Meyering  <meyering@redhat.com>
12274
12275         New script and module: mktempd
12276         * MODULES.html.sh (maint+release support): Add mktempd.
12277         * build-aux/mktempd: New file.
12278         * modules/mktempd: New file.
12279
12280 2008-03-15  Jim Meyering  <meyering@redhat.com>
12281
12282         Undo last change.
12283         * lib/sha1.c, lib/md5.c: 63 != ~63.
12284         Reported by Andreas Schwab.
12285
12286         sha1.c, md5.c: Hoist a redundant expression.
12287         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
12288         "ctx->buflen" only once, before calling *_process_block.
12289         * lib/md5.c (md5_process_bytes): Likewise.
12290
12291 2008-03-14  Eric Blake  <ebb9@byu.net>
12292
12293         Bump copyright year in files generated by gnulib-tool.
12294         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
12295         gnulib-tool, rather than hard-coding it.
12296
12297         Fix 'gnulib-tool --version' output to work with git.
12298         * gnulib-tool (func_gnulib_dir): New function, extracted from...
12299         (startup): ...here.
12300         (func_version): Use it to invoke git-version-gen, rather than
12301         relying on CVS keyword expansion.  Modernize wording.
12302         (cvsdatestamp, last_checkin_date, version): Kill unused
12303         variables.
12304
12305 2008-03-12  Jim Meyering  <meyering@redhat.com>
12306
12307         Recognize optional cast of the argument to free.
12308         * build-aux/useless-if-before-free: Update regexps.
12309
12310         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
12311
12312 2008-03-11  Bruno Haible  <bruno@clisp.org>
12313
12314         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
12315         by a single package.
12316         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
12317         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
12318         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
12319         Reported by Sam Steingold <sds@gnu.org>.
12320
12321 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12322
12323         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
12324         repositories.
12325
12326 2008-03-11  Bruno Haible  <bruno@clisp.org>
12327
12328         Avoid conflicts between local macro definitions.
12329         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
12330         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
12331
12332 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
12333             Bruno Haible  <bruno@clisp.org>
12334
12335         Make va_copy work with some version of xlc on AIX 5.1.
12336         * lib/stdarg.in.h: New file.
12337         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
12338         On AIX, use a <stdarg.h> file substitute.
12339         * modules/stdarg (Files): Add lib/stdarg.in.h.
12340         (Depends-on): Add include_next.
12341         (Makefile.am): Build a stdarg.h substitute if requested.
12342         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
12343
12344 2008-03-10  Bruno Haible  <bruno@clisp.org>
12345
12346         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
12347         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12348         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
12349
12350 2008-03-10  Bruno Haible  <bruno@clisp.org>
12351
12352         * modules/stdlib (Depends-on): Add include_next, remove
12353         absolute-header.
12354
12355 2008-03-09  Bruno Haible  <bruno@clisp.org>
12356
12357         * lib/freadahead.h (freadahead): Document more precisely.
12358         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
12359         the sum of both buffer sizes.
12360         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
12361         * NEWS: Document the change.
12362
12363 2008-03-09  Bruno Haible  <bruno@clisp.org>
12364
12365         Extend freadptr to return also the buffer size.
12366         * lib/freadptr.h (freadptr): Add sizep argument.
12367         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
12368         (freadptr): Add sizep argument. Determine buffer size like freadahead
12369         does.
12370         * tests/test-freadptr.c: Don't include freadahead.h.
12371         (main): Adapt for new calling convention of freadptr.
12372         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
12373         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
12374         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
12375         tests/test-freadptr2.sh.
12376         (Depends): Remove freadahead.
12377         (TESTS): Add test-freadptr2.sh.
12378         (check_PROGRAMS): Add test-freadptr2.
12379
12380 2008-03-09  Bruno Haible  <bruno@clisp.org>
12381
12382         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
12383         Report and solution by Simon Josefsson.
12384
12385 2008-03-06  Bruno Haible  <bruno@clisp.org>
12386
12387         Make fflush after ungetc work on BSD platforms.
12388         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
12389         * tests/test-fflush2.c: New file.
12390         * tests/test-fflush2.sh: New file.
12391         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
12392         tests/test-fflush2.c.
12393         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
12394         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
12395
12396 2008-03-06  Eric Blake  <ebb9@byu.net>
12397
12398         Likewise for ftello.
12399         * modules/ftello (Dependencies): Add extensions.
12400         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
12401
12402 2008-03-06  Bruno Haible  <bruno@clisp.org>
12403
12404         * modules/fseeko (Dependencies): Add extensions.
12405         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
12406         Needed on glibc systems.
12407
12408 2008-03-06  Bruno Haible  <bruno@clisp.org>
12409
12410         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
12411         email address.
12412         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12413
12414 2008-03-06  Bruno Haible  <bruno@clisp.org>
12415
12416         * users.txt: Add libgnupdf.
12417
12418 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12419
12420         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
12421         (Header File Substitutes, Function Substitutes,
12422         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
12423         (Build robot for gnulib): Fix typo.
12424
12425 2008-03-06  Bruno Haible  <bruno@clisp.org>
12426
12427         * doc/gnulib-tool.texi (VCS Issues): Small updates.
12428         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12429
12430 2008-03-06  Bruno Haible  <bruno@clisp.org>
12431
12432         * doc/func.texi: New file, extracted from doc/gnulib.texi.
12433         * doc/gnulib.texi: Include it.
12434
12435 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12436
12437         * modules/func (License): Change license to unlimited; there was
12438         no LGPL parts in the module anyway.
12439
12440 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12441
12442         * modules/__func__: Renamed to modules/func.
12443         * modules/__func__-tests: Renamed to modules/func-tests.
12444         * tests/test-__func__.c: Renamed to tests/test-func.c.
12445         * m4/__func__.m4: Renamed to m4/func.m4.
12446         * doc/gnulib.texi (__func__): Section renamed to func.
12447         Suggested by Eric Blake <ebb9@byu.net>.
12448
12449 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12450
12451         * doc/gnulib.texi (__func__): Use C99 terminology when talking
12452         about __func__.  Make example self-contained.  Suggested by Eric
12453         Blake <ebb9@byu.net>.
12454
12455         * tests/test-__func__.c (main): Avoid extraneous () around __func.
12456         Suggested by Eric Blake <ebb9@byu.net>.
12457
12458 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12459
12460         * modules/__func__: New file.
12461         * modules/__func__-tests: New file.
12462         * tests/test-__func__.c: New file.
12463         * m4/__func__.m4: New file.
12464         * doc/gnulib.texi (__func__): Document __func__ module.
12465
12466 2008-03-05  Simon Josefsson  <simon@josefsson.org>
12467
12468         * modules/byteswap (License): Re-license as LGPLv2+.
12469
12470 2008-03-05  Simon Josefsson  <simon@josefsson.org>
12471
12472         * doc/Makefile: Add pdf target.
12473
12474 2008-03-05  Simon Josefsson  <simon@josefsson.org>
12475
12476         * modules/inline (License): Use 'unlimited', since there are only
12477         *.m4 files in this module.
12478
12479 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
12480             Bruno Haible  <bruno@clisp.org>
12481
12482         Add support for HP C 7.1 on OpenVMS 8.3.
12483         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
12484
12485 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
12486
12487         Update VMS specifics.
12488         * lib/getopt.c [VMS]: Remove include of unixlib.h.
12489
12490 2008-03-02  Jim Meyering  <meyering@redhat.com>
12491
12492         Remove the last dependency on the "free" module.
12493         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
12494         Reported by Bob Proulx.
12495
12496         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
12497
12498         Remove useless "if" tests before free.  Deprecate "free" module.
12499         * doc/posix-functions/free.texi: Mention that this
12500         module is no longer useful.
12501         * modules/free (Notice): Say this module is obsolete.
12502         * modules/readutmp (Depends-on): Remove free.
12503         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
12504         * lib/putenv.c (putenv): Likewise.
12505         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
12506         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
12507         * tests/test-c-strcasestr.c (main): Likewise.
12508         * tests/test-c-strstr.c (main): Likewise.
12509         * tests/test-mbscasestr1.c (main): Likewise.
12510         * tests/test-mbscasestr2.c (main): Likewise.
12511         * tests/test-mbsstr1.c (main): Likewise.
12512         * tests/test-mbsstr2.c (main): Likewise.
12513         * tests/test-memmem.c (main): Likewise.
12514         * tests/test-strcasestr.c (main): Likewise.
12515         * tests/test-striconv.c (main): Likewise.
12516         * tests/test-striconveh.c (main): Likewise.
12517         * tests/test-striconveha.c (main): Likewise.
12518         * tests/test-strstr.c (main): Likewise.
12519
12520         * build-aux/git-version-gen: Adjust a comment and the Usage string.
12521
12522         bootstrap: sync from coreutils again
12523         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
12524
12525 2008-03-01  Jim Meyering  <meyering@redhat.com>
12526
12527         bootstrap: sync from coreutils
12528         * build-aux/bootstrap (update_po_files): Copy a .po file into place
12529         also when the target doesn't exist.
12530
12531 2008-03-01  Eric Blake  <ebb9@byu.net>
12532
12533         Fix bugs in last patch.
12534         * lib/memchr2.c (memchr2): Fix typo.
12535         * tests/test-memchr2.c: Test previous bug, and don't use GNU
12536         extension.
12537         Reported by Bruce Korb.
12538
12539         New module 'memchr2'.
12540         * modules/memchr2: New file.
12541         * modules/memchr2-tests: Likewise.
12542         * lib/memchr2.h: Likewise.
12543         * lib/memchr2.c: Likewise, based on memchr.c.
12544         * tests/test-memchr2.c: New test.
12545         * MODULES.html.sh (String handling): Add memchr2.
12546
12547 2008-02-29  Bruno Haible  <bruno@clisp.org>
12548
12549         * modules/freadseek-tests: New file.
12550         * tests/test-freadseek.sh: New file.
12551         * tests/test-freadseek.c: New file.
12552
12553         New module 'freadseek'.
12554         * modules/freadseek: New file.
12555         * lib/freadseek.h: New file.
12556         * lib/freadseek.c: New file.
12557         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
12558
12559 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
12560
12561         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
12562         wydawca.
12563
12564         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
12565         program_invocation_name and program_invocation_short_name are
12566         present.
12567
12568 2008-02-28  Bruno Haible  <bruno@clisp.org>
12569
12570         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
12571         * tests/test-freadptr.sh: Also test non-seekable stdin.
12572
12573 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
12574
12575         * build-aux/bootstrap (source_base, m4_base)
12576         (doc_base, tests_base): New variables.
12577         (gnulib_tool_options): Do not hardcode base directories, use
12578         the above variables instead.
12579
12580 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
12581
12582         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
12583
12584 2008-02-28  Bruno Haible  <bruno@clisp.org>
12585
12586         * modules/freadptr-tests: New file.
12587         * tests/test-freadptr.sh: New file.
12588         * tests/test-freadptr.c: New file.
12589
12590         New module 'freadptr'.
12591         * modules/freadptr: New file.
12592         * lib/freadptr.h: New file.
12593         * lib/freadptr.c: New file.
12594         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
12595
12596 2008-02-26  Karl Berry  <karl@freefriends.org>
12597
12598         Sync from Libtool:
12599         * libltdl/argz.c (argz_add, argz_count): New functions.
12600         * libltdl/argz.in.h: Declare them.
12601         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
12602
12603 2008-02-22  Bruno Haible  <bruno@clisp.org>
12604
12605         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
12606         is a pointer type.  Needed for HP-UX 10.
12607         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
12608         * doc/posix-functions/gmtime_r.texi: Likewise.
12609         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
12610
12611 2008-02-24  Bruno Haible  <bruno@clisp.org>
12612
12613         * modules/environ-tests: New file.
12614         * tests/test-environ.c: New file.
12615
12616         New module 'environ'.
12617         * modules/environ: New file.
12618         * lib/unistd.in.h (environ): New declaration.
12619         * m4/environ.m4: New file.
12620         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
12621         after use.
12622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
12623         HAVE_DECL_ENVIRON.
12624         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
12625         HAVE_DECL_ENVIRON.
12626         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
12627         wrong claim that 'environ' is missing on some systems.
12628         * modules/execute (Depends-on): Add environ.
12629         * lib/execute.c (environ): Remove fallback declaration.
12630         * modules/pipe (Depends-on): Add environ.
12631         * lib/pipe.c (environ): Remove fallback declaration.
12632         * modules/setenv (Depends-on): Add environ.
12633         * lib/setenv.c (environ): Remove fallback declaration.
12634         * modules/unsetenv (Depends-on): Add environ.
12635         * lib/unsetenv.c (environ): Remove fallback declaration.
12636         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
12637         m4/environ.m4.
12638         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
12639         (gl_PREREQ_UNSETENV): Likewise.
12640
12641 2008-02-24  Bruno Haible  <bruno@clisp.org>
12642
12643         * doc/posix-functions/environ.texi: Document the MacOS X problem.
12644
12645 2008-02-20  Bob Proulx  <bob@proulx.com>
12646
12647         Enable use of older two part flavor 'git describe'.
12648         * build-aux/git-version-gen: If using the older two part flavor of
12649         git version then recreate the third part now present in the
12650         newer three part flavor of git describe.
12651
12652 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
12653
12654         * lib/fts.c (fts_build): Typo correction to comment.
12655
12656 2008-02-17  Bruno Haible  <bruno@clisp.org>
12657
12658         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
12659         generating no-op conflicts.
12660
12661 2008-02-17  Bruno Haible  <bruno@clisp.org>
12662
12663         Speed up by 10%.
12664         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
12665         result_entries, rather than an index-based loop.
12666
12667 2008-02-17  Bruno Haible  <bruno@clisp.org>
12668
12669         Speed up by 25%.
12670         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
12671         'hashcode_cached'.
12672         (entry_create): New function.
12673         (entry_hashcode): Use the cached hashcode if possible.
12674         (read_changelog_file, try_split_merged_entry): Use entry_create.
12675
12676 2008-02-17  Bruno Haible  <bruno@clisp.org>
12677
12678         Speed up from O(n^2) to O(n) for long ChangeLog files.
12679         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
12680         (read_changelog_file): Change implementation of entries_reversed list
12681         to rbtreehash.
12682         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
12683
12684 2008-02-17  Bruno Haible  <bruno@clisp.org>
12685
12686         New option --split-merged-entry.
12687         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
12688         (find_paragraph_end, try_split_merged_entry): New functions.
12689         (long_options): Add option --split-merged-entry.
12690         (usage): Document option --split-merged-entry.
12691         (main): Implement option --split-merged-entry.
12692         Reported by Eric Blake.
12693
12694 2008-02-17  Bruno Haible  <bruno@clisp.org>
12695
12696         * lib/git-merge-changelog.c: Include c-strstr.h.
12697         (main): Support the "git pull --rebase" situation.
12698         * modules/git-merge-changelog (Depends-on): Add c-strstr.
12699         Reported by Eric Blake.
12700
12701 2008-02-16  Eric Blake  <ebb9@byu.net>
12702
12703         Avoid doubling \ in common case of "c-maybe" quoting style.
12704         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
12705         eliding outer quotes.
12706         * lib/quotearg.h: Document this.
12707         * tests/test-quotearg.c (result_strings, inputs, results_g)
12708         (flag_results, locale_results): Test it by adding a new string to
12709         each test group.
12710         (compare_strings): Test new string.
12711
12712 2008-02-13  Eric Blake  <ebb9@byu.net>
12713
12714         Avoid trigraph quoting in default output.
12715         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
12716         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
12717         unless explicitly requested.
12718         * tests/test-quotearg.c (flag_results, main): Add additional tests.
12719
12720 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
12721
12722         Don't rely on signed integer overflowing to negative value.
12723         * lib/getugroups.c (getugroups): Include <limits.h>.
12724         Instead, compare against INT_MAX, and increment only if the test passes.
12725
12726 2008-02-13  Jim Meyering  <meyering@redhat.com>
12727         and Eric Blake  <ebb9@byu.net>
12728
12729         Avoid shadowing warning and compile errors on Linux.
12730         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
12731         forwarding macros on Linux.
12732         (dcgettext): Define a stub, for Linux.
12733         (results_g, main): Avoid warnings.
12734
12735 2008-02-12  Eric Blake  <ebb9@byu.net>
12736
12737         Silence warning in last patch.
12738         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
12739
12740         Quotearg part 4: add tests, fix c-maybe colon quoting.
12741         * lib/quotearg.h: Improve documentation.
12742         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
12743         escapes when adding outer quotes.  When quoting trigraphs, use
12744         valid C notation.  When quoting NUL, omit extra characters if next
12745         character is not digit.  Alter prototype.
12746         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
12747         callers.
12748         * modules/quotearg-tests: New module.
12749         * tests/test-quotearg.c: New test.
12750
12751 2008-02-07  Eric Blake  <ebb9@byu.net>
12752
12753         Quotearg part 3: add flag to control outer quote elision.
12754         * lib/quotearg.h (c_maybe_quoting_style): New style.
12755         (enum quoting_flags): Better documentation of flags.
12756         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
12757         c-maybe style.
12758         (quotearg_buffer_restyled): Handle new flag to elide outer
12759         quotes.
12760
12761         Quotearg part 2: add flag that can control NUL elision.
12762         * lib/quotearg.h (set_quoting_flags): New prototype.
12763         * lib/quotearg.c (struct quoting_options): Add flag field.
12764         (set_quoting_flags): New function.
12765         (quotearg_buffer_restyled): Add flags parameter.
12766         (quotearg_alloc_mem): Set the flag if length cannot be returned.
12767         (quotearg_n_options): Set the flag, since length cannot be
12768         returned.
12769         (quoting_options_from_style): Default flags correctly.
12770
12771         Quotearg part 1: more wrappers, restore quotearg_char state.
12772         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
12773         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
12774         (quotearg_colon_mem): New wrappers.
12775         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
12776         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
12777         functions.
12778         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
12779         (quotearg_colon_mem): New functions.
12780
12781 2008-02-11  Bruno Haible  <bruno@clisp.org>
12782
12783         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
12784         library in the current directory: it does not work with parallel make.
12785         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12786
12787 2008-02-11  Bruno Haible  <bruno@clisp.org>
12788
12789         * .gitattributes: New file.
12790
12791 2008-02-11  Jim Meyering  <meyering@redhat.com>
12792
12793         useless-if-before-free: Fix reversed exit values.
12794         * build-aux/useless-if-before-free: Use correct values
12795         for EXIT_MATCH and EXIT_NO_MATCH.
12796
12797         * build-aux/useless-if-before-free: Close stdout carefully.
12798
12799 2008-02-10  Bruno Haible  <bruno@clisp.org>
12800
12801         New module 'git-merge-changelog'.
12802         * modules/git-merge-changelog: New file.
12803         * lib/git-merge-changelog.c: New file.
12804
12805 2008-02-10  Jim Meyering  <meyering@redhat.com>
12806
12807         useless-if-before-free: New option: --list (-l).
12808
12809         useless-if-before-free: Don't exit immediately upon open failure.
12810         * build-aux/useless-if-before-free: Exit 2 for errors.
12811         Upon failure to open a file, don't exit immediately.
12812         Rather, just warn and continue with any remaining files.
12813
12814 2008-02-10  Bruno Haible  <bruno@clisp.org>
12815
12816         New abstract list operation 'node_set_value'.
12817         * lib/gl_list.h (gl_list_node_set_value): New function.
12818         (struct gl_list_implementation): New field node_set_value.
12819         * lib/gl_list.c (gl_list_node_set_value): New function.
12820         * lib/gl_array_list.c (gl_array_node_set_value): New function.
12821         (gl_array_list_implementation): Update.
12822         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
12823         (gl_carray_list_implementation): Update.
12824         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
12825         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
12826         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
12827         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
12828         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
12829         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
12830         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
12831         Update.
12832         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
12833         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
12834         (gl_sublist_list_implementation): Update.
12835
12836 2008-02-10  Bruno Haible  <bruno@clisp.org>
12837
12838         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
12839         Needed when ELEMENT is #defined to 'some_type *'.
12840
12841 2008-02-10  Jim Meyering  <meyering@redhat.com>
12842
12843         New script and module: useless-if-before-free
12844         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
12845         * build-aux/useless-if-before-free: New file.
12846         * modules/useless-if-before-free: New file.
12847
12848         * build-aux/gitlog-to-changelog: Use committer date, not author date.
12849
12850         xstrtol_error: Fix typo.
12851         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
12852         s/exit_failure/exit_status/.
12853
12854 2008-02-09  Jim Meyering  <meyering@redhat.com>
12855
12856         New script and module: gitlog-to-changelog
12857         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
12858         * modules/gitlog-to-changelog: New file.
12859         * build-aux/gitlog-to-changelog: New file.
12860
12861 2008-02-08  Jim Meyering  <meyering@redhat.com>
12862
12863         Avoid two "parameter unused" warnings.
12864         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
12865         Mark "st" as used.
12866
12867         Use "git COMMAND", not "git-COMMAND".
12868         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
12869         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
12870         * build-aux/git-version-gen: Use "git status", not "git-status".
12871
12872 2008-02-07  Bruno Haible  <bruno@clisp.org>
12873
12874         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
12875         Avoids a crash on Windows Vista.
12876         Reported by Adam Strzelecki <ono@java.pl> via
12877         Simon Josefsson <simon@josefsson.org>.
12878
12879 2008-02-06  Bruno Haible  <bruno@clisp.org>
12880
12881         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
12882         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
12883         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
12884         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
12885         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
12886         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12887         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
12888         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
12889         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12890         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12891         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12892         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12893         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12894         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12895         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12896         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
12897         left-adjust flag.
12898         * tests/test-snprintf-posix.h (test_function): Likewise.
12899         * tests/test-sprintf-posix.h (test_function): Likewise.
12900         * tests/test-vasprintf-posix.c (test_function): Likewise.
12901         * doc/posix-functions/fprintf.texi: Update.
12902         * doc/posix-functions/printf.texi: Update.
12903         * doc/posix-functions/snprintf.texi: Update.
12904         * doc/posix-functions/sprintf.texi: Update.
12905         * doc/posix-functions/vfprintf.texi: Update.
12906         * doc/posix-functions/vprintf.texi: Update.
12907         * doc/posix-functions/vsnprintf.texi: Update.
12908         * doc/posix-functions/vsprintf.texi: Update.
12909         Reported by Peter Fales <psfales@alcatel-lucent.com>.
12910
12911 2008-02-06  Bruno Haible  <bruno@clisp.org>
12912
12913         Fix bug introduced on 2008-01-26.
12914         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
12915
12916 2008-02-06  Bruno Haible  <bruno@clisp.org>
12917
12918         Fix bug introduced on 2007-06-10.
12919         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
12920         !NEED_PRINTF_FLAG_ZERO.
12921
12922 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
12923
12924         getloadavg: use libperfstat on AIX5
12925         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
12926
12927 2008-02-03  Bruno Haible  <bruno@clisp.org>
12928
12929         * lib/diffseq.h: Add comments about required #includes.
12930         Reported by Michael Biggs <gnulib@doubleplum.net>.
12931
12932 2008-02-01  Bruno Haible  <bruno@clisp.org>
12933
12934         * users.txt: Add gnuit.
12935
12936 2008-01-31  Bruno Haible  <bruno@clisp.org>
12937
12938         * lib/md4.c (set_uint32): Mark as inline.
12939         * lib/md5.c (set_uint32): Likewise.
12940         * lib/sha1.c (set_uint32): Likewise.
12941         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
12942         * m4/md5.m4 (gl_MD5): Likewise.
12943         * m4/sha1.m4 (gl_SHA1): Likewise.
12944
12945 2008-01-31  Jim Meyering  <meyering@redhat.com>
12946
12947         Use "sizeof VAR", rather than a literal "4".
12948         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
12949         * lib/md4.c (md4_read_ctx): Likewise.
12950         * lib/sha1.c (sha1_read_ctx): Likewise.
12951
12952 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12953
12954         * tests/test-sha1.c: New file, based on test-md5.c.
12955
12956         * modules/crypto/sha1-tests: New file.
12957
12958 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12959
12960         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
12961
12962 2008-01-31  Jim Meyering  <meyering@redhat.com>
12963
12964         Prefer "sizeof v" over the equivalent "4".
12965         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
12966         * lib/md5.c (set_uint32): Likewise.
12967         * lib/sha1.c (set_uint32): Likewise.
12968
12969 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12970
12971         * lib/sha1.c (set_uint32): Mark function as static.
12972
12973 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12974
12975         md2: clarify comments to say that alignment is not required.
12976         * lib/md2.h: Remove warning about alignment in comment.
12977         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
12978         never been required.
12979
12980 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12981
12982         md4: adapt alignment constraint fix from sha1.
12983         * lib/md4.c (set_uint32): New function, from sha1.c
12984         (md4_read_ctx): Use it.
12985         (md4_finish_ctx): Doc fix.
12986         * lib/md4.h: Doc fix.
12987
12988 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12989
12990         md5: adapt alignment constraint fix from sha1.
12991         * lib/md5.c (set_uint32): New function, from sha1.c
12992         (md5_read_ctx): Use it.
12993         (md5_finish_ctx): Doc fix.
12994         * lib/md5.h: Doc fix.
12995
12996 2008-01-30  Peter Palfrader  <weasel@debian.org>
12997
12998         sha1: remove the result buffer alignment constraint
12999         * lib/sha1.c (set_uint32): New function.
13000         (sha1_read_ctx): Rewrite to remove the result buffer alignment
13001         constraint.
13002         (sha1_finish_ctx): Remove comment warning about alignment constraint.
13003         * lib/sha1.h: Likewise.
13004
13005 2008-01-30  Andreas Schwab  <schwab@suse.de>
13006             Bruno Haible  <bruno@clisp.org>
13007
13008         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
13009         correct definition of LDBL_MIN_EXP.
13010
13011 2008-01-30  Karl Berry  <karl@gnu.org>
13012
13013         * config/srclist-update: try to preserve x bit on updates.
13014         * config/srclistvars.sh: update for karl.
13015
13016 2008-01-29  Jim Meyering  <meyering@redhat.com>
13017
13018         vasnprintf.c: Avoid warning about unused label
13019         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
13020         "overflow" label definition and associated code with the
13021         same cpp condition that guards the sole use of that label.
13022
13023 2008-01-26  Bruno Haible  <bruno@clisp.org>
13024
13025         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
13026         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
13027         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
13028         * lib/isnanl-nolibm.h (isnanl): Likewise.
13029         Reported by Paul Eggert <eggert@cs.ucla.edu>.
13030
13031 2008-01-26  Bruno Haible  <bruno@clisp.org>
13032
13033         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
13034         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
13035
13036 2008-01-26  Bruno Haible  <bruno@clisp.org>
13037
13038         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
13039         GCC >= 4.0 built-in.
13040         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
13041
13042 2008-01-26  Bruno Haible  <bruno@clisp.org>
13043
13044         Rename isnan, applicable to 'double' only, to isnand.
13045         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
13046         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
13047         (configure.ac): Update.
13048         (Include): Replace "isnan.h" with "isnand.h".
13049         * m4/isnand.m4: Renamed from m4/isnan.m4.
13050         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
13051         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
13052         instead of isnan.c.
13053         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
13054         instead of HAVE_ISNAN_IN_LIBC.
13055         (isnand): Renamed from isnan.
13056         * lib/isnand.c: New file.
13057         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
13058         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
13059         (Makefile.am): Update.
13060         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
13061         Include isnand.h instead of isnan.h.
13062         (main): Test isnand instead of isnan.
13063         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
13064         isnan-nolibm.
13065         * modules/frexp (Depends-on): Likewise.
13066         * modules/frexp-tests (Depends-on): Likewise.
13067         * modules/frexp-nolibm (Depends-on): Likewise.
13068         * modules/frexp-nolibm-tests (Depends-on): Likewise.
13069         * modules/isfinite (Depends-on): Likewise.
13070         * modules/round-tests (Depends-on): Likewise.
13071         * modules/signbit (Depends-on): Likewise.
13072         * modules/signbit-tests (Depends-on): Likewise.
13073         * modules/snprintf-posix (Depends-on): Likewise.
13074         * modules/sprintf-posix (Depends-on): Likewise.
13075         * modules/trunc-tests (Depends-on): Likewise.
13076         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13077         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13078         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13079         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13080         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13081         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13082         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13083         * modules/vasnprintf-posix (Depends-on): Likewise.
13084         * modules/vasprintf-posix (Depends-on): Likewise.
13085         * modules/vfprintf-posix (Depends-on): Likewise.
13086         * modules/vsnprintf-posix (Depends-on): Likewise.
13087         * modules/vsprintf-posix (Depends-on): Likewise.
13088         * lib/frexp.c: Include isnand.h instead of isnan.h.
13089         (ISNAN): Set to isnand instead of isnan.
13090         * lib/isfinite.c: Include isnand.h instead of isnan.h.
13091         (gl_isfinited): Use isnand instead of isnan.
13092         * lib/signbitd.c: Include isnand.h instead of isnan.h.
13093         (gl_signbitd): Use isnand instead of isnan.
13094         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
13095         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
13096         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
13097         (main): Use isnand instead of isnan.
13098         * tests/test-round1.c: Include isnand.h.
13099         (main): Use isnand instead of isnan.
13100         * tests/test-round2.c: Include isnand.h instead of isnan.h.
13101         (ISNAN): Set to isnand instead of isnan.
13102         * tests/test-trunc1.c: Include isnand.h.
13103         (main): Use isnand instead of isnan.
13104         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
13105         (equal): Use isnand instead of isnan.
13106         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
13107         isnand-nolibm.
13108         * NEWS: Mention the change.
13109
13110 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
13111             Bruno Haible  <bruno@clisp.org>
13112
13113         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
13114         the GCC builtins for signbits are present and set
13115         REPLACE_SIGNBIT_USING_GCC if so.
13116         * lib/math.in.h (signbit): Define using GCC builtins if
13117         REPLACE_SIGNBIT_USING_GCC is set.
13118         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
13119         REPLACE_SIGNBIT_USING_GCC.
13120         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
13121
13122 2008-01-25  Jim Meyering  <meyering@redhat.com>
13123
13124         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
13125         * lib/poll.c: Include <config.h>, not "config.h".
13126         * tests/test-getaddrinfo.c: Likewise.
13127
13128 2008-01-25  Simon Josefsson  <simon@josefsson.org>
13129
13130         * modules/sockets-tests: New file.
13131
13132 2008-01-24  Simon Josefsson  <simon@josefsson.org>
13133
13134         * modules/sockets: New module, can be used to call WSA_Startup and
13135         WSA_Cleanup when needed.
13136
13137         * lib/sockets.h, lib/sockets.c: New files.
13138
13139         * m4/sockets.m4: New file.
13140
13141         * tests/test-sockets.c: New file.
13142
13143 2008-01-19  Bruno Haible  <bruno@clisp.org>
13144
13145         * doc/posix-headers: Renamed from doc/headers.
13146         * doc/posix-functions: Renamed from doc/functions.
13147         * doc/gnulib.texi: Update.
13148
13149 2008-01-19  Bruno Haible  <bruno@clisp.org>
13150
13151         * doc/glibc-functions/strcasestr.texi: Include contents of
13152         doc/functions/strcasestr.texi, fixing the list of platforms.
13153         * doc/functions/strcasestr.texi: Remove file.
13154
13155 2008-01-19  Bruno Haible  <bruno@clisp.org>
13156
13157         * doc/glibc-functions/memmem.texi: Include contents of
13158         doc/functions/memmem.texi.
13159         * doc/functions/memmem.texi: Remove file.
13160
13161 2008-01-18  Bruno Haible  <bruno@clisp.org>
13162
13163         * doc/glibc-functions/*.texi: New files.
13164         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
13165         to use the new files.
13166
13167 2008-01-17  Bruno Haible  <bruno@clisp.org>
13168
13169         * tests/test-gethostname.c (main): Fix printf statement.
13170
13171 2008-01-17  Simon Josefsson  <simon@josefsson.org>
13172
13173         * modules/gethostname-tests: New file.
13174
13175         * tests/test-gethostname.c: New file.
13176
13177 2008-01-17  Simon Josefsson  <simon@josefsson.org>
13178
13179         * lib/gethostname.c: Include string.h unconditionally, strncpy is
13180         used by the UNAME case.  Reported by Bruno Haible
13181         <bruno@clisp.org>.
13182
13183 2008-01-17  Eric Blake  <ebb9@byu.net>
13184
13185         Convert c-strcasestr to be more efficient.
13186         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
13187         (Depends-on): Add c-strcase, remove malloca, strnlen.
13188         * tests/test-c-strcasestr.c (main): Enhance test.
13189         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
13190
13191 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
13192
13193         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
13194         Use it in creating po/Makevars.
13195
13196 2008-01-15  Simon Josefsson  <simon@josefsson.org>
13197
13198         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
13199         Applications that requires it should initialize libgcrypt
13200         manually.
13201
13202 2008-01-16  Simon Josefsson  <simon@josefsson.org>
13203
13204         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
13205
13206 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
13207
13208         Fix problem with getdate on mingw32 reported by Simon Josefsson
13209         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
13210         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
13211         tzname", when deciding whether to declare tzname.
13212         * lib/strftime.c (tzname): Likewise.
13213
13214 2008-01-15  Bruno Haible  <bruno@clisp.org>
13215
13216         Work around a MacOS X 10.5 bug in frexpl().
13217         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
13218         * doc/functions/frexpl.texi: Document the bug.
13219         Reported by Elias Pipping <pipping@gentoo.org>.
13220
13221 2008-01-14  Eric Blake  <ebb9@byu.net>
13222
13223         Touch up previous patch.
13224         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
13225         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
13226
13227         Convert strcasestr module to use Two-Way algorithm.
13228         * modules/strcasestr-simple: New module, based on the old
13229         strcasestr, but with Two-Way rather than KMP.
13230         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
13231         * lib/string.in.h (rpl_strcasestr): Declare.
13232         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
13233         performance.
13234         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
13235         * modules/string (Makefile.am): Support strcasestr.
13236         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
13237         * modules/strcasestr-tests (Depends-on): Check for alarm.
13238         * tests/test-strcasestr.c: Augment test.
13239         * lib/str-two-way.h: Clean up stray macro.
13240         * NEWS: Document new module.
13241         * MODULES.html.sh (string handling): Likewise.
13242         * doc/functions/strcasestr.texi: New file.
13243         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
13244         here, since it is not a POSIX function.
13245
13246 2008-01-14  Colin Watson  <cjwatson@debian.org>
13247             Bruno Haible  <bruno@clisp.org>
13248
13249         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
13250         works fine; if not, set REPLACE_STRSIGNAL.
13251         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
13252         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13253         REPLACE_STRSIGNAL.
13254         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
13255         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
13256         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
13257
13258 2008-01-14  Bruno Haible  <bruno@clisp.org>
13259
13260         * modules/strsignal (Include): Change to <string.h>.
13261
13262 2008-01-14  Colin Watson  <cjwatson@debian.org>
13263
13264         * modules/argp (Notice): Add a notice recommending to change
13265         XGETTEXT_OPTIONS.
13266         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
13267
13268 2008-01-13  Colin Watson  <cjwatson@debian.org>
13269
13270         * modules/strsignal-tests: New file.
13271         * tests/test-strsignal.c: New file.
13272
13273         * lib/strsignal.c: New file, from glibc with modifications.
13274         * lib/siglist.h: New file, from glibc with modifications.
13275         * lib/string.in.h (strsignal): New declaration.
13276         * m4/strsignal.m4: New file.
13277         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13278         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
13279         * modules/strsignal: New file.
13280         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
13281         HAVE_DECL_STRSIGNAL.
13282
13283 2008-01-13  Bruno Haible  <bruno@clisp.org>
13284
13285         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
13286         locale encoding is not ASCII. Needed for OpenBSD 4.0.
13287         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
13288         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13289
13290 2008-01-13  Bruno Haible  <bruno@clisp.org>
13291
13292         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
13293         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
13294         * lib/argp.h (__attribute__): Likewise.
13295         * lib/c-stack.c (__attribute__): Likewise.
13296         * lib/error.h (__attribute__): Likewise.
13297         * lib/fts.c (__attribute__): Likewise.
13298         * lib/openat.h (__attribute__): Likewise.
13299         * lib/stdio.in.h (__attribute__): Likewise.
13300         * lib/string.in.h (__attribute__): Likewise.
13301         * lib/utimens.c (__attribute__): Likewise.
13302         * lib/vasnprintf.h (__attribute__): Likewise.
13303         * lib/xalloc.h (__attribute__): Likewise.
13304         * lib/xprintf.h (__attribute__): Likewise.
13305         * lib/xstrtol.h (__attribute__): Likewise.
13306         * lib/xvasprintf.h (__attribute__): Likewise.
13307
13308 2008-01-12  Bruno Haible  <bruno@clisp.org>
13309
13310         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
13311         * doc/glibc-headers/a.out.texi: New file.
13312         * doc/glibc-headers/aliases.texi: New file.
13313         * doc/glibc-headers/alloca.texi: New file.
13314         * doc/glibc-headers/ar.texi: New file.
13315         * doc/glibc-headers/argp.texi: New file.
13316         * doc/glibc-headers/argz.texi: New file.
13317         * doc/glibc-headers/byteswap.texi: New file.
13318         * doc/glibc-headers/crypt.texi: New file.
13319         * doc/glibc-headers/endian.texi: New file.
13320         * doc/glibc-headers/envz.texi: New file.
13321         * doc/glibc-headers/err.texi: New file.
13322         * doc/glibc-headers/error.texi: New file.
13323         * doc/glibc-headers/execinfo.texi: New file.
13324         * doc/glibc-headers/fpu_control.texi: New file.
13325         * doc/glibc-headers/fstab.texi: New file.
13326         * doc/glibc-headers/fts.texi: New file.
13327         * doc/glibc-headers/getopt.texi: New file.
13328         * doc/glibc-headers/ieee754.texi: New file.
13329         * doc/glibc-headers/ifaddrs.texi: New file.
13330         * doc/glibc-headers/libintl.texi: New file.
13331         * doc/glibc-headers/mcheck.texi: New file.
13332         * doc/glibc-headers/mntent.texi: New file.
13333         * doc/glibc-headers/obstack.texi: New file.
13334         * doc/glibc-headers/paths.texi: New file.
13335         * doc/glibc-headers/printf.texi: New file.
13336         * doc/glibc-headers/pty.texi: New file.
13337         * doc/glibc-headers/resolv.texi: New file.
13338         * doc/glibc-headers/shadow.texi: New file.
13339         * doc/glibc-headers/sysexits.texi: New file.
13340         * doc/glibc-headers/ttyent.texi: New file.
13341
13342 2008-01-12  Jim Meyering  <meyering@redhat.com>
13343
13344         announce-gen: emit Gnulib's git-based version string.
13345         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
13346         New option --gnulib-version=V, where V is expected to be
13347         the output of running git describe in the gnulib directory.
13348         (get_tool_versions): Request feedback on xdelta.  I suspect it's
13349         not useful, and plan to stop publishing an xdelta file with each
13350         coreutils release.
13351
13352         * build-aux/announce-gen: Also check for lzma-compressed files.
13353
13354 2008-01-11  Bruno Haible  <bruno@clisp.org>
13355
13356         * tests/test-memmem.c (main): Increase maximum allowed time.
13357         * tests/test-strstr.c (main): Likewise.
13358
13359 2008-01-11  Bruno Haible  <bruno@clisp.org>
13360
13361         * doc/functions/memmem.texi: Add more precisions about platforms.
13362         * doc/functions/strstr.texi: Likewise.
13363
13364 2008-01-10  Eric Blake  <ebb9@byu.net>
13365
13366         * m4/strstr.m4: Delete cruft from copy-n-paste.
13367         Reported by Bruno Haible.
13368
13369 2008-01-10  Bruno Haible  <bruno@clisp.org>
13370
13371         Make c-strstr rely on strstr.
13372         * lib/c-strstr.c: Don't include str-kmp.h.
13373         (c_strstr): Define in terms of strstr.
13374         * modules/c-strstr (Files): Remove lib/str-kmp.h.
13375         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
13376
13377 2008-01-10  Bruno Haible  <bruno@clisp.org>
13378
13379         * doc/gnulib.texi (String Functions in C Locale): New section.
13380         * doc/c-ctype.texi: New file.
13381         * doc/c-strcase.texi: New file.
13382         * doc/c-strcaseeq.texi: New file.
13383         * doc/c-strcasestr.texi: New file.
13384         * doc/c-strstr.texi: New file.
13385         * doc/c-strtod.texi: New file.
13386         * doc/c-strtold.texi: New file.
13387
13388 2008-01-10  Eric Blake  <ebb9@byu.net>
13389
13390         * lib/relocatable.h: Fix a comment.
13391
13392 2008-01-10  Eric Blake  <ebb9@byu.net>
13393
13394         Share two-way algorithm.
13395         * lib/str-two-way.h: New file, merged from...
13396         * lib/memmem.c: ...here...
13397         * lib/strstr.c: ...and here.
13398         * modules/memmem (Files): Use it.
13399         * modules/strstr (Files): Likewise.
13400
13401         Avoid quadratic strstr implementations.
13402         * lib/strstr.c: New file.
13403         * m4/strstr.m4: Likewise.
13404         * modules/strstr: Likewise.
13405         * modules/strstr-tests: Likewise.
13406         * tests/test-strstr.c: Likewise.
13407         * lib/string.in.h (rpl_strstr): Declare.
13408         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
13409         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
13410         * modules/string (Makefile.am): Likewise.
13411         * MODULES.html.sh (string handling): Mention new module.
13412         * doc/functions/strstr.texi (strstr): Document the bug.
13413
13414 2008-01-10  Bruno Haible  <bruno@clisp.org>
13415
13416         * lib/relocatable.h (relocate): State whether result is freshly
13417         allocated or not.
13418         * lib/relocatable.c (relocate): Return a freshly allocated string
13419         instead of a pointer to a privately held string.
13420         Reported by Sylvain Beucler <beuc@gnu.org>.
13421
13422 2008-01-10  Colin Watson  <cjwatson@debian.org>
13423
13424         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
13425         s/S_ISNLK/S_ISLNK/.
13426
13427 2008-01-09  Bruno Haible  <bruno@clisp.org>
13428
13429         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
13430         and other files.
13431         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
13432         if it's only a guess.
13433         * modules/memmem: Simplify by depending on memmem-simple.
13434
13435 2008-01-09  Bruno Haible  <bruno@clisp.org>
13436
13437         Work around OpenBSD 4.0 tdelete() bug.
13438         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
13439         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
13440         macros and don't redefine the enum values.
13441         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
13442         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
13443         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
13444
13445 2008-01-09  Bruno Haible  <bruno@clisp.org>
13446
13447         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
13448         (main): Don't perform the tests if setlocale did not install a UTF-8
13449         locale. Needed on OpenBSD 4.0.
13450         * modules/wcwidth-tests (Depends-on): Add localcharset.
13451
13452 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
13453
13454         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
13455         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
13456         * NEWS: announce this.
13457         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
13458
13459 2008-01-09  Simon Josefsson  <simon@josefsson.org>
13460         and Eric Blake  <ebb9@byu.net>
13461
13462         Add memmem-simple module.
13463         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
13464         (gl_FUNC_MEMMEM): Separate performance from presence checks.
13465         * modules/memmem-simple: New file.
13466         * modules/memmem (Description): Tweak.
13467         * MODULES.html.sh (string handling): Mention new module.
13468         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
13469         addressed by memmem-simple.
13470         * NEWS: Document the difference.
13471
13472 2008-01-09  Eric Blake  <ebb9@byu.net>
13473
13474         Give gcc some memmem optimization hints.
13475         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
13476         (strcasestr): Declare as pure.
13477         * modules/memmem (Maintainer): Claim my implementation.
13478
13479 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13480
13481         Support AIX 6.1 and higher.
13482         * build-aux/config.libpath: Likewise.
13483         * build-aux/config.rpath: Likewise.
13484
13485 2008-01-08  Jim Meyering  <meyering@redhat.com>
13486             Bruno Haible  <bruno@clisp.org>
13487
13488         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
13489         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
13490         Reported by Peter Fales in
13491         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
13492
13493 2008-01-08  Bruno Haible  <bruno@clisp.org>
13494
13495         * modules/unictype/category-of (Depends-on): Add
13496         unictype/category-none.
13497         * modules/unictype/category-and-tests (Depends-on): Add
13498         unictype/category-{L,N,Lu,Nd}.
13499         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
13500         * modules/unictype/category-or-tests (Depends-on): Add
13501         unictype/category-{L,N}.
13502         * modules/unictype/category-name-tests (Depends-on): Add
13503         unictype/category-{Z,Nl}.
13504         Reported by Simon Josefsson.
13505
13506 2008-01-08  Bruno Haible  <bruno@clisp.org>
13507
13508         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
13509         convention better.
13510         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
13511         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
13512         Reported by Peter Miller <millerp@canb.auug.org.au>.
13513
13514 2008-01-08  Eric Blake  <ebb9@byu.net>
13515
13516         Rewrite memmem to guarantee linear complexity without malloc.
13517         * lib/memmem.c (memmem): Use Two-Way rather than
13518         Knuth-Morris-Pratt, to allow O(1) space usage.
13519         (critical_factorization, two_way_short_needle)
13520         (two_way_long_needle): New functions.
13521         (knuth_morris_pratt): Delete.
13522         * modules/memmem (Depends-on): No longer need malloca or stdbool.
13523         Add stdint.
13524         * tests/test-memmem.c (main): Add tests for periodic needle and
13525         sublinear performance.
13526         * doc/functions/memmem.texi (memmem): Document other deficiencies
13527         in cygwin and older glibc.
13528
13529 2008-01-08  Bruno Haible  <bruno@clisp.org>
13530
13531         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
13532         augmentation.
13533
13534 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
13535
13536         Add a configure time option: --disable-acl.
13537         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
13538         AC_ARG_ENABLE(acl).
13539
13540 2008-01-06  Simon Josefsson  <simon@josefsson.org>
13541
13542         * tests/test-localename.c: Don't include obsolete "setenv.h".
13543
13544         * modules/localename-tests (Depends-on): Need unsetenv.
13545
13546 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13547
13548         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
13549
13550 2008-01-06  Colin Watson  <cjwatson@debian.org>
13551
13552         * users.txt: Add man-db.
13553
13554 2008-01-07  Bruno Haible  <bruno@clisp.org>
13555
13556         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
13557         previous section name.
13558
13559 2008-01-07  Bruno Haible  <bruno@clisp.org>
13560
13561         * lib/progname.c (set_program_name): Don't strip off a leading
13562         "lt-" prefix outside a .libs directory.
13563         Suggested by Paul Eggert.
13564
13565 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
13566             Bruno Haible  <bruno@clisp.org>
13567
13568         Improve memory cleanup in 'relocatable' module.
13569         * lib/relocatable.h (compute_curr_prefix): Change return type to
13570         'char *'.
13571         * lib/relocatable.c (compute_curr_prefix): Change return type to
13572         'char *'. Free curr_installdir after use.
13573         (relocate): Free curr_prefix_better after use.
13574         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
13575
13576 2008-01-01  Bruno Haible  <bruno@clisp.org>
13577
13578         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
13579         failure on older glibc systems.
13580         Reported by Peter Fales <psfales@alcatel-lucent.com>.
13581
13582 2008-01-05  Eric Blake  <ebb9@byu.net>
13583
13584         Avoid quadratic system memmem.
13585         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
13586         Reported by Ralf Wildenhues.
13587
13588         Fix memmem test for mingw.
13589         * modules/memmem-tests (configure.ac): Check for alarm.
13590         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
13591         it.
13592         * doc/functions/memmem.texi: New file.
13593         * doc/gnulib.texi (Function Substitutes): Add memmem.
13594         Reported by Bruno Haible.
13595
13596 2008-01-04  Bruno Haible  <bruno@clisp.org>
13597
13598         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
13599         Require gl_HEADER_STRINGS_H_DEFAULTS, not
13600         gl_HEADER_STRING_H_DEFAULTS.
13601
13602 2008-01-04  Eric Blake  <ebb9@byu.net>
13603
13604         Shorten duration of memmem test.
13605         * tests/test-memmem.c (main): Use alarm to declare failure if test
13606         is taking too long.
13607         Reported by Ralf Wildenhues.
13608
13609 2007-12-21  Simon Josefsson  <simon@josefsson.org>
13610
13611         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
13612         string, needed by strerror.
13613
13614 2008-01-03  Colin Watson  <cjwatson@debian.org>
13615             Bruno Haible  <bruno@clisp.org>
13616
13617         * doc/gnulib-tool.texi (Localization): New section.
13618
13619 2008-01-02  Bruno Haible  <bruno@clisp.org>
13620
13621         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
13622         variables to 'unsigned char *' type.
13623         Reported by Paul Eggert.
13624
13625 2008-01-02  Jim Meyering  <jim@meyering.net>
13626
13627         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
13628
13629 2007-12-31  Jim Meyering  <jim@meyering.net>
13630
13631         Avoid use of private FTS type name.
13632         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
13633
13634 2007-12-30  Karl Berry  <karl@gnu.org>
13635
13636         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
13637         work around defect in Texinfo and/or the standalone Info browser.
13638
13639 2007-12-30  Bruno Haible  <bruno@clisp.org>
13640
13641         Unify 5 copies of the KMP code.
13642         * lib/str-kmp.h: New file.
13643         * lib/c-strcasestr.c: Include str-kmp.h.
13644         (knuth_morris_pratt): Remove function.
13645         (c_strcasestr): Update.
13646         * lib/c-strstr.c: Include str-kmp.h.
13647         (knuth_morris_pratt): Remove function.
13648         (c_strcasestr): Update.
13649         * lib/mbscasestr.c: Include str-kmp.h.
13650         (knuth_morris_pratt_unibyte): Remove function.
13651         * lib/mbsstr.c: Include str-kmp.h.
13652         (knuth_morris_pratt_unibyte): Remove function.
13653         * lib/strcasestr.c: Include str-kmp.h.
13654         (knuth_morris_pratt): Remove function.
13655         (strcasestr): Update.
13656         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
13657         * modules/c-strstr (Files): Likewise.
13658         * modules/mbscasestr (Files): Likewise.
13659         * modules/mbsstr (Files): Likewise.
13660         * modules/strcasestr (Files): Likewise.
13661         Suggested by Paul Eggert.
13662
13663 2007-12-30  Bruno Haible  <bruno@clisp.org>
13664
13665         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
13666         defined.
13667
13668 2007-12-30  Bruno Haible  <bruno@clisp.org>
13669
13670         * lib/xmalloca.h: Include xalloc.h.
13671         (xnmalloca): New macro.
13672
13673 2007-12-30  Bruno Haible  <bruno@clisp.org>
13674
13675         * lib/malloca.h (nmalloca): New macro.
13676         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
13677         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
13678         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
13679         knuth_morris_pratt_multibyte): Likewise.
13680         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
13681         knuth_morris_pratt_multibyte): Likewise.
13682         * lib/memmem.c (knuth_morris_pratt): Likewise.
13683         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
13684
13685 2007-12-25  Bruno Haible  <bruno@clisp.org>
13686
13687         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
13688         * lib/glob.c: Don't include openat.h.
13689         (link_exists2_p): Add back the code that deals with the
13690         !GLOB_ALTDIRFUNC case.
13691         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
13692         let it do the filename concatenation.
13693         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
13694         * modules/glob (Depends-on): Remove openat.
13695
13696 2007-12-31  Bruno Haible  <bruno@clisp.org>
13697
13698         * modules/dirfd (License): Change to LGPLv2+.
13699         Approved by Jim Meyering.
13700
13701 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13702
13703         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
13704         when multiplying M by sizeof (size_t).
13705
13706 2007-12-10  Martin Lambers  <marlam@marlam.de>
13707
13708         Override getpagesize on mingw.
13709         * lib/getpagesize.c: New file.
13710         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
13711         * modules/getpagesize (Files): Add lib/getpagesize.c.
13712         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
13713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13714         REPLACE_GETPAGESIZE.
13715         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
13716
13717 2007-12-25  Bruno Haible  <bruno@clisp.org>
13718
13719         * modules/localcharset (Notice): New field.
13720         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
13721         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
13722
13723 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13724             Bruno Haible  <bruno@clisp.org>
13725
13726         Avoid using the syntax symbol() in formatted documentation.
13727         * MODULES.html.sh (func_module): When replacing symbol() with a
13728         hyperlink, remove the parentheses. Show an error if some remain.
13729         Recognize and render the '...' syntax.
13730         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
13731         Rework. Add paragraph about GCC's inlining.
13732         * doc/alloca.texi: Likewise.
13733         * doc/error.texi: Remove parentheses from symbol reference.
13734         * doc/gnulib-intro.texi: Likewise.
13735         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
13736         * modules/fnmatch (Description): Reword to say "the ... function".
13737         * modules/full-read (Description): Likewise.
13738         * modules/full-write (Description): Likewise.
13739         * modules/safe-read (Description): Likewise.
13740         * modules/safe-write (Description): Likewise.
13741         * modules/strchrnul (Description): Likewise.
13742         * modules/trim (Description): Likewise.
13743         * modules/error (Description): Remove parentheses from symbol
13744         references.
13745         * modules/verror (Description): Likewise.
13746         Reported by Karl Berry.
13747
13748 2007-12-25  Bruno Haible  <bruno@clisp.org>
13749
13750         Fixup after 2007-10-16 commit.
13751         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
13752
13753 2007-12-24  Bruno Haible  <bruno@clisp.org>
13754
13755         Make --enable-relocatable work with DESTDIR.
13756         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
13757         to compute installdir from destprog.
13758         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
13759         also set the RELOC_DESTDIR variable.
13760         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
13761
13762 2007-12-24  Bruno Haible  <bruno@clisp.org>
13763
13764         Fix link error due to xalloc_die().
13765         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
13766         of xreadlink.
13767         * lib/relocwrapper.c: Update comments.
13768         * build-aux/install-reloc: Remove xreadlink.c from file list.
13769         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
13770         xreadlink.c.
13771         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
13772
13773 2007-12-24  Bruno Haible  <bruno@clisp.org>
13774
13775         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
13776         * lib/setenv.h: Remove file.
13777         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
13778         lib/setenv.h.
13779         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
13780         (Depends-on): Add stdlib.
13781         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
13782         gl_FUNC_UNSETENV.
13783         (Include): Replace setenv.h with <stdlib.h>.
13784         * modules/unsetenv: New file.
13785         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
13786         * lib/unsetenv.c: Include <stdlib.h> first.
13787         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
13788         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
13789         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
13790         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
13791         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
13792         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
13793         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
13794         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
13795         * doc/functions/unsetenv.texi: Update.
13796         * modules/xsetenv (Depends-on): Add unsetenv.
13797         * modules/getdate (Depends-on): Likewise.
13798         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
13799         * lib/xsetenv.c: Don't include setenv.h.
13800         * lib/getdate.y: Likewise.
13801         * lib/relocwrapper.c: Likewise.
13802         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
13803         (Depends-on): Add stdlib.
13804         * NEWS: Mention the changes.
13805         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
13806
13807 2007-12-23  Bruno Haible  <bruno@clisp.org>
13808
13809         * lib/memmem.c (memmem): Use lowercase variable names. Tab
13810         indentation.
13811
13812 2007-12-23  Bruno Haible  <bruno@clisp.org>
13813
13814         * lib/c-strcasestr.c: Add more comments.
13815         * lib/c-strstr.c: Likewise.
13816         * lib/mbscasestr.c: Likewise.
13817         * lib/mbsstr.c: Likewise.
13818         * lib/strcasestr.c: Likewise.
13819         * lib/memmem.c: Likewise.
13820
13821 2007-12-23  Bruno Haible  <bruno@clisp.org>
13822
13823         * tests/test-memmem.c: Include <string.h> first.
13824
13825 2007-12-22  Bruno Haible  <bruno@clisp.org>
13826
13827         * gnulib-tool (func_create_testdir): Change $auxdir while generating
13828         the contents of $testsbase.
13829         Reported by Ralf Wildenhues.
13830
13831 2007-12-22  Bruno Haible  <bruno@clisp.org>
13832
13833         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
13834         two variables local_ldadd_before, local_ldadd_last.
13835
13836 2007-12-20  Eric Blake  <ebb9@byu.net>
13837
13838         Work around circular library issue when cross-compiling.
13839         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
13840         that progname.o does not need to pull in rpl_memcmp.
13841
13842 2007-12-19  Eric Blake  <ebb9@byu.net>
13843
13844         Fix memmem to avoid O(n^2) worst-case complexity.
13845         * lib/memmem.c (knuth_morris_pratt): New function.
13846         (memmem): Use it if first few naive iterations fail.
13847         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
13848         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
13849         * modules/memchr (License): Likewise.
13850         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
13851         malloca.
13852         * tests/test-memmem.c: Rewrite, borrowing ideas from
13853         test-mbsstr1.c; the old version wouldn't even compile!
13854         * modules/memmem-tests: New file.
13855         * lib/string.in.h (rpl_memmem): Add declaration.
13856         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
13857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
13858         REPLACE_MEMMEM.
13859
13860 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
13861
13862         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
13863         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
13864         before any system include files, and undef after them all.  This
13865         should fix a problem on VMS reported by John E. Malmberg in
13866         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
13867
13868 2007-12-17  Eric Blake  <ebb9@byu.net>
13869
13870         Revert addition of verify, for BSD/OS.
13871         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
13872         can't handle large files, for the sake of obsolete platforms.
13873         * modules/fseeko (Depends-on): Remove verify.
13874         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
13875         * doc/functions/ftello.texi (ftello): Likewise.
13876         * doc/functions/fgetpos.texi (fgetpos): Likewise.
13877         Reported by Larry Jones.
13878
13879 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
13880
13881         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
13882         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
13883
13884 2007-12-17  Jim Meyering  <meyering@redhat.com>
13885
13886         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
13887         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
13888         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
13889         * modules/getcwd (Depends-on): Add openat.
13890         Reported by Petr Salinger.
13891
13892 2007-12-17  Bruno Haible  <bruno@clisp.org>
13893
13894         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
13895         avoid a segmentation fault of the configure test on x86_64 systems.
13896
13897 2007-12-15  Jim Meyering  <meyering@redhat.com>
13898
13899         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
13900
13901 2007-12-13  Eric Blake  <ebb9@byu.net>
13902
13903         Another fseek test.
13904         * tests/test-fseek.c (main): Also test ungetc handling.
13905         * tests/test-fseeko.c (main): Likewise.
13906         * modules/fseeko (Depends-on): Add verify.
13907         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
13908         large.
13909         Reported by Larry Jones.
13910
13911         Fix fseeko on mingw.
13912         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
13913         seek.
13914
13915         Beef up fseek tests.
13916         * tests/test-fseek.c (main): Also test eof handling.
13917         * tests/test-fseeko.c (main): Likewise.
13918         Reported by Larry Jones.
13919
13920 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
13921
13922         Fix fseeko on BSD-based platforms.
13923         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
13924         successful seek.
13925
13926 2007-12-12  Eric Blake  <ebb9@byu.net>
13927
13928         Allow circular dependency of separate libtests.a
13929         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
13930         when use_libtests.
13931
13932 2007-12-11  Eric Blake  <ebb9@byu.net>
13933
13934         Fix bug with -0.0L in previous patch.
13935         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
13936         * tests/test-isnan.c (main): Also test on zeroes.
13937         * tests/test-isnanf.c (main): Likewise.
13938         * tests/test-isnanl.h (main): Likewise.
13939
13940         Detect pseudo-denormals on x86 even when cross-compiling.
13941         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
13942         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
13943         invalid bit patterns that happen to satisfy ==.
13944
13945         Avoid link failures with separate libtests.a.
13946         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
13947         last, to satisfy circular dependencies.
13948
13949 2007-12-11  Eric Blake  <ebb9@byu.net>
13950         and Bruno Haible  <bruno@clisp.org>
13951
13952         Fix OpenBSD 4.0 <float.h> handling of long double.
13953         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
13954         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
13955         * doc/headers/float.texi (float.h): Document OpenBSD bug.
13956
13957 2007-12-11  Jim Meyering  <meyering@redhat.com>
13958
13959         * users.txt: Add libvirt.
13960
13961         Support versions of autoconf prior to 2.59c.
13962         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
13963         if it is not already defined.
13964
13965 2007-12-09  Bruno Haible  <bruno@clisp.org>
13966
13967         Let 'gnulib-tool --import' collect sources needed for the tests in
13968         tests/ rather than in lib/.
13969         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
13970         argument. If true, add rules to generate libtests.a, and put libtests.a
13971         into $(LDADD). Consider source files in subdirectories and set
13972         uses_subdirs.
13973         (func_emit_initmacro_start, func_emit_initmacro_end,
13974         func_emit_initmacro_done): Pass all arguments explicitly.
13975         (func_import): Determine two module lists main_modules,
13976         testsrelated_modules. Determine use_libtests. Determine two variables
13977         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
13978         instead of just sed_transform_lib_file. Determine two variables
13979         main_files and testsrelated_files. Compute 'files' as the union of
13980         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
13981         func_add_or_update. In the generated gnulib-comp.m4, collect the
13982         object files for tests/ in different variables than those for lib/.
13983         Substitute LIBTESTS_LIBDEPS.
13984         (func_create_testdir): Combine the uses_subdirs results from
13985         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
13986
13987 2007-12-09  Bruno Haible  <bruno@clisp.org>
13988
13989         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
13990         the build-aux directory.
13991
13992 2007-12-09  Bruno Haible  <bruno@clisp.org>
13993
13994         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
13995         introduced on 2006-09-09.
13996
13997 2007-12-07  Jim Meyering  <meyering@redhat.com>
13998
13999         Let these macros work also with autoconf-2.59.
14000         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
14001         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
14002         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14003
14004 2007-12-06  Jim Meyering  <meyering@redhat.com>
14005
14006         Avoid a configure-time syntax error in gl_FUNC_ACL.
14007         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
14008         function in each branch, before testing the cache variable.
14009
14010 2007-12-04  Eric Blake  <ebb9@byu.net>
14011
14012         Make scripts executable.
14013         * build-aux/config.guess: Add execute permissions.
14014         * build-aux/config.sub: Likewise.
14015         * build-aux/gendocs.sh: Likewise.
14016
14017         Fix frexp on mingw.
14018         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
14019         cross-compiling.
14020         * doc/functions/frexp.texi (frexp): Document the bug.
14021
14022         Make cygwin fseeko check more reliable.
14023         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
14024         version numbers, rather than unrelated feature check.
14025         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
14026         * doc/functions/ftello.texi (ftello): Likewise.
14027         Reported by Bruno Haible.
14028
14029         * m4/strerror.m4: Bump version number.
14030
14031 2007-12-03  Bruno Haible  <bruno@clisp.org>
14032
14033         * doc/functions/mprotect.texi: Mention the mingw problem.
14034
14035 2007-12-03  Eric Blake  <ebb9@byu.net>
14036
14037         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
14038         REPLACE_STRERROR is initialized before this macro.
14039
14040 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
14041
14042         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
14043         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
14044         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
14045         put -lsec in even for programs other than 'ls'.  This fixes a problem
14046         for gettext reported by Bruno Haible in
14047         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
14048         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
14049         Add support for Solaris 10.  This isn't efficient, but should get the
14050         job done for now.
14051
14052 2007-12-03  James Youngman  <jay@gnu.org>
14053
14054         * doc/regexprops-generic.texi: change "an close-group" to "a
14055         close-group" and "illegal" to "not allowed".
14056
14057 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14058
14059         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
14060         pr_byname.h. Needed for the rare case when the maintainer has done
14061         "make maintainer-clean" in the source directory and then attempts a
14062         build outside the source directory.
14063         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
14064         scripts_byname.h.
14065
14066 2007-12-02  Martin Lambers <marlam@marlam.de>
14067             Bruno Haible  <bruno@clisp.org>
14068
14069         * lib/getpagesize.h: Remove file.
14070         * lib/unistd.in.h: Include declaration of getpagesize here.
14071         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
14072         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
14073         HAVE_SYS_PARAM_H.
14074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
14075         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
14076         * modules/getpagesize (Files): Remove lib/getpagesize.h.
14077         (Depends-on): Add unistd.
14078         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14079         (Include): Use <unistd.h> instead of getpagesize.h.
14080         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
14081         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
14082         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
14083         gl_GETPAGESIZE invocation, already handled by module dependency.
14084         * lib/pagealign_alloc.c: Don't include getpagesize.h.
14085
14086 2007-12-02  Bruno Haible  <bruno@clisp.org>
14087
14088         * modules/strings-tests: New file.
14089         * tests/test-strings.c: New file.
14090
14091         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
14092         * lib/strings.in.h: New file.
14093         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
14094         * m4/strings_h.m4: New file.
14095         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
14096         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
14097         * modules/strings: New file.
14098         * modules/string (Makefile.am): Update.
14099         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
14100         Reported by Karl Berry.
14101
14102 2007-12-01  Eric Blake  <ebb9@byu.net>
14103
14104         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
14105         accomodate fix in cygwin 1.5.25.
14106
14107 2007-12-01  Jim Meyering  <meyering@redhat.com>
14108
14109         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
14110         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
14111         that would inhibit utf8-optimization of a regexp containing line-
14112         or buffer-anchors, e.g., `^', `$'.
14113
14114 2007-11-30  Bruno Haible  <bruno@clisp.org>
14115
14116         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
14117         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
14118         glthread_recursive_lock_init.
14119         * lib/lock.c (glthread_recursive_lock_init)
14120         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
14121         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
14122
14123 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
14124
14125         New function qset_acl, like set_acl but with syscall semantics.
14126         * lib/acl.h (qset_acl): New decl.
14127         * lib/acl.c (qset_acl): New function.
14128         (set_acl): Use new function.  Use more-consistent diagnostics.
14129
14130 2007-11-28  Jim Meyering  <meyering@redhat.com>
14131
14132         * modules/physmem (License): Change from GPL to LGPLv2+.
14133
14134 2007-11-26  Bruno Haible  <bruno@clisp.org>
14135
14136         * lib/vasnprintf.c (decode_long_double): Don't abort if the
14137         'long double' type has excess precision.
14138         Reported by Jim Meyering in
14139         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
14140
14141 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14142
14143         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
14144         Sync from <http://gnu.org/licenses>.
14145         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
14146         with license text from same location.
14147         * doc/maintain.texi, doc/standards.texi:  Sync from
14148         <http://savannah.gnu.org/projects/gnustandards>.
14149
14150 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
14151         and Jim Meyering  <meyering@redhat.com>
14152
14153         Adjust getdate' grammar to accept a slightly more regular language.
14154         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
14155         Before, the former was rejected.
14156         * lib/getdate.y (digits_to_date_time): New function, factored
14157         out of ...
14158         (number): ...here.  Just call digits_to_date_time.
14159         (hybrid): New non-terminal to handle an <unsigned number,
14160         signed relative offset> sequence consistently.
14161
14162 2007-11-18  Jim Meyering  <meyering@redhat.com>
14163
14164         Pull my changes from coreutils:
14165         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
14166         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
14167         use of $gnulib_tool_option_extras, so that it's separated from the
14168         preceding argument.
14169
14170         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
14171         * build-aux/bootstrap (cp_mark_as_generated): Create any required
14172         parent destination directories before copying a file into place.
14173
14174 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
14175
14176         bootstrap: work also with 4-argument variant of AC_INIT
14177         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
14178
14179 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
14180
14181         Port test-getaddrinfo to Solaris.
14182         Problem reported by Bruno Haible in
14183         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
14184         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
14185         explanation of setting 'hints'.
14186         Don't reject an implementation merely because it returns EAI_SERVICE.
14187         (EAI_SERVICE): Define to 0 if not defined.
14188
14189 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
14190
14191         The license of gnu-make and posix-shell is now "GPLed build tool".
14192         * modules/gnu-make (License): Likewise.
14193         * modules/posix-shell (License): Likewise.
14194
14195         New module posix-shell, for determining a POSIX shell
14196         or perhaps something that is close enough to a POSIX shell.
14197         * m4/posix-shell.m4: New file.
14198         * modules/posix-shell: New file.
14199
14200         * MODULES.html.sh: Mention new module.
14201
14202         New module gnu-make, for determining whether we're using GNU Make.
14203         * m4/gnu-make.m4: New file.
14204         * modules/gnu-make: New file.
14205         * MODULES.html.sh: Mention new module.
14206
14207 2007-11-14  Jim Meyering  <meyering@redhat.com>
14208
14209         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
14210         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
14211         use this macro to create a function _definition_.
14212         Remove useless "#undef ARGMATCH_DIE".
14213
14214 2007-11-14  Bruno Haible  <bruno@clisp.org>
14215
14216         * lib/config.charset: Update for OpenBSD 4.1.
14217         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
14218
14219 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
14220
14221         Document 64-bit #if problems in stdint.texi.
14222         * doc/headers/stdint.texi (stdint.h): Mention problems with
14223         64-bit-#if, and how to work around them.
14224
14225         Don't insist on 'long long int' support in the preprocessor.  It
14226         breaks too many things.  For example, PRIdMAX still uses a 'long
14227         long int' format with the latest Sun compiler, even though
14228         HAVE_LONG_LONG_INT isn't defined due to that compiler's
14229         preprocessor problem.  This causes the latest coreutils to dump
14230         core on Solaris 10 sparc with the Sun C compiler.
14231         Instead, fix the 2007-10-16 problem in a different way, by evaluating
14232         the troublesome expressions at configure-time, not at #if-time.
14233         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
14234         preprocessor.
14235         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
14236         compile-time C checks, done at 'configure'-time.
14237         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
14238         * modules/inttypes (Makefile): Substitute the new symbols that
14239         gl_INTTYPES_H now generates.
14240         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
14241
14242 2007-11-12  Bruno Haible  <bruno@clisp.org>
14243
14244         Tests for Unicode character classification functions.
14245
14246         * modules/unictype/bidicategory-byname-tests: New file.
14247         * modules/unictype/bidicategory-name-tests: New file.
14248         * modules/unictype/bidicategory-of-tests: New file.
14249         * modules/unictype/bidicategory-test-tests: New file.
14250         * modules/unictype/block-list-tests: New file.
14251         * modules/unictype/block-of-tests: New file.
14252         * modules/unictype/block-test-tests: New file.
14253         * modules/unictype/category-C-tests: New file.
14254         * modules/unictype/category-Cc-tests: New file.
14255         * modules/unictype/category-Cf-tests: New file.
14256         * modules/unictype/category-Cn-tests: New file.
14257         * modules/unictype/category-Co-tests: New file.
14258         * modules/unictype/category-Cs-tests: New file.
14259         * modules/unictype/category-L-tests: New file.
14260         * modules/unictype/category-Ll-tests: New file.
14261         * modules/unictype/category-Lm-tests: New file.
14262         * modules/unictype/category-Lo-tests: New file.
14263         * modules/unictype/category-Lt-tests: New file.
14264         * modules/unictype/category-Lu-tests: New file.
14265         * modules/unictype/category-M-tests: New file.
14266         * modules/unictype/category-Mc-tests: New file.
14267         * modules/unictype/category-Me-tests: New file.
14268         * modules/unictype/category-Mn-tests: New file.
14269         * modules/unictype/category-N-tests: New file.
14270         * modules/unictype/category-Nd-tests: New file.
14271         * modules/unictype/category-Nl-tests: New file.
14272         * modules/unictype/category-No-tests: New file.
14273         * modules/unictype/category-P-tests: New file.
14274         * modules/unictype/category-Pc-tests: New file.
14275         * modules/unictype/category-Pd-tests: New file.
14276         * modules/unictype/category-Pe-tests: New file.
14277         * modules/unictype/category-Pf-tests: New file.
14278         * modules/unictype/category-Pi-tests: New file.
14279         * modules/unictype/category-Po-tests: New file.
14280         * modules/unictype/category-Ps-tests: New file.
14281         * modules/unictype/category-S-tests: New file.
14282         * modules/unictype/category-Sc-tests: New file.
14283         * modules/unictype/category-Sk-tests: New file.
14284         * modules/unictype/category-Sm-tests: New file.
14285         * modules/unictype/category-So-tests: New file.
14286         * modules/unictype/category-Z-tests: New file.
14287         * modules/unictype/category-Zl-tests: New file.
14288         * modules/unictype/category-Zp-tests: New file.
14289         * modules/unictype/category-Zs-tests: New file.
14290         * modules/unictype/category-and-not-tests: New file.
14291         * modules/unictype/category-and-tests: New file.
14292         * modules/unictype/category-byname-tests: New file.
14293         * modules/unictype/category-name-tests: New file.
14294         * modules/unictype/category-none-tests: New file.
14295         * modules/unictype/category-of-tests: New file.
14296         * modules/unictype/category-or-tests: New file.
14297         * modules/unictype/category-test-withtable-tests: New file.
14298         * modules/unictype/combining-class-tests: New file.
14299         * modules/unictype/ctype-alnum-tests: New file.
14300         * modules/unictype/ctype-alpha-tests: New file.
14301         * modules/unictype/ctype-blank-tests: New file.
14302         * modules/unictype/ctype-cntrl-tests: New file.
14303         * modules/unictype/ctype-digit-tests: New file.
14304         * modules/unictype/ctype-graph-tests: New file.
14305         * modules/unictype/ctype-lower-tests: New file.
14306         * modules/unictype/ctype-print-tests: New file.
14307         * modules/unictype/ctype-punct-tests: New file.
14308         * modules/unictype/ctype-space-tests: New file.
14309         * modules/unictype/ctype-upper-tests: New file.
14310         * modules/unictype/ctype-xdigit-tests: New file.
14311         * modules/unictype/decimal-digit-tests: New file.
14312         * modules/unictype/digit-tests: New file.
14313         * modules/unictype/mirror-tests: New file.
14314         * modules/unictype/numeric-tests: New file.
14315         * modules/unictype/property-alphabetic-tests: New file.
14316         * modules/unictype/property-ascii-hex-digit-tests: New file.
14317         * modules/unictype/property-bidi-arabic-digit-tests: New file.
14318         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
14319         * modules/unictype/property-bidi-block-separator-tests: New file.
14320         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
14321         * modules/unictype/property-bidi-common-separator-tests: New file.
14322         * modules/unictype/property-bidi-control-tests: New file.
14323         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
14324         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
14325         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
14326         * modules/unictype/property-bidi-european-digit-tests: New file.
14327         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
14328         * modules/unictype/property-bidi-left-to-right-tests: New file.
14329         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
14330         * modules/unictype/property-bidi-other-neutral-tests: New file.
14331         * modules/unictype/property-bidi-pdf-tests: New file.
14332         * modules/unictype/property-bidi-segment-separator-tests: New file.
14333         * modules/unictype/property-bidi-whitespace-tests: New file.
14334         * modules/unictype/property-byname-tests: New file.
14335         * modules/unictype/property-combining-tests: New file.
14336         * modules/unictype/property-composite-tests: New file.
14337         * modules/unictype/property-currency-symbol-tests: New file.
14338         * modules/unictype/property-dash-tests: New file.
14339         * modules/unictype/property-decimal-digit-tests: New file.
14340         * modules/unictype/property-default-ignorable-code-point-tests: New file.
14341         * modules/unictype/property-deprecated-tests: New file.
14342         * modules/unictype/property-diacritic-tests: New file.
14343         * modules/unictype/property-extender-tests: New file.
14344         * modules/unictype/property-format-control-tests: New file.
14345         * modules/unictype/property-grapheme-base-tests: New file.
14346         * modules/unictype/property-grapheme-extend-tests: New file.
14347         * modules/unictype/property-grapheme-link-tests: New file.
14348         * modules/unictype/property-hex-digit-tests: New file.
14349         * modules/unictype/property-hyphen-tests: New file.
14350         * modules/unictype/property-id-continue-tests: New file.
14351         * modules/unictype/property-id-start-tests: New file.
14352         * modules/unictype/property-ideographic-tests: New file.
14353         * modules/unictype/property-ids-binary-operator-tests: New file.
14354         * modules/unictype/property-ids-trinary-operator-tests: New file.
14355         * modules/unictype/property-ignorable-control-tests: New file.
14356         * modules/unictype/property-iso-control-tests: New file.
14357         * modules/unictype/property-join-control-tests: New file.
14358         * modules/unictype/property-left-of-pair-tests: New file.
14359         * modules/unictype/property-line-separator-tests: New file.
14360         * modules/unictype/property-logical-order-exception-tests: New file.
14361         * modules/unictype/property-lowercase-tests: New file.
14362         * modules/unictype/property-math-tests: New file.
14363         * modules/unictype/property-non-break-tests: New file.
14364         * modules/unictype/property-not-a-character-tests: New file.
14365         * modules/unictype/property-numeric-tests: New file.
14366         * modules/unictype/property-other-alphabetic-tests: New file.
14367         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
14368         * modules/unictype/property-other-grapheme-extend-tests: New file.
14369         * modules/unictype/property-other-id-continue-tests: New file.
14370         * modules/unictype/property-other-id-start-tests: New file.
14371         * modules/unictype/property-other-lowercase-tests: New file.
14372         * modules/unictype/property-other-math-tests: New file.
14373         * modules/unictype/property-other-uppercase-tests: New file.
14374         * modules/unictype/property-paired-punctuation-tests: New file.
14375         * modules/unictype/property-paragraph-separator-tests: New file.
14376         * modules/unictype/property-pattern-syntax-tests: New file.
14377         * modules/unictype/property-pattern-white-space-tests: New file.
14378         * modules/unictype/property-private-use-tests: New file.
14379         * modules/unictype/property-punctuation-tests: New file.
14380         * modules/unictype/property-quotation-mark-tests: New file.
14381         * modules/unictype/property-radical-tests: New file.
14382         * modules/unictype/property-sentence-terminal-tests: New file.
14383         * modules/unictype/property-soft-dotted-tests: New file.
14384         * modules/unictype/property-space-tests: New file.
14385         * modules/unictype/property-terminal-punctuation-tests: New file.
14386         * modules/unictype/property-test-tests: New file.
14387         * modules/unictype/property-titlecase-tests: New file.
14388         * modules/unictype/property-unassigned-code-value-tests: New file.
14389         * modules/unictype/property-unified-ideograph-tests: New file.
14390         * modules/unictype/property-uppercase-tests: New file.
14391         * modules/unictype/property-variation-selector-tests: New file.
14392         * modules/unictype/property-white-space-tests: New file.
14393         * modules/unictype/property-xid-continue-tests: New file.
14394         * modules/unictype/property-xid-start-tests: New file.
14395         * modules/unictype/property-zero-width-tests: New file.
14396         * modules/unictype/scripts-tests: New file.
14397         * modules/unictype/syntax-c-ident-tests: New file.
14398         * modules/unictype/syntax-c-whitespace-tests: New file.
14399         * modules/unictype/syntax-java-ident-tests: New file.
14400         * modules/unictype/syntax-java-whitespace-tests: New file.
14401         * tests/unictype/test-bidi_byname.c: New file.
14402         * tests/unictype/test-bidi_name.c: New file.
14403         * tests/unictype/test-bidi_of.c: New file.
14404         * tests/unictype/test-bidi_test.c: New file.
14405         * tests/unictype/test-block_list.c: New file.
14406         * tests/unictype/test-block_of.c: New file.
14407         * tests/unictype/test-block_test.c: New file.
14408         * tests/unictype/test-categ_and.c: New file.
14409         * tests/unictype/test-categ_and_not.c: New file.
14410         * tests/unictype/test-categ_byname.c: New file.
14411         * tests/unictype/test-categ_name.c: New file.
14412         * tests/unictype/test-categ_none.c: New file.
14413         * tests/unictype/test-categ_of.c: New file.
14414         * tests/unictype/test-categ_or.c: New file.
14415         * tests/unictype/test-categ_test_withtable.c: New file.
14416         * tests/unictype/test-combining.c: New file.
14417         * tests/unictype/test-decdigit.c: New file.
14418         * tests/unictype/test-digit.c: New file.
14419         * tests/unictype/test-mirror.c: New file.
14420         * tests/unictype/test-numeric.c: New file.
14421         * tests/unictype/test-pr_byname.c: New file.
14422         * tests/unictype/test-pr_test.c: New file.
14423         * tests/unictype/test-predicate-part1.h: New file.
14424         * tests/unictype/test-predicate-part2.h: New file.
14425         * tests/unictype/test-scripts.c: New file.
14426         * tests/unictype/test-sy_c_ident.c: New file.
14427         * tests/unictype/test-sy_java_ident.c: New file.
14428
14429         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
14430         for Unicode 5.0.0.
14431         * tests/unictype/test-categ_Cc.c: Likewise.
14432         * tests/unictype/test-categ_Cf.c: Likewise.
14433         * tests/unictype/test-categ_Cn.c: Likewise.
14434         * tests/unictype/test-categ_Co.c: Likewise.
14435         * tests/unictype/test-categ_Cs.c: Likewise.
14436         * tests/unictype/test-categ_L.c: Likewise.
14437         * tests/unictype/test-categ_Ll.c: Likewise.
14438         * tests/unictype/test-categ_Lm.c: Likewise.
14439         * tests/unictype/test-categ_Lo.c: Likewise.
14440         * tests/unictype/test-categ_Lt.c: Likewise.
14441         * tests/unictype/test-categ_Lu.c: Likewise.
14442         * tests/unictype/test-categ_M.c: Likewise.
14443         * tests/unictype/test-categ_Mc.c: Likewise.
14444         * tests/unictype/test-categ_Me.c: Likewise.
14445         * tests/unictype/test-categ_Mn.c: Likewise.
14446         * tests/unictype/test-categ_N.c: Likewise.
14447         * tests/unictype/test-categ_Nd.c: Likewise.
14448         * tests/unictype/test-categ_Nl.c: Likewise.
14449         * tests/unictype/test-categ_No.c: Likewise.
14450         * tests/unictype/test-categ_P.c: Likewise.
14451         * tests/unictype/test-categ_Pc.c: Likewise.
14452         * tests/unictype/test-categ_Pd.c: Likewise.
14453         * tests/unictype/test-categ_Pe.c: Likewise.
14454         * tests/unictype/test-categ_Pf.c: Likewise.
14455         * tests/unictype/test-categ_Pi.c: Likewise.
14456         * tests/unictype/test-categ_Po.c: Likewise.
14457         * tests/unictype/test-categ_Ps.c: Likewise.
14458         * tests/unictype/test-categ_S.c: Likewise.
14459         * tests/unictype/test-categ_Sc.c: Likewise.
14460         * tests/unictype/test-categ_Sk.c: Likewise.
14461         * tests/unictype/test-categ_Sm.c: Likewise.
14462         * tests/unictype/test-categ_So.c: Likewise.
14463         * tests/unictype/test-categ_Z.c: Likewise.
14464         * tests/unictype/test-categ_Zl.c: Likewise.
14465         * tests/unictype/test-categ_Zp.c: Likewise.
14466         * tests/unictype/test-categ_Zs.c: Likewise.
14467         * tests/unictype/test-ctype_alnum.c: Likewise.
14468         * tests/unictype/test-ctype_alpha.c: Likewise.
14469         * tests/unictype/test-ctype_blank.c: Likewise.
14470         * tests/unictype/test-ctype_cntrl.c: Likewise.
14471         * tests/unictype/test-ctype_digit.c: Likewise.
14472         * tests/unictype/test-ctype_graph.c: Likewise.
14473         * tests/unictype/test-ctype_lower.c: Likewise.
14474         * tests/unictype/test-ctype_print.c: Likewise.
14475         * tests/unictype/test-ctype_punct.c: Likewise.
14476         * tests/unictype/test-ctype_space.c: Likewise.
14477         * tests/unictype/test-ctype_upper.c: Likewise.
14478         * tests/unictype/test-ctype_xdigit.c: Likewise.
14479         * tests/unictype/test-decdigit.h: Likewise.
14480         * tests/unictype/test-digit.h: Likewise.
14481         * tests/unictype/test-numeric.h: Likewise.
14482         * tests/unictype/test-pr_alphabetic.c: Likewise.
14483         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
14484         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14485         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
14486         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
14487         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
14488         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
14489         * tests/unictype/test-pr_bidi_control.c: Likewise.
14490         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
14491         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
14492         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14493         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
14494         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14495         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14496         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14497         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14498         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
14499         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
14500         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
14501         * tests/unictype/test-pr_combining.c: Likewise.
14502         * tests/unictype/test-pr_composite.c: Likewise.
14503         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14504         * tests/unictype/test-pr_dash.c: Likewise.
14505         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14506         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
14507         * tests/unictype/test-pr_deprecated.c: Likewise.
14508         * tests/unictype/test-pr_diacritic.c: Likewise.
14509         * tests/unictype/test-pr_extender.c: Likewise.
14510         * tests/unictype/test-pr_format_control.c: Likewise.
14511         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14512         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14513         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14514         * tests/unictype/test-pr_hex_digit.c: Likewise.
14515         * tests/unictype/test-pr_hyphen.c: Likewise.
14516         * tests/unictype/test-pr_id_continue.c: Likewise.
14517         * tests/unictype/test-pr_id_start.c: Likewise.
14518         * tests/unictype/test-pr_ideographic.c: Likewise.
14519         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
14520         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
14521         * tests/unictype/test-pr_ignorable_control.c: Likewise.
14522         * tests/unictype/test-pr_iso_control.c: Likewise.
14523         * tests/unictype/test-pr_join_control.c: Likewise.
14524         * tests/unictype/test-pr_left_of_pair.c: Likewise.
14525         * tests/unictype/test-pr_line_separator.c: Likewise.
14526         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
14527         * tests/unictype/test-pr_lowercase.c: Likewise.
14528         * tests/unictype/test-pr_math.c: Likewise.
14529         * tests/unictype/test-pr_non_break.c: Likewise.
14530         * tests/unictype/test-pr_not_a_character.c: Likewise.
14531         * tests/unictype/test-pr_numeric.c: Likewise.
14532         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14533         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
14534         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
14535         * tests/unictype/test-pr_other_id_continue.c: Likewise.
14536         * tests/unictype/test-pr_other_id_start.c: Likewise.
14537         * tests/unictype/test-pr_other_lowercase.c: Likewise.
14538         * tests/unictype/test-pr_other_math.c: Likewise.
14539         * tests/unictype/test-pr_other_uppercase.c: Likewise.
14540         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
14541         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
14542         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
14543         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
14544         * tests/unictype/test-pr_private_use.c: Likewise.
14545         * tests/unictype/test-pr_punctuation.c: Likewise.
14546         * tests/unictype/test-pr_quotation_mark.c: Likewise.
14547         * tests/unictype/test-pr_radical.c: Likewise.
14548         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14549         * tests/unictype/test-pr_soft_dotted.c: Likewise.
14550         * tests/unictype/test-pr_space.c: Likewise.
14551         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14552         * tests/unictype/test-pr_titlecase.c: Likewise.
14553         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14554         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14555         * tests/unictype/test-pr_uppercase.c: Likewise.
14556         * tests/unictype/test-pr_variation_selector.c: Likewise.
14557         * tests/unictype/test-pr_white_space.c: Likewise.
14558         * tests/unictype/test-pr_xid_continue.c: Likewise.
14559         * tests/unictype/test-pr_xid_start.c: Likewise.
14560         * tests/unictype/test-pr_zero_width.c: Likewise.
14561         * tests/unictype/test-sy_c_whitespace.c: Likewise.
14562         * tests/unictype/test-sy_java_whitespace.c: Likewise.
14563
14564 2007-11-12  Bruno Haible  <bruno@clisp.org>
14565
14566         Unicode character classification functions.
14567         * lib/unictype.h: New file.
14568         * modules/unictype/base: New file.
14569         * modules/unictype/category-L: New file.
14570         * modules/unictype/category-Lu: New file.
14571         * modules/unictype/category-Ll: New file.
14572         * modules/unictype/category-Lt: New file.
14573         * modules/unictype/category-Lm: New file.
14574         * modules/unictype/category-Lo: New file.
14575         * modules/unictype/category-M: New file.
14576         * modules/unictype/category-Mn: New file.
14577         * modules/unictype/category-Mc: New file.
14578         * modules/unictype/category-Me: New file.
14579         * modules/unictype/category-N: New file.
14580         * modules/unictype/category-Nd: New file.
14581         * modules/unictype/category-Nl: New file.
14582         * modules/unictype/category-No: New file.
14583         * modules/unictype/category-P: New file.
14584         * modules/unictype/category-Pc: New file.
14585         * modules/unictype/category-Pd: New file.
14586         * modules/unictype/category-Ps: New file.
14587         * modules/unictype/category-Pe: New file.
14588         * modules/unictype/category-Pi: New file.
14589         * modules/unictype/category-Pf: New file.
14590         * modules/unictype/category-Po: New file.
14591         * modules/unictype/category-S: New file.
14592         * modules/unictype/category-Sm: New file.
14593         * modules/unictype/category-Sc: New file.
14594         * modules/unictype/category-Sk: New file.
14595         * modules/unictype/category-So: New file.
14596         * modules/unictype/category-Z: New file.
14597         * modules/unictype/category-Zs: New file.
14598         * modules/unictype/category-Zl: New file.
14599         * modules/unictype/category-Zp: New file.
14600         * modules/unictype/category-C: New file.
14601         * modules/unictype/category-Cc: New file.
14602         * modules/unictype/category-Cf: New file.
14603         * modules/unictype/category-Cs: New file.
14604         * modules/unictype/category-Co: New file.
14605         * modules/unictype/category-Cn: New file.
14606         * modules/unictype/category-or: New file.
14607         * modules/unictype/category-of: New file.
14608         * modules/unictype/category-test: New file.
14609         * modules/unictype/category-test-withtable: New file.
14610         * modules/unictype/category-byname: New file.
14611         * modules/unictype/category-none: New file.
14612         * modules/unictype/category-and: New file.
14613         * modules/unictype/category-and-not: New file.
14614         * modules/unictype/category-name: New file.
14615         * modules/unictype/combining-class: New file.
14616         * modules/unictype/category-all: New file.
14617         * modules/unictype/bidicategory-all: New file.
14618         * modules/unictype/bidicategory-byname: New file.
14619         * modules/unictype/bidicategory-name: New file.
14620         * modules/unictype/bidicategory-of: New file.
14621         * modules/unictype/bidicategory-test: New file.
14622         * modules/unictype/decimal-digit: New file.
14623         * modules/unictype/digit: New file.
14624         * modules/unictype/numeric: New file.
14625         * modules/unictype/mirror: New file.
14626         * modules/unictype/property-white-space: New file.
14627         * modules/unictype/property-alphabetic: New file.
14628         * modules/unictype/property-other-alphabetic: New file.
14629         * modules/unictype/property-not-a-character: New file.
14630         * modules/unictype/property-default-ignorable-code-point: New file.
14631         * modules/unictype/property-other-default-ignorable-code-point: New
14632         file.
14633         * modules/unictype/property-deprecated: New file.
14634         * modules/unictype/property-logical-order-exception: New file.
14635         * modules/unictype/property-variation-selector: New file.
14636         * modules/unictype/property-private-use: New file.
14637         * modules/unictype/property-unassigned-code-value: New file.
14638         * modules/unictype/property-uppercase: New file.
14639         * modules/unictype/property-other-uppercase: New file.
14640         * modules/unictype/property-lowercase: New file.
14641         * modules/unictype/property-other-lowercase: New file.
14642         * modules/unictype/property-titlecase: New file.
14643         * modules/unictype/property-soft-dotted: New file.
14644         * modules/unictype/property-id-start: New file.
14645         * modules/unictype/property-other-id-start: New file.
14646         * modules/unictype/property-id-continue: New file.
14647         * modules/unictype/property-other-id-continue: New file.
14648         * modules/unictype/property-xid-start: New file.
14649         * modules/unictype/property-xid-continue: New file.
14650         * modules/unictype/property-pattern-white-space: New file.
14651         * modules/unictype/property-pattern-syntax: New file.
14652         * modules/unictype/property-join-control: New file.
14653         * modules/unictype/property-grapheme-base: New file.
14654         * modules/unictype/property-grapheme-extend: New file.
14655         * modules/unictype/property-other-grapheme-extend: New file.
14656         * modules/unictype/property-grapheme-link: New file.
14657         * modules/unictype/property-bidi-control: New file.
14658         * modules/unictype/property-bidi-left-to-right: New file.
14659         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
14660         * modules/unictype/property-bidi-arabic-right-to-left: New file.
14661         * modules/unictype/property-bidi-european-digit: New file.
14662         * modules/unictype/property-bidi-eur-num-separator: New file.
14663         * modules/unictype/property-bidi-eur-num-terminator: New file.
14664         * modules/unictype/property-bidi-arabic-digit: New file.
14665         * modules/unictype/property-bidi-common-separator: New file.
14666         * modules/unictype/property-bidi-block-separator: New file.
14667         * modules/unictype/property-bidi-segment-separator: New file.
14668         * modules/unictype/property-bidi-whitespace: New file.
14669         * modules/unictype/property-bidi-non-spacing-mark: New file.
14670         * modules/unictype/property-bidi-boundary-neutral: New file.
14671         * modules/unictype/property-bidi-pdf: New file.
14672         * modules/unictype/property-bidi-embedding-or-override: New file.
14673         * modules/unictype/property-bidi-other-neutral: New file.
14674         * modules/unictype/property-hex-digit: New file.
14675         * modules/unictype/property-ascii-hex-digit: New file.
14676         * modules/unictype/property-ideographic: New file.
14677         * modules/unictype/property-unified-ideograph: New file.
14678         * modules/unictype/property-radical: New file.
14679         * modules/unictype/property-ids-binary-operator: New file.
14680         * modules/unictype/property-ids-trinary-operator: New file.
14681         * modules/unictype/property-zero-width: New file.
14682         * modules/unictype/property-space: New file.
14683         * modules/unictype/property-non-break: New file.
14684         * modules/unictype/property-iso-control: New file.
14685         * modules/unictype/property-format-control: New file.
14686         * modules/unictype/property-dash: New file.
14687         * modules/unictype/property-hyphen: New file.
14688         * modules/unictype/property-punctuation: New file.
14689         * modules/unictype/property-line-separator: New file.
14690         * modules/unictype/property-paragraph-separator: New file.
14691         * modules/unictype/property-quotation-mark: New file.
14692         * modules/unictype/property-sentence-terminal: New file.
14693         * modules/unictype/property-terminal-punctuation: New file.
14694         * modules/unictype/property-currency-symbol: New file.
14695         * modules/unictype/property-math: New file.
14696         * modules/unictype/property-other-math: New file.
14697         * modules/unictype/property-paired-punctuation: New file.
14698         * modules/unictype/property-left-of-pair: New file.
14699         * modules/unictype/property-combining: New file.
14700         * modules/unictype/property-composite: New file.
14701         * modules/unictype/property-decimal-digit: New file.
14702         * modules/unictype/property-numeric: New file.
14703         * modules/unictype/property-diacritic: New file.
14704         * modules/unictype/property-extender: New file.
14705         * modules/unictype/property-ignorable-control: New file.
14706         * modules/unictype/property-test: New file.
14707         * modules/unictype/property-byname: New file.
14708         * modules/unictype/property-all: New file.
14709         * modules/unictype/scripts: New file.
14710         * modules/unictype/scripts-all: New file.
14711         * modules/unictype/block-of: New file.
14712         * modules/unictype/block-test: New file.
14713         * modules/unictype/block-list: New file.
14714         * modules/unictype/block-all: New file.
14715         * modules/unictype/syntax-c-whitespace: New file.
14716         * modules/unictype/syntax-java-whitespace: New file.
14717         * modules/unictype/syntax-c-ident: New file.
14718         * modules/unictype/syntax-java-ident: New file.
14719         * modules/unictype/ctype-alnum: New file.
14720         * modules/unictype/ctype-alpha: New file.
14721         * modules/unictype/ctype-cntrl: New file.
14722         * modules/unictype/ctype-digit: New file.
14723         * modules/unictype/ctype-graph: New file.
14724         * modules/unictype/ctype-lower: New file.
14725         * modules/unictype/ctype-print: New file.
14726         * modules/unictype/ctype-punct: New file.
14727         * modules/unictype/ctype-space: New file.
14728         * modules/unictype/ctype-upper: New file.
14729         * modules/unictype/ctype-xdigit: New file.
14730         * modules/unictype/ctype-blank: New file.
14731         * lib/unictype/bidi_byname.c: New file.
14732         * lib/unictype/bidi_name.c: New file.
14733         * lib/unictype/bidi_of.c: New file.
14734         * lib/unictype/bidi_test.c: New file.
14735         * lib/unictype/bitmap.h: New file.
14736         * lib/unictype/block_test.c: New file.
14737         * lib/unictype/blocks.c: New file.
14738         * lib/unictype/categ_C.c: New file.
14739         * lib/unictype/categ_Cc.c: New file.
14740         * lib/unictype/categ_Cf.c: New file.
14741         * lib/unictype/categ_Cn.c: New file.
14742         * lib/unictype/categ_Co.c: New file.
14743         * lib/unictype/categ_Cs.c: New file.
14744         * lib/unictype/categ_L.c: New file.
14745         * lib/unictype/categ_Ll.c: New file.
14746         * lib/unictype/categ_Lm.c: New file.
14747         * lib/unictype/categ_Lo.c: New file.
14748         * lib/unictype/categ_Lt.c: New file.
14749         * lib/unictype/categ_Lu.c: New file.
14750         * lib/unictype/categ_M.c: New file.
14751         * lib/unictype/categ_Mc.c: New file.
14752         * lib/unictype/categ_Me.c: New file.
14753         * lib/unictype/categ_Mn.c: New file.
14754         * lib/unictype/categ_N.c: New file.
14755         * lib/unictype/categ_Nd.c: New file.
14756         * lib/unictype/categ_Nl.c: New file.
14757         * lib/unictype/categ_No.c: New file.
14758         * lib/unictype/categ_P.c: New file.
14759         * lib/unictype/categ_Pc.c: New file.
14760         * lib/unictype/categ_Pd.c: New file.
14761         * lib/unictype/categ_Pe.c: New file.
14762         * lib/unictype/categ_Pf.c: New file.
14763         * lib/unictype/categ_Pi.c: New file.
14764         * lib/unictype/categ_Po.c: New file.
14765         * lib/unictype/categ_Ps.c: New file.
14766         * lib/unictype/categ_S.c: New file.
14767         * lib/unictype/categ_Sc.c: New file.
14768         * lib/unictype/categ_Sk.c: New file.
14769         * lib/unictype/categ_Sm.c: New file.
14770         * lib/unictype/categ_So.c: New file.
14771         * lib/unictype/categ_Z.c: New file.
14772         * lib/unictype/categ_Zl.c: New file.
14773         * lib/unictype/categ_Zp.c: New file.
14774         * lib/unictype/categ_Zs.c: New file.
14775         * lib/unictype/categ_and.c: New file.
14776         * lib/unictype/categ_and_not.c: New file.
14777         * lib/unictype/categ_byname.c: New file.
14778         * lib/unictype/categ_name.c: New file.
14779         * lib/unictype/categ_none.c: New file.
14780         * lib/unictype/categ_of.c: New file.
14781         * lib/unictype/categ_or.c: New file.
14782         * lib/unictype/categ_test.c: New file.
14783         * lib/unictype/combining.c: New file.
14784         * lib/unictype/ctype_alnum.c: New file.
14785         * lib/unictype/ctype_alpha.c: New file.
14786         * lib/unictype/ctype_blank.c: New file.
14787         * lib/unictype/ctype_cntrl.c: New file.
14788         * lib/unictype/ctype_digit.c: New file.
14789         * lib/unictype/ctype_graph.c: New file.
14790         * lib/unictype/ctype_lower.c: New file.
14791         * lib/unictype/ctype_print.c: New file.
14792         * lib/unictype/ctype_punct.c: New file.
14793         * lib/unictype/ctype_space.c: New file.
14794         * lib/unictype/ctype_upper.c: New file.
14795         * lib/unictype/ctype_xdigit.c: New file.
14796         * lib/unictype/decdigit.c: New file.
14797         * lib/unictype/digit.c: New file.
14798         * lib/unictype/identsyntaxmap.h: New file.
14799         * lib/unictype/mirror.c: New file.
14800         * lib/unictype/numeric.c: New file.
14801         * lib/unictype/pr_alphabetic.c: New file.
14802         * lib/unictype/pr_ascii_hex_digit.c: New file.
14803         * lib/unictype/pr_bidi_arabic_digit.c: New file.
14804         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
14805         * lib/unictype/pr_bidi_block_separator.c: New file.
14806         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
14807         * lib/unictype/pr_bidi_common_separator.c: New file.
14808         * lib/unictype/pr_bidi_control.c: New file.
14809         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
14810         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
14811         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
14812         * lib/unictype/pr_bidi_european_digit.c: New file.
14813         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
14814         * lib/unictype/pr_bidi_left_to_right.c: New file.
14815         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
14816         * lib/unictype/pr_bidi_other_neutral.c: New file.
14817         * lib/unictype/pr_bidi_pdf.c: New file.
14818         * lib/unictype/pr_bidi_segment_separator.c: New file.
14819         * lib/unictype/pr_bidi_whitespace.c: New file.
14820         * lib/unictype/pr_byname.c: New file.
14821         * lib/unictype/pr_byname.gperf: New file.
14822         * lib/unictype/pr_combining.c: New file.
14823         * lib/unictype/pr_composite.c: New file.
14824         * lib/unictype/pr_currency_symbol.c: New file.
14825         * lib/unictype/pr_dash.c: New file.
14826         * lib/unictype/pr_decimal_digit.c: New file.
14827         * lib/unictype/pr_default_ignorable_code_point.c: New file.
14828         * lib/unictype/pr_deprecated.c: New file.
14829         * lib/unictype/pr_diacritic.c: New file.
14830         * lib/unictype/pr_extender.c: New file.
14831         * lib/unictype/pr_format_control.c: New file.
14832         * lib/unictype/pr_grapheme_base.c: New file.
14833         * lib/unictype/pr_grapheme_extend.c: New file.
14834         * lib/unictype/pr_grapheme_link.c: New file.
14835         * lib/unictype/pr_hex_digit.c: New file.
14836         * lib/unictype/pr_hyphen.c: New file.
14837         * lib/unictype/pr_id_continue.c: New file.
14838         * lib/unictype/pr_id_start.c: New file.
14839         * lib/unictype/pr_ideographic.c: New file.
14840         * lib/unictype/pr_ids_binary_operator.c: New file.
14841         * lib/unictype/pr_ids_trinary_operator.c: New file.
14842         * lib/unictype/pr_ignorable_control.c: New file.
14843         * lib/unictype/pr_iso_control.c: New file.
14844         * lib/unictype/pr_join_control.c: New file.
14845         * lib/unictype/pr_left_of_pair.c: New file.
14846         * lib/unictype/pr_line_separator.c: New file.
14847         * lib/unictype/pr_logical_order_exception.c: New file.
14848         * lib/unictype/pr_lowercase.c: New file.
14849         * lib/unictype/pr_math.c: New file.
14850         * lib/unictype/pr_non_break.c: New file.
14851         * lib/unictype/pr_not_a_character.c: New file.
14852         * lib/unictype/pr_numeric.c: New file.
14853         * lib/unictype/pr_other_alphabetic.c: New file.
14854         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
14855         * lib/unictype/pr_other_grapheme_extend.c: New file.
14856         * lib/unictype/pr_other_id_continue.c: New file.
14857         * lib/unictype/pr_other_id_start.c: New file.
14858         * lib/unictype/pr_other_lowercase.c: New file.
14859         * lib/unictype/pr_other_math.c: New file.
14860         * lib/unictype/pr_other_uppercase.c: New file.
14861         * lib/unictype/pr_paired_punctuation.c: New file.
14862         * lib/unictype/pr_paragraph_separator.c: New file.
14863         * lib/unictype/pr_pattern_syntax.c: New file.
14864         * lib/unictype/pr_pattern_white_space.c: New file.
14865         * lib/unictype/pr_private_use.c: New file.
14866         * lib/unictype/pr_punctuation.c: New file.
14867         * lib/unictype/pr_quotation_mark.c: New file.
14868         * lib/unictype/pr_radical.c: New file.
14869         * lib/unictype/pr_sentence_terminal.c: New file.
14870         * lib/unictype/pr_soft_dotted.c: New file.
14871         * lib/unictype/pr_space.c: New file.
14872         * lib/unictype/pr_terminal_punctuation.c: New file.
14873         * lib/unictype/pr_test.c: New file.
14874         * lib/unictype/pr_titlecase.c: New file.
14875         * lib/unictype/pr_unassigned_code_value.c: New file.
14876         * lib/unictype/pr_unified_ideograph.c: New file.
14877         * lib/unictype/pr_uppercase.c: New file.
14878         * lib/unictype/pr_variation_selector.c: New file.
14879         * lib/unictype/pr_white_space.c: New file.
14880         * lib/unictype/pr_xid_continue.c: New file.
14881         * lib/unictype/pr_xid_start.c: New file.
14882         * lib/unictype/pr_zero_width.c: New file.
14883         * lib/unictype/scripts.c: New file.
14884         * lib/unictype/sy_c_ident.c: New file.
14885         * lib/unictype/sy_c_whitespace.c: New file.
14886         * lib/unictype/sy_java_ident.c: New file.
14887         * lib/unictype/sy_java_whitespace.c: New file.
14888
14889         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
14890         Unicode 5.0.0.
14891         * lib/unictype/blocks.h: Likewise.
14892         * lib/unictype/categ_C.h: Likewise.
14893         * lib/unictype/categ_Cc.h: Likewise.
14894         * lib/unictype/categ_Cf.h: Likewise.
14895         * lib/unictype/categ_Cn.h: Likewise.
14896         * lib/unictype/categ_Co.h: Likewise.
14897         * lib/unictype/categ_Cs.h: Likewise.
14898         * lib/unictype/categ_L.h: Likewise.
14899         * lib/unictype/categ_Ll.h: Likewise.
14900         * lib/unictype/categ_Lm.h: Likewise.
14901         * lib/unictype/categ_Lo.h: Likewise.
14902         * lib/unictype/categ_Lt.h: Likewise.
14903         * lib/unictype/categ_Lu.h: Likewise.
14904         * lib/unictype/categ_M.h: Likewise.
14905         * lib/unictype/categ_Mc.h: Likewise.
14906         * lib/unictype/categ_Me.h: Likewise.
14907         * lib/unictype/categ_Mn.h: Likewise.
14908         * lib/unictype/categ_N.h: Likewise.
14909         * lib/unictype/categ_Nd.h: Likewise.
14910         * lib/unictype/categ_Nl.h: Likewise.
14911         * lib/unictype/categ_No.h: Likewise.
14912         * lib/unictype/categ_P.h: Likewise.
14913         * lib/unictype/categ_Pc.h: Likewise.
14914         * lib/unictype/categ_Pd.h: Likewise.
14915         * lib/unictype/categ_Pe.h: Likewise.
14916         * lib/unictype/categ_Pf.h: Likewise.
14917         * lib/unictype/categ_Pi.h: Likewise.
14918         * lib/unictype/categ_Po.h: Likewise.
14919         * lib/unictype/categ_Ps.h: Likewise.
14920         * lib/unictype/categ_S.h: Likewise.
14921         * lib/unictype/categ_Sc.h: Likewise.
14922         * lib/unictype/categ_Sk.h: Likewise.
14923         * lib/unictype/categ_Sm.h: Likewise.
14924         * lib/unictype/categ_So.h: Likewise.
14925         * lib/unictype/categ_Z.h: Likewise.
14926         * lib/unictype/categ_Zl.h: Likewise.
14927         * lib/unictype/categ_Zp.h: Likewise.
14928         * lib/unictype/categ_Zs.h: Likewise.
14929         * lib/unictype/categ_of.h: Likewise.
14930         * lib/unictype/combining.h: Likewise.
14931         * lib/unictype/ctype_alnum.h: Likewise.
14932         * lib/unictype/ctype_alpha.h: Likewise.
14933         * lib/unictype/ctype_blank.h: Likewise.
14934         * lib/unictype/ctype_cntrl.h: Likewise.
14935         * lib/unictype/ctype_digit.h: Likewise.
14936         * lib/unictype/ctype_graph.h: Likewise.
14937         * lib/unictype/ctype_lower.h: Likewise.
14938         * lib/unictype/ctype_print.h: Likewise.
14939         * lib/unictype/ctype_punct.h: Likewise.
14940         * lib/unictype/ctype_space.h: Likewise.
14941         * lib/unictype/ctype_upper.h: Likewise.
14942         * lib/unictype/ctype_xdigit.h: Likewise.
14943         * lib/unictype/decdigit.h: Likewise.
14944         * lib/unictype/digit.h: Likewise.
14945         * lib/unictype/mirror.h: Likewise.
14946         * lib/unictype/numeric.h: Likewise.
14947         * lib/unictype/pr_alphabetic.h: Likewise.
14948         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14949         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14950         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14951         * lib/unictype/pr_bidi_block_separator.h: Likewise.
14952         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14953         * lib/unictype/pr_bidi_common_separator.h: Likewise.
14954         * lib/unictype/pr_bidi_control.h: Likewise.
14955         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14956         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14957         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14958         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14959         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14960         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14961         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14962         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14963         * lib/unictype/pr_bidi_pdf.h: Likewise.
14964         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14965         * lib/unictype/pr_bidi_whitespace.h: Likewise.
14966         * lib/unictype/pr_combining.h: Likewise.
14967         * lib/unictype/pr_composite.h: Likewise.
14968         * lib/unictype/pr_currency_symbol.h: Likewise.
14969         * lib/unictype/pr_dash.h: Likewise.
14970         * lib/unictype/pr_decimal_digit.h: Likewise.
14971         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14972         * lib/unictype/pr_deprecated.h: Likewise.
14973         * lib/unictype/pr_diacritic.h: Likewise.
14974         * lib/unictype/pr_extender.h: Likewise.
14975         * lib/unictype/pr_format_control.h: Likewise.
14976         * lib/unictype/pr_grapheme_base.h: Likewise.
14977         * lib/unictype/pr_grapheme_extend.h: Likewise.
14978         * lib/unictype/pr_grapheme_link.h: Likewise.
14979         * lib/unictype/pr_hex_digit.h: Likewise.
14980         * lib/unictype/pr_hyphen.h: Likewise.
14981         * lib/unictype/pr_id_continue.h: Likewise.
14982         * lib/unictype/pr_id_start.h: Likewise.
14983         * lib/unictype/pr_ideographic.h: Likewise.
14984         * lib/unictype/pr_ids_binary_operator.h: Likewise.
14985         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14986         * lib/unictype/pr_ignorable_control.h: Likewise.
14987         * lib/unictype/pr_iso_control.h: Likewise.
14988         * lib/unictype/pr_join_control.h: Likewise.
14989         * lib/unictype/pr_left_of_pair.h: Likewise.
14990         * lib/unictype/pr_line_separator.h: Likewise.
14991         * lib/unictype/pr_logical_order_exception.h: Likewise.
14992         * lib/unictype/pr_lowercase.h: Likewise.
14993         * lib/unictype/pr_math.h: Likewise.
14994         * lib/unictype/pr_non_break.h: Likewise.
14995         * lib/unictype/pr_not_a_character.h: Likewise.
14996         * lib/unictype/pr_numeric.h: Likewise.
14997         * lib/unictype/pr_other_alphabetic.h: Likewise.
14998         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14999         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15000         * lib/unictype/pr_other_id_continue.h: Likewise.
15001         * lib/unictype/pr_other_id_start.h: Likewise.
15002         * lib/unictype/pr_other_lowercase.h: Likewise.
15003         * lib/unictype/pr_other_math.h: Likewise.
15004         * lib/unictype/pr_other_uppercase.h: Likewise.
15005         * lib/unictype/pr_paired_punctuation.h: Likewise.
15006         * lib/unictype/pr_paragraph_separator.h: Likewise.
15007         * lib/unictype/pr_pattern_syntax.h: Likewise.
15008         * lib/unictype/pr_pattern_white_space.h: Likewise.
15009         * lib/unictype/pr_private_use.h: Likewise.
15010         * lib/unictype/pr_punctuation.h: Likewise.
15011         * lib/unictype/pr_quotation_mark.h: Likewise.
15012         * lib/unictype/pr_radical.h: Likewise.
15013         * lib/unictype/pr_sentence_terminal.h: Likewise.
15014         * lib/unictype/pr_soft_dotted.h: Likewise.
15015         * lib/unictype/pr_space.h: Likewise.
15016         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15017         * lib/unictype/pr_titlecase.h: Likewise.
15018         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15019         * lib/unictype/pr_unified_ideograph.h: Likewise.
15020         * lib/unictype/pr_uppercase.h: Likewise.
15021         * lib/unictype/pr_variation_selector.h: Likewise.
15022         * lib/unictype/pr_white_space.h: Likewise.
15023         * lib/unictype/pr_xid_continue.h: Likewise.
15024         * lib/unictype/pr_xid_start.h: Likewise.
15025         * lib/unictype/pr_zero_width.h: Likewise.
15026         * lib/unictype/scripts.h: Likewise.
15027         * lib/unictype/scripts_byname.gperf: Likewise.
15028         * lib/unictype/sy_c_ident.h: Likewise.
15029         * lib/unictype/sy_c_whitespace.h: Likewise.
15030         * lib/unictype/sy_java_ident.h: Likewise.
15031         * lib/unictype/sy_java_whitespace.h: Likewise.
15032
15033         * lib/unictype/Makefile: New file.
15034         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
15035         glibc.
15036         * lib/unictype/3level.h: New file, copied from glibc.
15037         * lib/unictype/3levelbit.h: New file.
15038
15039 2007-11-11  Bruno Haible  <bruno@clisp.org>
15040
15041         * modules/gperf: New file.
15042         * modules/iconv_open (Depends-on): Add it.
15043         (Makefile.am): Remove the GPERF definition.
15044
15045 2007-11-11  Bruno Haible  <bruno@clisp.org>
15046
15047         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
15048         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
15049
15050 2007-11-11  Bruno Haible  <bruno@clisp.org>
15051
15052         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
15053         (usage): Remove function.
15054
15055 2007-11-11  Bruno Haible  <bruno@clisp.org>
15056
15057         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
15058         gl_FUNC_CEILF_LIBS.
15059         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
15060         gl_FUNC_CEIL_LIBS.
15061         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
15062         gl_FUNC_CEILL_LIBS.
15063         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
15064         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
15065         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
15066
15067 2007-11-11  Bruno Haible  <bruno@clisp.org>
15068
15069         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
15070         roundf were declared but do not exist on functions.
15071         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
15072         roundl were declared but do not exist on functions.
15073         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
15074         HAVE_FLOORL_AND_CEILL, respectively.
15075         Needed for Sun C on Solaris 10.
15076
15077 2007-11-11  Bruno Haible  <bruno@clisp.org>
15078
15079         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
15080         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
15081         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
15082         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
15083         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
15084         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
15085         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
15086         HAVE_DECL_ROUNDF.
15087         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
15088         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
15089         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
15090         of HAVE_DECL_ROUND*.
15091         * modules/math (Makefile.am): Update.
15092
15093 2007-11-10  Bruno Haible  <bruno@clisp.org>
15094
15095         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
15096         ptrdiff_t as m4/intl.m4.
15097
15098 2007-11-10  Jim Meyering  <meyering@redhat.com>
15099
15100         Avoid link failure for the argmatch test.
15101         * tests/test-argmatch.c (usage): Define function to avoid a link
15102         failure: argmatch_die requires a usage function.
15103
15104 2007-11-09  Bruno Haible  <bruno@clisp.org>
15105
15106         * doc/functions/snprintf.texi: Mention BeOS deficiency.
15107         * doc/functions/vsnprintf.texi: Likewise.
15108         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
15109         with a size argument < 2.
15110
15111 2007-11-09  Bruno Haible  <bruno@clisp.org>
15112
15113         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
15114         buffer. Fixes an inefficiency introduced on 2007-11-03.
15115
15116 2007-11-09  Bruno Haible  <bruno@clisp.org>
15117
15118         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
15119         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
15120
15121 2007-11-08  Jim Meyering  <meyering@redhat.com>
15122
15123         Change cache variable name prefix "jm_" to "gl_" everywhere.
15124         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
15125         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
15126         * m4/uptime.m4: s/gl_/jm_/
15127
15128 2007-11-07  Bruno Haible  <bruno@clisp.org>
15129
15130         Update to GNU gettext 0.17.
15131         * m4/intl.m4: Update to GNU gettext 0.17.
15132         * m4/po.m4: Likewise.
15133         * modules/gettext (Files): Remove m4/ulonglong.m4.
15134         (configure.ac): Require gettext infrastructure from version 0.17.
15135
15136 2007-11-06  Bruno Haible  <bruno@clisp.org>
15137
15138         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
15139         symbolic values are not defined in a public header.
15140         * lib/freadable.c (freadable) [QNX]: Likewise.
15141         * lib/freadahead.c (freadahead) [QNX]: Likewise.
15142         * lib/freading.c (freading) [QNX]: Likewise.
15143         * lib/fseterr.c (fseterr) [QNX]: Likewise.
15144         * lib/fwritable.c (fwritable) [QNX]: Likewise.
15145         * lib/fwriting.c (fwriting) [QNX]: Likewise.
15146         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
15147         Reported by Alain Magloire.
15148
15149         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
15150
15151 2007-11-05  Bruno Haible  <bruno@clisp.org>
15152
15153         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
15154         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
15155         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
15156         Reported by Eric Blake.
15157
15158 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15159             Bruno Haible  <bruno@clisp.org>
15160
15161         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
15162         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
15163         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
15164         (malloc): Undefine also before including <stdlib.h>.
15165         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
15166         Needed on OSF/1 4.0.
15167
15168 2007-11-05  Jim Meyering  <meyering@redhat.com>
15169
15170         git-version-gen: sync from coreutils.
15171         * build-aux/git-version-gen: Add comments.
15172         Change the first '-' to '.' in the snapshot version string,
15173         e.g., 6.9-377-08144 -> 6.9.377-08144
15174         Remove first parameter.
15175         Don't declare a version "-dirty" merely because a time
15176         stamp has changed.
15177
15178 2007-11-04  Bruno Haible  <bruno@clisp.org>
15179
15180         * lib/lock.h: Protect all macro definitions containing an 'if'
15181         statement through a "do { ... } while (0)".
15182         * lib/tls.h: Likewise.
15183
15184 2007-11-04  Bruno Haible  <bruno@clisp.org>
15185
15186         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
15187
15188 2007-11-04  Bruno Haible  <bruno@clisp.org>
15189
15190         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
15191         * modules/fprintf-posix (Depends-on): Add nocrash.
15192         * modules/snprintf-posix (Depends-on): Likewise.
15193         * modules/sprintf-posix (Depends-on): Likewise.
15194         * modules/vasnprintf-posix (Depends-on): Likewise.
15195         * modules/vasprintf-posix (Depends-on): Likewise.
15196         * modules/vfprintf-posix (Depends-on): Likewise.
15197         * modules/vsnprintf-posix (Depends-on): Likewise.
15198         * modules/vsprintf-posix (Depends-on): Likewise.
15199         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15200         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15201         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15202         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15203         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15204         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15205         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15206
15207 2007-11-04  Bruno Haible  <bruno@clisp.org>
15208
15209         * modules/nocrash: New file.
15210         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
15211         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
15212
15213 2007-11-04  Bruno Haible  <bruno@clisp.org>
15214
15215         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
15216         precision handling.
15217         * tests/test-vasprintf-posix.c (test_function): Likewise.
15218         * tests/test-snprintf-posix.h (test_function): Likewise.
15219         * tests/test-sprintf-posix.h (test_function): Likewise.
15220
15221         Fix *printf behaviour for large precisions on mingw and BeOS.
15222         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
15223         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
15224         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
15225         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15226         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15227         gl_PRINTF_PRECISION and test its result. Invoke
15228         gl_PREREQ_VASNPRINTF_PRECISION.
15229         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15230         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15231         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15232         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15233         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15234         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15235         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15236         * doc/functions/fprintf.texi: Update.
15237         * doc/functions/printf.texi: Update.
15238         * doc/functions/snprintf.texi: Update.
15239         * doc/functions/sprintf.texi: Update.
15240         * doc/functions/vfprintf.texi: Update.
15241         * doc/functions/vprintf.texi: Update.
15242         * doc/functions/vsnprintf.texi: Update.
15243         * doc/functions/vsprintf.texi: Update.
15244
15245 2007-11-04  Bruno Haible  <bruno@clisp.org>
15246
15247         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
15248
15249 2007-11-04  Bruno Haible  <bruno@clisp.org>
15250
15251         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
15252         Reported by Sylvain Beucler <beuc@gnu.org>.
15253
15254 2007-11-03  Bruno Haible  <bruno@clisp.org>
15255
15256         * tests/test-fprintf-posix2.sh: New file.
15257         * tests/test-fprintf-posix2.c: New file.
15258         * modules/fprintf-posix-tests (Files): Add them.
15259         (TESTS): Add test-fprintf-posix2.sh.
15260         (configure.ac): Check for getrlimit and setrlimit.
15261         (check_PROGRAMS): Add test-fprintf-posix2.
15262
15263         * tests/test-printf-posix2.sh: New file.
15264         * tests/test-printf-posix2.c: New file.
15265         * modules/printf-posix-tests (Files): Add them.
15266         (TESTS): Add test-printf-posix2.sh.
15267         (configure.ac): Check for getrlimit and setrlimit.
15268         (check_PROGRAMS): Add test-printf-posix2.
15269
15270         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
15271         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
15272         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
15273         (decode_double): New function, copied from decode_long_double.
15274         (scale10_round_decimal_decoded): New function, extracted from
15275         scale10_round_decimal_long_double.
15276         (scale10_round_decimal_long_double): Use it.
15277         (scale10_round_decimal_double): New function.
15278         (floorlog10): New function.
15279         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
15280         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
15281         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
15282         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15283         gl_PRINTF_ENOMEM and test its result. Invoke
15284         gl_PREREQ_VASNPRINTF_ENOMEM.
15285         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15286         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15287         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15288         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15289         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15290         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15291         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15292         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
15293         * modules/snprintf-posix (Depends-on): Likewise.
15294         * modules/sprintf-posix (Depends-on): Likewise.
15295         * modules/vasnprintf-posix (Depends-on): Likewise.
15296         * modules/vasprintf-posix (Depends-on): Likewise.
15297         * modules/vfprintf-posix (Depends-on): Likewise.
15298         * modules/vsnprintf-posix (Depends-on): Likewise.
15299         * modules/vsprintf-posix (Depends-on): Likewise.
15300         * doc/functions/fprintf.texi: Update.
15301         * doc/functions/printf.texi: Update.
15302         * doc/functions/snprintf.texi: Update.
15303         * doc/functions/sprintf.texi: Update.
15304         * doc/functions/vfprintf.texi: Update.
15305         * doc/functions/vprintf.texi: Update.
15306         * doc/functions/vsnprintf.texi: Update.
15307         * doc/functions/vsprintf.texi: Update.
15308
15309 2007-11-03  Bruno Haible  <bruno@clisp.org>
15310
15311         * modules/frexp-nolibm-tests: New file.
15312
15313         * modules/frexp-nolibm: New file.
15314         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
15315
15316 2007-11-03  Bruno Haible  <bruno@clisp.org>
15317
15318         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
15319         value is C99 compliant.
15320         Needed for OSF/1 5.1.
15321
15322 2007-11-03  Bruno Haible  <bruno@clisp.org>
15323
15324         Fix out-of-memory handling of vasnprintf.
15325         * lib/printf-parse.c: Include <errno.h>.
15326         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
15327         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
15328         is already set.
15329
15330 2007-11-02  Eric Blake  <ebb9@byu.net>
15331
15332         Fix tests on cygwin.
15333         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
15334
15335 2007-11-01  Bruno Haible  <bruno@clisp.org>
15336
15337         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
15338         warning.
15339         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
15340         needed for POSIX compatibility.
15341
15342 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
15343
15344         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
15345         for compatibility with GNU.
15346
15347 2007-11-01  Bruno Haible  <bruno@clisp.org>
15348
15349         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
15350         (putenv): Renamed from rpl_putenv. Change argument type from
15351         'const char *' to 'char *'.
15352         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
15353         of defining putenv in config.h, just set REPLACE_PUTENV.
15354         * modules/putenv (Depends-on): Add stdlib.
15355         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15356         (Include): Use <stdlib.h>.
15357         * lib/stdlib.in.h (putenv): New declaration.
15358         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
15359         REPLACE_PUTENV.
15360         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
15361         REPLACE_PUTENV.
15362         Needed for MacOS X 10.5.0.
15363         Reported by Peter O'Gorman <peter@pogma.com>.
15364
15365 2007-11-01  Jim Meyering  <meyering@redhat.com>
15366
15367         Treat an empty date string exactly like "0".
15368         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
15369         if the remaining date string (to be parsed) is empty, use "0".
15370         Reported by Mischa Molhoek and discussed in this thread:
15371         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
15372
15373 2007-10-31  Bruno Haible  <bruno@clisp.org>
15374
15375         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
15376         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
15377         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
15378         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
15379         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
15380         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
15381
15382 2007-10-31  Bruno Haible  <bruno@clisp.org>
15383
15384         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
15385         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
15386         (AC_TYPE_LONG_LONG_INT): Use it.
15387         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
15388         it as well.
15389         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
15390         to m4/longlong.m4.
15391         * modules/stdint (Files): Remove m4/ulonglong.m4.
15392         * modules/strtoull (Files): Use m4/longlong.m4 instead of
15393         m4/ulonglong.m4.
15394         * modules/strtoumax (Files): Likewise.
15395
15396 2007-10-30  Bruno Haible  <bruno@clisp.org>
15397
15398         * modules/xvasprintf-posix: New file.
15399         Suggested by Eric Blake.
15400
15401 2007-10-30  Bruno Haible  <bruno@clisp.org>
15402
15403         * modules/xprintf-posix-tests: New file.
15404         * tests/test-xprintf-posix.sh: New file.
15405         * tests/test-xprintf-posix.c: New file.
15406         * tests/test-xfprintf-posix.c: New file.
15407
15408         * modules/xprintf-posix: New file.
15409
15410 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15411
15412         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
15413         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
15414         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
15415
15416 2007-10-29  Bruno Haible  <bruno@clisp.org>
15417
15418         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
15419         contain the special marker '_cv_'.
15420         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15421         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15422         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15423         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
15424         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15425         Reported by Ralf Wildenhues.
15426
15427 2007-10-29  Bruno Haible  <bruno@clisp.org>
15428
15429         * gnulib-tool (func_import): When --lgpl is not specified, set
15430         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
15431         GPLv3.
15432         Reported by Simon Josefsson.
15433
15434 2007-10-28  Bruno Haible  <bruno@clisp.org>
15435
15436         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
15437         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
15438         HAVE_DECL_ISFINITE.
15439         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
15440         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
15441         HAVE_DECL_ISFINITE.
15442
15443 2007-10-28  Bruno Haible  <bruno@clisp.org>
15444
15445         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
15446         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
15447
15448 2007-10-28  Bruno Haible  <bruno@clisp.org>
15449
15450         Fix link errors with Sun C 5.0 on Solaris 10.
15451         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
15452         function is declared but not present in the compiler's libm.
15453         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15454         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15455         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
15456         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
15457         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
15458         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
15459         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
15460         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
15461         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
15462         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
15463         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
15464         HAVE_DECL_FLOORL.
15465
15466 2007-10-28  Bruno Haible  <bruno@clisp.org>
15467
15468         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
15469         gl_FUNC_FLOORL. Cache the result.
15470         (gl_FUNC_FLOORL): Use it.
15471         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
15472         gl_FUNC_CEILL. Cache the result.
15473         (gl_FUNC_CEILL): Use it.
15474
15475         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
15476         gl_FUNC_FLOOR. Cache the result.
15477         (gl_FUNC_FLOOR): Use it.
15478         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
15479         gl_FUNC_CEIL. Cache the result.
15480         (gl_FUNC_CEIL): Use it.
15481
15482         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
15483         gl_FUNC_FLOORF. Cache the result.
15484         (gl_FUNC_FLOORF): Use it.
15485         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
15486         gl_FUNC_CEILF. Cache the result.
15487         (gl_FUNC_CEILF): Use it.
15488
15489 2007-10-28  Bruno Haible  <bruno@clisp.org>
15490
15491         * gnulib-tool: Allow specifying the LGPL version number through
15492         --lgpl=2 or --lgpl=3.
15493         (func_usage): Document --lgpl with argument.
15494         Handle --lgpl=... arguments.
15495         (func_import): Recognize also gl_LGPL calls with an argument. When
15496         --lgpl=2 is used and the module's license is just LGPL, report an
15497         error. Set sed_transform_lib_file according to the lgpl variable. In
15498         the generated files, use --lgpl or gl_LGPL invocations with argument,
15499         if necessary.
15500         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
15501         an LGPv2+ license.
15502         * doc/gnulib-tool.texi (Modified imports): Update explanation of
15503         gl_LGPL macro.
15504
15505 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15506             Bruno Haible  <bruno@clisp.org>
15507
15508         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
15509         (u16_uctomb_aux): Likewise.
15510         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
15511         !HAVE_INLINE.
15512         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
15513
15514 2007-10-28  Bruno Haible  <bruno@clisp.org>
15515
15516         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
15517         Invoke AM_GETTEXT_OPTION if it exists.
15518         * modules/vasprintf: Likewise.
15519         * modules/verror: Likewise.
15520         * modules/xprintf: Likewise.
15521         * modules/xvasprintf: Likewise.
15522
15523 2007-10-27  Ben Pfaff  <blp@gnu.org>
15524
15525         * lib/math.in.h: Define isfinite macro and prototypes for
15526         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
15527         implementations.
15528         * m4/math_h.m4: New substitutions for isfinite module.
15529         * lib/isfinite.c: New file.
15530         * m4/isfinite.m4: New file.
15531         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
15532         * modules/isfinite: New file.
15533         * modules/isfinite-tests: New file.
15534         * tests/tests-isfinite.c: New file.
15535         * doc/functions/isfinite.texi: Mention isfinite module.
15536         * MODULES.html.sh: Mention new module.
15537
15538 2007-10-27  Ben Pfaff  <blp@gnu.org>
15539
15540         Ralf Wildenhues reported that Tru64 4.0D declares the round
15541         functions but does not have definitions.
15542         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
15543         cannot be found in any library, set the output variable to
15544         "missing" instead of "".
15545         * m4/round.m4: Also use our substitute if we cannot find round in
15546         any library, even if it is declared.
15547         * m4/roundf.m4: Likewise for roundf.
15548         * m4/roundl.m4: Likewise for roundl.
15549         * lib/math.in.h: Undefine roundf, round, roundl before defining
15550         their replacements, to allow for hypothetical systems where these
15551         may be defined as macros but not available in libraries.
15552
15553 2007-10-27  Bruno Haible  <bruno@clisp.org>
15554
15555         * doc/gnulib.texi: Invoke @firstparagraphindent.
15556         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
15557         changes in gnulib.
15558         (Source changes): New section.
15559
15560 2007-10-26  Bruno Haible  <bruno@clisp.org>
15561
15562         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
15563         borrowed from autoconf.
15564
15565 2007-10-26  Bruno Haible  <bruno@clisp.org>
15566
15567         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
15568         strerror returned the empty string. Needed on HP-UX 11.00.
15569
15570 2007-10-24  Micah Cowan  <micah@cowan.name>
15571
15572         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
15573         * build-aux/bootstrap: Remove support for now-unnecessary option,
15574         --cvs-user, and envvars CVS_USER, CVS_RSH.
15575
15576 2007-10-24  Jim Meyering  <meyering@redhat.com>
15577
15578         Avoid diagnostics from sha1sum when there is no cached checksum.
15579         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
15580         if the po.s1 file hasn't been created yet.
15581
15582         * build-aux/bootstrap: Sync from coreutils:
15583         2007-10-24  Jim Meyering  <meyering@redhat.com>
15584         Get gnulib from the git repository, not from an obsolete cvs one.
15585         * build-aux/bootstrap: Suggestion from Micah Cowan.
15586         2007-10-04  Jim Meyering  <jim@meyering.net>
15587         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
15588         (update_po_files): Work also when there are no .po files in po/.
15589
15590 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15591
15592         * README: Append ".git" to git and cg examples.
15593         Problem reported by Benoit Sigoure.
15594
15595 2007-10-23  Micah Cowan  <micah@cowan.name>
15596
15597         * users.txt: Add wget.
15598
15599 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15600
15601         Fix linking of some unistdio tests on FreeBSD.
15602         * modules/unistdio/u16-vsnprintf-tests
15603         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
15604         * modules/unistdio/u16-vsprintf-tests
15605         (test_u16_vsnprintf1_LDADD): Likewise.
15606         * modules/unistdio/u32-vsnprintf-tests
15607         (test_u32_vsnprintf1_LDADD): Likewise.
15608         * modules/unistdio/u32-vsprintf-tests
15609         (test_u32_vsprintf1_LDADD): Likewise.
15610         * modules/unistdio/u8-vsnprintf-tests
15611         (test_u8_vsnprintf1_LDADD): Likewise.
15612         * modules/unistdio/u8-vsprintf-tests
15613         (test_u8_vsprintf1_LDADD): Likewise.
15614         * modules/unistdio/ulc-vsnprintf-tests
15615         (test_ulc_vsnprintf1_LDADD): Likewise.
15616         * modules/unistdio/ulc-vsprintf-tests
15617         (test_ulc_vsprintf1_LDADD): Likewise.
15618
15619         Fix linking of some uniconv tests on FreeBSD.
15620         * modules/uniconv/u16-conv-from-enc-tests
15621         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
15622         * modules/uniconv/u16-conv-to-enc-tests
15623         (test_u16_conv_to_enc_LDADD): Likewise.
15624         * modules/uniconv/u16-strconv-from-enc-tests
15625         (test_u16_strconv_from_enc_LDADD): Likewise.
15626         * modules/uniconv/u16-strconv-to-enc-tests
15627         (test_u16_strconv_to_enc_LDADD): Likewise.
15628         * modules/uniconv/u32-conv-from-enc-tests
15629         (test_u32_conv_from_enc_LDADD): Likewise.
15630         * modules/uniconv/u32-conv-to-enc-tests
15631         (test_u32_conv_to_enc_LDADD): Likewise.
15632         * modules/uniconv/u32-strconv-from-enc-tests
15633         (test_u32_strconv_from_enc_LDADD): Likewise.
15634         * modules/uniconv/u32-strconv-to-enc-tests
15635         (test_u32_strconv_to_enc_LDADD): Likewise.
15636         * modules/uniconv/u8-conv-from-enc-tests
15637         (test_u8_conv_from_enc_LDADD): Likewise.
15638         * modules/uniconv/u8-conv-to-enc-tests
15639         (test_u8_conv_to_enc_LDADD): Likewise.
15640         * modules/uniconv/u8-strconv-from-enc-tests
15641         (test_u8_strconv_from_enc_LDADD): Likewise.
15642         * modules/uniconv/u8-strconv-to-enc-tests
15643         (test_u8_strconv_to_enc_LDADD): Likewise.
15644
15645 2007-10-22  Bruno Haible  <bruno@clisp.org>
15646
15647         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
15648         size.
15649
15650 2007-10-22  Eric Blake  <ebb9@byu.net>
15651
15652         Tweak x*printf documentation.
15653         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
15654         variable name and comments.
15655         Suggested by Bruno Haible.
15656
15657 2007-10-22  Bruno Haible  <bruno@clisp.org>
15658
15659         * lib/acl.c (copy_acl): Fix file name in comment.
15660
15661 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15662
15663         Fix Tru64 problem with stdbool.h.
15664         * lib/stdbool.in.h (false, true):
15665         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
15666         Don't declare as an enum in this situation; it runs afoul of Tru64.
15667         Problem reported by Steven M. Schweda in
15668         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
15669
15670 2007-10-22  Eric Blake  <ebb9@byu.net>
15671
15672         Also wrap vf?printf.
15673         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
15674         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
15675         (xvprintf, xvfprintf): New functions.
15676
15677 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15678
15679         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
15680         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
15681
15682         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
15683         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
15684
15685 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15686
15687         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
15688         by Bruno Haible.
15689
15690 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15691
15692         * lib/getloadavg.c
15693         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
15694         Undef `sys' after including sys/table.h, for Tru64 4.0D.
15695
15696         * tests/test-i-ring.c: Work for C89.
15697
15698 2007-10-22  Bruno Haible  <bruno@clisp.org>
15699
15700         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
15701         -1u, in preprocessor expression, so that we don't test for the bug
15702         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
15703         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
15704
15705 2007-10-22  Eric Blake  <ebb9@byu.net>
15706
15707         * tests/test-yesno.sh: Silence stderr during test.
15708
15709 2007-10-22  Simon Josefsson  <simon@josefsson.org>
15710
15711         * modules/crypto/gc-camellia: New file.
15712
15713         * m4/gc-camellia.m4: New file.
15714
15715         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
15716
15717         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
15718
15719 2007-10-22  Simon Josefsson  <simon@josefsson.org>
15720
15721         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
15722         --help to stdout.  Reported by sms@antinode.org (Steven
15723         M. Schweda).
15724
15725 2007-10-22  Simon Josefsson  <simon@josefsson.org>
15726
15727         * users.txt: Fix link to libksba.
15728
15729 2007-10-21  Ben Pfaff  <blp@gnu.org>
15730
15731         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
15732         round.c roundf implementation that depends on floorf and ceilf to
15733         be tested unconditionally.
15734
15735 2007-10-21  Ben Pfaff  <blp@gnu.org>
15736
15737         * m4/check-libm-func.m4: Removed.
15738         * m4/check-math-lib.m4: New file.
15739         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
15740         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
15741         definition and lack of AC_LIBOBJ([roundf]).
15742         * m4/roundl.m4: Ditto, and similarly for roundl.
15743         * modules/round: Reference new m4 file.
15744         * modules/roundf: Ditto.
15745         * modules/roundl: Ditto.
15746         * tests/test-round2.c (main): Use ROUND instead of round.
15747         Bug report from Bruno Haible.
15748
15749 2007-10-21  Bruno Haible  <bruno@clisp.org>
15750
15751         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
15752         context.
15753
15754 2007-10-21  Bruno Haible  <bruno@clisp.org>
15755
15756         * tests/test-wcwidth.c (main): Allow negative result for some control
15757         characters.
15758
15759         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
15760         Needed on OSF/1 5.1.
15761
15762 2007-10-21  Bruno Haible  <bruno@clisp.org>
15763
15764         * tests/test-floorf1.c: Include isnanf.h.
15765         (main): Use isnanf() instead of isnan().
15766         * tests/test-ceilf1.c: Include isnanf.h.
15767         (main): Use isnanf() instead of isnan().
15768         * tests/test-truncf1.c: Include isnanf.h.
15769         (main): Use isnanf() instead of isnan().
15770         * tests/test-roundf1.c: Include isnanf.h.
15771         (main): Use isnanf() instead of isnan().
15772
15773 2007-10-21  Eric Blake  <ebb9@byu.net>
15774
15775         * users.txt: Update URL for m4.
15776
15777 2007-10-21  Bruno Haible  <bruno@clisp.org>
15778
15779         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
15780
15781 2007-10-21  Bruno Haible  <bruno@clisp.org>
15782
15783         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
15784         Git's management files if the CVS files are not present.
15785
15786 2007-10-20  Bruno Haible  <bruno@clisp.org>
15787
15788         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
15789         gcc-3.4.x.
15790
15791 2007-10-20  Ben Pfaff  <blp@gnu.org>
15792
15793         * lib/math.in.h: Declare round, roundf, roundl if we are providing
15794         implementations.
15795         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
15796         * lib/round.c: New file.
15797         * lib/roundf.c: New file.
15798         * lib/roundl.c: New file.
15799         * m4/round.m4: New file.
15800         * m4/roundf.m4: New file.
15801         * m4/roundl.m4: New file.
15802         * m4/check-libm-func-m4: New file.
15803         * modules/math: Replace round, roundf, roundl related @VARS@ in
15804         math.in.h.
15805         * modules/round: New file.
15806         * modules/round-tests: New file.
15807         * modules/roundf: New file.
15808         * modules/roundf-tests: New file.
15809         * modules/roundl: New file.
15810         * modules/roundl-tests: New file.
15811         * tests/test-round1.c: New file.
15812         * tests/test-round2.c: New file.
15813         * tests/test-roundf1.c: New file.
15814         * tests/test-roundf2.c: New file.
15815         * tests/test-roundl.c: New file.
15816         * doc/functions/round.texi: Mention round module.
15817         * doc/functions/roundf.texi: Mention roundf module.
15818         * doc/functions/roundl.texi: Mention roundl module.
15819         * MODULES.html.sh: Mention new modules.
15820         Thanks to Bruno Haible for suggestions.
15821
15822 2007-10-20  Jim Meyering  <meyering@redhat.com>
15823
15824         * lib/xprintf.c: Include <config.h> unconditionally.
15825
15826         Change xprintf's license to GPL.
15827         * modules/xprintf (License): s/LGPL/GPL/, since this module
15828         depends on modules (exit and exitfail) which are GPL.
15829         Suggestion from Bruno Haible.
15830
15831         xprintf fixes.
15832         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
15833         Use a clearer diagnostic.
15834         Patch from Bruno Haible.
15835
15836 2007-10-20  Bruno Haible  <bruno@clisp.org>
15837
15838         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
15839         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
15840         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15841
15842 2007-10-20  Bruno Haible  <bruno@clisp.org>
15843
15844         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
15845         precision in the comparison result > x - 1 or similar.
15846         * tests/test-ceilf2.c (correct_result_p): Likewise.
15847         * tests/test-truncf2.c (correct_result_p): Likewise.
15848         * tests/test-trunc2.c (correct_result_p): Likewise.
15849         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15850
15851 2007-10-20  Bruno Haible  <bruno@clisp.org>
15852
15853         * modules/ceil: New file.
15854         * m4/ceil.m4: New file.
15855         * doc/functions/ceil.texi: Mention the 'ceil' module.
15856
15857 2007-10-20  Bruno Haible  <bruno@clisp.org>
15858
15859         * modules/floor: New file.
15860         * m4/floor.m4: New file.
15861         * doc/functions/floor.texi: Mention the 'floor' module.
15862
15863 2007-10-20  Bruno Haible  <bruno@clisp.org>
15864
15865         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
15866         of %a.
15867         * modules/floorf-tests (Depends-on): Likewise.
15868         * modules/truncf-tests (Depends-on): Likewise.
15869         * modules/trunc-tests (Depends-on): Likewise.
15870         Reported by Ben Pfaff.
15871
15872 2007-10-19  Jim Meyering  <meyering@redhat.com>
15873
15874         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
15875         Don't bother testing specific errno values.  Just test ferror.
15876
15877         New module: xprintf
15878         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
15879
15880 2007-10-19  Bruno Haible  <bruno@clisp.org>
15881
15882         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
15883         syntax.
15884         * modules/javaexec (Makefile.am): Likewise.
15885         * modules/relocatable-prog (Makefile.am): Likewise.
15886         Suggested by Jim Meyering.
15887
15888 2007-10-18  Bruno Haible  <bruno@clisp.org>
15889
15890         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
15891         Reported by Jim Meyering.
15892
15893 2007-10-18  Eric Blake  <ebb9@byu.net>
15894
15895         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
15896
15897 2007-10-18  Bruno Haible  <bruno@clisp.org>
15898
15899         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
15900         the format string into writable memory. Needed in Fortify conditions.
15901
15902 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
15903             Bruno Haible  <bruno@clisp.org>
15904
15905         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
15906         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
15907         * modules/trim (Depends-on): Add mbchar.
15908         (configure.ac): Add gl_FUNC_MBRTOWC.
15909         (Makefile.am): Augment lib_SOURCES.
15910
15911 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
15912
15913         Modify glob.c to use fstatat and dirfd, to simplify it.
15914         Suggested by Eric Blake.
15915         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
15916         Don't include <stdbool.h>; not used.
15917         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
15918         (link_exists_p): Simplify implementation, since we can now assume
15919         dirfd and fstatat.
15920         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
15921
15922 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15923
15924         * gnulib-tool (func_get_dependencies): Fix sed script to
15925         match only tests.
15926
15927 2007-10-17  Bruno Haible  <bruno@clisp.org>
15928
15929         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
15930         allow locale names without encoding suffix.
15931         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15932         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15933
15934 2007-10-16  Bruno Haible  <bruno@clisp.org>
15935
15936         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
15937         * lib/getgroups.c (getgroups): Likewise.
15938         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
15939
15940 2007-10-16  Bruno Haible  <bruno@clisp.org>
15941
15942         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
15943         * modules/malloc-posix (License): Likewise.
15944         * modules/realloc-posix (License): Likewise.
15945         * modules/calloc-posix (License): Likewise.
15946         * modules/intprops (License): Change from GPL to LGPL, with
15947         Paul Eggert's approval.
15948
15949 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
15950
15951         Merge glibc changes into lib/glob.c.
15952
15953         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
15954         2007-10-15 04:59:03 UTC.  Here are the changes:
15955
15956         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
15957
15958         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
15959
15960         * lib/glob.c: Add some branch prediction throughout.
15961
15962         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
15963
15964         [BZ #5103]
15965         * lib/glob.c (glob): Recognize patterns starting \/.
15966
15967         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
15968
15969         [BZ #3996]
15970         * lib/glob.c (attribute_hidden): Define if not defined.
15971         (glob): Unescape dirname, filename or username when needed and not
15972         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
15973         is NULL.  Handle unescaped [ in pattern without closing ].
15974         Don't pass GLOB_CHECK down to recursive glob for directories.
15975         (__glob_pattern_type): New function.
15976         (__glob_pattern_p): Implement using __glob_pattern_type.
15977         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
15978         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
15979         Remove unreachable code.
15980
15981         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
15982
15983         * lib/glob.c (glob_in_dir): Add some comments and asserts to
15984         explain why there are no leaks.
15985
15986         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
15987
15988         [BZ #3253]
15989         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
15990         time, rather allocate increasingly bigger arrays of pointers, if
15991         possible with alloca, if too large with malloc.
15992
15993 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
15994
15995         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
15996         Problem reported by H.Merijn Brand in
15997         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
15998         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
15999         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
16000
16001 2007-10-15  Bruno Haible  <bruno@clisp.org>
16002
16003         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
16004         with explicit rpl_ prefix.
16005         * lib/fopen.c (fopen): Likewise.
16006         * lib/freopen.c (freopen): Likewise.
16007         * lib/iconv.c (iconv): Likewise.
16008         * lib/iconv_close.c (iconv_close): Likewise.
16009
16010 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16011
16012         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
16013
16014 2007-10-15  Bruno Haible  <bruno@clisp.org>
16015
16016         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
16017         <stddef.h> instead of <stdlib.h> since we only need NULL.
16018         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16019
16020 2007-10-15  Bruno Haible  <bruno@clisp.org>
16021
16022         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
16023         Replace paragraph talking about LIBOBJS.
16024         Reported by Colin Watson <cjwatson@debian.org>.
16025
16026 2007-10-15  Bruno Haible  <bruno@clisp.org>
16027
16028         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
16029         <stdlib.h> before using NULL.
16030
16031 2007-10-15  Simon Josefsson  <simon@josefsson.org>
16032
16033         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
16034         Reported by Albert Chin <china@thewrittenword.com>.
16035
16036 2007-10-14  Bruno Haible  <bruno@clisp.org>
16037
16038         * modules/iconv_open-utf-tests: New file.
16039         * tests/test-iconv-utf.c: New file.
16040
16041         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
16042         * modules/iconv_open-utf: New file.
16043         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
16044         (iconv, iconv_close): New declarations.
16045         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
16046         be defined.
16047         (iconv_open): Add special handling of conversion between UTF-8 and
16048         UTF-{16,32}{BE,LE}.
16049         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
16050         * lib/iconv_close.c: New file.
16051         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
16052         gl_FUNC_ICONV_OPEN.
16053         (gl_FUNC_ICONV_OPEN): Use it.
16054         (gl_FUNC_ICONV_OPEN_UTF): New macro.
16055         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
16056         and REPLACE_ICONV_UTF.
16057         * modules/iconv_open (Depends-on): Add c-strcase.
16058         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
16059         ICONV_CONST.
16060         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
16061
16062 2007-10-13  Albert Chin  <china@thewrittenword.com>
16063             Bruno Haible  <bruno@clisp.org>
16064
16065         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
16066         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
16067
16068 2007-10-13  Bruno Haible  <bruno@clisp.org>
16069
16070         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
16071         defined, use the ISO C99 inline semantics.
16072         * lib/argp.h (ARGP_EI): Likewise.
16073
16074 2007-10-13  Bruno Haible  <bruno@clisp.org>
16075
16076         Handle 'inline' change in gcc 4.3.0.
16077         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
16078         argp_fmtstream_write, argp_fmtstream_set_lmargin,
16079         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
16080         argp_fmtstream_point): Disable 'extern' declaration if the function
16081         definition is going to be provided inline.
16082         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
16083         semantics, not the ISO C99 inline semantics.
16084         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
16085         'extern' declaration if the function definition is going to be provided
16086         inline.
16087         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
16088         the GNU C inline semantics, not the ISO C99 inline semantics. With
16089         GCC 4.2, avoid a warning.
16090
16091 2007-10-13  Bruno Haible  <bruno@clisp.org>
16092
16093         * lib/freading.h (freading): Enable the use of __freading for
16094         glibc >= 2.7.
16095         * lib/freading.c (freading): Likewise.
16096
16097 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
16098
16099         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
16100         "warning: C99 inline functions are not supported; using GNU89".
16101
16102 2007-10-12  Bruno Haible  <bruno@clisp.org>
16103
16104         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
16105         of 2.
16106         * tests/test-ceilf2.c: New file.
16107         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
16108
16109         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
16110         * modules/ceilf-tests: Update.
16111
16112 2007-10-12  Bruno Haible  <bruno@clisp.org>
16113
16114         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
16115         of 2.
16116         * tests/test-floorf2.c: New file.
16117         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
16118
16119         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
16120         * modules/floorf-tests: Update.
16121
16122 2007-10-12  Bruno Haible  <bruno@clisp.org>
16123
16124         * tests/test-trunc2.c: New file.
16125         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
16126
16127         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
16128         * modules/trunc-tests: Update.
16129
16130 2007-10-12  Bruno Haible  <bruno@clisp.org>
16131
16132         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
16133         of 2.
16134         * tests/test-truncf2.c: New file.
16135         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
16136
16137         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
16138         * modules/truncf-tests: Update.
16139
16140 2007-10-11  Eric Blake  <ebb9@byu.net>
16141
16142         Don't claim strerror is broken on Interix.
16143         * doc/functions/strerror.texi (strerror): Known broken systems are
16144         now Solaris 8, and not Interix.
16145         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
16146         Interix on cross-compile.
16147         Reported by Martin Koeppe in
16148         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
16149
16150 2007-10-11  Bruno Haible  <bruno@clisp.org>
16151
16152         * modules/i-ring-tests: New file.
16153         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
16154         instead of assert.
16155
16156 2007-10-11  Bruno Haible  <bruno@clisp.org>
16157
16158         * modules/filenamecat-tests: New file.
16159         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
16160         * lib/filenamecat.c: Remove test code.
16161
16162 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
16163
16164         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
16165
16166         * lib/strerror.c: Include <string.h> always, to test interface,
16167         and to remove the need for the dummy.
16168         Include intprops.h to compute width instead of doing it ourselves
16169         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
16170         (strerror): Define it to return NULL if there's no system strerror.
16171         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
16172         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
16173         ancient pre-strerror Unix systems well any more.  Saying "unknown
16174         system error" is enough.
16175         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
16176         simpler strerror.c implementation.
16177         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
16178         Simplify the tests to reflect the simpler strerror implementation.
16179         * modules/strerror (Depends-on): Add intprops.
16180
16181 2007-10-09  Eric Blake  <ebb9@byu.net>
16182
16183         Silence test-fpending.
16184         * modules/fpending-tests (Files): Add wrapper script.
16185         * tests/test-fpending.sh: New file.
16186
16187 2007-10-09  Bruno Haible  <bruno@clisp.org>
16188
16189         * MODULES.html.sh (func_module): Don't create a hyperlink for
16190         function names like 'printf_frexp'.
16191         (Misc): Add crc, memxor.
16192         (Characteristics of floating types): New section.
16193         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
16194         isnanf-nolibm, signbit, trunc, truncf, truncl.
16195         (Enhancements for ISO C 99 functions): New subsection Input/output.
16196         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
16197         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
16198         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
16199         (Compatibility checks for POSIX:2001 functions): Add clock-time.
16200         (Enhancements for POSIX:2001 functions): Add chdir-long.
16201         (File system functions): Add areadlink, chdir-safer, read-file.
16202         Remove cycle-check.
16203         (File system as inode set): New section.
16204         (Date and time): Add gethrxtime.
16205         (Multithreading): Add openmp.
16206         (Internationalization functions): Add localename.
16207         (Unicode string functions): Add unistr/u*-mbsnlen.
16208         (Support for maintaining and releasing projects): Add git-version-gen.
16209         (Lone files): Remove directories.
16210
16211 2007-10-08  Ben Pfaff  <blp@gnu.org>
16212
16213         * lib/xmalloca.h: Fix typo in comment.
16214
16215 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16216
16217         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
16218         when avoiding problems with integer overflow.  Use a portable test
16219         instead.
16220
16221 2007-10-08  Simon Josefsson  <simon@josefsson.org>
16222
16223         * modules/dummy (License): Change to LGPLv2+.
16224         * modules/float (License): Likewise
16225         * modules/realloc (License): Likewise
16226         * modules/stdlib (License): Likewise
16227
16228 2007-10-07  Bruno Haible  <bruno@clisp.org>
16229
16230         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
16231         * floor.c (TWO_MANT_DIG): Likewise.
16232         * ceil.c (TWO_MANT_DIG): Likewise.
16233         Reported by Ben Pfaff.
16234
16235 2007-10-07  Bruno Haible  <bruno@clisp.org>
16236
16237         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
16238         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
16239         * lib/frexp.c (FUNC): Likewise.
16240         * lib/printf-frexp.h (printf_frexp): Likewise.
16241         * lib/printf-frexpl.h (printf_frexpl): Likewise.
16242         * lib/printf-frexp.c (FUNC): Likewise.
16243         Suggested by Jim Meyering.
16244
16245 2007-10-07  Jim Meyering  <meyering@redhat.com>
16246
16247         Make xnanosleep's integer overflow test more robust.
16248         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
16249         so that gcc-4.3.0 doesn't optimize away this test for overflow.
16250
16251 2007-10-07  Bruno Haible  <bruno@clisp.org>
16252
16253         * NEWS: Mention the license change.
16254
16255         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
16256         abbreviations in the modules files.
16257
16258         Change copyright notice from GPLv2+ to GPLv3+.
16259         * README: Change copyright notice.
16260         * MODULES.html.sh: Likewise.
16261         * build-aux/bootstrap.conf: Likewise.
16262         * build-aux/config.libpath: Likewise.
16263         * build-aux/csharpcomp.sh.in: Likewise.
16264         * build-aux/csharpexec.sh.in: Likewise.
16265         * build-aux/install-reloc: Likewise.
16266         * build-aux/javacomp.sh.in: Likewise.
16267         * build-aux/javaexec.sh.in: Likewise.
16268         * build-aux/ldd.sh.in: Likewise.
16269         * build-aux/reloc-ldflags: Likewise.
16270         * build-aux/relocatable.sh.in: Likewise.
16271         * build-aux/x-to-1.in: Likewise.
16272         * check-module: Likewise.
16273         * config/srclistvars.sh: Likewise.
16274         * gnulib-tool: Likewise.
16275         * lib/acl-internal.h: Likewise.
16276         * lib/acl.c: Likewise.
16277         * lib/acl.h: Likewise.
16278         * lib/acl_entries.c: Likewise.
16279         * lib/areadlink-with-size.c: Likewise.
16280         * lib/areadlink.c: Likewise.
16281         * lib/areadlink.h: Likewise.
16282         * lib/argmatch.c: Likewise.
16283         * lib/argmatch.h: Likewise.
16284         * lib/argp-ba.c: Likewise.
16285         * lib/argp-eexst.c: Likewise.
16286         * lib/argp-fmtstream.c: Likewise.
16287         * lib/argp-fmtstream.h: Likewise.
16288         * lib/argp-fs-xinl.c: Likewise.
16289         * lib/argp-help.c: Likewise.
16290         * lib/argp-namefrob.h: Likewise.
16291         * lib/argp-parse.c: Likewise.
16292         * lib/argp-pin.c: Likewise.
16293         * lib/argp-pv.c: Likewise.
16294         * lib/argp-pvh.c: Likewise.
16295         * lib/argp-xinl.c: Likewise.
16296         * lib/argp.h: Likewise.
16297         * lib/at-func.c: Likewise.
16298         * lib/atanl.c: Likewise.
16299         * lib/backupfile.c: Likewise.
16300         * lib/backupfile.h: Likewise.
16301         * lib/basename.c: Likewise.
16302         * lib/binary-io.h: Likewise.
16303         * lib/byteswap.in.h: Likewise.
16304         * lib/c-stack.c: Likewise.
16305         * lib/c-stack.h: Likewise.
16306         * lib/c-strcasestr.c: Likewise.
16307         * lib/c-strcasestr.h: Likewise.
16308         * lib/c-strstr.c: Likewise.
16309         * lib/c-strstr.h: Likewise.
16310         * lib/c-strtod.c: Likewise.
16311         * lib/calloc.c: Likewise.
16312         * lib/canon-host.c: Likewise.
16313         * lib/canon-host.h: Likewise.
16314         * lib/canonicalize-lgpl.c: Likewise.
16315         * lib/canonicalize.c: Likewise.
16316         * lib/canonicalize.h: Likewise.
16317         * lib/ceil.c: Likewise.
16318         * lib/ceilf.c: Likewise.
16319         * lib/ceill.c: Likewise.
16320         * lib/chdir-long.c: Likewise.
16321         * lib/chdir-long.h: Likewise.
16322         * lib/chdir-safer.c: Likewise.
16323         * lib/chdir-safer.h: Likewise.
16324         * lib/chown.c: Likewise.
16325         * lib/classpath.c: Likewise.
16326         * lib/classpath.h: Likewise.
16327         * lib/clean-temp.c: Likewise.
16328         * lib/clean-temp.h: Likewise.
16329         * lib/cloexec.c: Likewise.
16330         * lib/close-stream.c: Likewise.
16331         * lib/closein.c: Likewise.
16332         * lib/closein.h: Likewise.
16333         * lib/closeout.c: Likewise.
16334         * lib/closeout.h: Likewise.
16335         * lib/concat-filename.c: Likewise.
16336         * lib/copy-file.c: Likewise.
16337         * lib/copy-file.h: Likewise.
16338         * lib/count-one-bits.h: Likewise.
16339         * lib/crc.c: Likewise.
16340         * lib/crc.h: Likewise.
16341         * lib/creat-safer.c: Likewise.
16342         * lib/csharpcomp.c: Likewise.
16343         * lib/csharpcomp.h: Likewise.
16344         * lib/csharpexec.c: Likewise.
16345         * lib/csharpexec.h: Likewise.
16346         * lib/cycle-check.c: Likewise.
16347         * lib/cycle-check.h: Likewise.
16348         * lib/diacrit.c: Likewise.
16349         * lib/diacrit.h: Likewise.
16350         * lib/diffseq.h: Likewise.
16351         * lib/dirchownmod.c: Likewise.
16352         * lib/dirent.in.h: Likewise.
16353         * lib/dirfd.c: Likewise.
16354         * lib/dirfd.h: Likewise.
16355         * lib/dirname.c: Likewise.
16356         * lib/dirname.h: Likewise.
16357         * lib/dummy.c: Likewise.
16358         * lib/dup-safer.c: Likewise.
16359         * lib/dup2.c: Likewise.
16360         * lib/eealloc.h: Likewise.
16361         * lib/error.c: Likewise.
16362         * lib/error.h: Likewise.
16363         * lib/euidaccess.c: Likewise.
16364         * lib/exclude.c: Likewise.
16365         * lib/exclude.h: Likewise.
16366         * lib/execute.c: Likewise.
16367         * lib/execute.h: Likewise.
16368         * lib/exitfail.c: Likewise.
16369         * lib/exitfail.h: Likewise.
16370         * lib/expl.c: Likewise.
16371         * lib/fatal-signal.c: Likewise.
16372         * lib/fatal-signal.h: Likewise.
16373         * lib/fbufmode.c: Likewise.
16374         * lib/fbufmode.h: Likewise.
16375         * lib/fchdir.c: Likewise.
16376         * lib/fchmodat.c: Likewise.
16377         * lib/fchownat.c: Likewise.
16378         * lib/fcntl--.h: Likewise.
16379         * lib/fcntl-safer.h: Likewise.
16380         * lib/fcntl.in.h: Likewise.
16381         * lib/fd-safer.c: Likewise.
16382         * lib/fflush.c: Likewise.
16383         * lib/file-has-acl.c: Likewise.
16384         * lib/file-set.c: Likewise.
16385         * lib/file-type.c: Likewise.
16386         * lib/file-type.h: Likewise.
16387         * lib/fileblocks.c: Likewise.
16388         * lib/filemode.c: Likewise.
16389         * lib/filemode.h: Likewise.
16390         * lib/filename.h: Likewise.
16391         * lib/filenamecat.c: Likewise.
16392         * lib/filenamecat.h: Likewise.
16393         * lib/findprog.c: Likewise.
16394         * lib/findprog.h: Likewise.
16395         * lib/float.in.h: Likewise.
16396         * lib/floor.c: Likewise.
16397         * lib/floorf.c: Likewise.
16398         * lib/floorl.c: Likewise.
16399         * lib/fopen-safer.c: Likewise.
16400         * lib/fopen.c: Likewise.
16401         * lib/fpending.c: Likewise.
16402         * lib/fpending.h: Likewise.
16403         * lib/fprintf.c: Likewise.
16404         * lib/fprintftime.h: Likewise.
16405         * lib/fpucw.h: Likewise.
16406         * lib/fpurge.c: Likewise.
16407         * lib/fpurge.h: Likewise.
16408         * lib/freadable.c: Likewise.
16409         * lib/freadable.h: Likewise.
16410         * lib/freadahead.c: Likewise.
16411         * lib/freadahead.h: Likewise.
16412         * lib/freading.c: Likewise.
16413         * lib/freading.h: Likewise.
16414         * lib/free.c: Likewise.
16415         * lib/freopen.c: Likewise.
16416         * lib/frexp.c: Likewise.
16417         * lib/frexpl.c: Likewise.
16418         * lib/fseek.c: Likewise.
16419         * lib/fseterr.c: Likewise.
16420         * lib/fseterr.h: Likewise.
16421         * lib/fstatat.c: Likewise.
16422         * lib/fstrcmp.c: Likewise.
16423         * lib/fstrcmp.h: Likewise.
16424         * lib/fsusage.c: Likewise.
16425         * lib/fsusage.h: Likewise.
16426         * lib/ftell.c: Likewise.
16427         * lib/ftello.c: Likewise.
16428         * lib/fts-cycle.c: Likewise.
16429         * lib/fts.c: Likewise.
16430         * lib/fts_.h: Likewise.
16431         * lib/full-read.c: Likewise.
16432         * lib/full-read.h: Likewise.
16433         * lib/full-write.c: Likewise.
16434         * lib/full-write.h: Likewise.
16435         * lib/fwritable.c: Likewise.
16436         * lib/fwritable.h: Likewise.
16437         * lib/fwriteerror.c: Likewise.
16438         * lib/fwriteerror.h: Likewise.
16439         * lib/fwriting.c: Likewise.
16440         * lib/fwriting.h: Likewise.
16441         * lib/gcd.c: Likewise.
16442         * lib/gcd.h: Likewise.
16443         * lib/getcwd.c: Likewise.
16444         * lib/getdate.h: Likewise.
16445         * lib/getdate.y: Likewise.
16446         * lib/getdomainname.c: Likewise.
16447         * lib/getdomainname.h: Likewise.
16448         * lib/getgroups.c: Likewise.
16449         * lib/gethostname.c: Likewise.
16450         * lib/gethrxtime.c: Likewise.
16451         * lib/gethrxtime.h: Likewise.
16452         * lib/getloadavg.c: Likewise.
16453         * lib/getndelim2.c: Likewise.
16454         * lib/getndelim2.h: Likewise.
16455         * lib/getnline.c: Likewise.
16456         * lib/getnline.h: Likewise.
16457         * lib/getopt.c: Likewise.
16458         * lib/getopt.in.h: Likewise.
16459         * lib/getopt1.c: Likewise.
16460         * lib/getopt_int.h: Likewise.
16461         * lib/getpagesize.h: Likewise.
16462         * lib/getsubopt.c: Likewise.
16463         * lib/gettime.c: Likewise.
16464         * lib/getugroups.c: Likewise.
16465         * lib/getugroups.h: Likewise.
16466         * lib/getusershell.c: Likewise.
16467         * lib/gl_anyavltree_list1.h: Likewise.
16468         * lib/gl_anyavltree_list2.h: Likewise.
16469         * lib/gl_anyhash_list1.h: Likewise.
16470         * lib/gl_anyhash_list2.h: Likewise.
16471         * lib/gl_anylinked_list1.h: Likewise.
16472         * lib/gl_anylinked_list2.h: Likewise.
16473         * lib/gl_anyrbtree_list1.h: Likewise.
16474         * lib/gl_anyrbtree_list2.h: Likewise.
16475         * lib/gl_anytree_list1.h: Likewise.
16476         * lib/gl_anytree_list2.h: Likewise.
16477         * lib/gl_anytree_oset.h: Likewise.
16478         * lib/gl_anytreehash_list1.h: Likewise.
16479         * lib/gl_anytreehash_list2.h: Likewise.
16480         * lib/gl_array_list.c: Likewise.
16481         * lib/gl_array_list.h: Likewise.
16482         * lib/gl_array_oset.c: Likewise.
16483         * lib/gl_array_oset.h: Likewise.
16484         * lib/gl_avltree_list.c: Likewise.
16485         * lib/gl_avltree_list.h: Likewise.
16486         * lib/gl_avltree_oset.c: Likewise.
16487         * lib/gl_avltree_oset.h: Likewise.
16488         * lib/gl_avltreehash_list.c: Likewise.
16489         * lib/gl_avltreehash_list.h: Likewise.
16490         * lib/gl_carray_list.c: Likewise.
16491         * lib/gl_carray_list.h: Likewise.
16492         * lib/gl_linked_list.c: Likewise.
16493         * lib/gl_linked_list.h: Likewise.
16494         * lib/gl_linkedhash_list.c: Likewise.
16495         * lib/gl_linkedhash_list.h: Likewise.
16496         * lib/gl_list.c: Likewise.
16497         * lib/gl_list.h: Likewise.
16498         * lib/gl_oset.c: Likewise.
16499         * lib/gl_oset.h: Likewise.
16500         * lib/gl_rbtree_list.c: Likewise.
16501         * lib/gl_rbtree_list.h: Likewise.
16502         * lib/gl_rbtree_oset.c: Likewise.
16503         * lib/gl_rbtree_oset.h: Likewise.
16504         * lib/gl_rbtreehash_list.c: Likewise.
16505         * lib/gl_rbtreehash_list.h: Likewise.
16506         * lib/gl_sublist.c: Likewise.
16507         * lib/gl_sublist.h: Likewise.
16508         * lib/group-member.c: Likewise.
16509         * lib/group-member.h: Likewise.
16510         * lib/hard-locale.c: Likewise.
16511         * lib/hard-locale.h: Likewise.
16512         * lib/hash-pjw.c: Likewise.
16513         * lib/hash-pjw.h: Likewise.
16514         * lib/hash-triple.c: Likewise.
16515         * lib/hash.c: Likewise.
16516         * lib/hash.h: Likewise.
16517         * lib/human.c: Likewise.
16518         * lib/human.h: Likewise.
16519         * lib/i-ring.c: Likewise.
16520         * lib/i-ring.h: Likewise.
16521         * lib/idcache.c: Likewise.
16522         * lib/imaxabs.c: Likewise.
16523         * lib/imaxdiv.c: Likewise.
16524         * lib/inet_pton.c: Likewise.
16525         * lib/inet_pton.h: Likewise.
16526         * lib/intprops.h: Likewise.
16527         * lib/inttostr.c: Likewise.
16528         * lib/inttostr.h: Likewise.
16529         * lib/inttypes.in.h: Likewise.
16530         * lib/isapipe.c: Likewise.
16531         * lib/isdir.c: Likewise.
16532         * lib/isnan.c: Likewise.
16533         * lib/isnan.h: Likewise.
16534         * lib/isnanf.c: Likewise.
16535         * lib/isnanf.h: Likewise.
16536         * lib/isnanl-nolibm.h: Likewise.
16537         * lib/isnanl.c: Likewise.
16538         * lib/isnanl.h: Likewise.
16539         * lib/javacomp.c: Likewise.
16540         * lib/javacomp.h: Likewise.
16541         * lib/javaexec.c: Likewise.
16542         * lib/javaexec.h: Likewise.
16543         * lib/javaversion.c: Likewise.
16544         * lib/javaversion.h: Likewise.
16545         * lib/javaversion.java: Likewise.
16546         * lib/lbrkprop.h: Likewise.
16547         * lib/lchmod.h: Likewise.
16548         * lib/lchown.c: Likewise.
16549         * lib/ldexpl.c: Likewise.
16550         * lib/linebreak.c: Likewise.
16551         * lib/linebreak.h: Likewise.
16552         * lib/linebuffer.c: Likewise.
16553         * lib/linebuffer.h: Likewise.
16554         * lib/locale.in.h: Likewise.
16555         * lib/logl.c: Likewise.
16556         * lib/long-options.c: Likewise.
16557         * lib/long-options.h: Likewise.
16558         * lib/lstat.c: Likewise.
16559         * lib/lstat.h: Likewise.
16560         * lib/math.in.h: Likewise.
16561         * lib/mbchar.c: Likewise.
16562         * lib/mbchar.h: Likewise.
16563         * lib/mbfile.h: Likewise.
16564         * lib/mbiter.h: Likewise.
16565         * lib/mbscasecmp.c: Likewise.
16566         * lib/mbscasestr.c: Likewise.
16567         * lib/mbschr.c: Likewise.
16568         * lib/mbscspn.c: Likewise.
16569         * lib/mbslen.c: Likewise.
16570         * lib/mbsncasecmp.c: Likewise.
16571         * lib/mbsnlen.c: Likewise.
16572         * lib/mbspbrk.c: Likewise.
16573         * lib/mbspcasecmp.c: Likewise.
16574         * lib/mbsrchr.c: Likewise.
16575         * lib/mbssep.c: Likewise.
16576         * lib/mbsspn.c: Likewise.
16577         * lib/mbsstr.c: Likewise.
16578         * lib/mbstok_r.c: Likewise.
16579         * lib/mbswidth.c: Likewise.
16580         * lib/mbswidth.h: Likewise.
16581         * lib/mbuiter.h: Likewise.
16582         * lib/memcasecmp.c: Likewise.
16583         * lib/memcasecmp.h: Likewise.
16584         * lib/memchr.c: Likewise.
16585         * lib/memcmp.c: Likewise.
16586         * lib/memcoll.c: Likewise.
16587         * lib/memcoll.h: Likewise.
16588         * lib/memcpy.c: Likewise.
16589         * lib/memrchr.c: Likewise.
16590         * lib/mkancesdirs.c: Likewise.
16591         * lib/mkdir-p.c: Likewise.
16592         * lib/mkdir-p.h: Likewise.
16593         * lib/mkdir.c: Likewise.
16594         * lib/mkdirat.c: Likewise.
16595         * lib/mkdtemp.c: Likewise.
16596         * lib/mkstemp-safer.c: Likewise.
16597         * lib/mkstemp.c: Likewise.
16598         * lib/modechange.c: Likewise.
16599         * lib/modechange.h: Likewise.
16600         * lib/mountlist.c: Likewise.
16601         * lib/mountlist.h: Likewise.
16602         * lib/mpsort.c: Likewise.
16603         * lib/nanosleep.c: Likewise.
16604         * lib/obstack.c: Likewise.
16605         * lib/obstack.h: Likewise.
16606         * lib/open-safer.c: Likewise.
16607         * lib/open.c: Likewise.
16608         * lib/openat-die.c: Likewise.
16609         * lib/openat-priv.h: Likewise.
16610         * lib/openat-proc.c: Likewise.
16611         * lib/openat.c: Likewise.
16612         * lib/openat.h: Likewise.
16613         * lib/pagealign_alloc.c: Likewise.
16614         * lib/pagealign_alloc.h: Likewise.
16615         * lib/physmem.c: Likewise.
16616         * lib/physmem.h: Likewise.
16617         * lib/pipe-safer.c: Likewise.
16618         * lib/pipe.c: Likewise.
16619         * lib/pipe.h: Likewise.
16620         * lib/posixtm.c: Likewise.
16621         * lib/posixtm.h: Likewise.
16622         * lib/posixver.c: Likewise.
16623         * lib/printf-frexp.c: Likewise.
16624         * lib/printf-frexp.h: Likewise.
16625         * lib/printf-frexpl.c: Likewise.
16626         * lib/printf-frexpl.h: Likewise.
16627         * lib/printf.c: Likewise.
16628         * lib/progname.c: Likewise.
16629         * lib/progname.h: Likewise.
16630         * lib/progreloc.c: Likewise.
16631         * lib/putenv.c: Likewise.
16632         * lib/quote.c: Likewise.
16633         * lib/quote.h: Likewise.
16634         * lib/quotearg.c: Likewise.
16635         * lib/quotearg.h: Likewise.
16636         * lib/raise.c: Likewise.
16637         * lib/readline.c: Likewise.
16638         * lib/readline.h: Likewise.
16639         * lib/readlink.c: Likewise.
16640         * lib/readtokens.c: Likewise.
16641         * lib/readtokens.h: Likewise.
16642         * lib/readtokens0.c: Likewise.
16643         * lib/readtokens0.h: Likewise.
16644         * lib/readutmp.c: Likewise.
16645         * lib/readutmp.h: Likewise.
16646         * lib/realloc.c: Likewise.
16647         * lib/relocwrapper.c: Likewise.
16648         * lib/rename-dest-slash.c: Likewise.
16649         * lib/rename.c: Likewise.
16650         * lib/rmdir.c: Likewise.
16651         * lib/rpmatch.c: Likewise.
16652         * lib/safe-read.c: Likewise.
16653         * lib/safe-read.h: Likewise.
16654         * lib/safe-write.c: Likewise.
16655         * lib/safe-write.h: Likewise.
16656         * lib/same-inode.h: Likewise.
16657         * lib/same.c: Likewise.
16658         * lib/same.h: Likewise.
16659         * lib/save-cwd.c: Likewise.
16660         * lib/save-cwd.h: Likewise.
16661         * lib/savedir.c: Likewise.
16662         * lib/savedir.h: Likewise.
16663         * lib/savewd.c: Likewise.
16664         * lib/savewd.h: Likewise.
16665         * lib/search.in.h: Likewise.
16666         * lib/setenv.c: Likewise.
16667         * lib/setenv.h: Likewise.
16668         * lib/settime.c: Likewise.
16669         * lib/sh-quote.c: Likewise.
16670         * lib/sh-quote.h: Likewise.
16671         * lib/sig2str.c: Likewise.
16672         * lib/sig2str.h: Likewise.
16673         * lib/signal.in.h: Likewise.
16674         * lib/signbitd.c: Likewise.
16675         * lib/signbitf.c: Likewise.
16676         * lib/signbitl.c: Likewise.
16677         * lib/sigprocmask.c: Likewise.
16678         * lib/sincosl.c: Likewise.
16679         * lib/sleep.c: Likewise.
16680         * lib/sprintf.c: Likewise.
16681         * lib/sqrtl.c: Likewise.
16682         * lib/stat-time.h: Likewise.
16683         * lib/stdio--.h: Likewise.
16684         * lib/stdio-safer.h: Likewise.
16685         * lib/stdlib--.h: Likewise.
16686         * lib/stdlib-safer.h: Likewise.
16687         * lib/stdlib.in.h: Likewise.
16688         * lib/stpcpy.c: Likewise.
16689         * lib/stpncpy.c: Likewise.
16690         * lib/strchrnul.c: Likewise.
16691         * lib/strcspn.c: Likewise.
16692         * lib/strerror.c: Likewise.
16693         * lib/strftime.c: Likewise.
16694         * lib/strftime.h: Likewise.
16695         * lib/striconveh.c: Likewise.
16696         * lib/striconveh.h: Likewise.
16697         * lib/striconveha.c: Likewise.
16698         * lib/striconveha.h: Likewise.
16699         * lib/stripslash.c: Likewise.
16700         * lib/strnlen1.c: Likewise.
16701         * lib/strnlen1.h: Likewise.
16702         * lib/strtod.c: Likewise.
16703         * lib/strtoimax.c: Likewise.
16704         * lib/strtok_r.c: Likewise.
16705         * lib/strtol.c: Likewise.
16706         * lib/strtoll.c: Likewise.
16707         * lib/strtoul.c: Likewise.
16708         * lib/strtoull.c: Likewise.
16709         * lib/sysexits.in.h: Likewise.
16710         * lib/tempname.c: Likewise.
16711         * lib/tempname.h: Likewise.
16712         * lib/timespec.h: Likewise.
16713         * lib/tls.c: Likewise.
16714         * lib/tls.h: Likewise.
16715         * lib/tmpdir.c: Likewise.
16716         * lib/tmpdir.h: Likewise.
16717         * lib/tmpfile-safer.c: Likewise.
16718         * lib/tmpfile.c: Likewise.
16719         * lib/trigl.c: Likewise.
16720         * lib/trigl.h: Likewise.
16721         * lib/trim.c: Likewise.
16722         * lib/trim.h: Likewise.
16723         * lib/trunc.c: Likewise.
16724         * lib/truncf.c: Likewise.
16725         * lib/truncl.c: Likewise.
16726         * lib/tsearch.c: Likewise.
16727         * lib/unicodeio.c: Likewise.
16728         * lib/unicodeio.h: Likewise.
16729         * lib/unistd--.h: Likewise.
16730         * lib/unistd-safer.h: Likewise.
16731         * lib/unistdio/ulc-fprintf.c: Likewise.
16732         * lib/unistdio/ulc-vfprintf.c: Likewise.
16733         * lib/unlinkdir.c: Likewise.
16734         * lib/unlinkdir.h: Likewise.
16735         * lib/unlocked-io.h: Likewise.
16736         * lib/unsetenv.c: Likewise.
16737         * lib/userspec.c: Likewise.
16738         * lib/utime.c: Likewise.
16739         * lib/utimecmp.c: Likewise.
16740         * lib/utimecmp.h: Likewise.
16741         * lib/utimens.c: Likewise.
16742         * lib/verify.h: Likewise.
16743         * lib/verror.c: Likewise.
16744         * lib/verror.h: Likewise.
16745         * lib/version-etc-fsf.c: Likewise.
16746         * lib/version-etc.c: Likewise.
16747         * lib/version-etc.h: Likewise.
16748         * lib/vfprintf.c: Likewise.
16749         * lib/vprintf.c: Likewise.
16750         * lib/vsprintf.c: Likewise.
16751         * lib/w32spawn.h: Likewise.
16752         * lib/wait-process.c: Likewise.
16753         * lib/wait-process.h: Likewise.
16754         * lib/wcwidth.c: Likewise.
16755         * lib/write-any-file.c: Likewise.
16756         * lib/xalloc-die.c: Likewise.
16757         * lib/xalloc.h: Likewise.
16758         * lib/xasprintf.c: Likewise.
16759         * lib/xgetcwd.c: Likewise.
16760         * lib/xgetcwd.h: Likewise.
16761         * lib/xgetdomainname.c: Likewise.
16762         * lib/xgetdomainname.h: Likewise.
16763         * lib/xgethostname.c: Likewise.
16764         * lib/xmalloc.c: Likewise.
16765         * lib/xmalloca.c: Likewise.
16766         * lib/xmalloca.h: Likewise.
16767         * lib/xmemcoll.c: Likewise.
16768         * lib/xnanosleep.c: Likewise.
16769         * lib/xreadlink.c: Likewise.
16770         * lib/xreadlink.h: Likewise.
16771         * lib/xsetenv.c: Likewise.
16772         * lib/xsetenv.h: Likewise.
16773         * lib/xstriconv.c: Likewise.
16774         * lib/xstriconv.h: Likewise.
16775         * lib/xstrndup.c: Likewise.
16776         * lib/xstrndup.h: Likewise.
16777         * lib/xstrtod.c: Likewise.
16778         * lib/xstrtod.h: Likewise.
16779         * lib/xstrtol-error.c: Likewise.
16780         * lib/xstrtol.c: Likewise.
16781         * lib/xstrtol.h: Likewise.
16782         * lib/xtime.h: Likewise.
16783         * lib/xvasprintf.c: Likewise.
16784         * lib/xvasprintf.h: Likewise.
16785         * lib/yesno.c: Likewise.
16786         * lib/yesno.h: Likewise.
16787         * posix-modules: Likewise.
16788         * tests/test-alloca-opt.c: Likewise.
16789         * tests/test-arcfour.c: Likewise.
16790         * tests/test-arctwo.c: Likewise.
16791         * tests/test-argmatch.c: Likewise.
16792         * tests/test-argp-2.sh: Likewise.
16793         * tests/test-argp.c: Likewise.
16794         * tests/test-arpa_inet.c: Likewise.
16795         * tests/test-array_list.c: Likewise.
16796         * tests/test-array_oset.c: Likewise.
16797         * tests/test-atexit.c: Likewise.
16798         * tests/test-avltree_list.c: Likewise.
16799         * tests/test-avltree_oset.c: Likewise.
16800         * tests/test-avltreehash_list.c: Likewise.
16801         * tests/test-base64.c: Likewise.
16802         * tests/test-binary-io.c: Likewise.
16803         * tests/test-byteswap.c: Likewise.
16804         * tests/test-c-ctype.c: Likewise.
16805         * tests/test-c-strcasecmp.c: Likewise.
16806         * tests/test-c-strcasestr.c: Likewise.
16807         * tests/test-c-strncasecmp.c: Likewise.
16808         * tests/test-c-strstr.c: Likewise.
16809         * tests/test-canonicalize-lgpl.c: Likewise.
16810         * tests/test-canonicalize.c: Likewise.
16811         * tests/test-carray_list.c: Likewise.
16812         * tests/test-ceilf.c: Likewise.
16813         * tests/test-ceill.c: Likewise.
16814         * tests/test-count-one-bits.c: Likewise.
16815         * tests/test-crc.c: Likewise.
16816         * tests/test-dirname.c: Likewise.
16817         * tests/test-fbufmode.c: Likewise.
16818         * tests/test-fcntl.c: Likewise.
16819         * tests/test-fflush.c: Likewise.
16820         * tests/test-floorf.c: Likewise.
16821         * tests/test-floorl.c: Likewise.
16822         * tests/test-fopen.c: Likewise.
16823         * tests/test-fprintf-posix.c: Likewise.
16824         * tests/test-fprintf-posix.h: Likewise.
16825         * tests/test-fpurge.c: Likewise.
16826         * tests/test-freadable.c: Likewise.
16827         * tests/test-freadahead.c: Likewise.
16828         * tests/test-freading.c: Likewise.
16829         * tests/test-freopen.c: Likewise.
16830         * tests/test-frexp.c: Likewise.
16831         * tests/test-frexpl.c: Likewise.
16832         * tests/test-fseek.c: Likewise.
16833         * tests/test-fseeko.c: Likewise.
16834         * tests/test-fseterr.c: Likewise.
16835         * tests/test-fstrcmp.c: Likewise.
16836         * tests/test-ftell.c: Likewise.
16837         * tests/test-ftello.c: Likewise.
16838         * tests/test-fwritable.c: Likewise.
16839         * tests/test-fwriting.c: Likewise.
16840         * tests/test-getaddrinfo.c: Likewise.
16841         * tests/test-getpass.c: Likewise.
16842         * tests/test-gettimeofday.c: Likewise.
16843         * tests/test-hmac-md5.c: Likewise.
16844         * tests/test-hmac-sha1.c: Likewise.
16845         * tests/test-iconv.c: Likewise.
16846         * tests/test-iconvme.c: Likewise.
16847         * tests/test-inttypes.c: Likewise.
16848         * tests/test-isnan.c: Likewise.
16849         * tests/test-isnanf.c: Likewise.
16850         * tests/test-isnanl-nolibm.c: Likewise.
16851         * tests/test-isnanl.c: Likewise.
16852         * tests/test-isnanl.h: Likewise.
16853         * tests/test-ldexpl.c: Likewise.
16854         * tests/test-linked_list.c: Likewise.
16855         * tests/test-linkedhash_list.c: Likewise.
16856         * tests/test-locale.c: Likewise.
16857         * tests/test-localename.c: Likewise.
16858         * tests/test-lock.c: Likewise.
16859         * tests/test-lseek.c: Likewise.
16860         * tests/test-malloca.c: Likewise.
16861         * tests/test-math.c: Likewise.
16862         * tests/test-mbscasecmp.c: Likewise.
16863         * tests/test-mbscasestr1.c: Likewise.
16864         * tests/test-mbscasestr2.c: Likewise.
16865         * tests/test-mbscasestr3.c: Likewise.
16866         * tests/test-mbscasestr4.c: Likewise.
16867         * tests/test-mbschr.c: Likewise.
16868         * tests/test-mbscspn.c: Likewise.
16869         * tests/test-mbsncasecmp.c: Likewise.
16870         * tests/test-mbspbrk.c: Likewise.
16871         * tests/test-mbspcasecmp.c: Likewise.
16872         * tests/test-mbsrchr.c: Likewise.
16873         * tests/test-mbsspn.c: Likewise.
16874         * tests/test-mbsstr1.c: Likewise.
16875         * tests/test-mbsstr2.c: Likewise.
16876         * tests/test-mbsstr3.c: Likewise.
16877         * tests/test-md5.c: Likewise.
16878         * tests/test-memmem.c: Likewise.
16879         * tests/test-netinet_in.c: Likewise.
16880         * tests/test-open.c: Likewise.
16881         * tests/test-printf-frexp.c: Likewise.
16882         * tests/test-printf-frexpl.c: Likewise.
16883         * tests/test-printf-posix.c: Likewise.
16884         * tests/test-printf-posix.h: Likewise.
16885         * tests/test-rbtree_list.c: Likewise.
16886         * tests/test-rbtree_oset.c: Likewise.
16887         * tests/test-rbtreehash_list.c: Likewise.
16888         * tests/test-read-file.c: Likewise.
16889         * tests/test-rijndael.c: Likewise.
16890         * tests/test-search.c: Likewise.
16891         * tests/test-signbit.c: Likewise.
16892         * tests/test-sleep.c: Likewise.
16893         * tests/test-snprintf-posix.c: Likewise.
16894         * tests/test-snprintf-posix.h: Likewise.
16895         * tests/test-snprintf.c: Likewise.
16896         * tests/test-sprintf-posix.c: Likewise.
16897         * tests/test-sprintf-posix.h: Likewise.
16898         * tests/test-stat-time.c: Likewise.
16899         * tests/test-stdbool.c: Likewise.
16900         * tests/test-stdint.c: Likewise.
16901         * tests/test-stdio.c: Likewise.
16902         * tests/test-stdlib.c: Likewise.
16903         * tests/test-stpncpy.c: Likewise.
16904         * tests/test-strcasestr.c: Likewise.
16905         * tests/test-striconv.c: Likewise.
16906         * tests/test-striconveh.c: Likewise.
16907         * tests/test-striconveha.c: Likewise.
16908         * tests/test-string.c: Likewise.
16909         * tests/test-sys_select.c: Likewise.
16910         * tests/test-sys_socket.c: Likewise.
16911         * tests/test-sys_stat.c: Likewise.
16912         * tests/test-sys_time.c: Likewise.
16913         * tests/test-sysexits.c: Likewise.
16914         * tests/test-time.c: Likewise.
16915         * tests/test-tls.c: Likewise.
16916         * tests/test-trunc.c: Likewise.
16917         * tests/test-truncf.c: Likewise.
16918         * tests/test-truncl.c: Likewise.
16919         * tests/test-unistd.c: Likewise.
16920         * tests/test-vasnprintf-posix.c: Likewise.
16921         * tests/test-vasnprintf-posix2.c: Likewise.
16922         * tests/test-vasnprintf.c: Likewise.
16923         * tests/test-vasprintf-posix.c: Likewise.
16924         * tests/test-vasprintf.c: Likewise.
16925         * tests/test-verify.c: Likewise.
16926         * tests/test-vfprintf-posix.c: Likewise.
16927         * tests/test-vprintf-posix.c: Likewise.
16928         * tests/test-vsnprintf-posix.c: Likewise.
16929         * tests/test-vsnprintf.c: Likewise.
16930         * tests/test-vsprintf-posix.c: Likewise.
16931         * tests/test-wchar.c: Likewise.
16932         * tests/test-wctype.c: Likewise.
16933         * tests/test-wcwidth.c: Likewise.
16934         * tests/test-xstrtol.c: Likewise.
16935         * tests/test-xvasprintf.c: Likewise.
16936         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
16937         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
16938         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
16939         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
16940         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
16941         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
16942         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
16943         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
16944         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
16945         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
16946         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
16947         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
16948         * tests/uniname/test-uninames.c: Likewise.
16949         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
16950         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
16951         * tests/unistdio/test-u16-printf1.h: Likewise.
16952         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
16953         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
16954         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
16955         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
16956         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
16957         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
16958         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
16959         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
16960         * tests/unistdio/test-u32-printf1.h: Likewise.
16961         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
16962         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
16963         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
16964         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
16965         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
16966         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
16967         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
16968         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
16969         * tests/unistdio/test-u8-printf1.h: Likewise.
16970         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
16971         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
16972         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
16973         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
16974         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
16975         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
16976         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
16977         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
16978         * tests/unistdio/test-ulc-printf1.h: Likewise.
16979         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
16980         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
16981         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
16982         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
16983         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
16984         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
16985         * tests/uniwidth/test-u16-strwidth.c: Likewise.
16986         * tests/uniwidth/test-u16-width.c: Likewise.
16987         * tests/uniwidth/test-u32-strwidth.c: Likewise.
16988         * tests/uniwidth/test-u32-width.c: Likewise.
16989         * tests/uniwidth/test-u8-strwidth.c: Likewise.
16990         * tests/uniwidth/test-u8-width.c: Likewise.
16991         * tests/uniwidth/test-uc_width.c: Likewise.
16992         * config/srclist-update: Likewise.
16993         (fixlicense): Update to GPLv3+.
16994
16995         Change copyright notice from LGPLv2.1+ to LGPLv3+.
16996         * tests/test-tsearch.c: Change copyright notice.
16997
16998         Change copyright notice from LGPLv2.0+ to LGPLv3+.
16999         * lib/c-strcaseeq.h: Change copyright notice.
17000         * lib/streq.h: Likewise.
17001         * lib/uniconv.h: Likewise.
17002         * lib/uniconv/u-conv-from-enc.h: Likewise.
17003         * lib/uniconv/u-conv-to-enc.h: Likewise.
17004         * lib/uniconv/u-strconv-from-enc.h: Likewise.
17005         * lib/uniconv/u-strconv-to-enc.h: Likewise.
17006         * lib/uniconv/u16-conv-from-enc.c: Likewise.
17007         * lib/uniconv/u16-conv-to-enc.c: Likewise.
17008         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
17009         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
17010         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
17011         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
17012         * lib/uniconv/u32-conv-from-enc.c: Likewise.
17013         * lib/uniconv/u32-conv-to-enc.c: Likewise.
17014         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
17015         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
17016         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
17017         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
17018         * lib/uniconv/u8-conv-from-enc.c: Likewise.
17019         * lib/uniconv/u8-conv-to-enc.c: Likewise.
17020         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
17021         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
17022         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
17023         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
17024         * lib/uniname.h: Likewise.
17025         * lib/uniname/uniname.c: Likewise.
17026         * lib/unistdio.h: Likewise.
17027         * lib/unistdio/u-asnprintf.h: Likewise.
17028         * lib/unistdio/u-asprintf.h: Likewise.
17029         * lib/unistdio/u-printf-args.c: Likewise.
17030         * lib/unistdio/u-printf-args.h: Likewise.
17031         * lib/unistdio/u-printf-parse.h: Likewise.
17032         * lib/unistdio/u-snprintf.h: Likewise.
17033         * lib/unistdio/u-sprintf.h: Likewise.
17034         * lib/unistdio/u-vasprintf.h: Likewise.
17035         * lib/unistdio/u-vsnprintf.h: Likewise.
17036         * lib/unistdio/u-vsprintf.h: Likewise.
17037         * lib/unistdio/u16-asnprintf.c: Likewise.
17038         * lib/unistdio/u16-asprintf.c: Likewise.
17039         * lib/unistdio/u16-printf-parse.c: Likewise.
17040         * lib/unistdio/u16-snprintf.c: Likewise.
17041         * lib/unistdio/u16-sprintf.c: Likewise.
17042         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
17043         * lib/unistdio/u16-u16-asprintf.c: Likewise.
17044         * lib/unistdio/u16-u16-snprintf.c: Likewise.
17045         * lib/unistdio/u16-u16-sprintf.c: Likewise.
17046         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
17047         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
17048         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
17049         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
17050         * lib/unistdio/u16-vasnprintf.c: Likewise.
17051         * lib/unistdio/u16-vasprintf.c: Likewise.
17052         * lib/unistdio/u16-vsnprintf.c: Likewise.
17053         * lib/unistdio/u16-vsprintf.c: Likewise.
17054         * lib/unistdio/u32-asnprintf.c: Likewise.
17055         * lib/unistdio/u32-asprintf.c: Likewise.
17056         * lib/unistdio/u32-printf-parse.c: Likewise.
17057         * lib/unistdio/u32-snprintf.c: Likewise.
17058         * lib/unistdio/u32-sprintf.c: Likewise.
17059         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
17060         * lib/unistdio/u32-u32-asprintf.c: Likewise.
17061         * lib/unistdio/u32-u32-snprintf.c: Likewise.
17062         * lib/unistdio/u32-u32-sprintf.c: Likewise.
17063         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
17064         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
17065         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
17066         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
17067         * lib/unistdio/u32-vasnprintf.c: Likewise.
17068         * lib/unistdio/u32-vasprintf.c: Likewise.
17069         * lib/unistdio/u32-vsnprintf.c: Likewise.
17070         * lib/unistdio/u32-vsprintf.c: Likewise.
17071         * lib/unistdio/u8-asnprintf.c: Likewise.
17072         * lib/unistdio/u8-asprintf.c: Likewise.
17073         * lib/unistdio/u8-printf-parse.c: Likewise.
17074         * lib/unistdio/u8-snprintf.c: Likewise.
17075         * lib/unistdio/u8-sprintf.c: Likewise.
17076         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
17077         * lib/unistdio/u8-u8-asprintf.c: Likewise.
17078         * lib/unistdio/u8-u8-snprintf.c: Likewise.
17079         * lib/unistdio/u8-u8-sprintf.c: Likewise.
17080         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
17081         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
17082         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
17083         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
17084         * lib/unistdio/u8-vasnprintf.c: Likewise.
17085         * lib/unistdio/u8-vasprintf.c: Likewise.
17086         * lib/unistdio/u8-vsnprintf.c: Likewise.
17087         * lib/unistdio/u8-vsprintf.c: Likewise.
17088         * lib/unistdio/ulc-asnprintf.c: Likewise.
17089         * lib/unistdio/ulc-asprintf.c: Likewise.
17090         * lib/unistdio/ulc-printf-parse.c: Likewise.
17091         * lib/unistdio/ulc-snprintf.c: Likewise.
17092         * lib/unistdio/ulc-sprintf.c: Likewise.
17093         * lib/unistdio/ulc-vasnprintf.c: Likewise.
17094         * lib/unistdio/ulc-vasprintf.c: Likewise.
17095         * lib/unistdio/ulc-vsnprintf.c: Likewise.
17096         * lib/unistdio/ulc-vsprintf.c: Likewise.
17097         * lib/unistr.h: Likewise.
17098         * lib/unistr/u-cpy-alloc.h: Likewise.
17099         * lib/unistr/u-cpy.h: Likewise.
17100         * lib/unistr/u-endswith.h: Likewise.
17101         * lib/unistr/u-move.h: Likewise.
17102         * lib/unistr/u-set.h: Likewise.
17103         * lib/unistr/u-startswith.h: Likewise.
17104         * lib/unistr/u-stpcpy.h: Likewise.
17105         * lib/unistr/u-stpncpy.h: Likewise.
17106         * lib/unistr/u-strcat.h: Likewise.
17107         * lib/unistr/u-strcpy.h: Likewise.
17108         * lib/unistr/u-strcspn.h: Likewise.
17109         * lib/unistr/u-strdup.h: Likewise.
17110         * lib/unistr/u-strlen.h: Likewise.
17111         * lib/unistr/u-strncat.h: Likewise.
17112         * lib/unistr/u-strncpy.h: Likewise.
17113         * lib/unistr/u-strnlen.h: Likewise.
17114         * lib/unistr/u-strpbrk.h: Likewise.
17115         * lib/unistr/u-strspn.h: Likewise.
17116         * lib/unistr/u-strstr.h: Likewise.
17117         * lib/unistr/u-strtok.h: Likewise.
17118         * lib/unistr/u16-check.c: Likewise.
17119         * lib/unistr/u16-chr.c: Likewise.
17120         * lib/unistr/u16-cmp.c: Likewise.
17121         * lib/unistr/u16-cpy-alloc.c: Likewise.
17122         * lib/unistr/u16-cpy.c: Likewise.
17123         * lib/unistr/u16-endswith.c: Likewise.
17124         * lib/unistr/u16-mblen.c: Likewise.
17125         * lib/unistr/u16-mbsnlen.c: Likewise.
17126         * lib/unistr/u16-mbtouc-aux.c: Likewise.
17127         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
17128         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
17129         * lib/unistr/u16-mbtouc.c: Likewise.
17130         * lib/unistr/u16-mbtoucr.c: Likewise.
17131         * lib/unistr/u16-move.c: Likewise.
17132         * lib/unistr/u16-next.c: Likewise.
17133         * lib/unistr/u16-prev.c: Likewise.
17134         * lib/unistr/u16-set.c: Likewise.
17135         * lib/unistr/u16-startswith.c: Likewise.
17136         * lib/unistr/u16-stpcpy.c: Likewise.
17137         * lib/unistr/u16-stpncpy.c: Likewise.
17138         * lib/unistr/u16-strcat.c: Likewise.
17139         * lib/unistr/u16-strchr.c: Likewise.
17140         * lib/unistr/u16-strcmp.c: Likewise.
17141         * lib/unistr/u16-strcpy.c: Likewise.
17142         * lib/unistr/u16-strcspn.c: Likewise.
17143         * lib/unistr/u16-strdup.c: Likewise.
17144         * lib/unistr/u16-strlen.c: Likewise.
17145         * lib/unistr/u16-strmblen.c: Likewise.
17146         * lib/unistr/u16-strmbtouc.c: Likewise.
17147         * lib/unistr/u16-strncat.c: Likewise.
17148         * lib/unistr/u16-strncmp.c: Likewise.
17149         * lib/unistr/u16-strncpy.c: Likewise.
17150         * lib/unistr/u16-strnlen.c: Likewise.
17151         * lib/unistr/u16-strpbrk.c: Likewise.
17152         * lib/unistr/u16-strrchr.c: Likewise.
17153         * lib/unistr/u16-strspn.c: Likewise.
17154         * lib/unistr/u16-strstr.c: Likewise.
17155         * lib/unistr/u16-strtok.c: Likewise.
17156         * lib/unistr/u16-to-u32.c: Likewise.
17157         * lib/unistr/u16-to-u8.c: Likewise.
17158         * lib/unistr/u16-uctomb-aux.c: Likewise.
17159         * lib/unistr/u16-uctomb.c: Likewise.
17160         * lib/unistr/u32-check.c: Likewise.
17161         * lib/unistr/u32-chr.c: Likewise.
17162         * lib/unistr/u32-cmp.c: Likewise.
17163         * lib/unistr/u32-cpy-alloc.c: Likewise.
17164         * lib/unistr/u32-cpy.c: Likewise.
17165         * lib/unistr/u32-endswith.c: Likewise.
17166         * lib/unistr/u32-mblen.c: Likewise.
17167         * lib/unistr/u32-mbsnlen.c: Likewise.
17168         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
17169         * lib/unistr/u32-mbtouc.c: Likewise.
17170         * lib/unistr/u32-mbtoucr.c: Likewise.
17171         * lib/unistr/u32-move.c: Likewise.
17172         * lib/unistr/u32-next.c: Likewise.
17173         * lib/unistr/u32-prev.c: Likewise.
17174         * lib/unistr/u32-set.c: Likewise.
17175         * lib/unistr/u32-startswith.c: Likewise.
17176         * lib/unistr/u32-stpcpy.c: Likewise.
17177         * lib/unistr/u32-stpncpy.c: Likewise.
17178         * lib/unistr/u32-strcat.c: Likewise.
17179         * lib/unistr/u32-strchr.c: Likewise.
17180         * lib/unistr/u32-strcmp.c: Likewise.
17181         * lib/unistr/u32-strcpy.c: Likewise.
17182         * lib/unistr/u32-strcspn.c: Likewise.
17183         * lib/unistr/u32-strdup.c: Likewise.
17184         * lib/unistr/u32-strlen.c: Likewise.
17185         * lib/unistr/u32-strmblen.c: Likewise.
17186         * lib/unistr/u32-strmbtouc.c: Likewise.
17187         * lib/unistr/u32-strncat.c: Likewise.
17188         * lib/unistr/u32-strncmp.c: Likewise.
17189         * lib/unistr/u32-strncpy.c: Likewise.
17190         * lib/unistr/u32-strnlen.c: Likewise.
17191         * lib/unistr/u32-strpbrk.c: Likewise.
17192         * lib/unistr/u32-strrchr.c: Likewise.
17193         * lib/unistr/u32-strspn.c: Likewise.
17194         * lib/unistr/u32-strstr.c: Likewise.
17195         * lib/unistr/u32-strtok.c: Likewise.
17196         * lib/unistr/u32-to-u16.c: Likewise.
17197         * lib/unistr/u32-to-u8.c: Likewise.
17198         * lib/unistr/u32-uctomb.c: Likewise.
17199         * lib/unistr/u8-check.c: Likewise.
17200         * lib/unistr/u8-chr.c: Likewise.
17201         * lib/unistr/u8-cmp.c: Likewise.
17202         * lib/unistr/u8-cpy-alloc.c: Likewise.
17203         * lib/unistr/u8-cpy.c: Likewise.
17204         * lib/unistr/u8-endswith.c: Likewise.
17205         * lib/unistr/u8-mblen.c: Likewise.
17206         * lib/unistr/u8-mbsnlen.c: Likewise.
17207         * lib/unistr/u8-mbtouc-aux.c: Likewise.
17208         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
17209         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
17210         * lib/unistr/u8-mbtouc.c: Likewise.
17211         * lib/unistr/u8-mbtoucr.c: Likewise.
17212         * lib/unistr/u8-move.c: Likewise.
17213         * lib/unistr/u8-next.c: Likewise.
17214         * lib/unistr/u8-prev.c: Likewise.
17215         * lib/unistr/u8-set.c: Likewise.
17216         * lib/unistr/u8-startswith.c: Likewise.
17217         * lib/unistr/u8-stpcpy.c: Likewise.
17218         * lib/unistr/u8-stpncpy.c: Likewise.
17219         * lib/unistr/u8-strcat.c: Likewise.
17220         * lib/unistr/u8-strchr.c: Likewise.
17221         * lib/unistr/u8-strcmp.c: Likewise.
17222         * lib/unistr/u8-strcpy.c: Likewise.
17223         * lib/unistr/u8-strcspn.c: Likewise.
17224         * lib/unistr/u8-strdup.c: Likewise.
17225         * lib/unistr/u8-strlen.c: Likewise.
17226         * lib/unistr/u8-strmblen.c: Likewise.
17227         * lib/unistr/u8-strmbtouc.c: Likewise.
17228         * lib/unistr/u8-strncat.c: Likewise.
17229         * lib/unistr/u8-strncmp.c: Likewise.
17230         * lib/unistr/u8-strncpy.c: Likewise.
17231         * lib/unistr/u8-strnlen.c: Likewise.
17232         * lib/unistr/u8-strpbrk.c: Likewise.
17233         * lib/unistr/u8-strrchr.c: Likewise.
17234         * lib/unistr/u8-strspn.c: Likewise.
17235         * lib/unistr/u8-strstr.c: Likewise.
17236         * lib/unistr/u8-strtok.c: Likewise.
17237         * lib/unistr/u8-to-u16.c: Likewise.
17238         * lib/unistr/u8-to-u32.c: Likewise.
17239         * lib/unistr/u8-uctomb-aux.c: Likewise.
17240         * lib/unistr/u8-uctomb.c: Likewise.
17241         * lib/unitypes.h: Likewise.
17242         * lib/uniwidth.h: Likewise.
17243         * lib/uniwidth/cjk.h: Likewise.
17244         * lib/uniwidth/u16-strwidth.c: Likewise.
17245         * lib/uniwidth/u16-width.c: Likewise.
17246         * lib/uniwidth/u32-strwidth.c: Likewise.
17247         * lib/uniwidth/u32-width.c: Likewise.
17248         * lib/uniwidth/u8-strwidth.c: Likewise.
17249         * lib/uniwidth/u8-width.c: Likewise.
17250         * lib/uniwidth/width.c: Likewise.
17251
17252 2007-10-07  Bruno Haible  <bruno@clisp.org>
17253
17254         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
17255         The file is still under LGPL (see modules/inttypes).
17256
17257 2007-10-06  Bruno Haible  <bruno@clisp.org>
17258
17259         * modules/trunc (Dependencies): Add 'extensions'.
17260         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
17261         Reported by Ben Pfaff <blp@gnu.org>.
17262
17263 2007-10-06  Bruno Haible  <bruno@clisp.org>
17264
17265         * modules/freopen-tests: New file.
17266         * tests/test-freopen.c: New file.
17267
17268         * modules/fopen-tests: New file.
17269         * tests/test-fopen.c: New file.
17270
17271         * modules/fopen: New file.
17272         * lib/fopen.c: New file.
17273         * m4/fopen.m4: New file.
17274         * modules/freopen: New file.
17275         * lib/freopen.c: New file.
17276         * m4/freopen.m4: New file.
17277         * lib/stdio.in.h (fopen, freopen): New declarations.
17278         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
17279         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
17280         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
17281         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
17282         * doc/functions/fopen.texi: Mention the 'fopen' module.
17283         * doc/functions/freopen.texi: Mention the 'freopen' module.
17284
17285 2007-10-06  Bruno Haible  <bruno@clisp.org>
17286
17287         * modules/open-tests: New file.
17288         * tests/test-open.c: New file.
17289
17290         * modules/open: New file.
17291         * lib/open.c: New file.
17292         * m4/open.m4: New file.
17293         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
17294         lib/open.c does.
17295         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
17296         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
17297         macros.
17298         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
17299         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
17300         REPLACE_OPEN.
17301         * doc/functions/open.texi: Mention the 'open' module.
17302
17303 2007-10-04  Bruno Haible  <bruno@clisp.org>
17304
17305         * modules/ceill-tests: New file.
17306         * tests/test-ceill.c: New file.
17307
17308         * modules/ceill: New file.
17309         * lib/ceill.c: Replace entire file.
17310         * m4/ceill.m4: New file.
17311         * lib/math.in.h (ceill): Replace declaration.
17312         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
17313         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
17314         * doc/functions/ceill.texi: Mention the 'ceill' module.
17315         * modules/mathl (Files): Remove lib/ceill.c.
17316         (Depends-on): Add ceill.
17317
17318 2007-10-04  Bruno Haible  <bruno@clisp.org>
17319
17320         * modules/ceilf-tests: New file.
17321         * tests/test-ceilf.c: New file.
17322
17323         * modules/ceilf: New file.
17324         * lib/ceil.c: New file.
17325         * lib/ceilf.c: New file.
17326         * m4/ceilf.m4: New file.
17327         * lib/math.in.h (ceilf): New declaration.
17328         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
17329         HAVE_DECL_CEILF.
17330         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
17331         HAVE_DECL_CEILF.
17332         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
17333
17334 2007-10-04  Bruno Haible  <bruno@clisp.org>
17335
17336         * modules/floorl-tests: New file.
17337         * tests/test-floorl.c: New file.
17338
17339         * modules/floorl: New file.
17340         * lib/floorl.c: Replace entire file.
17341         * m4/floorl.m4: New file.
17342         * lib/math.in.h (floorl): Replace declaration.
17343         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
17344         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
17345         * doc/functions/floorl.texi: Mention the 'floorl' module.
17346         * modules/mathl (Files): Remove lib/floorl.c.
17347         (Depends-on): Add floorl.
17348
17349 2007-10-04  Bruno Haible  <bruno@clisp.org>
17350
17351         * modules/floorf-tests: New file.
17352         * tests/test-floorf.c: New file.
17353
17354         * modules/floorf: New file.
17355         * lib/floor.c: New file.
17356         * lib/floorf.c: New file.
17357         * m4/floorf.m4: New file.
17358         * lib/math.in.h (floorf): New declaration.
17359         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
17360         HAVE_DECL_FLOORF.
17361         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
17362         HAVE_DECL_FLOORF.
17363         * doc/functions/floorf.texi: Mention the 'floorf' module.
17364
17365 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
17366             Bruno Haible  <bruno@clisp.org>
17367
17368         Advertise for the Git server instead of the CVS server.
17369         * doc/gnulib-intro.texi (Steady Development): Mention the Git
17370         repository instead of the CVS one.
17371         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
17372         about all VCS systems generically.
17373         * doc/gnulib.texi (Introduction): Capitalize `Git'.
17374
17375 2007-10-04  Bruno Haible  <bruno@clisp.org>
17376
17377         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
17378         means.
17379         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
17380
17381 2007-10-04  Bruno Haible  <bruno@clisp.org>
17382
17383         * modules/truncl-tests: New file.
17384         * tests/test-truncl.c: New file.
17385
17386         * modules/truncl: New file.
17387         * lib/truncl.c: New file.
17388         * m4/truncl.m4: New file.
17389         * lib/math.in.h (truncl): New declaration.
17390         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
17391         HAVE_DECL_TRUNCL.
17392         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
17393         HAVE_DECL_TRUNCL.
17394         * doc/functions/truncl.texi: Mention the 'truncl' module.
17395
17396 2007-10-04  Bruno Haible  <bruno@clisp.org>
17397
17398         * modules/truncf-tests: New file.
17399         * tests/test-truncf.c: New file.
17400
17401         * modules/truncf: New file.
17402         * lib/trunc.c: Make paramerizable through USE_* macros.
17403         * lib/truncf.c: New file.
17404         * m4/truncf.m4: New file.
17405         * lib/math.in.h (truncf): New declaration.
17406         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
17407         HAVE_DECL_TRUNCF.
17408         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
17409         HAVE_DECL_TRUNCF.
17410         * doc/functions/truncf.texi: Mention the 'truncf' module.
17411
17412 2007-10-03  Bruno Haible  <bruno@clisp.org>
17413
17414         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
17415         augmentation also for tests modules.
17416         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
17417         * modules/atexit-tests (Makefile.am): Likewise.
17418         * modules/binary-io-tests (Makefile.am): Likewise.
17419         * modules/c-strcase-tests (Makefile.am): Likewise.
17420         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
17421         * modules/canonicalize-tests (Makefile.am): Likewise.
17422         * modules/closein-tests (Makefile.am): Likewise.
17423         * modules/fprintf-posix-tests (Makefile.am): Likewise.
17424         * modules/freadahead-tests (Makefile.am): Likewise.
17425         * modules/fseek-tests (Makefile.am): Likewise.
17426         * modules/fseeko-tests (Makefile.am): Likewise.
17427         * modules/ftell-tests (Makefile.am): Likewise.
17428         * modules/ftello-tests (Makefile.am): Likewise.
17429         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
17430         * modules/isnanl-tests (Makefile.am): Likewise.
17431         * modules/lseek-tests (Makefile.am): Likewise.
17432         * modules/mbscasecmp-tests (Makefile.am): Likewise.
17433         * modules/mbscasestr-tests (Makefile.am): Likewise.
17434         * modules/mbschr-tests (Makefile.am): Likewise.
17435         * modules/mbscspn-tests (Makefile.am): Likewise.
17436         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
17437         * modules/mbspbrk-tests (Makefile.am): Likewise.
17438         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
17439         * modules/mbsrchr-tests (Makefile.am): Likewise.
17440         * modules/mbsspn-tests (Makefile.am): Likewise.
17441         * modules/mbsstr-tests (Makefile.am): Likewise.
17442         * modules/printf-posix-tests (Makefile.am): Likewise.
17443         * modules/snprintf-posix-tests (Makefile.am): Likewise.
17444         * modules/sprintf-posix-tests (Makefile.am): Likewise.
17445         * modules/tsearch-tests (Makefile.am): Likewise.
17446         * modules/uniname/uniname-tests (Makefile.am): Likewise.
17447         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
17448         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
17449         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
17450         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
17451         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
17452         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
17453         * modules/vprintf-posix-tests (Makefile.am): Likewise.
17454         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
17455         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
17456         * modules/xstrtoimax-tests (Makefile.am): Likewise.
17457         * modules/xstrtol-tests (Makefile.am): Likewise.
17458         * modules/xstrtoumax-tests (Makefile.am): Likewise.
17459         * modules/yesno-tests (Makefile.am): Likewise.
17460
17461 2007-10-03  Bruno Haible  <bruno@clisp.org>
17462
17463         * modules/trunc-tests: New file.
17464         * tests/test-trunc.c: New file.
17465
17466         * modules/trunc: New file.
17467         * lib/trunc.c: New file.
17468         * m4/trunc.m4: New file.
17469         * lib/math.in.h (trunc): New declaration.
17470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
17471         HAVE_DECL_TRUNC.
17472         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
17473         HAVE_DECL_TRUNC.
17474         * doc/functions/trunc.texi: Mention the 'trunc' module.
17475
17476 2007-10-03  Bruno Haible  <bruno@clisp.org>
17477
17478         * tests/test-fpending.c: New file, mostly copied
17479         from coreutils/lib/t-fpending.c.
17480         * modules/fpending-tests: New file.
17481
17482 2007-10-03  Bruno Haible  <bruno@clisp.org>
17483
17484         Port the stdio extensions to QNX (untested).
17485         * lib/fseterr.c (fseterr): Add support for QNX.
17486         * lib/fbufmode.c (fbufmode): Likewise.
17487         * lib/freadable.c (freadable): Likewise.
17488         * lib/fwritable.c (fwritable): Likewise.
17489         * lib/freading.c (freading): Likewise.
17490         * lib/fwriting.c (fwriting): Likewise.
17491         * lib/freadahead.c (freadahed): Likewise.
17492         * lib/fpurge.c (fpurge): Likewise.
17493         * lib/fseeko.c (rpl_fseeko): Likewise.
17494
17495 2007-10-03  Bruno Haible  <bruno@clisp.org>
17496             Jim Meyering  <jim@meyering.net>
17497             Eric Blake  <ebb9@byu.net>
17498
17499         * doc/relocatable.texi: Use @command instead of @program.
17500
17501 2007-10-02  Jim Meyering  <jim@meyering.net>
17502
17503         Perform one more "_.h" -> ".in.h" substitution.
17504         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
17505         instead of unistd_.h here, too.
17506
17507 2007-10-01  Bruno Haible  <bruno@clisp.org>
17508
17509         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
17510         Needed for the alloca-opt module.
17511
17512 2007-09-30  Bruno Haible  <bruno@clisp.org>
17513
17514         * lib/alloca.in.h: Renamed from lib/alloca_.h.
17515         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
17516         alloca_.h.
17517         * lib/argz.in.h: Renamed from lib/argz_.h.
17518         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
17519         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
17520         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
17521         byteswap_.h.
17522         * lib/dirent.in.h: Renamed from lib/dirent_.h.
17523         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
17524         dirent_.h.
17525         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
17526         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
17527         fcntl_.h.
17528         * lib/float.in.h: Renamed from lib/float_.h.
17529         * modules/float (Files, Makefile.am): Use float.in.h instead of
17530         float_.h.
17531         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
17532         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
17533         fnmatch_.h.
17534         * lib/getopt.in.h: Renamed from lib/getopt_.h.
17535         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
17536         getopt_.h.
17537         * lib/glob.in.h: Renamed from lib/glob_.h.
17538         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
17539         * lib/iconv.in.h: Renamed from lib/iconv_.h.
17540         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
17541         iconv_.h.
17542         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
17543         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
17544         inttypes_.h.
17545         * lib/locale.in.h: Renamed from lib/locale_.h.
17546         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
17547         locale_.h.
17548         * lib/math.in.h: Renamed from lib/math_.h.
17549         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
17550         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
17551         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
17552         of netinet_in_.h. Add dependency.
17553         * lib/poll.in.h: Renamed from lib/poll_.h.
17554         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
17555         * lib/search.in.h: Renamed from lib/search_.h.
17556         * modules/search (Files, Makefile.am): Use search.in.h instead of
17557         search_.h.
17558         * lib/signal.in.h: Renamed from lib/signal_.h.
17559         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
17560         _signal.h.
17561         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
17562         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
17563         stdbool_.h.
17564         * lib/stdint.in.h: Renamed from lib/stdint_.h.
17565         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
17566         stdint_.h.
17567         * lib/stdio.in.h: Renamed from lib/stdio_.h.
17568         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
17569         stdio_.h.
17570         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
17571         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
17572         stdlib_.h.
17573         * lib/string.in.h: Renamed from lib/string_.h.
17574         * modules/string (Files, Makefile.am): Use string.in.h instead of
17575         string_.h.
17576         * doc/gnulib-tool.texi (Initial import): Update.
17577         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
17578         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
17579         of sys_select_.h. Add dependency.
17580         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
17581         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
17582         of sys_socket_.h.
17583         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
17584         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
17585         sys_stat_.h.
17586         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
17587         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
17588         sys_time_.h.
17589         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
17590         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
17591         sysexits_.h.
17592         * lib/time.in.h: Renamed from lib/time_.h.
17593         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
17594         * lib/unistd.in.h: Renamed from lib/unistd_.h.
17595         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
17596         unistd_.h.
17597         * lib/wchar.in.h: Renamed from lib/wchar_.h.
17598         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
17599         wchar_.h.
17600         * lib/wctype.in.h: Renamed from lib/wctype_.h.
17601         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
17602         wctype_.h.
17603         * build-aux/bootstrap (slurp): Update.
17604         * lib/.cppi-disable: Update.
17605
17606 2007-09-30  Bruno Haible  <bruno@clisp.org>
17607
17608         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
17609         Needed on BeOS.
17610
17611 2007-09-30  Bruno Haible  <bruno@clisp.org>
17612
17613         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
17614
17615 2007-09-29  Bruno Haible  <bruno@clisp.org>
17616
17617         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
17618
17619 2007-09-29  Bruno Haible  <bruno@clisp.org>
17620
17621         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
17622         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
17623         * build-aux/install-reloc: Compile also areadlink.c.
17624         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
17625
17626 2007-09-29  Bruno Haible  <bruno@clisp.org>
17627
17628         * gnulib-tool (func_emit_initmacro_done): Indentation.
17629
17630 2007-09-29  Bruno Haible  <bruno@clisp.org>
17631
17632         * README: Add CVS checkout update instructions.
17633         Info from Bob Proulx <bob@proulx.com>.
17634
17635 2007-09-28  Eric Blake  <ebb9@byu.net>
17636
17637         Provide move-if-change.
17638         * build-aux/move-if-change: New file, based on best practice
17639         rather than any canonical upstream location.
17640
17641 2007-09-28  Jim Meyering  <jim@meyering.net>
17642
17643         Fix canonicalize loop-detection corner case.
17644         Do not attempt to stat the symlink values stored via seen_triple.
17645         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
17646         on linux-2.6.18, (but not 2.6.22).
17647         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
17648         triple_compare.  The former compares dev,ino,filename, while the latter
17649         would actually stat dirname(filename) when dev and ino were equal.
17650         * lib/hash-triple.c: Install <string.h>.
17651         (STREQ): Define.
17652         (triple_compare_ino_str): New function.
17653         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
17654
17655 2007-09-28  Eric Blake  <ebb9@byu.net>
17656
17657         Enforce that AC_REPLACE_FUNCS files exist.
17658         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
17659         override check for typos.
17660
17661         Fix test-closein on Solaris 10.
17662         * tests/test-closein.c (main): Don't assume stdin can be inherited
17663         closed on all systems.
17664         * tests/test-closein.sh: Likewise.
17665         Reported by Piotr Tarnowski.
17666
17667 2007-09-28  Jim Meyering  <jim@meyering.net>
17668
17669         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
17670
17671 2007-09-27  Jim Meyering  <jim@meyering.net>
17672
17673         canonicalize: Avoid a false-positive cycle failure.
17674         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
17675         Sort.  Remove cycle-check.
17676         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
17677         not cycle-check.h.
17678         (seen_triple): New function.
17679         (canonicalize_filename_mode): Use it instead of cycle-check.
17680         * tests/test-canonicalize.c: Add a test for this bug.
17681         * tests/test-canonicalize.sh: Set up and run the test.
17682
17683         New module, file-set, from coreutils.
17684         * modules/file-set: Define it.
17685         * lib/file-set.c, lib/file-set.h: Implement.
17686
17687         New module, hash-triple, from coreutils.
17688         * modules/hash-triple: Define it.
17689         * lib/hash-triple.c, lib/hash-triple.h: Implement.
17690
17691 2007-09-25  Eric Blake  <ebb9@byu.net>
17692
17693         Fix strerror on Interix.
17694         * lib/string_.h (strerror): Declare replacement.
17695         * doc/functions/strerror.texi (strerror): Document the Interix
17696         shortcoming.
17697         * modules/string (Makefile.am): Support new hooks.
17698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
17699         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
17700         gl_FUNC_STRERROR_SEPARATE.
17701         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
17702         * lib/strerror.c (rpl_strerror): Provide replacement.
17703         * modules/strerror (Depends-on): Add string.
17704         (configure.ac): Detect use of module.
17705         * tests/test-strerror.c: New file.
17706         * modules/strerror-tests: New test module.
17707         * modules/argp (Depends-on): Add strerror.
17708         * modules/error (Depends-on): Likewise.
17709         Reported by Martin Koeppe.
17710
17711 2007-09-24  Bruno Haible  <bruno@clisp.org>
17712
17713         * README: Update git instructions.
17714
17715 2007-09-24  Eric Blake  <ebb9@byu.net>
17716
17717         Revert fpending breakage from 2007-09-08.
17718         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
17719         __fpending.c.
17720
17721 2007-09-24  Jim Meyering  <jim@meyering.net>
17722
17723         filenamecat.c: Add a test.
17724         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
17725         showing how the function works when DIR is the empty string.
17726
17727 2007-09-21  Simon Josefsson  <simon@josefsson.org>
17728
17729         * tests/test-canonicalize.sh: Turn on executable bit.
17730
17731 2007-09-19  Eric Blake  <ebb9@byu.net>
17732
17733         * README: Update CVS instructions.
17734
17735 2007-09-18  Bruno Haible  <bruno@clisp.org>
17736
17737         * modules/areadlink: New file.
17738         * lib/areadlink.h (areadlink): New declaration.
17739         * lib/areadlink.c: New file, based on lib/xreadlink.c.
17740
17741 2007-09-17  Jim Meyering  <jim@meyering.net>
17742
17743         * lib/savewd.c (ESTALE) [!defined]: Define.
17744         Reported to be required on Interix by Martin Koeppe.
17745
17746 2007-09-17  Bruno Haible  <bruno@clisp.org>
17747
17748         * gnulib-tool (func_version): Use $version.
17749
17750 2007-09-16  Bruno Haible  <bruno@clisp.org>
17751
17752         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
17753         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
17754         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
17755         Reported by Greg Schafer <gschafer@zip.com.au>.
17756
17757 2007-09-15  Bruno Haible  <bruno@clisp.org>
17758
17759         * gnulib-tool (sed): Try a little harder to make bash understand the
17760         alias.
17761         Reported by Bruce Korb <bruce.korb@gmail.com>.
17762
17763 2007-09-13  Eric Blake  <ebb9@byu.net>
17764
17765         * ChangeLog: Remove conflict markers.
17766
17767 2007-09-13  Simon Josefsson  <simon@josefsson.org>
17768
17769         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
17770         Reported by Bruno Haible <bruno@clisp.org>.
17771
17772 2007-09-12  Bruno Haible  <bruno@clisp.org>
17773
17774         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
17775         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
17776         is not defined.
17777
17778 2007-09-12  Eric Blake  <ebb9@byu.net>
17779
17780         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
17781         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
17782         Autoconf definition.
17783         * modules/euidaccess (Depends-on): Add extensions, for
17784         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
17785         * modules/fnmatch (Depends-on): Likewise.
17786         * modules/getaddrinfo (Depends-on): Likewise.
17787         * modules/getdelim (Depends-on): Likewise.
17788         * modules/getline (Depends-on): Likewise.
17789         * modules/getsubopt (Depends-on): Likewise.
17790         * modules/gettext (Depends-on): Likewise.
17791         * modules/group-member (Depends-on): Likewise.
17792         * modules/mbchar (Depends-on): Likewise.
17793         * modules/memmem (Depends-on): Likewise.
17794         * modules/mempcpy (Depends-on): Likewise.
17795         * modules/memrchr (Depends-on): Likewise.
17796         * modules/pagealign_alloc (Depends-on): Likewise.
17797         * modules/readutmp (Depends-on): Likewise.
17798         * modules/stpcpy (Depends-on): Likewise.
17799         * modules/stpncpy (Depends-on): Likewise.
17800         * modules/strchrnul (Depends-on): Likewise.
17801         * modules/strndup (Depends-on): Likewise.
17802         * modules/strsep (Depends-on): Likewise.
17803         * modules/strverscmp (Depends-on): Likewise.
17804         * modules/vasprintf (Depends-on): Likewise.
17805         * modules/wcwidth (Depends-on): Likewise.
17806         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
17807         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
17808         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
17809         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
17810         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17811         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17812         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
17813         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
17814         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
17815         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
17816         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17817         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
17818         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
17819         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
17820         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
17821         * m4/readutmp.m4 (gl_READUTMP): Likewise.
17822         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
17823         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
17824         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17825         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
17826         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
17827         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
17828         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
17829         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
17830         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
17831         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17832         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
17833         so that lock.m4 can be used in gettext without extensions module.
17834
17835 2007-09-11  Bruno Haible  <bruno@clisp.org>
17836
17837         * m4/isc-posix.m4: Remove file.
17838         Suggested by Eric Blake.
17839
17840 2007-09-11  Eric Blake  <ebb9@byu.net>
17841
17842         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
17843
17844 2007-09-10  Bruno Haible  <bruno@clisp.org>
17845
17846         * posix-modules: Fix typo in error message.
17847         Reported by Matt <mkraai@beckman.com>.
17848
17849 2007-09-09  Bruno Haible  <bruno@clisp.org>
17850
17851         * doc/functions/getdelim.texi: Update list of platforms lacking the
17852         function.
17853         * doc/functions/getline.texi: Likewise.
17854
17855 2007-09-09  Jim Meyering  <jim@meyering.net>
17856
17857         * lib/hash.c (hash_initialize): Detect calloc failure.
17858         Reported by Bruno Haible.
17859
17860 2007-09-09  Bruno Haible  <bruno@clisp.org>
17861
17862         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
17863         malloc or realloc fails.
17864
17865 2007-09-09  Bruno Haible  <bruno@clisp.org>
17866
17867         * modules/getcwd (Depends-on): Add malloc-posix.
17868         * modules/glob (Depends-on): Likewise.
17869         * modules/putenv (Depends-on): Likewise.
17870         * modules/strdup (Depends-on): Likewise.
17871         * modules/getdelim (Depends-on): Add realloc-posix.
17872         * modules/read-file (Depends-on): Likewise.
17873
17874 2007-09-09  Bruno Haible  <bruno@clisp.org>
17875
17876         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
17877         (gl_FUNC_MALLOC_POSIX): Require it.
17878         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
17879         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
17880         * modules/realloc (Files): Add m4/malloc.m4.
17881         * modules/calloc (Files): Likewise.
17882
17883 2007-09-09  Bruno Haible  <bruno@clisp.org>
17884
17885         * modules/malloc-posix: New file.
17886         * modules/malloc (Depends-on): Add malloc-posix.
17887         * lib/malloc.c: Include errno.h.
17888         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
17889         and a POSIX-compatible malloc into a single function. Set ENOMEM
17890         when returning NULL.
17891         * m4/malloc.m4: New file.
17892         * doc/functions/malloc.texi: Mention the malloc-posix module.
17893         * lib/stdlib_.h (malloc): New declaration.
17894         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17895         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
17896         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
17897         and HAVE_MALLOC_POSIX.
17898
17899 2007-09-09  Bruno Haible  <bruno@clisp.org>
17900
17901         * modules/realloc-posix: New file.
17902         * modules/realloc (Depends-on): Add realloc-posix.
17903         * lib/realloc.c: Include errno.h.
17904         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
17905         and a POSIX-compatible realloc into a single function. Set ENOMEM
17906         when returning NULL.
17907         * m4/realloc.m4: New file.
17908         * doc/functions/realloc.texi: Mention the realloc-posix module.
17909         * lib/stdlib_.h (realloc): New declaration.
17910         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17911         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
17912         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
17913         and HAVE_REALLOC_POSIX.
17914
17915 2007-09-09  Bruno Haible  <bruno@clisp.org>
17916
17917         * modules/calloc-posix: New file.
17918         * modules/calloc (Depends-on): Add calloc-posix.
17919         * lib/calloc.c: Include errno.h.
17920         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
17921         and a POSIX-compatible calloc into a single function. Set ENOMEM
17922         when returning NULL.
17923         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
17924         * doc/functions/calloc.texi: Mention the calloc-posix module.
17925         * lib/stdlib_.h (calloc): New declaration.
17926         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17927         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
17928         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
17929         and HAVE_CALLOC_POSIX.
17930
17931 2007-09-09  Bruno Haible  <bruno@clisp.org>
17932
17933         Allow for modules to show an arbitrary notice.
17934         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
17935         * gnulib-tool: New option --extract-notice.
17936         (func_usage): Document it.
17937         (sed_extract_prog): Update.
17938         (func_get_notice): New function.
17939         (func_modules_notice): New function.
17940         (func_import, func_create_testdir): Invoke it.
17941         Suggested by Jim Meyering.
17942
17943 2007-09-09  Bruno Haible  <bruno@clisp.org>
17944
17945         * gnulib-tool: New options --verbose, --quiet.
17946         (func_usage): Document them.
17947         (verbose): New variable.
17948         (func_execute_command): New function.
17949         (func_import): Don't show the module list and the file list if
17950         $verbose < 0.
17951         (func_create_testdir): Likewise. Use func_execute_command.
17952         (func_create_megatestdir): Use func_execute_command.
17953
17954 2007-09-08  Bruno Haible  <bruno@clisp.org>
17955
17956         * gnulib-tool (func_import): Prefer rsync over wget when available,
17957         for fetching the PO files.
17958
17959 2007-09-08  Bruno Haible  <bruno@clisp.org>
17960
17961         * posix-modules: New file. Portions copied from gnulib-tool.
17962         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
17963
17964 2007-09-08  Jim Meyering  <jim@meyering.net>
17965
17966         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
17967         * lib/fpending.h: Rename from __fpending.h.
17968         * lib/fpending.c: Rename from __fpending.c.
17969         Include "fpending.h", not "__fpending.h".
17970         * lib/__fpending.h, lib/__fpending.c: Remove files.
17971         * modules/fpending (Files): Reflect new file names.
17972         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
17973
17974 2007-09-08  Bruno Haible  <bruno@clisp.org>
17975
17976         * m4/inttypes-h.m4: Remove stub file.
17977
17978 2007-09-07  Simon Josefsson  <simon@josefsson.org>
17979
17980         * doc/headers/stdint.texi: Discuss #include_next issue.
17981
17982 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
17983
17984         * build-aux/bootstrap: Remove obsolete comment about wget --help.
17985
17986 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17987
17988         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
17989         in variable name.
17990
17991 2007-09-03  Jim Meyering  <jim@meyering.net>
17992
17993         New module: git-version-gen.
17994         * modules/git-version-gen: New file.
17995
17996         Import changes from coreutils for bootstrap script.
17997
17998         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
17999
18000         bootstrap: uses rsync to download the .po files
18001         * build-aux/bootstrap (po_download_command_format): New global.
18002         (download_po_files): Use rsync.
18003         (update_po_files): Don't remove .po files after download,
18004         so future rsync runs can take advantage of the copies.
18005
18006         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
18007
18008         Solve the unnecessary-.po-file-regeneration problem once and for all.
18009         * build-aux/bootstrap (download_po_files): New function, renamed from
18010         get_translations.  Now, downloads, but doesn't update LINGUAS.
18011         (update_po_files): New function.
18012
18013         bootstrap: Ignore more.
18014         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
18015         uniwidth to e.g., lib/.gitignore.
18016         (slurp): Handle the sys_stat_.h -> sys mapping, too.
18017
18018         * build-aux/bootstrap: New setting: vc_ignore.
18019         (insert_sorted_if_absent): Create $file if absent.
18020         Adapt to new, possibly empty, list: $vc_ignore.
18021
18022         bootstrap: generate more ignorable names
18023         * build-aux/bootstrap (slurp): When generating ignorable names,
18024         also map .sin to .sed, .gperf to .c, and .y to .c.
18025
18026 2007-09-03  Jim Meyering  <jim@meyering.net>
18027
18028         * build-aux/git-version-gen: New file, from coreutils.  For details, see
18029         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
18030
18031 2007-09-02  Bruno Haible  <bruno@clisp.org>
18032
18033         Fix mis-recognition of 'mcs' on QNX 6.
18034         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
18035         output contains the string "Mono".
18036         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
18037         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
18038
18039 2007-09-01  Bruno Haible  <bruno@clisp.org>
18040
18041         Fix collision between uniwidth/* and linebreak modules.
18042         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
18043         u32_width): Remove declarations.
18044         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
18045         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
18046         streq3, streq2, streq1, streq0): Remove functions.
18047         (STREQ): Remove macro.
18048         (is_cjk_encoding): Remove function.
18049         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
18050         (uc_width, u8_width, u16_width, u32_width): Remove functions.
18051         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
18052         * NEWS: Document the change.
18053
18054 2007-09-01  Bruno Haible  <bruno@clisp.org>
18055
18056         * lib/streq.h: Add double-inclusion guard.
18057
18058 2007-09-01  Karl Berry  <karl@gnu.org>
18059
18060         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
18061
18062 2007-08-28  Jim Meyering  <jim@meyering.net>
18063
18064         Rename mreadlink_with_size to areadlink_with_size.
18065         * NEWS: Document the change.
18066         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
18067         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
18068         * lib/mreadlink.h: Rename this to...
18069         * lib/areadlink.h: ...this.
18070         * modules/mreadlink-with-size: Rename this to...
18071         * modules/areadlink-with-size: ...this.
18072         * lib/canonicalize.c: Reflect the renaming.
18073         * modules/canonicalize: Likewise.
18074
18075 2007-08-26  Bruno Haible  <bruno@clisp.org>
18076
18077         * gnulib-tool (func_import): When deciding which files to remove,
18078         consider also dangling symbolic links.
18079         Reported by Eric Blake.
18080
18081 2007-08-26  Bruno Haible  <bruno@clisp.org>
18082
18083         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
18084
18085 2007-08-23  Simon Josefsson  <simon@josefsson.org>
18086
18087         * lib/readline.c: Don't include getline.h, the prototype is now
18088         found in stdio.h.
18089
18090 2007-08-23  Jim Meyering  <jim@meyering.net>
18091
18092         Getdelim touchup.
18093         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
18094         around the funlockfile call, since funlockfile never sets errno.
18095         Don't set errno upon failed realloc.
18096
18097 2007-08-22  Eric Blake  <ebb9@byu.net>
18098
18099         Getline touchups.
18100         * lib/getdelim.c (getdelim): Revert regression that required *n to
18101         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
18102         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
18103         getdelim, rather than whether implementation is missing.
18104         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
18105         * lib/stdio_.h (getline): Also declare if replacement is
18106         required.
18107         * doc/functions/getdelim.texi: New file.
18108         * doc/functions/getline.texi: Likewise.
18109         * doc/gnulib.texi (Function Substitutes): Add new files.
18110         Reported by Bruno Haible.
18111
18112 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
18113
18114         * users.txt: Add Guile.
18115
18116 2007-08-22  Eric Blake  <ebb9@byu.net>
18117
18118         * tests/test-getdelim.c (main): Use remove, not unlink.
18119         * tests/test-getline.c (main): Likewise.
18120
18121         Move getline and getdelim into stdio.h, per POSIX 200x.
18122         * modules/getline (Files): Remove getline.h.
18123         (Depends-on): Add stdio.
18124         (configure.ac): Add module indicator.
18125         * modules/getdelim (Files): Remove getdelim.h.
18126         (Depends-on): Add stdio.
18127         (configure.ac): Add module indicator.
18128         * modules/stdio (Makefile.am): Work with new indicators.
18129         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
18130         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
18131         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18132         * lib/getdelim.h: Delete.
18133         * lib/getline.h: Delete.
18134         * lib/stdio_.h (getdelim, getline): Declare.
18135         * modules/getdelim-tests: New module.
18136         * modules/getline-tests: Likewise.
18137         * tests/test-getdelim.c: New file.
18138         * tests/test-getline.c: Likewise.
18139         * NEWS: Document the change.
18140         * lib/getline.c: Update choice of header.
18141         * lib/csharpcomp.c: Likewise.
18142         * lib/getpass.c: Likewise.
18143         * lib/javacomp.c: Likewise.
18144         * lib/javaversion.c: Likewise.
18145         * lib/yesno.c: Likewise.
18146         * lib/getdelim.c: Likewise.
18147         (getdelim): Set errno on failure, and avoid memory leak.
18148
18149 2007-08-19  Bruno Haible  <bruno@clisp.org>
18150
18151         * modules/closein (Depends-on): Add freadahead.
18152         * lib/closein.c: Include freadahead.h.
18153         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
18154         is zero.
18155
18156 2007-08-19  Bruno Haible  <bruno@clisp.org>
18157
18158         * modules/freadahead-tests: New file.
18159         * tests/test-freadahead.sh: New file.
18160         * tests/test-freadahead.c: New file.
18161
18162         * modules/freadahead: New file.
18163         * lib/freadahead.h: New file.
18164         * lib/freadahead.c: New file.
18165         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
18166         fbufmode, fpurge, freadable, fwritable.
18167
18168 2007-08-19  Eric Blake  <ebb9@byu.net>
18169
18170         Test yesno in combination with closein.
18171         * lib/yesno.c (yesno): Document use of stdin.
18172         * modules/yesno-tests (Files): New module.
18173         * tests/test-yesno.c (main): New file.
18174         * tests/test-yesno.sh: Likewise.
18175
18176 2007-08-19  Bruno Haible  <bruno@clisp.org>
18177
18178         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
18179         * lib/fseeko.c (rpl_fseeko): Likewise.
18180         * lib/fseterr.c (fseterr): Likewise.
18181
18182 2007-08-19  Bruno Haible  <bruno@clisp.org>
18183
18184         * tests/test-lseek.c (main): Disable a test for BeOS.
18185         * doc/functions/lseek.texi: Document the BeOS bug.
18186
18187 2007-08-19  Bruno Haible  <bruno@clisp.org>
18188             Eric Blake  <ebb9@byu.net>
18189
18190         * lib/lseek.c: Include <sys/stat.h>.
18191         (rpl_lseek): Add workaround code also for Unix platforms.
18192         Needed for BeOS.
18193         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
18194         * doc/functions/lseek.texi: Document BeOS definiency.
18195
18196 2007-08-18  Bruno Haible  <bruno@clisp.org>
18197
18198         * modules/fstrcmp-tests: New file.
18199         * tests/test-fstrcmp.c: New file.
18200
18201 2007-08-18  Bruno Haible  <bruno@clisp.org>
18202
18203         * modules/fstrcmp: New file, from GNU gettext with modifications.
18204         * lib/fstrcmp.h: New file, from GNU gettext.
18205         * lib/fstrcmp.c: New file, from GNU gettext.
18206         * MODULES.html.sh (String handling): Add fstrcmp.
18207
18208 2007-08-18  Bruno Haible  <bruno@clisp.org>
18209
18210         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
18211         'bool'.
18212         (diag, compareseq): Remove const from the ctxt argument.
18213         (USE_HEURISTIC): Undefine at the end.
18214
18215 2007-08-18  Jim Meyering  <jim@meyering.net>
18216
18217         New file: lib/idcache.h
18218         * NEWS: Mention the addition.
18219         * modules/idcache (Files): Add lib/idcache.h
18220         * lib/idcache.c: Include "idcache.h".
18221         Don't include <sys/types.h>.
18222         Add a FIXME comment.
18223         Move file-scoped "static" declarations to the top.
18224         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
18225
18226 2007-08-17  Bruno Haible  <bruno@clisp.org>
18227         and Paul Eggert  <eggert@cs.ucla.edu>
18228
18229         * MODULES.html.sh: Add diffseq.
18230         * modules/diffseq: New file.
18231         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
18232         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
18233
18234 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
18235
18236         Import changes from coreutils for bootstrap script.
18237
18238         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
18239
18240         * build-aux/bootstrap (slurp): Work even in environments where
18241         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
18242         current code does not slurp files whose names start with ".", and
18243         this looks like it might be a troublesome area.
18244
18245         2007-07-11  Jim Meyering  <jim@meyering.net>
18246
18247         If there's a GPL vN copyright comment, require that N == 3.
18248
18249         2007-07-08  Jim Meyering  <jim@meyering.net>
18250
18251         Run the coreutils-specific code only if tests/Makefile.am.in exists.
18252         * build-aux/bootstrap (mam_template): Move definition out of loop.
18253
18254         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
18255
18256         * build-aux/bootstrap (symlink_to_dir): Rename function from
18257         symlink_to_gnulib.  Add a directory parameter.  Update all
18258         callers.
18259         (cp_mark_as_generated): Also check for -- and link to -- files in
18260         gl/.
18261
18262         2007-07-08  Jim Meyering  <jim@meyering.net>
18263
18264         Adapt to deeper hierarchy in gnulib.
18265         * build-aux/bootstrap (symlink_to_dir): If the destination
18266         directory doesn't exist, create it. This is required at least for
18267         "lib/uniwidth/cjk.h".
18268
18269         2007-05-15  Jim Meyering  <jim@meyering.net>
18270
18271         * build-aux/bootstrap: Now that generated Makefile.am files
18272         are no longer under version control, they must be created at
18273         bootstrap time.
18274
18275 2007-08-14  Ben Pfaff  <blp@gnu.org>
18276
18277         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
18278
18279 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
18280
18281         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
18282         given the changes below.
18283         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
18284         even on hosts that have padding bits beyond the supported 64.
18285
18286 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
18287
18288         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
18289         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
18290         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
18291         depends on it.
18292         (xstrtol_error): Remove.
18293         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
18294         but with a different signature.
18295         (ATTRIBUTE_NORETURN, __attribute__): New macros.
18296         * lib/xstrtol-error.c: Include exitfail.h.
18297         (xstrtol_fatal): New function, with a different signature from the
18298         old xstrtol_error, so that the caller need not worry about passing
18299         in an exit status, or about storage management of the option argument.
18300         (xstrtol_error): Now a static function.  Redo signature to
18301         implement xstrtol_fatal.  Output the correct number of hyphens in
18302         front of the option so that the caller need not worry about
18303         storage management.
18304         (N_): New macro.
18305         (_): Remove; not used now.
18306         * modules/xstrtol: Depend on getopt.
18307         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
18308         of old STRTOL_FATAL_ERROR macro.
18309         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
18310         of test program.
18311         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
18312         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
18313
18314 2007-08-08  Eric Blake  <ebb9@byu.net>
18315
18316         * lib/xstrtol-error.c: Add missing include.
18317
18318         Move xstrtol messages into gnulib domain, when --pobase is used.
18319         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
18320         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
18321         * modules/xstrtol (Files): Distribute new file.
18322         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
18323         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
18324         * tests/test-xstrtol.c: ...into new file.
18325         * tests/test-xstrtoul.c: Also test xstrtoul.
18326         * tests/test-xstrtoimax.c: Also test xstrtoimax.
18327         * tests/test-xstrtoumax.c: Also test xstrtoumax.
18328         * tests/test-xstrtol.sh: Drive the tests.
18329         * tests/test-xstrtoimax.sh: Likewise.
18330         * tests/test-xstrtoumax.sh: Likewise.
18331         * modules/xstrtol-tests: New module.
18332         * modules/xstrtoimax-tests: Likewise.
18333         * modules/xstrtoumax-tests: Likewise.
18334
18335 2007-08-08  Jim Meyering  <jim@meyering.net>
18336
18337         New function: mfile_name_concat.
18338         * lib/filenamecat.c (mfile_name_concat): New function, just like
18339         file_name_concat, but return NULL upon failure rather than exiting
18340         with a diagnostic.
18341         * lib/filenamecat.h: Declare it.
18342
18343 2007-08-07  Bruno Haible  <bruno@clisp.org>
18344
18345         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
18346         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
18347         warning from gcc.
18348         Reported by Eric Blake.
18349
18350 2007-08-07  Simon Josefsson  <simon@josefsson.org>
18351
18352         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
18353         * modules/crypto/arcfour (License): Likewise.
18354         * modules/crypto/des-tests (License): Likewise.
18355         * modules/crypto/gc-arctwo-tests (License): Likewise.
18356         * modules/crypto/gc-des-tests (License): Likewise.
18357         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
18358         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
18359         * modules/crypto/gc-md2-tests (License): Likewise.
18360         * modules/crypto/gc-md4-tests (License): Likewise.
18361         * modules/crypto/gc-md5-tests (License): Likewise.
18362         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
18363         * modules/crypto/gc-rijndael-tests (License): Likewise.
18364         * modules/crypto/gc-sha1-tests (License): Likewise.
18365         * modules/crypto/gc-tests (License): Likewise.
18366         * modules/crypto/hmac-md5 (License): Likewise.
18367         * modules/crypto/hmac-sha1 (License): Likewise.
18368         * modules/crypto/md2-tests (License): Likewise.
18369         * modules/crypto/md4-tests (License): Likewise.
18370         * modules/crypto/md5 (License): Likewise.
18371         * modules/crypto/rijndael (License): Likewise.
18372         * modules/crypto/sha1 (License): Likewise.
18373         * modules/memxor (License): Likewise.
18374
18375 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
18376         and Bruno Haible  <bruno@clisp.org>
18377
18378         * NEWS: Describe interface changes to human, xstrtol.
18379         * lib/human.h: Include <xstrtol.h>.
18380         (human_options): Return enum strtol_error, not int.  Remove
18381         bool arg; take int * instead.
18382         * lib/human.c: Don't include "gettext.h".
18383         (_): Remove; no longer used.
18384         Don't include <xstrtol.h>, since human.h does it.
18385         (human_options): Adjust to abovementioned interface changes.
18386         Do not report error to stderr; that's now the caller's
18387         responsibility.
18388         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
18389         interface change.
18390         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
18391         Str, Argument_type_string.  All uses changed.  Put " argument"
18392         in diagnostics to make them clearer.  Change wording of suffix
18393         message for clarity.
18394         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
18395         Argument_type_string.
18396         (STRTOL_FATAL_WARN): Remove; no longer used.
18397         * modules/human (Depends-on): Remove gettext-h.
18398
18399 2007-08-06  Simon Josefsson  <simon@josefsson.org>
18400
18401         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
18402
18403 2007-07-31  Bruno Haible  <bruno@clisp.org>
18404
18405         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
18406         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
18407         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
18408
18409 2007-07-31  Bruno Haible  <bruno@clisp.org>
18410
18411         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
18412         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
18413
18414 2007-07-30  Bruno Haible  <bruno@clisp.org>
18415
18416         * modules/base64 (License): Use the synonymous term "LGPLv2+".
18417         * modules/c-ctype (License): Likewise.
18418         * modules/c-strcase (License): Likewise.
18419         * modules/check-version (License): Likewise.
18420         * modules/iconv (License): Likewise.
18421         * modules/iconv_open (License): Likewise.
18422         * modules/read-file (License): Likewise.
18423         * modules/striconv (License): Likewise.
18424         * modules/strverscmp (License): Likewise.
18425         * modules/vasprintf (License): Likewise.
18426         * modules/crypto/des (License): Likewise.
18427         * modules/crypto/gc (License): Likewise.
18428         * modules/crypto/gc-arcfour (License): Likewise.
18429         * modules/crypto/gc-arctwo (License): Likewise.
18430         * modules/crypto/gc-des (License): Likewise.
18431         * modules/crypto/gc-hmac-md5 (License): Likewise.
18432         * modules/crypto/gc-hmac-sha1 (License): Likewise.
18433         * modules/crypto/gc-md2 (License): Likewise.
18434         * modules/crypto/gc-md4 (License): Likewise.
18435         * modules/crypto/gc-md5 (License): Likewise.
18436         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
18437         * modules/crypto/gc-random (License): Likewise.
18438         * modules/crypto/gc-rijndael (License): Likewise.
18439         * modules/crypto/gc-sha1 (License): Likewise.
18440         * modules/crypto/md2 (License): Likewise.
18441         * modules/crypto/md4 (License): Likewise.
18442
18443 2007-07-30  Jim Meyering  <jim@meyering.net>
18444
18445         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
18446         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
18447         it has valid stat data.  This bug would cause du not to count the
18448         sizes of inaccessible directories.
18449         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
18450         in <http://bugzilla.redhat.com/250077>.
18451
18452 2007-07-25  Peter O'Gorman  <peter@pogma.com>
18453             Bruno Haible  <bruno@clisp.org>
18454
18455         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
18456         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
18457         #include_next, gives a diagnostic about it, but reports no error in
18458         the exit code.
18459         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
18460
18461 2007-07-24  Ben Pfaff  <blp@gnu.org>
18462
18463         Improve name: "count-one-bits" is better than "popcount".
18464         * MODULES.html.sh: Update name.
18465         * lib/popcount.h: Renamed lib/count-one-bits.h.
18466         (popcount): Renamed count_one_bits.
18467         (popcountl): Renamed count_one_bits_l.
18468         (popcountll): Renamed count_one_bits_ll.
18469         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
18470         * modules/popcount: Renamed module/count-one-bits.
18471         * modules/popcount-tests: Renamed module/count-one-bits-tests.
18472         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
18473
18474 2007-07-23  Ben Pfaff  <blp@gnu.org>
18475
18476         * lib/popcount.h (popcount32): Reduce size of constants, to allow
18477         better code generation, and add U to large constants to avoid
18478         warnings, in non-GCC case.
18479         Suggested by Bruno Haible.
18480
18481 2007-07-23  Ben Pfaff  <blp@gnu.org>
18482
18483         * lib/popcount.h: Use verify_true instead of if...abort.
18484         * modules/popcount: Depend on verify module.
18485         Suggested by Jim Meyering.
18486
18487 2007-07-23  Bruno Haible  <bruno@clisp.org>
18488
18489         * gnulib-tool (func_import): Create a .cvsignore file also when the
18490         directory is not yet in CVS but the toplevel directory is. When
18491         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
18492         Reported by Karl Berry.
18493
18494 2007-07-22  Ben Pfaff  <blp@gnu.org>
18495
18496         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
18497         case.
18498         Suggested by Eric Blake.
18499
18500 2007-07-22  Ben Pfaff  <blp@gnu.org>
18501
18502         New module: popcount.
18503         * MODULES.html.sh: Add popcount.
18504         * modules/popcount: New file.
18505         * modules/popcount-tests: New file.
18506         * tests/test-popcount.c: New file.
18507         * lib/popcount.h: New file.
18508         * m4/popcount.m4: New file.
18509
18510 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
18511
18512         * build-aux/announce-gen: Update to GPLv3.
18513
18514         * build-aux/config.guess: Update from config.
18515
18516 2007-07-21  Bruno Haible  <bruno@clisp.org>
18517
18518         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
18519         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
18520
18521 2007-07-20  Jim Meyering  <jim@meyering.net>
18522
18523         * check-module: Diagnose a self-dependency.
18524
18525 2007-07-19  Bruno Haible  <bruno@clisp.org>
18526
18527         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
18528         empty.
18529         Reported by Eric Blake.
18530
18531 2007-07-18  Bruno Haible  <bruno@clisp.org>
18532
18533         * gnulib-tool: New options --po-base, --po-domain.
18534         (func_usage): Document them.
18535         (pobase, po_domain): New variables.
18536         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
18537         DEFAULT_TEXT_DOMAIN.
18538         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
18539         (func_import): Consider pobase and po_domain. Create a po/ directory.
18540         (func_create_testdir): Set pobase and po_domain to empty.
18541         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
18542         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
18543
18544 2007-07-18  Bruno Haible  <bruno@clisp.org>
18545
18546         * gnulib-tool (func_get_automake_snippet): Synthesize also an
18547         EXTRA_DIST augmentation for files in build-aux/.
18548
18549 2007-07-16  Bruno Haible  <bruno@clisp.org>
18550
18551         * modules/lseek (License): Use the synonymous term "LGPLv2+".
18552         * modules/getdelim (License): Likewise.
18553
18554 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18555
18556         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
18557         * modules/d-type (License): Likewise.
18558         * modules/extensions (License): Likewise.
18559         * modules/fnmatch (License): Likewise.
18560         * modules/fseeko (License): Likewise.
18561         * modules/getaddrinfo (License): Likewise.
18562         * modules/getline (License): Likewise.
18563         * modules/getlogin_r (License): Likewise.
18564         * modules/getpass (License): Likewise.
18565         * modules/gettimeofday (License): Likewise.
18566         * modules/glob (License): Likewise.
18567         * modules/inet_ntop (License): Likewise.
18568         * modules/malloc (License): Likewise.
18569         * modules/malloca (License): Likewise.
18570         * modules/memmem (License): Likewise.
18571         * modules/mempcpy (License): Likewise.
18572         * modules/memset (License): Likewise.
18573         * modules/minmax (License): Likewise.
18574         * modules/mktime (License): Likewise.
18575         * modules/netinet_in (License): Likewise.
18576         * modules/pathmax (License): Likewise.
18577         * modules/poll (License): Likewise.
18578         * modules/regex (License): Likewise.
18579         * modules/snprintf (License): Likewise.
18580         * modules/stdbool (License): Likewise.
18581         * modules/stdint (License): Likewise.
18582         * modules/stdio (License): Likewise.
18583         * modules/strcase (License): Likewise.
18584         * modules/strcasestr (License): Likewise.
18585         * modules/strdup (License): Likewise.
18586         * modules/string (License): Likewise.
18587         * modules/strndup (License): Likewise.
18588         * modules/strnlen (License): Likewise.
18589         * modules/strpbrk (License): Likewise.
18590         * modules/strptime (License): Likewise.
18591         * modules/strsep (License): Likewise.
18592         * modules/sys_select (License): Likewise.
18593         * modules/sys_socket (License): Likewise.
18594         * modules/sys_stat (License): Likewise.
18595         * modules/sys_time (License): Likewise.
18596         * modules/time (License): Likewise.
18597         * modules/time_r (License): Likewise.
18598         * modules/timegm (License): Likewise.
18599         * modules/unistd (License): Likewise.
18600         * modules/vsnprintf (License): Likewise.
18601         * modules/wctype (License): Likewise.
18602
18603 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18604
18605         * modules/argz (License): LGPLv2+.
18606
18607 2007-07-15  Karl Berry  <karl@gnu.org>
18608
18609         * doc/gnulib.texi: revise node structure per new fdl.texi.
18610
18611 2007-07-14  Bruno Haible  <bruno@clisp.org>
18612
18613         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
18614         the output file.
18615         * lib/uniname/uninames.h: Regenerated.
18616
18617 2007-07-14  Karl Berry  <karl@gnu.org>
18618
18619         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
18620         omitting sectioning and index commands.
18621
18622 2007-07-13  Bruno Haible  <bruno@clisp.org>
18623
18624         New gnulib-tool option --more-symlinks.
18625         * gnulib-tool (func_usage): Document --more-symlinks.
18626         (do_copyrights): New variable.
18627         Recognize option --more-symlinks.
18628         (func_import): Don't add a copyright notice transform to
18629         sed_transform_lib_file if do_copyrights is empty.
18630
18631 2007-07-13  Bruno Haible  <bruno@clisp.org>
18632
18633         * lib/vasnprintf.c (decimal_point_char): Define also if
18634         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
18635         && !NEED_PRINTF_DIRECTIVE_A.
18636         Reported by Clemens Koller <clemens.koller@anagramm.de> via
18637         Gary V. Vaughan <gary@gnu.org>.
18638
18639 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
18640
18641         * lib/inttypes_.h: Undo previous change, since it was fixed
18642         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
18643
18644 2007-07-13  Bruno Haible  <bruno@clisp.org>
18645
18646         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
18647         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
18648
18649 2007-07-13  Jim Meyering  <jim@meyering.net>
18650
18651         df: Don't fail for Tru64's "file-on-file mount".
18652         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
18653         so we fall through and use statfs instead.  Details here:
18654         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
18655         Reported by Albert Chin.
18656
18657 2007-07-13  Bruno Haible  <bruno@clisp.org>
18658
18659         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
18660         * modules/configmake (License): Likewise.
18661         * modules/gettext (License): Likewise.
18662         * modules/gettext-h (License): Likewise.
18663         * modules/include_next (License): Likewise.
18664         * modules/link-warning (License): Likewise.
18665         * modules/localcharset (License): Likewise.
18666         * modules/localename (License): Likewise.
18667         * modules/lock (License): Likewise.
18668         * modules/relocatable-lib-lgpl (License): Likewise.
18669         * modules/size_max (License): Likewise.
18670         * modules/vasnprintf (License): Likewise.
18671         * modules/wchar (License): Likewise.
18672         * modules/xsize (License): Likewise.
18673
18674 2007-07-13  Bruno Haible  <bruno@clisp.org>
18675
18676         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
18677         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
18678
18679 2007-07-12  Bruno Haible  <bruno@clisp.org>
18680
18681         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
18682         in the modules files.
18683
18684 2007-07-11  Karl Berry  <karl@gnu.org>
18685
18686         * MODULES.html.sh (func_module): use
18687          sed -e '\|^'"${includefile}"'$|d'
18688          instead of /.../d, to avoid errors on $includefile's containing /.
18689
18690 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
18691
18692         * gnulib-tool (func_import): Avoid duplication of --avoid
18693         statements
18694         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
18695         names to `_' in variable names.
18696
18697 2007-07-10  Eric Blake  <ebb9@byu.net>
18698
18699         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
18700         * NEWS: Document this change.
18701
18702 2007-07-08  Bruno Haible  <bruno@clisp.org>
18703
18704         Update to Unicode 5.0.
18705         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
18706         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
18707         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
18708         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
18709         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
18710         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
18711         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
18712         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
18713         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
18714         U+10A3F, U+1D242..U+1D244.
18715         (nonspacing_table_ind): Update.
18716         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
18717         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
18718
18719 2007-07-08  Bruno Haible  <bruno@clisp.org>
18720
18721         Update to Unicode 5.0.
18722         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
18723         code transform. Extend the name index field of unicode_name_to_code and
18724         unicode_code_to_name from 16 to 24 bits.
18725         * lib/uniname/uniname.c (unicode_character_name,
18726         unicode_name_character): Add the range 0x12xxx to the code transform.
18727         * lib/uniname/uninames.h: Regenerated.
18728         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
18729
18730 2007-07-07  Bruno Haible  <bruno@clisp.org>
18731
18732         * modules/wcwidth-tests: New file.
18733         * tests/test-wcwidth.c: New file.
18734
18735         Work around MacOS X wcwidth() bug.
18736         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
18737         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
18738         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
18739         original wcwidth in non-UTF-8 locales.
18740         * modules/wcwidth (Depends-on): Add localcharset, streq,
18741         uniwidth/width.
18742         * doc/functions/wcwidth.texi: Update.
18743
18744 2007-07-07  Bruno Haible  <bruno@clisp.org>
18745
18746         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
18747         (wcwidth): New declaration.
18748         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
18749         macros.
18750         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
18751         here. Prepare for creating <wchar.h> unconditionally.
18752         * modules/wchar (Depends-on): Add link-warning.
18753         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
18754         REPLACE_WCWIDTH, and GL_LINK_WARNING.
18755         * lib/wcwidth.h: Remove file.
18756         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
18757         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
18758         * modules/wcwidth (Files): Remove lib/wcwidth.h.
18759         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
18760         (Include): Replace wcwidth.h with <wchar.h>.
18761         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
18762         * lib/mbchar.h: Don't include wcwidth.h.
18763         * lib/mbswidth.c: Likewise.
18764         * NEWS: Mention the change.
18765
18766 2007-07-07  Bruno Haible  <bruno@clisp.org>
18767
18768         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
18769         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
18770         definition with an external declaration.
18771         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
18772         defined as a function. Remove AC_C_INLINE requirement.
18773         * modules/wcwidth (Files): Add lib/wcwidth.c.
18774         (Makefile.am): Remove redundant statement.
18775
18776 2007-07-07  Bruno Haible  <bruno@clisp.org>
18777
18778         * MODULES.html.sh (Unicode string functions): Add the new modules.
18779
18780         * tests/uniwidth/test-u32-strwidth.c: New file.
18781         * modules/uniwidth/u32-strwidth-tests: New file.
18782
18783         * lib/uniwidth/u32-strwidth.c: New file.
18784         * modules/uniwidth/u32-strwidth: New file.
18785
18786         * tests/uniwidth/test-u16-strwidth.c: New file.
18787         * modules/uniwidth/u16-strwidth-tests: New file.
18788
18789         * lib/uniwidth/u16-strwidth.c: New file.
18790         * modules/uniwidth/u16-strwidth: New file.
18791
18792         * tests/uniwidth/test-u8-strwidth.c: New file.
18793         * modules/uniwidth/u8-strwidth-tests: New file.
18794
18795         * lib/uniwidth/u8-strwidth.c: New file.
18796         * modules/uniwidth/u8-strwidth: New file.
18797
18798         * tests/uniwidth/test-u32-width.c: New file.
18799         * modules/uniwidth/u32-width-tests: New file.
18800
18801         * lib/uniwidth/u32-width.c: New file.
18802         * modules/uniwidth/u32-width: New file.
18803
18804         * tests/uniwidth/test-u16-width.c: New file.
18805         * modules/uniwidth/u16-width-tests: New file.
18806
18807         * lib/uniwidth/u16-width.c: New file.
18808         * modules/uniwidth/u16-width: New file.
18809
18810         * tests/uniwidth/test-u8-width.c: New file.
18811         * modules/uniwidth/u8-width-tests: New file.
18812
18813         * lib/uniwidth/u8-width.c: New file.
18814         * modules/uniwidth/u8-width: New file.
18815
18816         * tests/uniwidth/test-uc_width.c: New file.
18817         * modules/uniwidth/width-tests: New file.
18818
18819         * lib/uniwidth/width.c: New file, from GNU libiconv.
18820         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
18821         * modules/uniwidth/width: New file.
18822
18823         * lib/uniwidth.h: New file, from GNU libiconv.
18824         * modules/uniwidth/base: New file.
18825
18826 2007-07-07  Bruno Haible  <bruno@clisp.org>
18827
18828         * lib/uniname.h: New file, from GNU gettext.
18829         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
18830         * lib/uniname/uninames.h: New file, from GNU gettext.
18831         * lib/uniname/uniname.c: New file, from GNU gettext.
18832         * tests/uniname/test-uninames.sh: New file.
18833         * tests/uniname/test-uninames.c: New file, from GNU gettext.
18834         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
18835         * modules/uniname/base: New file.
18836         * modules/uniname/uniname: New file.
18837         * modules/uniname/uniname-tests: New file.
18838         * MODULES.html.sh (Unicode string functions): Add the new modules.
18839
18840 2007-07-06  Bruno Haible  <bruno@clisp.org>
18841
18842         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
18843
18844 2007-07-06  Bruno Haible  <bruno@clisp.org>
18845
18846         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
18847         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
18848         includes <cygwin/sys_time.h> which includes <sys/select.h> which
18849         include <sys/time.h>.
18850         Reported by Eric Blake.
18851
18852 2007-07-06  Eric Blake  <ebb9@byu.net>
18853
18854         Fix testing canonicalize on cygwin.
18855         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
18856         Revert patch from 2007-06-19.
18857         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
18858         canonicalize module is also in use.
18859         * tests/test-canonicalize.c: New file.
18860         * tests/test-canonicalize.sh: Likewise.
18861         * modules/canonicalize-tests: Likewise.
18862
18863 2007-07-06  Jim Meyering  <jim@meyering.net>
18864
18865         * lib/getugroups.c (getugroups): Detect getgrent failure.
18866         Adjust comment to reflect reality: this function may return -1.
18867
18868 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18869
18870         * build-aux/bootstrap (TP_URL,get_translations): Update to use
18871         the new TP address.
18872         (usage): Fix typo
18873         (gnulib_mk): New variable.
18874
18875 2007-07-05  Jim Meyering  <jim@meyering.net>
18876
18877         Don't let endgrent clobber errno, no matter how improbable.
18878         * lib/getugroups.c (getugroups): Save and restore errno around
18879         endgrent call.
18880
18881         Close the group DB even when failing with 2^31 or more members.
18882         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
18883
18884 2007-07-04  Jim Meyering  <jim@meyering.net>
18885
18886         * lib/getugroups.h: New file.
18887         * lib/getugroups.c: Include "getugroups.h".
18888         Remove uses of "register" keyword.
18889         Move local variable, "cp", down into scope where used.
18890         Give "username" parameter the "const" attribute.
18891         * modules/getugroups (Files): Add lib/getugroups.h
18892
18893 2007-07-04  Karl Berry  <karl@gnu.org>
18894
18895         * MODULES.html.sh (func_all_modules): Complete rename of
18896         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
18897
18898 2007-07-02  Bruno Haible  <bruno@clisp.org>
18899
18900         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
18901         mode, when inttypes.h comes from gnulib.
18902         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
18903
18904 2007-07-02  Simon Josefsson  <simon@josefsson.org>
18905
18906         * NEWS: Mention lgpl module name change.
18907
18908         * modules/lgpl-2.1: Renamed from lgpl.
18909
18910         * NEWS: Mention gpl module name change.
18911
18912         * modules/gpl-3.0: New file, based on gpl-2.0.
18913
18914         * modules/gpl-2.0: Renamed from gpl.
18915
18916         * modules/gpl: Fix filename, doc/gpl.texi is now found at
18917         doc/gpl-2.0.texi.
18918
18919 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
18920
18921         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
18922         #define __STDC_LIMIT_MACROS temporarily while including
18923         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
18924         Problem reported by Joel E. Denny in
18925         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
18926
18927 2007-07-01  Bruno Haible  <bruno@clisp.org>
18928
18929         * lib/unistdio.h: New file.
18930         * lib/unistdio/u-asnprintf.h: New file.
18931         * lib/unistdio/u-asprintf.h: New file.
18932         * lib/unistdio/u-printf-args.c: New file.
18933         * lib/unistdio/u-printf-args.h: New file.
18934         * lib/unistdio/u-printf-parse.h: New file.
18935         * lib/unistdio/u-snprintf.h: New file.
18936         * lib/unistdio/u-sprintf.h: New file.
18937         * lib/unistdio/u-vasprintf.h: New file.
18938         * lib/unistdio/u-vsnprintf.h: New file.
18939         * lib/unistdio/u-vsprintf.h: New file.
18940         * lib/unistdio/ulc-asnprintf.c: New file.
18941         * lib/unistdio/ulc-asprintf.c: New file.
18942         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
18943         * lib/unistdio/ulc-printf-parse.c: New file.
18944         * lib/unistdio/ulc-snprintf.c: New file.
18945         * lib/unistdio/ulc-sprintf.c: New file.
18946         * lib/unistdio/ulc-vasnprintf.c: New file.
18947         * lib/unistdio/ulc-vasprintf.c: New file.
18948         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
18949         * lib/unistdio/ulc-vsnprintf.c: New file.
18950         * lib/unistdio/ulc-vsprintf.c: New file.
18951         * lib/unistdio/u8-asnprintf.c: New file.
18952         * lib/unistdio/u8-asprintf.c: New file.
18953         * lib/unistdio/u8-printf-parse.c: New file.
18954         * lib/unistdio/u8-snprintf.c: New file.
18955         * lib/unistdio/u8-sprintf.c: New file.
18956         * lib/unistdio/u8-vasnprintf.c: New file.
18957         * lib/unistdio/u8-vasprintf.c: New file.
18958         * lib/unistdio/u8-vsnprintf.c: New file.
18959         * lib/unistdio/u8-vsprintf.c: New file.
18960         * lib/unistdio/u8-u8-asnprintf.c: New file.
18961         * lib/unistdio/u8-u8-asprintf.c: New file.
18962         * lib/unistdio/u8-u8-snprintf.c: New file.
18963         * lib/unistdio/u8-u8-sprintf.c: New file.
18964         * lib/unistdio/u8-u8-vasnprintf.c: New file.
18965         * lib/unistdio/u8-u8-vasprintf.c: New file.
18966         * lib/unistdio/u8-u8-vsnprintf.c: New file.
18967         * lib/unistdio/u8-u8-vsprintf.c: New file.
18968         * lib/unistdio/u16-asnprintf.c: New file.
18969         * lib/unistdio/u16-asprintf.c: New file.
18970         * lib/unistdio/u16-printf-parse.c: New file.
18971         * lib/unistdio/u16-snprintf.c: New file.
18972         * lib/unistdio/u16-sprintf.c: New file.
18973         * lib/unistdio/u16-vasnprintf.c: New file.
18974         * lib/unistdio/u16-vasprintf.c: New file.
18975         * lib/unistdio/u16-vsnprintf.c: New file.
18976         * lib/unistdio/u16-vsprintf.c: New file.
18977         * lib/unistdio/u16-u16-asnprintf.c: New file.
18978         * lib/unistdio/u16-u16-asprintf.c: New file.
18979         * lib/unistdio/u16-u16-snprintf.c: New file.
18980         * lib/unistdio/u16-u16-sprintf.c: New file.
18981         * lib/unistdio/u16-u16-vasnprintf.c: New file.
18982         * lib/unistdio/u16-u16-vasprintf.c: New file.
18983         * lib/unistdio/u16-u16-vsnprintf.c: New file.
18984         * lib/unistdio/u16-u16-vsprintf.c: New file.
18985         * lib/unistdio/u32-asnprintf.c: New file.
18986         * lib/unistdio/u32-asprintf.c: New file.
18987         * lib/unistdio/u32-printf-parse.c: New file.
18988         * lib/unistdio/u32-snprintf.c: New file.
18989         * lib/unistdio/u32-sprintf.c: New file.
18990         * lib/unistdio/u32-vasnprintf.c: New file.
18991         * lib/unistdio/u32-vasprintf.c: New file.
18992         * lib/unistdio/u32-vsnprintf.c: New file.
18993         * lib/unistdio/u32-vsprintf.c: New file.
18994         * lib/unistdio/u32-u32-asnprintf.c: New file.
18995         * lib/unistdio/u32-u32-asprintf.c: New file.
18996         * lib/unistdio/u32-u32-snprintf.c: New file.
18997         * lib/unistdio/u32-u32-sprintf.c: New file.
18998         * lib/unistdio/u32-u32-vasnprintf.c: New file.
18999         * lib/unistdio/u32-u32-vasprintf.c: New file.
19000         * lib/unistdio/u32-u32-vsnprintf.c: New file.
19001         * lib/unistdio/u32-u32-vsprintf.c: New file.
19002         * tests/unistdio/test-ulc-asnprintf1.c: New file.
19003         * tests/unistdio/test-ulc-asnprintf1.h: New file.
19004         * tests/unistdio/test-ulc-printf1.h: New file.
19005         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
19006         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
19007         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
19008         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
19009         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
19010         * tests/unistdio/test-ulc-vasprintf1.c: New file.
19011         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
19012         * tests/unistdio/test-ulc-vsprintf1.c: New file.
19013         * tests/unistdio/test-u8-asnprintf1.c: New file.
19014         * tests/unistdio/test-u8-asnprintf1.h: New file.
19015         * tests/unistdio/test-u8-printf1.h: New file.
19016         * tests/unistdio/test-u8-vasnprintf1.c: New file.
19017         * tests/unistdio/test-u8-vasnprintf2.c: New file.
19018         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
19019         * tests/unistdio/test-u8-vasnprintf3.c: New file.
19020         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
19021         * tests/unistdio/test-u8-vasprintf1.c: New file.
19022         * tests/unistdio/test-u8-vsnprintf1.c: New file.
19023         * tests/unistdio/test-u8-vsprintf1.c: New file.
19024         * tests/unistdio/test-u16-asnprintf1.c: New file.
19025         * tests/unistdio/test-u16-asnprintf1.h: New file.
19026         * tests/unistdio/test-u16-printf1.h: New file.
19027         * tests/unistdio/test-u16-vasnprintf1.c: New file.
19028         * tests/unistdio/test-u16-vasnprintf2.c: New file.
19029         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
19030         * tests/unistdio/test-u16-vasnprintf3.c: New file.
19031         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
19032         * tests/unistdio/test-u16-vasprintf1.c: New file.
19033         * tests/unistdio/test-u16-vsnprintf1.c: New file.
19034         * tests/unistdio/test-u16-vsprintf1.c: New file.
19035         * tests/unistdio/test-u32-asnprintf1.c: New file.
19036         * tests/unistdio/test-u32-asnprintf1.h: New file.
19037         * tests/unistdio/test-u32-printf1.h: New file.
19038         * tests/unistdio/test-u32-vasnprintf1.c: New file.
19039         * tests/unistdio/test-u32-vasnprintf2.c: New file.
19040         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
19041         * tests/unistdio/test-u32-vasnprintf3.c: New file.
19042         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
19043         * tests/unistdio/test-u32-vasprintf1.c: New file.
19044         * tests/unistdio/test-u32-vsnprintf1.c: New file.
19045         * tests/unistdio/test-u32-vsprintf1.c: New file.
19046         * modules/unistdio/base: New file.
19047         * modules/unistdio/u-printf-args: New file.
19048         * modules/unistdio/ulc-asnprintf: New file.
19049         * modules/unistdio/ulc-asprintf: New file.
19050         * modules/unistdio/ulc-fprintf: New file.
19051         * modules/unistdio/ulc-printf-parse: New file.
19052         * modules/unistdio/ulc-snprintf: New file.
19053         * modules/unistdio/ulc-sprintf: New file.
19054         * modules/unistdio/ulc-vasnprintf: New file.
19055         * modules/unistdio/ulc-vasprintf: New file.
19056         * modules/unistdio/ulc-vfprintf: New file.
19057         * modules/unistdio/ulc-vsnprintf: New file.
19058         * modules/unistdio/ulc-vsprintf: New file.
19059         * modules/unistdio/u8-asnprintf: New file.
19060         * modules/unistdio/u8-asprintf: New file.
19061         * modules/unistdio/u8-printf-parse: New file.
19062         * modules/unistdio/u8-snprintf: New file.
19063         * modules/unistdio/u8-sprintf: New file.
19064         * modules/unistdio/u8-vasnprintf: New file.
19065         * modules/unistdio/u8-vasprintf: New file.
19066         * modules/unistdio/u8-vsnprintf: New file.
19067         * modules/unistdio/u8-vsprintf: New file.
19068         * modules/unistdio/u8-u8-asnprintf: New file.
19069         * modules/unistdio/u8-u8-asprintf: New file.
19070         * modules/unistdio/u8-u8-snprintf: New file.
19071         * modules/unistdio/u8-u8-sprintf: New file.
19072         * modules/unistdio/u8-u8-vasnprintf: New file.
19073         * modules/unistdio/u8-u8-vasprintf: New file.
19074         * modules/unistdio/u8-u8-vsnprintf: New file.
19075         * modules/unistdio/u8-u8-vsprintf: New file.
19076         * modules/unistdio/u16-asnprintf: New file.
19077         * modules/unistdio/u16-asprintf: New file.
19078         * modules/unistdio/u16-printf-parse: New file.
19079         * modules/unistdio/u16-snprintf: New file.
19080         * modules/unistdio/u16-sprintf: New file.
19081         * modules/unistdio/u16-vasnprintf: New file.
19082         * modules/unistdio/u16-vasprintf: New file.
19083         * modules/unistdio/u16-vsnprintf: New file.
19084         * modules/unistdio/u16-vsprintf: New file.
19085         * modules/unistdio/u16-u16-asnprintf: New file.
19086         * modules/unistdio/u16-u16-asprintf: New file.
19087         * modules/unistdio/u16-u16-snprintf: New file.
19088         * modules/unistdio/u16-u16-sprintf: New file.
19089         * modules/unistdio/u16-u16-vasnprintf: New file.
19090         * modules/unistdio/u16-u16-vasprintf: New file.
19091         * modules/unistdio/u16-u16-vsnprintf: New file.
19092         * modules/unistdio/u16-u16-vsprintf: New file.
19093         * modules/unistdio/u32-asnprintf: New file.
19094         * modules/unistdio/u32-asprintf: New file.
19095         * modules/unistdio/u32-printf-parse: New file.
19096         * modules/unistdio/u32-snprintf: New file.
19097         * modules/unistdio/u32-sprintf: New file.
19098         * modules/unistdio/u32-vasnprintf: New file.
19099         * modules/unistdio/u32-vasprintf: New file.
19100         * modules/unistdio/u32-vsnprintf: New file.
19101         * modules/unistdio/u32-vsprintf: New file.
19102         * modules/unistdio/u32-u32-asnprintf: New file.
19103         * modules/unistdio/u32-u32-asprintf: New file.
19104         * modules/unistdio/u32-u32-snprintf: New file.
19105         * modules/unistdio/u32-u32-sprintf: New file.
19106         * modules/unistdio/u32-u32-vasnprintf: New file.
19107         * modules/unistdio/u32-u32-vasprintf: New file.
19108         * modules/unistdio/u32-u32-vsnprintf: New file.
19109         * modules/unistdio/u32-u32-vsprintf: New file.
19110         * modules/unistdio/ulc-asnprintf-tests: New file.
19111         * modules/unistdio/ulc-vasnprintf-tests: New file.
19112         * modules/unistdio/ulc-vasprintf-tests: New file.
19113         * modules/unistdio/ulc-vsnprintf-tests: New file.
19114         * modules/unistdio/ulc-vsprintf-tests: New file.
19115         * modules/unistdio/u8-asnprintf-tests: New file.
19116         * modules/unistdio/u8-vasnprintf-tests: New file.
19117         * modules/unistdio/u8-vasprintf-tests: New file.
19118         * modules/unistdio/u8-vsnprintf-tests: New file.
19119         * modules/unistdio/u8-vsprintf-tests: New file.
19120         * modules/unistdio/u16-asnprintf-tests: New file.
19121         * modules/unistdio/u16-vasnprintf-tests: New file.
19122         * modules/unistdio/u16-vasprintf-tests: New file.
19123         * modules/unistdio/u16-vsnprintf-tests: New file.
19124         * modules/unistdio/u16-vsprintf-tests: New file.
19125         * modules/unistdio/u32-asnprintf-tests: New file.
19126         * modules/unistdio/u32-vasnprintf-tests: New file.
19127         * modules/unistdio/u32-vasprintf-tests: New file.
19128         * modules/unistdio/u32-vsnprintf-tests: New file.
19129         * modules/unistdio/u32-vsprintf-tests: New file.
19130         * MODULES.html.sh (Unicode string functions): Add the new modules.
19131
19132 2007-07-01  Bruno Haible  <bruno@clisp.org>
19133
19134         * lib/sprintf.c (sprintf): Limit the available length estimation,
19135         to avoid address wraparound.
19136         * lib/vsprintf.c (vsprintf): Likewise.
19137         * modules/sprintf-posix (Dependencies): Add stdint.
19138         * modules/vsprintf-posix (Dependencies): Likewise.
19139
19140 2007-07-01  Bruno Haible  <bruno@clisp.org>
19141
19142         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
19143         Windows PATH as well. Conservative double-quoting. Comments.
19144
19145 2007-07-01  Bruno Haible  <bruno@clisp.org>
19146             Eric Blake  <ebb9@byu.net>
19147             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19148
19149         * gnulib-tool (self_abspathname): Fix algorithm to cope with
19150         empty components in $PATH, denoting '.'.
19151
19152 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19153
19154         * gnulib-tool: Fix indentation.
19155         (func_create_megatestdir): Likewise.
19156         Report by Bruno Haible.
19157
19158 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19159
19160         Sync from Automake.
19161         * build-aux/gnupload: Fix shell portability issues with for loops.
19162         Report by Karl Berry.
19163
19164 2007-06-29  Simon Josefsson  <simon@josefsson.org>
19165
19166         * build-aux/maint.mk (POURL): Use translationproject.org.
19167
19168 2007-06-27  Simon Josefsson  <simon@josefsson.org>
19169             Bruno Haible  <bruno@clisp.org>
19170
19171         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
19172         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
19173         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
19174         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
19175         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
19176
19177 2007-06-27  Bruno Haible  <bruno@clisp.org>
19178
19179         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
19180         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
19181
19182 2007-06-26  Karl Berry  <karl@gnu.org>
19183
19184         * MODULES.html.sh: remove xreadlink-with-size.
19185
19186 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
19187
19188         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
19189         method that I hope also handles the double-include problem noted
19190         by Bruno Haible in
19191         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
19192
19193 2007-06-23  Bruno Haible  <bruno@clisp.org>
19194
19195         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19196         Don't let the 'mostlyclean' target fail if the last subdirectory could
19197         not be removed.
19198         Reported by Karl Berry.
19199
19200 2007-06-23  Bruno Haible  <bruno@clisp.org>
19201
19202         * gnulib-tool (echo): Add a speedier workaround for ksh.
19203         * tests/test-echo.sh: Likewise.
19204
19205 2007-06-23  Bruno Haible  <bruno@clisp.org>
19206
19207         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
19208         * tests/test-echo.sh: Likewise.
19209
19210 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19211
19212         * gnulib-tool (IFS): Initialize early, so we don't set it to
19213         empty later.
19214         (self_abspathname): Rewrite algorithm to set it, reindent.
19215         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
19216         (func_create_megatestdir): Merge some sed scripts.
19217
19218 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
19219
19220         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
19221         exposed by Sun Studio 11 cc on Solaris 8.
19222
19223 2007-06-22  Bruno Haible  <bruno@clisp.org>
19224
19225         * gnulib-tool (echo): Ensure the echo primitive does not interpret
19226         backslashes.
19227         * tests/test-echo.sh: New file.
19228
19229 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19230
19231         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
19232         simplify `sed_replace_build_aux' scripts, they are portable but
19233         echoing them with `echo' is not.
19234         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
19235
19236 2007-06-21  Karl Berry  <karl@gnu.org>
19237
19238         * config/srclist.txt: guess we can't handle the licenses via
19239         srclist at the moment.
19240
19241 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
19242
19243         * MODULES.html.sh: Add include_next.
19244         * modules/include_next: New file.
19245
19246 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
19247
19248         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
19249         INCLUDE_NEXT.
19250         (gl_CHECK_NEXT_HEADERS): New macro.
19251         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
19252         the obsolescent gl_ABSOLUTE_HEADER.
19253         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
19254         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
19255         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
19256         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19257         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19258         * m4/math_h.m4 (gl_MATH_H): Likewise.
19259         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
19260         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19261         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
19262         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19263         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
19264         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
19265         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
19266         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19267         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19268         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
19269         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
19270         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
19271         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
19272         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19273         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19274         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
19275         * m4/inttypes.m4 (gl_INTTYPES_H): Define
19276         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
19277         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
19278         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
19279         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
19280         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
19281         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
19282         * lib/float_.h: Likewise.
19283         * lib/inttypes_.h: Likewise.
19284         * lib/math_.h: Likewise.
19285         * lib/search_.h: Likewise.
19286         * lib/signal_.h: Likewise.
19287         * lib/stdint_.h: Likewise.
19288         * lib/stdio_.h: Likewise.
19289         * lib/stdlib_.h: Likewise.
19290         * lib/string_.h: Likewise.
19291         * lib/sys_stat_.h: Likewise.
19292         * lib/sys_time_.h: Likewise.
19293         * lib/time_.h: Likewise.
19294         * lib/unistd_.h: Likewise.
19295         * lib/wchar_.h: Likewise.
19296         * lib/wctype_.h: Likewise.
19297         * lib/dirent_.h: Likewise.
19298         * lib/iconv_.h: Likewise.
19299         * lib/locale_.h: Likewise.
19300         * lib/netinet_in_.h: Likewise.
19301         * lib/sys_select_.h: Likewise.
19302         * lib/sys_socket_.h: Likewise.
19303         * lib/sysexits_.h: Likewise.
19304         * modules/fcntl (Depends-on): Depend on include_next, not
19305         absolute_header.
19306         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
19307         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
19308         * modules/fchdir: Likewise.
19309         * modules/float: Likewise.
19310         * modules/iconv_open: Likewise.
19311         * modules/inttypes: Likewise.
19312         * modules/locale: Likewise.
19313         * modules/math: Likewise.
19314         * modules/netinet_in: Likewise.
19315         * modules/search: Likewise.
19316         * modules/signal: Likewise.
19317         * modules/stdint: Likewise.
19318         * modules/stdio: Likewise.
19319         * modules/stdlib: Likewise.
19320         * modules/string: Likewise.
19321         * modules/sys_select: Likewise.
19322         * modules/sys_socket: Likewise.
19323         * modules/sys_stat: Likewise.
19324         * modules/sys_time: Likewise.
19325         * modules/sysexits: Likewise.
19326         * modules/time: Likewise.
19327         * modules/unistd: Likewise.
19328         * modules/wchar: Likewise.
19329         * modules/wctype: Likewise.
19330         * modules/sys_stat: Change maintainer to "all".
19331         * modules/unistd: Likewise.
19332
19333 2007-06-20  Karl Berry  <karl@gnu.org>
19334
19335         * config/srclist.txt: track www changes in license files.
19336
19337 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
19338
19339         * build-aux/bootstrap: Remove stray dot.
19340         Make sure build_aux settings are honored when linking
19341         gnulib_extra_files.
19342
19343 2007-06-19  Eric Blake  <ebb9@byu.net>
19344
19345         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
19346         Allow compilation on cygwin.
19347
19348 2007-06-19  Jim Meyering  <jim@meyering.net>
19349
19350         xreadlink-with-size: Remove module.  No longer used.
19351         Ex-callers now use xreadlink or mreadlink-with-size.
19352         * modules/xreadlink-with-size: Remove module.
19353         * lib/xreadlink-with-size.c: Remove file.
19354         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
19355         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
19356         just before the function definition *is* accurate.
19357
19358         Eliminate one way canonicalize_filename_mode could exit.
19359         * lib/canonicalize.c (canonicalize_filename_mode):
19360         Use mreadlink_with_size, not xreadlink_with_size.
19361
19362 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
19363
19364         Detect porting problems to FreeBSD/arm, which has time_t wider than
19365         long int.  Original problem reported for GNU diff by Xin Li in
19366         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
19367         * modules/getdate (Depends-on): Add intprops, verify.
19368         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
19369         is an integer type no wider than long int.
19370
19371 2007-06-18  Jim Meyering  <jim@meyering.net>
19372
19373         New module: mreadlink-with-size.
19374         * MODULES.html.sh: Add mreadlink-with-size.
19375         * modules/mreadlink-with-size: New module
19376         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
19377         not xreadlink-with-size.
19378         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
19379
19380 2007-06-16  Bruno Haible  <bruno@clisp.org>
19381
19382         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
19383         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
19384         Reported by Gary V. Vaughan <gary@gnu.org>.
19385
19386 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
19387
19388         Revamp lchown so that it lives in unistd.h where it belongs.
19389         * lib/lchown.h: Remove.
19390         * lib/dirchownmod.c: Don't include lib/lchown.h.
19391         * lib/fchownat.c: Likewise.
19392         * lib/openat.c: Likewise.
19393         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
19394         does not follow symlinks.
19395         (EOPNOTSUPP): Define if not defined.
19396         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
19397         is defined to 0.
19398         (lchown): New decl.
19399         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
19400         Do not check for lchown decl.
19401         Set REPLACE_LCHOWN.
19402         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
19403         REPLACE_LCHOWN.
19404         * modules/chown: Make it clear it follows symlinks.
19405         * modules/lchown: Make it clear it doesn't follow symlinks.
19406         (Files): Remove lib/lchown.h
19407         (Depends-on): Add unistd.
19408         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
19409         (Include): Include <unistd.h>, not "lchown.h".
19410         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
19411         REPLACE_LCHOWN.
19412
19413 2007-06-15  Jim Meyering  <jim@meyering.net>
19414
19415         Change license (GPL to LGPL) of fsusage and dependents.
19416         * modules/fsusage (License): Change to LGPL.
19417         * modules/full-read (License): Likewise.
19418         * modules/full-write (License): Likewise.
19419         * modules/safe-read (License): Likewise.
19420         * modules/safe-write (License): Likewise.
19421
19422 2007-06-14  Ben Pfaff  <blp@gnu.org>
19423
19424         Missing part of allocsa -> malloca transition.
19425         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
19426         gl_MALLOCA.
19427
19428 2007-06-12  Bruno Haible  <bruno@clisp.org>
19429
19430         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
19431         to ia64, x86_64, i386.
19432         Reported by Eric Blake.
19433
19434 2007-06-12  Bruno Haible  <bruno@clisp.org>
19435
19436         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
19437         cross-compiling to x86_64.
19438
19439 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
19440
19441         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
19442         glitch reported by Ralf Wildenhues in
19443         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
19444
19445         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
19446         Vin Shelton.
19447
19448 2007-06-11  Bruno Haible  <bruno@clisp.org>
19449
19450         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
19451         replacement string.
19452         Reported by Eric Blake.
19453
19454 2007-06-10  Bruno Haible  <bruno@clisp.org>
19455
19456         Prepare vasnprintf code for use with Unicode strings.
19457         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
19458         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
19459         TYPE_U32_STRING.
19460         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
19461         a_u32_string variants.
19462         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
19463         * lib/printf-args.c: Don't include config.h and the specification
19464         header if PRINTF_FETCHARGS is already defined.
19465         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
19466         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
19467         TYPE_U16_STRING, TYPE_U32_STRING.
19468         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
19469         u16_directive, u16_directives, u32_directive, u32_directives): New
19470         types.
19471         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
19472         New declarations.
19473         * lib/printf-parse.c: Don't include config.h and the specification
19474         header if PRINTF_PARSE is already defined. Eliminate the set of
19475         parameters for WIDE_CHAR_VERSION; the user of this file must provide
19476         them now. Include c-ctype.h.
19477         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
19478         directive and CHAR_T_ONLY_ASCII.
19479         * lib/vasnprintf.c: Don't include config.h and the specification header
19480         if VASNPRINTF is already defined.
19481         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
19482         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
19483         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
19484         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
19485         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
19486         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
19487         code accordingly.
19488         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
19489         pad_ourselves also in this case, with the 'c' and 's' directives, and
19490         with a different notion of "width".
19491         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
19492
19493 2007-06-10  Bruno Haible  <bruno@clisp.org>
19494
19495         * modules/unistr/u32-mbsnlen: New file.
19496         * lib/unistr/u32-mbsnlen.c: New file.
19497
19498         * modules/unistr/u16-mbsnlen: New file.
19499         * lib/unistr/u16-mbsnlen.c: New file.
19500
19501         * modules/unistr/u8-mbsnlen: New file.
19502         * lib/unistr/u8-mbsnlen.c: New file.
19503
19504         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
19505         declarations.
19506
19507 2007-06-10  Bruno Haible  <bruno@clisp.org>
19508
19509         * lib/string_.h (mbsnlen): New declaration.
19510         * lib/mbsnlen.c: New file.
19511         * m4/mbsnlen.m4: New file.
19512         * modules/mbsnlen: New file.
19513         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
19514         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
19515         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
19516
19517 2007-06-10  Bruno Haible  <bruno@clisp.org>
19518
19519         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
19520
19521 2007-06-10  Bruno Haible  <bruno@clisp.org>
19522
19523         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
19524         * lib/mbuiter.h: Likewise.
19525
19526 2007-06-10  Bruno Haible  <bruno@clisp.org>
19527
19528         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
19529         declaration.
19530
19531 2007-06-10  Karl Berry  <karl@gnu.org>
19532
19533         * config/srclist.txt: remove gettext entries, Bruno prefers
19534         to update individually.
19535
19536 2007-06-10  Bruno Haible  <bruno@clisp.org>
19537
19538         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
19539         'maxlen'. Ensure only length + width bytes are allocated, not
19540         length + 1 + width.
19541
19542 2007-06-09  Bruno Haible  <bruno@clisp.org>
19543
19544         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
19545         (CHAR_T): Remove macro.
19546         (VASNPRINTF): Update.
19547
19548 2007-06-09  Bruno Haible  <bruno@clisp.org>
19549
19550         * MODULES.html.sh (Unicode string functions): Add the new modules.
19551
19552         * modules/uniconv/u32-conv-to-enc: New file.
19553         * lib/uniconv/u32-conv-to-enc.c: New file.
19554         * modules/uniconv/u32-conv-to-enc-tests: New file.
19555         * tests/uniconv/test-u32-conv-to-enc.c: New file.
19556
19557         * modules/uniconv/u16-conv-to-enc: New file.
19558         * lib/uniconv/u16-conv-to-enc.c: New file.
19559         * lib/uniconv/u-conv-to-enc.h: New file.
19560         * modules/uniconv/u16-conv-to-enc-tests: New file.
19561         * tests/uniconv/test-u16-conv-to-enc.c: New file.
19562
19563         * modules/uniconv/u8-conv-to-enc: New file.
19564         * lib/uniconv/u8-conv-to-enc.c: New file.
19565         * modules/uniconv/u8-conv-to-enc-tests: New file.
19566         * tests/uniconv/test-u8-conv-to-enc.c: New file.
19567
19568         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
19569         u32_conv_to_encoding): New declarations.
19570
19571 2007-06-09  Bruno Haible  <bruno@clisp.org>
19572
19573         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
19574
19575 2007-06-09  Bruno Haible  <bruno@clisp.org>
19576
19577         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
19578         * modules/malloca: Renamed from modules/allocsa, updated.
19579         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
19580         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
19581         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
19582         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
19583         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
19584         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
19585         * modules/xmalloca: Renamed from modules/xallocsa, updated.
19586         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
19587         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
19588         * modules/c-strcasestr (Depends-on): Update.
19589         * lib/c-strcasestr.c: Update.
19590         * modules/c-strstr (Depends-on): Update.
19591         * lib/c-strstr.c: Update.
19592         * modules/canonicalize-lgpl (Depends-on): Update.
19593         * lib/canonicalize-lgpl.c: Update.
19594         * modules/clean-temp (Depends-on): Update.
19595         * lib/clean-temp.c: Update.
19596         * modules/csharpcomp (Depends-on): Update.
19597         * lib/csharpcomp.c: Update.
19598         * modules/csharpexec (Depends-on): Update.
19599         * lib/csharpexec.c: Update.
19600         * modules/javacomp (Depends-on): Update.
19601         * lib/javacomp.c: Update.
19602         * modules/javaexec (Depends-on): Update.
19603         * lib/javaexec.c: Update.
19604         * modules/mbscasestr (Depends-on): Update.
19605         * lib/mbscasestr.c: Update.
19606         * modules/mbsstr (Depends-on): Update.
19607         * lib/mbsstr.c: Update.
19608         * modules/setenv (Depends-on): Update.
19609         * lib/setenv.c: Update.
19610         * modules/strcasestr (Depends-on): Update.
19611         * lib/strcasestr.c: Update.
19612         * modules/striconveha (Depends-on): Update.
19613         * lib/striconveha.c: Update.
19614         * modules/relocatable-prog-wrapper (Files): Update.
19615         * lib/relocwrapper.c: Update.
19616         * build-aux/install-reloc: Update.
19617         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
19618
19619 2007-06-08  Bruno Haible  <bruno@clisp.org>
19620
19621         Port to uClibc.
19622         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
19623         * lib/fpurge.c (fpurge): Likewise.
19624         * lib/freading.c (freading): Likewise.
19625         * lib/fseeko.c (rpl_fseeko): Likewise.
19626         * lib/fseterr.c (fseterr): Likewise.
19627         * lib/fwriting.c (fwriting): Likewise.
19628         * tests/test-fflush.c (main): Avoid a failure on uClibc.
19629
19630 2007-06-08  Bruno Haible  <bruno@clisp.org>
19631
19632         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
19633         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
19634         * modules/gettext (Files): Add m4/intlmacosx.m4.
19635
19636 2007-06-07  Bruno Haible  <bruno@clisp.org>
19637
19638         * modules/localename-tests: New file.
19639         * tests/test-localename.c: New file.
19640
19641         New module 'localename'.
19642         * lib/localename.h: New file.
19643         * lib/localename.c: New file, from GNU gettext.
19644         * m4/localename.m4: New file.
19645         * modules/localename: New file.
19646
19647 2007-06-07  Bruno Haible  <bruno@clisp.org>
19648
19649         Work around the lack of <wchar.h> on some builds of uClibc.
19650         * doc/headers/wchar.texi: Update.
19651         * lib/wchar_.h: Include <wchar.h> only if it exists.
19652         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
19653         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
19654         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
19655         doesn't exist.
19656         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
19657         * modules/mbfile (Depends-on): Add wchar.
19658         * modules/mbiter (Depends-on): Likewise.
19659         * modules/mbuiter (Depends-on): Likewise.
19660         Reported by Simon Josefsson.
19661
19662 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
19663
19664         Work around problem reported by Steven M. Schweda in
19665         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
19666         Tru64 5.1B with the Compaq compiler environment installed declares
19667         an 'isblank' function but does not define it in the C library.
19668         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
19669         * lib/regex_internal.h (isblank): Likewise.
19670         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
19671         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19672
19673 2007-06-05  Bruno Haible  <bruno@clisp.org>
19674
19675         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
19676         ia64.
19677         * modules/printf-safe: New file.
19678         * modules/fprintf-posix (Depends-on): Add printf-safe.
19679         * modules/printf-posix (Depends-on): Likewise.
19680         * modules/snprintf-posix (Depends-on): Likewise.
19681         * modules/sprintf-posix (Depends-on): Likewise.
19682         * modules/vasnprintf-posix (Depends-on): Likewise.
19683         * modules/vasprintf-posix (Depends-on): Likewise.
19684         * modules/vfprintf-posix (Depends-on): Likewise.
19685         * modules/vprintf-posix (Depends-on): Likewise.
19686         * modules/vsnprintf-posix (Depends-on): Likewise.
19687         * modules/vsprintf-posix (Depends-on): Likewise.
19688         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
19689         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
19690         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
19691         "no" on i386, x86_64, ia64.
19692         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
19693         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19694         on i386, x86_64, ia64.
19695         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
19696         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19697         on i386, x86_64, ia64.
19698         * tests/test-vasnprintf-posix.c: Include float.h.
19699         (LDBL80_WORDS): New macro.
19700         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19701         on i386, x86_64, ia64.
19702         * tests/test-vasprintf-posix.c: Include float.h.
19703         (LDBL80_WORDS): New macro.
19704         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19705         on i386, x86_64, ia64.
19706         * tests/test-snprintf-posix.c: Include float.h.
19707         * tests/test-sprintf-posix.c: Likewise.
19708         * tests/test-vsnprintf-posix.c: Likewise.
19709         * tests/test-vsprintf-posix.c: Likewise.
19710
19711 2007-06-05  Bruno Haible  <bruno@clisp.org>
19712
19713         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
19714         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
19715         non-IEEE numbers on i386, x86_64, ia64.
19716         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
19717         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
19718         * tests/test-isnanl.h: Include float.h.
19719         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
19720
19721 2007-06-05  Bruno Haible  <bruno@clisp.org>
19722
19723         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
19724         also the %a / %A. Handle the %a / %A code before this extra handling.
19725
19726 2007-06-05  Bruno Haible  <bruno@clisp.org>
19727
19728         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
19729         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
19730
19731 2007-06-05  Bruno Haible  <bruno@clisp.org>
19732
19733         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
19734         typo in variable name.
19735
19736 2007-06-05  Eric Blake  <ebb9@byu.net>
19737
19738         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
19739         Reported by Simon Josefsson.
19740
19741 2007-06-04  Bruno Haible  <bruno@clisp.org>
19742
19743         Avoid test failures on some PowerPC platforms.
19744         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
19745         Define differently for PowerPC.
19746         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
19747         Reported by Gary V. Vaughan <gary@gnu.org>.
19748
19749 2007-06-02  Bruno Haible  <bruno@clisp.org>
19750
19751         Fix test-stdint failure on FreeBSD/ia64.
19752         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
19753         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
19754         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
19755         * doc/headers/stdint.texi: Update.
19756
19757 2007-06-01  Bruno Haible  <bruno@clisp.org>
19758
19759         * tests/test-binary-io.c (main): Pass a third argument to open().
19760         Reported by Gary V. Vaughan <gary@gnu.org>.
19761
19762 2007-06-01  Bruno Haible  <bruno@clisp.org>
19763
19764         * doc/functions/frexpl.texi: Update for mingw.
19765
19766 2007-06-01  Bruno Haible  <bruno@clisp.org>
19767
19768         * tests/test-lseek.c (main): Disable test of errno for invalid third
19769         argument.
19770         * doc/functions/lseek.texi: Update.
19771         Reported by Gary V. Vaughan <gary@gnu.org>.
19772
19773 2007-05-28  Bruno Haible  <bruno@clisp.org>
19774
19775         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
19776
19777 2007-05-31  Eric Blake  <ebb9@byu.net>
19778
19779         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
19780         cross compiling.
19781
19782 2007-05-30  Eric Blake  <ebb9@byu.net>
19783         and Bruno Haible  <bruno@clisp.org>
19784
19785         Work around mingw test failures exposed by m4-1.4.9b.
19786         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
19787         * tests/test-unistd.c: Disable uid_t and git_t tests for the
19788         moment.
19789
19790 2007-05-30  Bruno Haible  <bruno@clisp.org>
19791
19792         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
19793         assuming that they are closed. Needed on HP-UX 11.
19794
19795 2007-05-29  Bruno Haible  <bruno@clisp.org>
19796
19797         Fix a problem with #include_next.
19798         * lib/dirent_.h: Split the double-inclusion guard.
19799         * lib/fcntl_.h: Likewise.
19800         * lib/float_.h: Likewise.
19801         * lib/iconv_.h: Likewise.
19802         * lib/inttypes_.h: Likewise.
19803         * lib/locale_.h: Likewise.
19804         * lib/math_.h: Likewise.
19805         * lib/netinet_in_.h: Likewise.
19806         * lib/search_.h: Likewise.
19807         * lib/signal_.h: Likewise.
19808         * lib/stdint_.h: Likewise.
19809         * lib/stdio_.h: Likewise.
19810         * lib/stdlib_.h: Likewise.
19811         * lib/string_.h: Likewise.
19812         * lib/sys_select_.h: Likewise.
19813         * lib/sys_socket_.h: Likewise.
19814         * lib/sys_stat_.h: Likewise.
19815         * lib/sys_time_.h: Likewise.
19816         * lib/sysexits_.h: Likewise.
19817         * lib/time_.h: Likewise.
19818         * lib/unistd_.h: Likewise.
19819         * lib/wchar_.h: Likewise.
19820         * lib/wctype_.h: Likewise.
19821
19822 2007-05-29  Bruno Haible  <bruno@clisp.org>
19823
19824         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
19825         for the moment.
19826
19827 2007-05-29  Bruno Haible  <bruno@clisp.org>
19828
19829         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
19830         invocation.
19831         Reported by Eric Blake.
19832
19833 2007-05-29  Bruno Haible  <bruno@clisp.org>
19834
19835         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
19836         compiling case.
19837
19838 2007-05-29  Eric Blake  <ebb9@byu.net>
19839             Bruno Haible  <bruno@clisp.org>
19840
19841         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
19842         cross compiles.
19843
19844 2007-05-28  Eric Blake  <ebb9@byu.net>
19845
19846         * modules/closein-tests (test_closein_LDADD): Support test on
19847         cygwin with libtool.
19848
19849 2007-05-28  Bruno Haible  <bruno@clisp.org>
19850
19851         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
19852         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
19853         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
19854         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
19855         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
19856         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
19857         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
19858         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
19859         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
19860
19861 2007-05-28  Eric Blake  <ebb9@byu.net>
19862
19863         Unconditionally include <config.h> in unit tests.
19864         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
19865         * tests/test-allocsa.c, tests/test-arcfour.c,
19866         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
19867         tests/test-array_list.c, tests/test-array_oset.c,
19868         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
19869         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
19870         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
19871         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
19872         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
19873         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
19874         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
19875         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
19876         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
19877         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
19878         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
19879         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
19880         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
19881         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
19882         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
19883         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
19884         test-md5.c, test-memmem.c, test-printf-posix.c,
19885         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
19886         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
19887         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
19888         test-strcasestr.c, test-striconv.c, test-striconveh.c,
19889         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
19890         test-vasnprintf-posix2.c, test-vasnprintf.c,
19891         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
19892         test-vfprintf-posix.c, test-vprintf-posix.c,
19893         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
19894         test-xvasprintf.c: Likewise.
19895
19896 2007-05-28  Bruno Haible  <bruno@clisp.org>
19897
19898         * gnulib-tool (func_import): Remember the --with-tests command-line
19899         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
19900         Reported by Eric Blake.
19901
19902 2007-05-28  Bruno Haible  <bruno@clisp.org>
19903
19904         * modules/ftell-tests: New file.
19905         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
19906         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
19907
19908         * lib/ftell.c: New file.
19909         * modules/ftell: New file.
19910         * m4/ftell.m4: New file.
19911         * doc/functions/ftell.texi: Update.
19912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
19913         REPLACE_FTELL.
19914         * lib/stdio_.h (rpl_ftell): New declaration.
19915         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
19916         REPLACE_FTELL.
19917
19918 2007-05-28  Eric Blake  <ebb9@byu.net>
19919
19920         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
19921
19922 2007-05-28  Bruno Haible  <bruno@clisp.org>
19923
19924         * modules/fseek-tests: New file.
19925         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
19926         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
19927
19928         * lib/fseek.c: New file.
19929         * modules/fseek: New file.
19930         * m4/fseek.m4: New file.
19931         * doc/functions/fseek.texi: Update.
19932         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
19933         REPLACE_FSEEK.
19934         * lib/stdio_.h (rpl_fseek): New declaration.
19935         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
19936         REPLACE_FSEEK.
19937
19938 2007-05-28  Bruno Haible  <bruno@clisp.org>
19939
19940         * lib/stdio_.h (fflush): More comments.
19941
19942 2007-05-28  Bruno Haible  <bruno@clisp.org>
19943
19944         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
19945         runtime test.
19946
19947 2007-05-28  Eric Blake  <ebb9@byu.net>
19948
19949         Improve lseek module.
19950         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
19951         * lib/unistd_.h (lseek): Scale back link warning message.
19952         * tests/test-lseek.c: Beef up test.
19953         * tests/test-lseek.sh: Exercise more facets of lseek.
19954         Reported by Bruno Haible.
19955
19956 2007-05-28  Bruno Haible  <bruno@clisp.org>
19957
19958         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
19959         to define.
19960
19961 2007-05-27  Bruno Haible  <bruno@clisp.org>
19962
19963         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
19964
19965 2007-05-27  Bruno Haible  <bruno@clisp.org>
19966
19967         * modules/openmp: New file.
19968         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
19969         Noah Misch.
19970
19971 2007-05-26  Bruno Haible  <bruno@clisp.org>
19972
19973         * modules/chdir-long (Depends-on): Add fchdir.
19974         * modules/chdir-safer (Depends-on): Likewise.
19975         * modules/fts (Depends-on): Likewise.
19976         * modules/fts-lgpl (Depends-on): Likewise.
19977         * modules/openat (Depends-on): Likewise.
19978         * modules/savewd (Depends-on): Likewise.
19979
19980 2007-05-24  Eric Blake  <ebb9@byu.net>
19981
19982         Fix lseek on mingw.
19983         * modules/lseek: New module.
19984         * m4/lseek.m4: New file.
19985         * lib/lseek.c: New file.
19986         * modules/lseek-tests: New file.
19987         * tests/test-lseek.c: New file.
19988         * tests/test-lseek.sh: New file.
19989         * MODULES.html.sh: Document lseek module.
19990         * modules/fflush (Depends-on): Add lseek, fseeko.
19991         * modules/fseeko (Depends-on): Likewise.
19992         * modules/ftello (Depends-on): Likewise.
19993         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
19994         broken.
19995         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
19996         broken.
19997         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
19998         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
19999         * lib/ftello.c (rpl_ftello): Likewise.
20000         * tests/test-fseeko.c (main): Test this.
20001         * tests/test-fseeko.sh: Likewise.
20002         * tests/test-ftello.c (main): Likewise.
20003         * tests/test-ftello.sh: Likewise.
20004         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
20005         implies replacing fseek.
20006         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
20007         HAVE_FTELLO.
20008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
20009         * modules/unistd (Makefile.am): Likewise.
20010         * lib/unistd_.h (lseek): Declare a replacement.
20011         * doc/functions/lseek.texi (lseek): Document this fix.
20012         * doc/functions/fseek.texi (fseek): Likewise.
20013         * doc/functions/ftell.texi (ftell): Likewise.
20014
20015 2007-05-24  Bruno Haible  <bruno@clisp.org>
20016
20017         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
20018         in the printed representation of a NaN.
20019         * tests/test-vasprintf-posix.c (test_function): Likewise.
20020         * tests/test-snprintf-posix.h (test_function): Likewise.
20021         * tests/test-sprintf-posix.h (test_function): Likewise.
20022         Reported by Eric Blake.
20023
20024 2007-05-23  Eric Blake  <ebb9@byu.net>
20025
20026         Fix fseeko/ftello on cygwin 1.5.24.
20027         * doc/functions/fseeko.texi (fseeko): Document the fix.
20028         * doc/functions/ftello.texi (ftello): Document the fix.
20029         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
20030         * doc/functions/stdout.text (stdout): New file.
20031         * doc/functions/stderr.text (stderr): New file.
20032         * doc/gnulib.texi (Function Substitutes): Use new files.
20033         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
20034         prior to 1.7.0.
20035         * tests/test-ftello.c (main): Likewise for ftello.
20036         * tests/test-fseeko.sh: New file.
20037         * tests/test-ftello.sh: New file.
20038         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
20039         with seekable stdin.
20040         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
20041         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
20042         (gl_REPLACE_FSEEKO): New macro.
20043         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
20044         * modules/fseeko (Files): Distribute fseeko.c.
20045         * modules/ftello (Files): Distribute ftello.c.
20046         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
20047         mode.
20048         * lib/ftello.c (rpl_ftello): New file.
20049         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
20050         fseeko, ftello.
20051         (gl_STDIN_LARGE_OFFSET): New macro.
20052         * modules/stdio (Makefile.am): Perform the replacement.
20053         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
20054
20055 2007-05-23  Bruno Haible  <bruno@clisp.org>
20056
20057         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
20058         GNULIB_POSIXCHECK is defined.
20059
20060 2007-05-21  Bruno Haible  <bruno@clisp.org>
20061
20062         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
20063         Check also the output for NaN arguments. When cross-compiling, guess
20064         no on IRIX.
20065         * lib/vasnprintf.c: Update comments.
20066         * tests/test-vasnprintf-posix.c (strisnan): New function.
20067         (test_function): Use it.
20068         * tests/test-vasprintf-posix.c (strisnan): New function.
20069         (test_function): Use it.
20070         * tests/test-snprintf-posix.h (strisnan): New function.
20071         (test_function): Use it.
20072         * tests/test-sprintf-posix.h (strisnan): New function.
20073         (test_function): Use it.
20074         Reported by Eric Blake.
20075
20076 2007-05-20  Bruno Haible  <bruno@clisp.org>
20077
20078         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
20079         numbers that fails on BeOS.
20080         * doc/functions/frexpl.texi: Update.
20081
20082 2007-05-20  Jim Meyering  <jim@meyering.net>
20083
20084         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
20085         forced upon us by glibc-2.6.
20086
20087 2007-05-20  Bruno Haible  <bruno@clisp.org>
20088
20089         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
20090         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
20091         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
20092         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
20093         NEED_PRINTF_INFINITE.
20094         (is_infinitel): New function.
20095         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
20096         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
20097         gl_PREREQ_VASNPRINTF_INFINITE.
20098         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
20099         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20100         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
20101         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
20102         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
20103         gl_PREREQ_VASNPRINTF_INFINITE.
20104         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20105         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20106         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20107         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20108         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20109         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20110         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20111         * doc/functions/fprintf.texi: Update.
20112         * doc/functions/printf.texi: Update.
20113         * doc/functions/snprintf.texi: Update.
20114         * doc/functions/sprintf.texi: Update.
20115         * doc/functions/vfprintf.texi: Update.
20116         * doc/functions/vprintf.texi: Update.
20117         * doc/functions/vsnprintf.texi: Update.
20118         * doc/functions/vsprintf.texi: Update.
20119
20120 2007-05-20  Bruno Haible  <bruno@clisp.org>
20121
20122         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
20123         was not found in libc.
20124         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20125
20126 2007-05-20  Bruno Haible  <bruno@clisp.org>
20127
20128         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
20129         printed as "-nan" instead of "nan".
20130         * tests/test-vasprintf-posix.c (test_function): Likewise.
20131         * tests/test-snprintf-posix.h (test_function): Likewise.
20132         * tests/test-sprintf-posix.h (test_function): Likewise.
20133         Needed for HP-UX 11.
20134
20135 2007-05-20  Jim Meyering  <jim@meyering.net>
20136
20137         Fix buggy test for the fchownat-deref bug.
20138         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
20139         symlink required for the run-test.  Without it, this test would
20140         always declare that fchownat doesn't work, and client code would
20141         unnecessarily use the replacement function with fixed libc.
20142         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
20143         Reported by Greg Schafer.
20144
20145 2007-05-19  Bruno Haible  <bruno@clisp.org>
20146
20147         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
20148         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
20149         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
20150         Needed for IRIX 6.5 and Solaris 2.5.1.
20151
20152 2007-05-19  Bruno Haible  <bruno@clisp.org>
20153
20154         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
20155         (test_function): Skip tests involving -0.0 on platforms where
20156         -0.0 = 0.0.
20157         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
20158         (test_function): Skip tests involving -0.0 on platforms where
20159         -0.0 = 0.0.
20160         * tests/test-snprintf-posix.h (have_minus_zero): New function.
20161         (test_function): Skip tests involving -0.0 on platforms where
20162         -0.0 = 0.0.
20163         * tests/test-sprintf-posix.h (have_minus_zero): New function.
20164         (test_function): Skip tests involving -0.0 on platforms where
20165         -0.0 = 0.0.
20166         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
20167         tests.
20168         * tests/test-printf-posix.h (test_function): Likewise.
20169         * tests/test-printf-posix.output: Remove all -0.0 related results.
20170         Needed for IRIX 6.5.
20171
20172 2007-05-19  Bruno Haible  <bruno@clisp.org>
20173
20174         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
20175         printed as "nan0x7fffffff" instead of "nan".
20176         * tests/test-vasprintf-posix.c (test_function): Likewise.
20177         * tests/test-snprintf-posix.h (test_function): Likewise.
20178         * tests/test-sprintf-posix.h (test_function): Likewise.
20179         * tests/test-fprintf-posix.h (NaN): Remove macro.
20180         (test_function): Remove all NaN related tests.
20181         * tests/test-printf-posix.h (NaN): Remove macro.
20182         (test_function): Remove all NaN related tests.
20183         * tests/test-printf-posix.output: Remove all NaN related results.
20184         Needed for IRIX 6.5.
20185
20186 2007-05-19  Bruno Haible  <bruno@clisp.org>
20187
20188         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
20189         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20190
20191 2007-05-19  Bruno Haible  <bruno@clisp.org>
20192
20193         * lib/float_.h: New file.
20194         * m4/float_h.m4: New file.
20195         * modules/float: New file.
20196         * modules/isnanl (Dependencies): Add float.
20197         * modules/isnanl-nolibm (Dependencies): Likewise.
20198         * modules/mathl (Dependencies): Likewise.
20199         * modules/printf-frexpl (Dependencies): Likewise.
20200         * modules/signbit (Dependencies): Likewise.
20201         * modules/vasnprintf (Dependencies): Likewise.
20202         * doc/headers/float.texi: Update.
20203
20204 2007-05-19  Jim Meyering  <jim@meyering.net>
20205
20206         * lib/utimens.c (gl_futimens): Rename from futimens,
20207         now that glibc-2.6 declares futimens.
20208         * lib/utimens.h: Likewise.
20209
20210 2007-05-19  Bruno Haible  <bruno@clisp.org>
20211
20212         Avoid test failures on mingw.
20213         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
20214         * tests/test-printf-posix.sh: Likewise.
20215         * tests/test-vfprintf-posix.sh: Likewise.
20216         * tests/test-vprintf-posix.sh: Likewise.
20217
20218 2007-05-19  Bruno Haible  <bruno@clisp.org>
20219
20220         Fix *printf result for NaN, Inf, -0.0 on mingw.
20221         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
20222         * lib/vasnprintf.c: Include math.h and isnan.h.
20223         (is_infinite_or_zero): New function.
20224         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
20225         values in the %f, %F, %e, %E, %g, %G directives.
20226         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
20227         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20228         gl_PRINTF_INFINITE and test its result. Invoke
20229         gl_PREREQ_VASNPRINTF_INFINITE.
20230         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20231         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20232         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20233         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20234         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20235         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20236         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20237         * doc/functions/fprintf.texi: Update.
20238         * doc/functions/printf.texi: Update.
20239         * doc/functions/snprintf.texi: Update.
20240         * doc/functions/sprintf.texi: Update.
20241         * doc/functions/vfprintf.texi: Update.
20242         * doc/functions/vprintf.texi: Update.
20243         * doc/functions/vsnprintf.texi: Update.
20244         * doc/functions/vsprintf.texi: Update.
20245
20246 2007-05-19  Bruno Haible  <bruno@clisp.org>
20247
20248         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
20249         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
20250         Instead of multiplying with 10^k, set extra_zeroes to k.
20251         (scale10_round_long_double): Remove function.
20252
20253 2007-05-18  Bruno Haible  <bruno@clisp.org>
20254
20255         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
20256         introduced on 2007-05-06.
20257
20258 2007-05-18  Bruno Haible  <bruno@clisp.org>
20259
20260         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
20261         %g directives.
20262         * tests/test-vasprintf-posix.c (test_function): Likewise.
20263         * tests/test-snprintf-posix.h (test_function): Likewise.
20264         * tests/test-sprintf-posix.h (test_function): Likewise.
20265
20266 2007-05-18  Bruno Haible  <bruno@clisp.org>
20267
20268         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
20269         (strmatch): New function.
20270         (test_function): Test the %f directive on numbers of various exponents.
20271         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
20272         (strmatch): New function.
20273         (test_function): Test the %f directive on numbers of various exponents.
20274         * tests/test-snprintf-posix.h (strmatch): New function.
20275         (test_function): Test the %f directive on numbers of various exponents.
20276         * tests/test-sprintf-posix.h (strmatch): New function.
20277         (test_function): Test the %f directive on numbers of various exponents.
20278         * tests/test-snprintf-posix.c (SIZEOF): New macro.
20279         * tests/test-sprintf-posix.c (SIZEOF): New macro.
20280         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
20281         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
20282
20283 2007-05-18  Bruno Haible  <bruno@clisp.org>
20284
20285         Add support for 'long double' number output.
20286         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
20287         * lib/vasnprintf.c: Include math.h and float+.h.
20288         (mp_limb_t): New type.
20289         (GMP_LIMB_BITS): New macro.
20290         (mp_twolimb_t): New type.
20291         (GMP_TWOLIMB_BITS): New macro.
20292         (mpn_t): New type.
20293         (multiply, divide, convert_to_decimal, decode_long_double,
20294         scale10_round_long_double, scale10_round_decimal_long_double,
20295         floorlog10l): New functions.
20296         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
20297         for the %f, %F, %e, %E, %g, %G directives.
20298         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
20299         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20300         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
20301         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
20302         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20303         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20304         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20305         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20306         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20307         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20308         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20309         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
20310         * modules/snprintf-posix (Depends-on): Likewise.
20311         * modules/sprintf-posix (Depends-on): Likewise.
20312         * modules/vasnprintf-posix (Depends-on): Likewise.
20313         * modules/vasprintf-posix (Depends-on): Likewise.
20314         * modules/vfprintf-posix (Depends-on): Likewise.
20315         * modules/vsnprintf-posix (Depends-on): Likewise.
20316         * modules/vsprintf-posix (Depends-on): Likewise.
20317         * modules/vasnprintf (Files): Add lib/float+.h.
20318         * doc/functions/fprintf.texi: Update.
20319         * doc/functions/printf.texi: Update.
20320         * doc/functions/snprintf.texi: Update.
20321         * doc/functions/sprintf.texi: Update.
20322         * doc/functions/vfprintf.texi: Update.
20323         * doc/functions/vprintf.texi: Update.
20324         * doc/functions/vsnprintf.texi: Update.
20325         * doc/functions/vsprintf.texi: Update.
20326
20327 2007-05-18  Bruno Haible  <bruno@clisp.org>
20328
20329         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
20330
20331 2007-05-18  Bruno Haible  <bruno@clisp.org>
20332
20333         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
20334         for printing 64-bit integers. Needed for mingw.
20335
20336 2007-05-18  Bruno Haible  <bruno@clisp.org>
20337
20338         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
20339         gl_FUNC_FREXPL_WORKS.
20340         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
20341
20342 2007-05-18  Bruno Haible  <bruno@clisp.org>
20343
20344         * modules/frexpl-nolibm-tests: New file.
20345
20346         * modules/frexpl-nolibm: New file.
20347         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
20348
20349 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20350
20351         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
20352         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
20353         GCC 4.2, which otherwise issues a lot of warnings.
20354         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
20355         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
20356         Likewise.
20357         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
20358         * modules/iconv_open (iconv.h): Likewise.
20359         * modules/locale (locale.h): Likewise.
20360         * modules/netinet_in (netinet/in.h): Likewise.
20361         * modules/sys_select (sys_select.h): Likewise.
20362         * modules/sys_socket (sys/socket.h): Likewise.
20363         * modules/sys_stat (sys/stat.h): Likewise.
20364         * modules/sysexits (sysexits.h): Likewise.
20365         * modules/unistd (unistd.h): Likewise.
20366
20367 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20368
20369         * modules/closein-tests (Makefile.am): Distribute
20370         `test-closein.sh'.
20371
20372 2007-05-17  Bruno Haible  <bruno@clisp.org>
20373
20374         * tests/test-printf-posix.output: Renamed from
20375         tests/test-fprintf-posix.out.
20376         * modules/fprintf-posix-tests: Update.
20377         * modules/printf-posix-tests: Update.
20378         * modules/vfprintf-posix-tests: Update.
20379         * modules/vprintf-posix-tests: Update.
20380         * tests/test-fprintf-posix.sh: Update.
20381         * tests/test-printf-posix.sh: Update.
20382         * tests/test-vfprintf-posix.sh: Update.
20383         * tests/test-vprintf-posix.sh: Update.
20384         Reported by Ralf Wildenhues.
20385
20386 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20387
20388         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
20389         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
20390         GCC 4.2, which otherwise issues a lot of warnings.
20391         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
20392         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
20393         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
20394         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
20395         it should no longer be needed.
20396         * lib/string_.h: Likewise.
20397         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
20398         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
20399         * modules/inttypes (inttypes.h): Likewise.
20400         * modules/math (math.h): Likewise.
20401         * modules/search (search.h): Likewise.
20402         * modules/signal (signal.h): Likewise.
20403         * modules/stdint (stdint.h): Likewise.
20404         * modules/stdio (stdio.h): Likewise.
20405         * modules/stdlib (stdlib.h): Likewise.
20406         * modules/string (string.h): Likewise.
20407         * modules/sys_time (sys/time.h): Likewise.
20408         * modules/time (time.h): Likewise.
20409         * modules/wchar (wchar.h): Likewise.
20410         * modules/wctype (wtype.h): Likewise.
20411
20412 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20413
20414         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
20415
20416 2007-05-13  Bruno Haible  <bruno@clisp.org>
20417
20418         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
20419         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20420         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
20421         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
20422         (gl_PREREQ_STRTOK_R): Don't require it here.
20423
20424 2007-05-13  Bruno Haible  <bruno@clisp.org>
20425
20426         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
20427         when used in C++ mode.
20428
20429 2007-05-12  Bruno Haible  <bruno@clisp.org>
20430
20431         * lib/linebuffer.h: Tweak doc.
20432         * lib/linebuffer.c: Likewise.
20433
20434 2007-05-12  James Youngman  <jay@gnu.org>
20435
20436         * lib/linebuffer.c (readlinebuffer_delim): New function,
20437         like readlinebuffer, but use a caller-specified delimiter.
20438         (readlinebuffer): Just call readlinebuffer_delim with '\n'
20439         as the delimiter.
20440         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
20441
20442 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
20443
20444         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
20445         * modules/openat (Files): Remove openat-die.c.
20446         (Depends-on): Add openat-die.
20447         * modules/openat-die: New module.
20448
20449 2007-05-06  Bruno Haible  <bruno@clisp.org>
20450
20451         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
20452         Update with info about Cygwin.
20453         * doc/functions/fprintf.texi: Update.
20454         * doc/functions/printf.texi: Update.
20455         * doc/functions/snprintf.texi: Update.
20456         * doc/functions/sprintf.texi: Update.
20457         * doc/functions/vfprintf.texi: Update.
20458         * doc/functions/vprintf.texi: Update.
20459         * doc/functions/vsnprintf.texi: Update.
20460         * doc/functions/vsprintf.texi: Update.
20461         Reported by Eric Blake.
20462
20463 2007-05-06  Bruno Haible  <bruno@clisp.org>
20464
20465         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
20466         padding ourselves for the floating-point directives.
20467         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
20468         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
20469         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20470         gl_PRINTF_FLAG_ZERO and test its result. Invoke
20471         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
20472         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20473         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
20474         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20475         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20476         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20477         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20478         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20479         * tests/test-snprintf-posix.h (test_function): Also check the width
20480         and some flags in the %f directive.
20481         * tests/test-sprintf-posix.h (test_function): Likewise.
20482         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20483         * tests/test-vasprintf-posix.c (test_function): Likewise.
20484         * doc/functions/fprintf.texi: Update.
20485         * doc/functions/printf.texi: Update.
20486         * doc/functions/snprintf.texi: Update.
20487         * doc/functions/sprintf.texi: Update.
20488         * doc/functions/vfprintf.texi: Update.
20489         * doc/functions/vprintf.texi: Update.
20490         * doc/functions/vsnprintf.texi: Update.
20491         * doc/functions/vsprintf.texi: Update.
20492
20493 2007-05-06  Bruno Haible  <bruno@clisp.org>
20494
20495         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
20496         pass the ' flag character to sprintf or snprintf.
20497         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
20498         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
20499         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20500         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
20501         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
20502         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20503         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
20504         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20505         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20506         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20507         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20508         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20509         * tests/test-snprintf-posix.h (test_function): Also check the grouping
20510         flag.
20511         * tests/test-sprintf-posix.h (test_function): Likewise.
20512         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20513         * tests/test-vasprintf-posix.c (test_function): Likewise.
20514         * doc/functions/fprintf.texi: Update.
20515         * doc/functions/printf.texi: Update.
20516         * doc/functions/snprintf.texi: Update.
20517         * doc/functions/sprintf.texi: Update.
20518         * doc/functions/vfprintf.texi: Update.
20519         * doc/functions/vprintf.texi: Update.
20520         * doc/functions/vsnprintf.texi: Update.
20521         * doc/functions/vsprintf.texi: Update.
20522
20523 2007-05-01  Bruno Haible  <bruno@clisp.org>
20524
20525         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
20526
20527 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
20528
20529         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
20530         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
20531
20532 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
20533
20534         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
20535         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
20536         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
20537
20538 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
20539
20540         * lib/argp-help.c (struct hol_entry): New member `ord'.
20541         (HOL_ENTRY_PTRCMP): Use ord for comparison
20542         (hol_sort): Initialize ord.
20543
20544 2007-05-01  Bruno Haible  <bruno@clisp.org>
20545
20546         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
20547         Reported by Eric Blake.
20548         * doc/gnulib.texi (Function Substitutes): Update.
20549
20550 2007-05-01  Bruno Haible  <bruno@clisp.org>
20551
20552         * doc/functions.texi: Remove file, now redundant through
20553         doc/functions/*.texi.
20554
20555 2007-05-01  Bruno Haible  <bruno@clisp.org>
20556
20557         * modules/argp (Depends-on): Add sleep.
20558
20559 2007-05-01  Bruno Haible  <bruno@clisp.org>
20560
20561         * modules/sleep-tests: New file.
20562         * tests/test-sleep.c: New file.
20563
20564         * modules/sleep: New file.
20565         * lib/sleep.c: New file.
20566         * m4/sleep.m4: New file.
20567         * lib/unistd_.h (sleep): New declaration.
20568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
20569         HAVE_SLEEP.
20570         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
20571         * doc/functions/sleep.texi: Document the sleep module.
20572
20573 2007-05-01  Bruno Haible  <bruno@clisp.org>
20574
20575         * lib/sigprocmask.h: Remove file.
20576         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
20577         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
20578         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
20579         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
20580         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
20581         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
20582         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
20583         HAVE_SIGSET_T as a shell variable.
20584         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
20585         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
20586         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
20587         (Depends-on): Add signal. Remove verify.
20588         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
20589         (Include): Mention <signal.h> instead of sigprocmask.h.
20590         * NEWS: Mention the change.
20591         * lib/fatal-signal.c: Don't include sigprocmask.h.
20592
20593 2007-05-01  Bruno Haible  <bruno@clisp.org>
20594
20595         * modules/signal: New file.
20596         * lib/signal_.h: New file.
20597         * m4/signal_h.m4: New file.
20598
20599 2007-05-01  Bruno Haible  <bruno@clisp.org>
20600
20601         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
20602         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
20603         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
20604         HAVE_WCTYPE_CTMP_BUG into wctype.h.
20605
20606 2007-05-01  Bruno Haible  <bruno@clisp.org>
20607
20608         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
20609         configure time.
20610         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
20611         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
20612         * modules/sys_stat (Makefile.am): Substitute their values into
20613         sys/stat.h.
20614
20615 2007-05-01  Bruno Haible  <bruno@clisp.org>
20616
20617         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
20618         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
20619         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
20620
20621 2007-05-01  Bruno Haible  <bruno@clisp.org>
20622
20623         * doc/header/assert.texi: Undo last change: don't mention the gnulib
20624         'assert' module here.
20625
20626 2007-05-01  Bruno Haible  <bruno@clisp.org>
20627
20628         * doc/functions/*.texi: New files.
20629         * doc/functions/google-ranking.txt: New file.
20630         * doc/gnulib.texi (Function Substitutes): New chapter.
20631         (ctime, inet_ntoa): Remove sections.
20632         * doc/ctime.texi: Remove file.
20633         * doc/inet_ntoa.texi: Remove file.
20634         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
20635         dependencies.
20636         (%.info): New rule, specifying a --reference-limit.
20637
20638 2007-05-01  Bruno Haible  <bruno@clisp.org>
20639
20640         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
20641
20642 2007-05-01  Bruno Haible  <bruno@clisp.org>
20643
20644         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
20645         the portability of 'mkdir' to mingw systems.
20646
20647 2007-05-01  Bruno Haible  <bruno@clisp.org>
20648
20649         * doc/headers/google-ranking.txt: New file.
20650
20651 2007-04-30  Eric Blake  <ebb9@byu.net>
20652
20653         Prefer fseeko to fseek.
20654         * modules/getpass (Depends-on): Add fseeko.
20655         * lib/getpass.c (getpass): Use fseeko, not fseek.
20656
20657 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
20658
20659         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
20660         assumes the sorting is stable, while most qsort implementations
20661         are not.  Use argument addresses to ensure they never compare as
20662         equal.
20663
20664         * tests/test-argp-2.sh (usage-indent test): Fix output
20665         (func_compare): Restore diff options
20666         * tests/test-argp.c: Restore #include "progname.h"
20667
20668 2007-04-29  Bruno Haible  <bruno@clisp.org>
20669
20670         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
20671         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20672         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
20673         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20674         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
20675         (configure.ac): Define CHECK_SNPRINTF_POSIX.
20676         (TESTS, check_PROGRAMS): Add test-snprintf.
20677         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
20678         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
20679         (TESTS, check_PROGRAMS): Add test-vsnprintf.
20680         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
20681         assertions that fail on HP-UX, OSF/1, or IRIX.
20682         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
20683
20684 2007-04-29  Bruno Haible  <bruno@clisp.org>
20685
20686         * MODULES.html.sh (posix_functions): Remove 'contents'.
20687
20688 2007-04-29  Karl Berry  <karl@gnu.org>
20689
20690         * config/srclist.txt (gendocs_template_min): new entry.
20691
20692 2007-04-29  Bruno Haible  <bruno@clisp.org>
20693
20694         Work around fpurge bug on BSD systems.
20695         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
20696         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
20697         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
20698         fpurge to rpl_fpurge if the system already has this function.
20699         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
20700         the case where the system already has this function. Correct invariants
20701         on BSD systems.
20702         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
20703         BSD systems.
20704
20705 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
20706
20707         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
20708         proposed by Sven Verdoolaege.
20709
20710         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
20711         options.
20712         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
20713         (usage and help tests): Update
20714
20715 2007-04-29  Bruno Haible  <bruno@clisp.org>
20716
20717         * tests/test-fflush.c (main): Use a file of size 17, not 10.
20718         Print more information in case of failure. Disable a test on BeOS.
20719
20720 2007-04-29  Bruno Haible  <bruno@clisp.org>
20721
20722         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
20723         This helps debugging on systems on which no gdb is available.
20724
20725 2007-04-29  Bruno Haible  <bruno@clisp.org>
20726
20727         * lib/freading.h: Improve comments.
20728         * lib/fwriting.h: Likewise.
20729         * tests/test-freading.c (main): Don't check freading immediately after
20730         repositioning. Needed for glibc.
20731
20732 2007-04-29  Bruno Haible  <bruno@clisp.org>
20733
20734         * lib/freading.c (freading): Trivial simplification.
20735
20736 2007-04-28  Bruno Haible  <bruno@clisp.org>
20737
20738         * tests/test-fwriting.c (main): Also test the interaction between
20739         fflush and fwriting.
20740         * modules/fwriting-tests (Depends-on): Add fflush.
20741
20742         * tests/test-freading.c (main): Also test the interaction between
20743         fflush and freading.
20744         * modules/freading-tests (Depends-on): Add fflush.
20745
20746 2007-04-28  Bruno Haible  <bruno@clisp.org>
20747
20748         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
20749         fseeko and ftello.
20750         Suggested by Eric Blake.
20751
20752 2007-04-28  Jim Meyering  <jim@meyering.net>
20753
20754         Avoid false-negative in gl_STDINT_H's C99 conformance test.
20755         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
20756         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
20757
20758 2007-04-27  Eric Blake  <ebb9@byu.net>
20759
20760         * doc/headers/assert.texi (assert.h): Document assert module use.
20761
20762 2007-04-27  Bruno Haible  <bruno@clisp.org>
20763
20764         * doc/headers/*.texi: New files.
20765         * doc/gnulib.texi (Header File Substitutes): New chapter.
20766         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
20767         dependencies.
20768         (standards.info ,standards.html, standards.dvi): Update dependencies.
20769         (mostlyclean, clean): New targets.
20770
20771 2007-04-27  Bruno Haible  <bruno@clisp.org>
20772
20773         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
20774         * modules/sysexits (Files, Makefile.am): Update.
20775
20776         * lib/sys_socket_.h: Renamed from lib/socket_.h.
20777         * modules/sys_socket (Files, Makefile.am): Update.
20778
20779         * lib/sys_stat_.h: Renamed from lib/stat_.h.
20780         * modules/sys_stat (Files, Makefile.am): Update.
20781
20782 2007-04-27  Eric Blake  <ebb9@byu.net>
20783
20784         * lib/freading.h: Improve comments.
20785         * lib/fwriting.h: Likewise.
20786         * lib/fflush.c: Likewise.
20787
20788         Fix closein for mingw.
20789         * modules/closein-tests: Add tests for closein.
20790         * tests/test-closein.c: New file.
20791         * tests/test-closein.sh: Likewise.
20792         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
20793         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
20794
20795 2007-04-27  Bruno Haible  <bruno@clisp.org>
20796
20797         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
20798         version is < 6.
20799         * lib/math_.h [__DECC]: Likewise.
20800         * lib/stdio_.h [__DECC]: Likewise.
20801         * lib/stdlib_.h [__DECC]: Likewise.
20802         * lib/string_.h [__DECC]: Likewise.
20803         * lib/time_.h [__DECC]: Likewise.
20804         * lib/wchar_.h [__DECC]: Likewise.
20805         * lib/wctype_.h [__DECC]: Likewise.
20806
20807 2007-04-27  Bruno Haible  <bruno@clisp.org>
20808
20809         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
20810
20811 2007-04-27  Bruno Haible  <bruno@clisp.org>
20812
20813         * lib/fflush.c: Add comments.
20814         * modules/fpurge-tests (Depends-on): Add fflush.
20815         * modules/freadable-tests (Depends-on): Likewise.
20816         * modules/fwritable-tests (Depends-on): Likewise.
20817
20818 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
20819
20820         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
20821         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
20822         Report by Bruno Haible <bruno@clisp.org>.
20823
20824 2007-04-26  Eric Blake  <ebb9@byu.net>
20825
20826         Fix fflush on mingw.
20827         * modules/fflush (Depends-on): Add freading.
20828         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
20829         but unread data.
20830
20831 2007-04-26  Eric Blake  <ebb9@byu.net>
20832         and Bruno Haible  <bruno@clisp.org>
20833
20834         Implement freading and fwriting.
20835         * lib/freading.c: New file.
20836         * lib/freading.h: Likewise.
20837         * m4/freading.m4: Likewise.
20838         * modules/freading: Likewise.
20839         * modules/freading-tests: Likewise.
20840         * tests/test-freading.c: Likewise.
20841         * lib/fwriting.c: New file.
20842         * lib/fwriting.h: Likewise.
20843         * m4/fwriting.m4: Likewise.
20844         * modules/fwriting: Likewise.
20845         * modules/fwriting-tests: Likewise.
20846         * tests/test-fwriting.c: Likewise.
20847         * MODULES.html.sh (File stream based Input/Output): Mention them.
20848
20849 2007-04-26  Bruno Haible  <bruno@clisp.org>
20850
20851         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
20852         'long' when we assume it.
20853         Suggested by Eric Blake.
20854
20855 2007-04-26  Bruno Haible  <bruno@clisp.org>
20856
20857         Ensure fseeko, ftello are declared on glibc systems.
20858         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
20859         * modules/fseeko (configure.ac-early): Likewise.
20860         * modules/ftello (configure.ac-early): Likewise.
20861         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
20862         AC_FUNC_FSEEKO for this.
20863         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
20864         (gl_CHECK_FSEEKO): Remove macro.
20865
20866 2007-04-26  Bruno Haible  <bruno@clisp.org>
20867
20868         * tests/test-fflush.c (main): Also check the ftell result after
20869         fflush and fseek/fseeko.
20870         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
20871         file descriptor position cache in the stream.
20872         * lib/fseeko.c (rpl_fseeko): Likewise.
20873
20874 2007-04-26  Bruno Haible  <bruno@clisp.org>
20875
20876         * modules/fflush-tests (Depends-on): Add fseeko.
20877
20878 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
20879             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20880
20881         * lib/argz_.h: ensure error_t definition is obtained in same
20882         mechanism system argz.h would have.
20883         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
20884         argz facilities are known bad.  Err on the side of caution if
20885         cross-compiling.
20886
20887 2007-04-25  Eric Blake  <ebb9@byu.net>
20888
20889         * lib/fpurge.c (includes): Use stdlib.h for free.
20890         * tests/test-fflush.c (main): Also test fflush-fseeko.
20891
20892 2007-04-25  Bruno Haible  <bruno@clisp.org>
20893
20894         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
20895         * lib/fseeko.c: New file.
20896         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
20897         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
20898         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
20899         gl_FUNC_FSEEKO.
20900         (gl_FUNC_FSEEKO): Invoke it.
20901         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
20902         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
20903         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
20904
20905 2007-04-25  Bruno Haible  <bruno@clisp.org>
20906
20907         * modules/fflush (Depends-on): Add ftello.
20908
20909 2007-04-25  Bruno Haible  <bruno@clisp.org>
20910
20911         * modules/ftello-tests: New file.
20912         * tests/test-ftello.c: New file.
20913
20914         * modules/ftello: New file.
20915         * m4/ftello.m4: New file.
20916         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
20917         HAVE_FTELLO.
20918         * lib/stdio_.h (ftello): New declaration.
20919         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
20920         HAVE_FTELLO.
20921
20922 2007-04-25  Bruno Haible  <bruno@clisp.org>
20923
20924         * modules/fseeko-tests: New file.
20925         * tests/test-fseeko.c: New file.
20926
20927         * modules/fseeko: New file.
20928         * m4/fseeko.m4: New file.
20929         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
20930         HAVE_FSEEKO.
20931         * lib/stdio_.h (fseeko): New declaration.
20932         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
20933         HAVE_FSEEKO.
20934
20935 2007-04-25  Bruno Haible  <bruno@clisp.org>
20936
20937         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
20938
20939 2007-04-25  Bruno Haible  <bruno@clisp.org>
20940
20941         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
20942         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
20943         * tests/test-unistd.c: Likewise.
20944         * tests/test-fcntl.c: Likewise.
20945
20946 2007-04-23  Eric Blake  <ebb9@byu.net>
20947
20948         * lib/fflush.c: Fix missing include.
20949         Reported by Bruno Haible.
20950
20951 2007-04-23  Bruno Haible  <bruno@clisp.org>
20952
20953         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
20954         Reported by Eric Blake.
20955
20956 2007-04-23  Bruno Haible  <bruno@clisp.org>
20957
20958         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
20959
20960 2007-04-23  Bruno Haible  <bruno@clisp.org>
20961
20962         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
20963
20964 2007-04-23  Bruno Haible  <bruno@clisp.org>
20965
20966         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
20967         Needed on HP-UX 11.
20968
20969 2007-04-16  Eric Blake  <ebb9@byu.net>
20970
20971         Make fflush rely on fpurge.
20972         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
20973         open coding all variants.
20974         * modules/fflush (Depends-on): Add fpurge and unistd.
20975         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
20976         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
20977
20978         Fix --with-tests compilation on cygwin.
20979         * modules/argmatch-tests (Makefile.am): List gnulib library first
20980         in LDADD.
20981         * modules/argp-tests (Makefile.am): Likewise.
20982         * modules/array-list-tests (Makefile.am): Likewise.
20983         * modules/array-oset-tests (Makefile.am): Likewise.
20984         * modules/avltree-list-tests (Makefile.am): Likewise.
20985         * modules/avltree-oset-tests (Makefile.am): Likewise.
20986         * modules/avltreehash-list-tests (Makefile.am): Likewise.
20987         * modules/carray-list-tests (Makefile.am): Likewise.
20988         * modules/dirname-tests (Makefile.am): Likewise.
20989         * modules/frexp-tests (Makefile.am): Likewise.
20990         * modules/isnanl-tests (Makefile.am): Likewise.
20991         * modules/linked-list-tests (Makefile.am): Likewise.
20992         * modules/linkedhash-list-tests (Makefile.am): Likewise.
20993         * modules/lock-tests (Makefile.am): Likewise.
20994         * modules/rbtree-list-tests (Makefile.am): Likewise.
20995         * modules/rbtree-oset-tests (Makefile.am): Likewise.
20996         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
20997         * modules/tls-tests (Makefile.am): Likewise.
20998         * modules/tsearch-tests (Makefile.am): Likewise.
20999         * modules/xvasprintf-tests (Makefile.am): Likewise.
21000
21001         Fix fpurge for cygwin.
21002         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
21003         value.
21004         * modules/fpurge-tests (Depends-on): Clean up trash.
21005
21006 2007-04-16  Simon Josefsson  <simon@josefsson.org>
21007
21008         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
21009
21010         * m4/autobuild.m4: Re-indent.
21011
21012 2007-04-13  Bruno Haible  <bruno@clisp.org>
21013
21014         * modules/fpurge-tests: New file.
21015         * tests/test-fpurge.c: New file.
21016
21017         * modules/fpurge: New file.
21018         * lib/fpurge.h: New file.
21019         * lib/fpurge.c: New file.
21020         * m4/fpurge.m4: New file.
21021
21022 2007-04-13  Bruno Haible  <bruno@clisp.org>
21023
21024         * modules/fbufmode-tests: New file.
21025         * tests/test-fbufmode.c: New file.
21026
21027         * modules/fbufmode: New file.
21028         * lib/fbufmode.h: New file.
21029         * lib/fbufmode.c: New file.
21030         * m4/fbufmode.m4: New file.
21031
21032 2007-04-13  Bruno Haible  <bruno@clisp.org>
21033
21034         * modules/fwritable-tests: New file.
21035         * tests/test-fwritable.c: New file.
21036
21037         * modules/fwritable: New file.
21038         * lib/fwritable.h: New file.
21039         * lib/fwritable.c: New file.
21040         * m4/fwritable.m4: New file.
21041
21042 2007-04-13  Bruno Haible  <bruno@clisp.org>
21043
21044         * modules/freadable-tests: New file.
21045         * tests/test-freadable.c: New file.
21046
21047         * modules/freadable: New file.
21048         * lib/freadable.h: New file.
21049         * lib/freadable.c: New file.
21050         * m4/freadable.m4: New file.
21051
21052 2007-04-13  Bruno Haible  <bruno@clisp.org>
21053
21054         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
21055         MOSTLYCLEANFILES.
21056
21057 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
21058
21059         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
21060         gzip bootstrap.conf to avoid dragging in i18n machinery.
21061         (gnulib_tool_option): Use it.
21062
21063 2007-04-13  Bruno Haible  <bruno@clisp.org>
21064
21065         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
21066         %F directives.
21067         * tests/test-vasprintf-posix.c (test_function): Likewise.
21068         * tests/test-snprintf-posix.h (test_function): Likewise.
21069         * tests/test-sprintf-posix.h (test_function): Likewise.
21070         * tests/test-fprintf-posix.h (test_function): Likewise.
21071         * tests/test-printf-posix.h (test_function): Likewise.
21072         * tests/test-fprintf-posix.out: Likewise.
21073
21074 2007-04-13  Bruno Haible  <bruno@clisp.org>
21075
21076         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
21077         * modules/tls-tests (configure.ac): Likewise.
21078         Reported by Arto C. Nirkko <anirkko@insel.ch>.
21079
21080 2007-04-13  Bruno Haible  <bruno@clisp.org>
21081
21082         * lib/tls.c (glthread_tls_get): Fix return type.
21083         Patch by Arto C. Nirkko <anirkko@insel.ch>.
21084
21085 2007-04-12  Eric Blake  <ebb9@byu.net>
21086
21087         * modules/gettime (Depends-on): Remove gettime.
21088         Reported by Dmitry V. Levin.
21089
21090 2007-04-12  Bruno Haible  <bruno@clisp.org>
21091
21092         * modules/fflush (Include): Mention <stdio.h>.
21093         * modules/strtoimax (Include): Mention <inttypes.h>.
21094         * modules/strtoumax (Include): Likewise.
21095
21096 2007-04-12  Eric Blake  <ebb9@byu.net>
21097
21098         * .cvsignore: New file.
21099         * .gitignore: Likewise.
21100
21101 2007-04-12  Bruno Haible  <bruno@clisp.org>
21102
21103         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
21104         not before, since $(LDADD) often contains libgnu.a.
21105         * modules/striconv-tests (test_striconv_LDADD): Likewise.
21106         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
21107         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
21108         Needed on Cygwin.
21109
21110 2007-04-12  Eric Blake  <ebb9@byu.net>
21111
21112         Work around glibc's failure to flush stdin on fclose.
21113         * lib/closein.c (close_stdin): Flush stdin before closing.
21114
21115         Work around glibc's failure to reset seekable stdin on exit.
21116         * modules/closein: New module.
21117         * lib/closein.c: New file.
21118         * lib/closein.h: Likewise.
21119         * m4/closein.m4: Likewise.
21120         * MODULES.html.sh (File stream based Input/Output): Document it.
21121
21122 2007-04-12  Simon Josefsson  <simon@josefsson.org>
21123
21124         * gnulib-tool: Rename generated 'autobuild' script to
21125         'do-autobuild' in --create-megatestdir output.
21126
21127         * doc/gnulib.texi (Build robot for gnulib): Fix.
21128
21129 2007-04-12  Simon Josefsson  <simon@josefsson.org>
21130
21131         * modules/sysexits (Depends-on): Add absolute-header.
21132
21133 2007-04-12  Eric Blake  <ebb9@byu.net>
21134
21135         No need to preserve errno on success.
21136         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
21137         Reported by Bruno Haible.
21138
21139 2007-04-12  Simon Josefsson  <simon@josefsson.org>
21140
21141         * MODULES.html.sh (Support for maintaining and releasing
21142         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
21143
21144 2007-04-12  Simon Josefsson  <simon@josefsson.org>
21145
21146         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
21147
21148 2007-04-12  Simon Josefsson  <simon@josefsson.org>
21149
21150         * modules/autobuild: New module.
21151
21152         * m4/autobuild.m4: New file.
21153
21154 2007-04-11  Bruno Haible  <bruno@clisp.org>
21155
21156         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
21157         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
21158         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
21159         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
21160         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
21161         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21162         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21163         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
21164         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21165         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21166         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
21167         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21168         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21169         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
21170         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21171         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21172         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
21173         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21174         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21175         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
21176         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21177         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21178         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
21179         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21180         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21181         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
21182         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
21183         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
21184         Reported by Eric Blake.
21185
21186 2007-04-11  Bruno Haible  <bruno@clisp.org>
21187
21188         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
21189
21190 2007-04-10  Bruno Haible  <bruno@clisp.org>
21191
21192         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
21193         for NaN and Infinity. Needed on FreeBSD 6.1.
21194         * tests/test-vasnprintf-posix.c (test_function): Undo last change
21195         regarding results for "%010a" of Infinity and NaN.
21196         * tests/test-vasprintf-posix.c (test_function): Likewise.
21197         * tests/test-snprintf-posix.h (test_function): Likewise.
21198         * tests/test-sprintf-posix.h (test_function): Likewise.
21199         * tests/test-fprintf-posix.h (test_function): Likewise.
21200         * tests/test-printf-posix.h (test_function): Likewise.
21201         * tests/test-fprintf-posix.out: Likewise.
21202
21203 2007-04-10  Bruno Haible  <bruno@clisp.org>
21204
21205         * modules/locale-tests: New file.
21206         * tests/test-locale.c: New file.
21207
21208         * modules/locale: New file.
21209         * lib/locale_.h: New file.
21210         * m4/locale_h.m4: New file.
21211
21212 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
21213             Bruno Haible  <bruno@clisp.org>
21214
21215         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
21216         be determined, test for availability of the copysignf, copysign,
21217         copysignl functions.
21218         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
21219         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
21220         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
21221
21222 2007-04-09  Eric Blake  <ebb9@byu.net>
21223
21224         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
21225         * modules/stdio (Makefile.am): Support fflush.
21226         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21227         * modules/fflush: New file.
21228         * lib/fflush.c: Likewise.
21229         * m4/fflush.m4: Likewise.
21230         * modules/fflush-tests: New test.
21231         * tests/test-fflush.c: Likewise.
21232         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
21233
21234 2007-04-06  Bruno Haible  <bruno@clisp.org>
21235
21236         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
21237         (VASNPRINTF): Use signbit for faster determination whether to print a
21238         minus sign.
21239         * modules/vasnprintf (Files): Remove lib/float+.h.
21240         * modules/fprintf-posix (Depends-on): Add signbit.
21241         * modules/snprintf-posix (Depends-on): Likewise.
21242         * modules/sprintf-posix (Depends-on): Likewise.
21243         * modules/vasnprintf-posix (Depends-on): Likewise.
21244         * modules/vasprintf-posix (Depends-on): Likewise.
21245         * modules/vfprintf-posix (Depends-on): Likewise.
21246         * modules/vsnprintf-posix (Depends-on): Likewise.
21247         * modules/vsprintf-posix (Depends-on): Likewise.
21248
21249 2007-04-06  Bruno Haible  <bruno@clisp.org>
21250
21251         * tests/test-frexp.c (main): Test also the sign bit of zero results.
21252         * tests/test-frexpl.c (main): Likewise.
21253         * tests/test-ldexpl.c (main): Likewise.
21254         * modules/frexp-tests (Depends-on): Add signbit.
21255         * modules/frexpl-tests (Depdends-on): Likewise.
21256         * modules/ldexpl-tests (Depdends-on): Likewise.
21257
21258 2007-04-06  Bruno Haible  <bruno@clisp.org>
21259
21260         * modules/signbit-tests: New file.
21261         * tests/test-signbit.c: New file.
21262
21263         * modules/signbit: New file.
21264         * lib/signbitf.c: New file.
21265         * lib/signbitd.c: New file.
21266         * lib/signbitl.c: New file.
21267         * m4/signbit.m4: New file.
21268         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
21269         (signbit): New macro.
21270         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
21271         REPLACE_SIGNBIT.
21272         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
21273         REPLACE_FREXPL into math.h.
21274
21275 2007-04-06  Bruno Haible  <bruno@clisp.org>
21276
21277         * modules/isnanf-nolibm-tests: New file.
21278         * tests/test-isnanf.c: New file.
21279
21280         * modules/isnanf-nolibm: New file.
21281         * lib/isnanf.h: New file.
21282         * lib/isnanf.c: New file.
21283         * lib/isnan.c: Consider the USE_FLOAT macro.
21284         * m4/isnanf.m4: New file.
21285
21286 2007-04-06  Bruno Haible  <bruno@clisp.org>
21287
21288         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
21289         (Link): New section.
21290
21291         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
21292
21293 2007-04-06  Bruno Haible  <bruno@clisp.org>
21294
21295         Assume the 'long double' type.
21296         * m4/longdouble.m4: Remove file.
21297         * config/srclist.txt: Don't mention longdouble.m4.
21298         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
21299         * lib/float+.h: Likewise.
21300         * lib/frexp.c: Likewise.
21301         * lib/printf-args.h: Likewise.
21302         * lib/printf-args.c: Likewise.
21303         * lib/printf-frexp.c: Likewise.
21304         * lib/printf-parse.c: Likewise.
21305         * lib/vasnprintf.c: Likewise.
21306         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
21307         * m4/intl.m4: Likewise.
21308         * m4/isnanl.m4: Likewise.
21309         * m4/printf.m4: Likewise.
21310         * m4/printf-frexpl.m4: Likewise.
21311         * m4/vasnprintf.m4: Likewise.
21312         * modules/allocsa (Files): Remove m4/longdouble.m4.
21313         * modules/gettext (Files): Likewise.
21314         * modules/relocatable-prog-wrapper (Files): Likewise.
21315         * modules/vasnprintf (Files): Likewise.
21316         * modules/isnanl (Files): Likewise.
21317         (Include): Simplify.
21318         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
21319         (Include): Simplify.
21320         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
21321         (Include): Simplify.
21322         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
21323         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21324         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
21325         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21326         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
21327         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21328         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
21329         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21330         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
21331         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21332         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
21333         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
21334         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
21335         * tests/test-isnanl.c: Likewise.
21336         * tests/test-snprintf-posix.h: Likewise.
21337         * tests/test-sprintf-posix.h: Likewise.
21338         * tests/test-vasnprintf-posix.c: Likewise.
21339         * tests/test-vasnprintf-posix2.c: Likewise.
21340         * tests/test-vasprintf-posix.c: Likewise.
21341
21342 2007-04-06  Bruno Haible  <bruno@clisp.org>
21343
21344         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
21345         * lib/math_.h [__DECC]: Include the overridden include file through
21346         #include_next, outside the double-inclusion guard.
21347         * lib/stdio_.h [__DECC]: Likewise.
21348         * lib/stdlib_.h [__DECC]: Likewise.
21349         * lib/string_.h [__DECC]: Likewise.
21350         * lib/time_.h [__DECC]: Likewise.
21351         * lib/wchar_.h [__DECC]: Likewise.
21352         * lib/wctype_.h [__DECC]: Likewise.
21353         * lib/inttypes_.h [__DECC]: Likewise.
21354         Reported by Albert Chin <china@thewrittenword.com> in
21355         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
21356
21357 2007-04-04  Eric Blake  <ebb9@byu.net>
21358
21359         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
21360         1.5.x.
21361
21362 2007-04-04  Bruno Haible  <bruno@clisp.org>
21363
21364         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
21365         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
21366
21367 2007-04-04  Bruno Haible  <bruno@clisp.org>
21368
21369         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
21370         results for "%010a" of Infinity and NaN.
21371         * tests/test-vasprintf-posix.c (test_function): Likewise.
21372         * tests/test-snprintf-posix.h (test_function): Likewise.
21373         * tests/test-sprintf-posix.h (test_function): Likewise.
21374         * tests/test-fprintf-posix.h (test_function): Remove these tests.
21375         * tests/test-printf-posix.h (test_function): Likewise.
21376         * tests/test-fprintf-posix.out: Update.
21377         Needed for FreeBSD 6.1.
21378
21379 2007-04-04  Bruno Haible  <bruno@clisp.org>
21380
21381         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
21382         directly used by the gnulib modules nor by gnulib-tool.
21383
21384 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
21385
21386         * DEPENDENCIES: Give overall description of version dependency
21387         desirability.  Use more-typical names for apps.
21388         Add shell, coreutils, diffutils, grep, tar, gzip.
21389
21390 2007-04-04  Simon Josefsson  <simon@josefsson.org>
21391
21392         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
21393
21394 2007-04-04  Karl Berry  <karl@gnu.org>
21395
21396         * MODULES.html.sh (func_module): missing '.
21397
21398 2007-04-03  Bruno Haible  <bruno@clisp.org>
21399
21400         * modules/argmatch-tests (Makefile.am): New variable
21401         test_argmatch_LDADD.
21402         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
21403         * modules/array-list-tests (Makefile.am): New variable
21404         test_array_list_LDADD.
21405         * modules/array-oset-tests (Makefile.am): New variable
21406         test_array_oset_LDADD.
21407         * modules/avltree-list-tests (Makefile.am): New variable
21408         test_avltree_list_LDADD.
21409         * modules/avltree-oset-tests (Makefile.am): New variable
21410         test_avltree_oset_LDADD.
21411         * modules/avltreehash-list-tests (Makefile.am): New variable
21412         test_avltreehash_list_LDADD.
21413         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
21414         test_canonicalize_lgpl_LDADD.
21415         * modules/carray-list-tests (Makefile.am): New variable
21416         test_carray_list_LDADD.
21417         * modules/dirname-tests (Makefile.am): New variable
21418         test_dirname_LDADD.
21419         * modules/linked-list-tests (Makefile.am): New variable
21420         test_linked_list_LDADD.
21421         * modules/linkedhash-list-tests (Makefile.am): New variable
21422         test_linkedhash_list_LDADD.
21423         * modules/rbtree-list-tests (Makefile.am): New variable
21424         test_rbtree_list_LDADD.
21425         * modules/rbtree-oset-tests (Makefile.am): New variable
21426         test_rbtree_oset_LDADD.
21427         * modules/rbtreehash-list-tests (Makefile.am): New variable
21428         test_rbtreehash_list_LDADD.
21429         * modules/xvasprintf-tests (Makefile.am): New variable
21430         test_xvasprintf_LDADD.
21431         Reported by Eric Blake.
21432
21433 2007-04-03  Eric Blake  <ebb9@byu.net>
21434
21435         * DEPENDENCIES: Weaken m4 requirements.
21436
21437 2007-04-03  Bruno Haible  <bruno@clisp.org>
21438
21439         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
21440         * modules/isnanl-tests (configure.ac): Likewise.
21441
21442 2007-04-03  Ben Pfaff  <blp@gnu.org>
21443
21444         * modules/iconv_open: Add $(srcdir)/ to source directory
21445         references in Makefile fragments that call gperf, to fix VPATH
21446         builds.
21447
21448 2007-04-03  Bruno Haible  <bruno@clisp.org>
21449
21450         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
21451         * lib/ldexpl.c: Undo last change.
21452
21453 2007-04-03  Bruno Haible  <bruno@clisp.org>
21454
21455         * modules/printf-frexpl (Depends-on): Undo last change.
21456         (Files): Add m4/ldexpl.m4.
21457
21458 2007-04-03  Bruno Haible  <bruno@clisp.org>
21459
21460         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
21461         * modules/isnanl (Link): New section.
21462
21463         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
21464         * modules/frexp (Link): New section.
21465
21466         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
21467         * modules/frexpl (Link): New section.
21468
21469         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
21470         * modules/ldexpl (Link): New section.
21471
21472 2007-04-03  Bruno Haible  <bruno@clisp.org>
21473
21474         * modules/TEMPLATE-EXTENDED: New file.
21475         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
21476
21477 2007-04-03  Bruno Haible  <bruno@clisp.org>
21478
21479         * DEPENDENCIES: New file.
21480         Suggested by Simon Josefsson.
21481
21482 2007-04-03  Bruno Haible  <bruno@clisp.org>
21483
21484         * doc/gnulib.texi: Escape @.
21485
21486 2007-04-03  James Youngman  <jay@gnu.org>
21487         and Paul Eggert  <eggert@cs.ucla.edu>
21488
21489         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
21490         birthtime on all systems that have birthtime, not just those which
21491         use st_birthtimensec rather than st_birthtim.  Putting zero in
21492         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
21493         that the birth time is not available for files on an NFS mount.
21494
21495 2007-04-03  Simon Josefsson  <simon@josefsson.org>
21496
21497         * modules/memxor: Move back from crypto/, suggested by Bruno.
21498         * modules/crypto/hmac-sha1: Fix memxor dependency.
21499
21500         * modules/crypto/gc: Moved from ../.
21501
21502 2007-04-02  Eric Blake  <ebb9@byu.net>
21503
21504         * lib/ldexpl.c (includes): Avoid libm.
21505
21506         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
21507
21508 2007-04-02  Bruno Haible  <bruno@clisp.org>
21509
21510         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
21511         on IRIX.
21512
21513 2007-04-02  Bruno Haible  <bruno@clisp.org>
21514
21515         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
21516         x86 or x86_64 platforms running MacOS X.
21517         Reported by Ryan Schmidt <@ryandesign.com>.
21518
21519 2007-04-02  Bruno Haible  <bruno@clisp.org>
21520
21521         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
21522         i386.
21523
21524 2007-04-01  Simon Josefsson  <simon@josefsson.org>
21525
21526         * modules/crypto/arcfour: Moved from ../.
21527         * modules/crypto/arcfour-tests: Moved from ../.
21528         * modules/crypto/arctwo: Moved from ../.
21529         * modules/crypto/arctwo-tests: Moved from ../.
21530         * modules/crypto/des: Moved from ../.
21531         * modules/crypto/des-tests: Moved from ../.
21532         * modules/crypto/gc-arcfour: Moved from ../.
21533         * modules/crypto/gc-arcfour-tests: Moved from ../.
21534         * modules/crypto/gc-arctwo: Moved from ../.
21535         * modules/crypto/gc-arctwo-tests: Moved from ../.
21536         * modules/crypto/gc-des: Moved from ../.
21537         * modules/crypto/gc-des-tests: Moved from ../.
21538         * modules/crypto/gc-hmac-md5: Moved from ../.
21539         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
21540         * modules/crypto/gc-hmac-sha1: Moved from ../.
21541         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
21542         * modules/crypto/gc-md2: Moved from ../.
21543         * modules/crypto/gc-md2-tests: Moved from ../.
21544         * modules/crypto/gc-md4: Moved from ../.
21545         * modules/crypto/gc-md4-tests: Moved from ../.
21546         * modules/crypto/gc-md5: Moved from ../.
21547         * modules/crypto/gc-md5-tests: Moved from ../.
21548         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
21549         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
21550         * modules/crypto/gc-random: Moved from ../.
21551         * modules/crypto/gc-rijndael: Moved from ../.
21552         * modules/crypto/gc-rijndael-tests: Moved from ../.
21553         * modules/crypto/gc-sha1: Moved from ../.
21554         * modules/crypto/gc-sha1-tests: Moved from ../.
21555         * modules/crypto/gc-tests: Moved from ../.
21556         * modules/crypto/hmac-md5: Moved from ../.
21557         * modules/crypto/hmac-md5-tests: Moved from ../.
21558         * modules/crypto/hmac-sha1: Moved from ../.
21559         * modules/crypto/hmac-sha1-tests: Moved from ../.
21560         * modules/crypto/md2: Moved from ../.
21561         * modules/crypto/md2-tests: Moved from ../.
21562         * modules/crypto/md4: Moved from ../.
21563         * modules/crypto/md4-tests: Moved from ../.
21564         * modules/crypto/md5: Moved from ../.
21565         * modules/crypto/md5-tests: Moved from ../.
21566         * modules/crypto/memxor: Moved from ../.
21567         * modules/crypto/rijndael: Moved from ../.
21568         * modules/crypto/rijndael-tests: Moved from ../.
21569         * modules/crypto/sha1: Moved from ../.
21570
21571 2007-03-30  James Youngman  <jay@gnu.org>
21572
21573         * tests/test-stat-time.c (prepare_test): use chmod() rather than
21574         rename() to change the ctime of a file (because ctime is unaffected
21575         by rename on jfs2 on AIX 5.1).
21576         (main): Start by doing cleanup, in case a previous run failed leaving
21577         test files behind.
21578
21579 2007-03-31  Bruno Haible  <bruno@clisp.org>
21580
21581         Support old proprietary implementations of iconv.
21582         * modules/iconv_open: New file.
21583         * lib/iconv_.h: New file.
21584         * m4/iconv_h.m4: New file.
21585         * lib/iconv_open.c: New file.
21586         * lib/iconv_open-aix.gperf: New file.
21587         * lib/iconv_open-hpux.gperf: New file.
21588         * lib/iconv_open-irix.gperf: New file.
21589         * lib/iconv_open-osf.gperf: New file.
21590         * m4/iconv_open.m4: New file.
21591         * modules/linebreak (Depends-on): Add iconv_open.
21592         * modules/striconv (Depends-on): Likewise.
21593         * modules/striconveh (Depends-on): Likewise.
21594         * modules/unicodeio (Depends-on): Likewise.
21595         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
21596         (iconv_t)(-1).
21597         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
21598         conversion if cd is (iconv_t)(-1).
21599         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
21600         is not possible.
21601
21602 2007-03-31  Bruno Haible  <bruno@clisp.org>
21603
21604         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
21605         work on Solaris either. Protect also second use of "autodetect_jp".
21606
21607 2007-03-31  Bruno Haible  <bruno@clisp.org>
21608
21609         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
21610         the function is not present.
21611
21612 2007-03-31  Bruno Haible  <bruno@clisp.org>
21613
21614         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
21615         the function is not present.
21616
21617 2007-03-31  Bruno Haible  <bruno@clisp.org>
21618
21619         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
21620         a bug in HP-UX iconv_open().
21621
21622 2007-03-31  Bruno Haible  <bruno@clisp.org>
21623
21624         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
21625         (Mathematics <math.h>): New section, add fpieee.
21626         (Input/output <stdio.h>): Add fseterr.
21627         (Mathematics <math.h>): New section, add printf-frexp.
21628         (Container data structures): Add sublist.
21629         (Core language properties): Add fpucw, inline.
21630         (Functions for greatest-width integer types <inttypes.h>): Add
21631         imaxabs, imaxdiv, inttypes.
21632         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
21633         isnanl-nolibm, ldexp.
21634         (Mathematics <math.h>): New section, add printf-frexpl.
21635         (Support for systems lacking POSIX:2001): Add fprintf-posix,
21636         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
21637         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
21638         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
21639         (Unicode string functions): Add unistr/u*-mbtoucr.
21640         (Java): Add javacomp-script, javaexec-script.
21641         (C#): Add csharpcomp-script, csharpexec-script.
21642         (Support for building libraries and executables): Add havelib,
21643         relocatable-*.
21644         (Support for maintaining and releasing projects): Renamed from
21645         'Support for maintaining and release projects'. Add announce-gen.
21646
21647 2007-03-31  Bruno Haible  <bruno@clisp.org>
21648
21649         * README: Talk primarily about git.
21650         (git and CVS): Renamed from CVS.
21651         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
21652         gnulib is available through git.
21653         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
21654
21655 2007-03-30  Bruno Haible  <bruno@clisp.org>
21656
21657         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
21658         * lib/poll_.h: Likewise.
21659         * lib/stat_.h: Likewise.
21660         * lib/sys_time_.h: Likewise.
21661         * lib/sysexit_.h: Likewise.
21662         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
21663         * lib/stdbool_.h: Likewise.
21664         * lib/byteswap_.h: Add double-inclusion guard.
21665
21666 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
21667
21668         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
21669
21670 2007-03-30  Karl Berry  <karl@gnu.org>
21671
21672         * config/srclist-update: double space after USA in the license
21673         substitution, since that's how it's usually (?) written.
21674
21675 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
21676
21677         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
21678         reported by Bruno Haible.
21679
21680 2007-03-29  Bruno Haible  <bruno@clisp.org>
21681
21682         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
21683         a bug in AIX iconv().
21684
21685 2007-03-29  Bruno Haible  <bruno@clisp.org>
21686
21687         * modules/ldexpl-tests: New file.
21688         * tests/test-ldexpl.c: New file.
21689
21690 2007-03-29  Bruno Haible  <bruno@clisp.org>
21691
21692         * lib/ldexpl.c: Include fpucw.h.
21693         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
21694         multiplication.
21695         * modules/ldexpl (Depends-on): Add fpucw.
21696
21697 2007-03-29  Bruno Haible  <bruno@clisp.org>
21698
21699         * modules/ldexpl: New file.
21700         * m4/ldexpl.m4: New file.
21701         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
21702         set.
21703         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
21704         REPLACE_LDEXPL.
21705         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
21706         REPLACE_LDEXPL.
21707         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
21708         gl_FUNC_LDEXPL_WORKS.
21709         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
21710         * modules/mathl (Files): Remove lib/ldexpl.c.
21711         (Depends-on): Add ldexpl.
21712
21713 2007-03-29  Bruno Haible  <bruno@clisp.org>
21714
21715         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
21716
21717 2007-03-29  Bruno Haible  <bruno@clisp.org>
21718
21719         * tests/test-striconveh.c (main): Don't assume that a direct conversion
21720         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
21721         and possibly also HP-UX.
21722         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
21723         work on AIX, IRIX, HP-UX, OSF/1.
21724         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
21725         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
21726         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
21727         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
21728         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
21729         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
21730
21731 2007-03-29  Bruno Haible  <bruno@clisp.org>
21732
21733         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
21734
21735 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
21736
21737         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
21738         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
21739
21740 2007-03-29  Eric Blake  <ebb9@byu.net>
21741
21742         * lib/acl-internal.h: Remove redundant include.
21743         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
21744         Cygwin when a file is locked.
21745
21746 2007-03-29  Bruno Haible  <bruno@clisp.org>
21747
21748         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
21749         file.
21750         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
21751
21752 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
21753
21754         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
21755         try to remove a parent directory if the child couldn't be removed
21756         (except for the first rmdir, which could fail because the child
21757         doesn't exist).  Problem reported by Jeff Blaine in
21758         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
21759
21760 2007-03-28  Bruno Haible  <bruno@clisp.org>
21761
21762         * lib/striconveh.c (utf8conv_carefully): New function.
21763         (mem_cd_iconveh_internal): Invoke it.
21764
21765 2007-03-28  Bruno Haible  <bruno@clisp.org>
21766
21767         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
21768         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
21769         input.
21770         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
21771         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
21772         unistr/u8-uctomb.
21773
21774 2007-03-28  Bruno Haible  <bruno@clisp.org>
21775
21776         * modules/unistr/u8-mbtoucr: New file.
21777         * lib/unistr/u8-mbtoucr.c: New file.
21778         * modules/unistr/u16-mbtoucr: New file.
21779         * lib/unistr/u16-mbtoucr.c: New file.
21780         * modules/unistr/u16-mbtoucr: New file.
21781         * lib/unistr/u16-mbtoucr.c: New file.
21782         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
21783
21784 2007-03-27  Simon Josefsson  <simon@josefsson.org>
21785             Bruno Haible  <bruno@clisp.org>
21786
21787         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
21788         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
21789         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
21790
21791         * m4/stdio_h.m4: Add stubs for vasprintf too.
21792
21793         * modules/stdio: Support vasprintf in sed command.
21794
21795         * modules/vasprintf: Depend on stdio for prototypes.  Remove
21796         vasprintf.h.  Add stdio module indicator.
21797
21798         * lib/stdio_.h: Declare asprintf and vasprintf, based on
21799         vasprintf.h.
21800
21801         * lib/vasprintf.h: File removed.
21802
21803         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
21804         * lib/vasprintf.c: Ditto.
21805         * lib/xvasprintf.c: Ditto.
21806         * tests/test-vasprintf-posix.c: Ditto.
21807         * tests/test-vasprintf.c: Ditto.
21808
21809 2007-03-27  Bruno Haible  <bruno@clisp.org>
21810
21811         Make vasnprintf multithread-safe.
21812         * lib/vasnprintf.c (decimal_point_char): New function.
21813         (VASNPRINTF): Use it.
21814         Suggested by Simon Josefsson.
21815
21816 2007-03-27  Eric Blake  <ebb9@byu.net>
21817
21818         Support sub-second birthtime on cygwin.
21819         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
21820         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
21821         (get_stat_birthtime): Also work with st_birthtim.
21822
21823 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
21824
21825         * lib/stat-time.h (USE_BIRTHTIME): Remove.
21826         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
21827         (get_stat_birthtime_ns): Do not try to use "spare" fields.
21828         (get_stat_birthtime_ns): Simplify compile-time tests.
21829         (get_stat_birthtime): Change the API to look like
21830         get_stat_mtime etc., except return a negative tv_nsec on error.
21831         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
21832         Don't check for "spare" fields.
21833         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
21834         or for struct stat.st_birthtime, as these tests aren't used.
21835         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
21836
21837 2007-03-27  Bruno Haible  <bruno@clisp.org>
21838
21839         * lib/stat-time.h: Include <sys/stat.h>.
21840
21841 2007-03-27  James Youngman  <jay@gnu.org>
21842
21843         * lib/stat-time.h (get_stat_birthtime): New function for
21844           retrieving st_birthtime as provided by UFS2 (hence *BSD).
21845         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
21846           and its variants.
21847         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
21848         * modules/stat-time-test: New file.
21849         * tests/test-stat-time.c: New test, devised by Bruno Haible.
21850
21851 2007-03-26  Bruno Haible  <bruno@clisp.org>
21852
21853         Better support of signalling NaNs.
21854         * lib/atanl.c: Include isnanl.h.
21855         (atanl): Perform test for NaN at the beginning of the function and
21856         through a call to isnanl.
21857         * lib/cosl.c: Include isnanl.h.
21858         (cosl): Perform test for NaN at the beginning of the function and
21859         through a call to isnanl.
21860         * lib/ldexpl.c: Include isnanl.h.
21861         (ldexpl): Perform test for NaN through a call to isnanl.
21862         * lib/logl.c: Include isnanl.h.
21863         (logl): Perform test for NaN at the beginning of the function and
21864         through a call to isnanl.
21865         * lib/sinl.c: Include isnanl.h.
21866         (sinl): Perform test for NaN at the beginning of the function and
21867         through a call to isnanl.
21868         * lib/sqrtl.c: Include isnanl.h.
21869         (sqrtl): Perform test for NaN at the beginning of the function and
21870         through a call to isnanl.
21871         * lib/tanl.c: Include isnanl.h.
21872         (tanl): Perform test for NaN at the beginning of the function and
21873         through a call to isnanl.
21874         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
21875         * modules/mathl (Depends-on): Add isnanl.
21876
21877 2007-03-26  Eric Blake  <ebb9@byu.net>
21878
21879         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
21880         regression in logic sense of previous patch.
21881
21882 2007-03-26  Bruno Haible  <bruno@clisp.org>
21883
21884         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
21885         unportable shell command "if ! ...".
21886         Reported by Ralf Wildenhues.
21887
21888 2007-03-25  Bruno Haible  <bruno@clisp.org>
21889
21890         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
21891         <sysexits.h> file, and only add EX_CONFIG.
21892         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
21893         absolute file name and whether it is sufficient. Substitute also
21894         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
21895         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
21896         ABSOLUTE_SYSEXITS_H into sysexits.h.
21897
21898 2007-03-25  Bruno Haible  <bruno@clisp.org>
21899
21900         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
21901         hints is NULL.
21902
21903 2007-03-25  Bruno Haible  <bruno@clisp.org>
21904
21905         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
21906         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
21907
21908 2007-03-25  Bruno Haible  <bruno@clisp.org>
21909
21910         * lib/vasnprintf.c: Include langinfo.h.
21911         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
21912         multithread-safe.
21913         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
21914         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
21915         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
21916         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
21917         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
21918         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
21919         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
21920         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
21921         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
21922         Reported by Simon Josefsson.
21923
21924 2007-03-25  Bruno Haible  <bruno@clisp.org>
21925
21926         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
21927         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
21928         * modules/vasnprintf (Depends-on): Add stdint.
21929
21930 2007-03-25  Bruno Haible  <bruno@clisp.org>
21931
21932         * modules/fpieee: New file.
21933         * m4/fpieee.m4: New file.
21934         * modules/isnan-nolibm (Depends-on): Add fpieee.
21935         * modules/isnanl-nolibm (Depends-on): Add fpieee.
21936         * modules/isnanl (Depends-on): Add fpieee.
21937
21938 2007-03-25  Bruno Haible  <bruno@clisp.org>
21939
21940         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
21941
21942 2007-03-25  Bruno Haible  <bruno@clisp.org>
21943
21944         Avoid test failures on IRIX 6.5.
21945         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
21946         (main): Use it.
21947         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
21948         macros.
21949         (main): Use them.
21950
21951 2007-03-25  Bruno Haible  <bruno@clisp.org>
21952
21953         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
21954         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
21955         exists but doesn't work.
21956         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
21957         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
21958         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
21959         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
21960
21961 2007-03-25  Bruno Haible  <bruno@clisp.org>
21962
21963         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
21964         returns inf. Needed on IRIX 6.5.
21965
21966 2007-03-25  Bruno Haible  <bruno@clisp.org>
21967
21968         * tests/test-frexpl.c: Include isnanl-nolibm.h.
21969         (main): Use isnanl instead of x != x idiom.
21970         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
21971
21972         * tests/test-frexp.c: Include isnan.h.
21973         (main): Use isnan instead of x != x idiom.
21974         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
21975
21976 2007-03-25  Bruno Haible  <bruno@clisp.org>
21977
21978         * tests/test-frexp.c (NaN): New function/macro.
21979         (main): Use it instead of 0.0 / 0.0.
21980         * tests/test-isnan.c (NaN): New function/macro.
21981         (main): Use it instead of 0.0 / 0.0.
21982         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
21983         (test_function): Use it instead of 0.0 / 0.0.
21984         * tests/test-vasprintf-posix.c (NaN): New function/macro.
21985         (test_function): Use it instead of 0.0 / 0.0.
21986         * tests/test-snprintf-posix.h (NaN): New function/macro.
21987         (test_function): Use it instead of 0.0 / 0.0.
21988         * tests/test-sprintf-posix.h (NaN): New function/macro.
21989         (test_function): Use it instead of 0.0 / 0.0.
21990         * tests/test-fprintf-posix.h (NaN): New function/macro.
21991         (test_function): Use it instead of 0.0 / 0.0.
21992         * tests/test-printf-posix.h (NaN): New function/macro.
21993         (test_function): Use it instead of 0.0 / 0.0.
21994
21995         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
21996
21997 2007-03-25  Bruno Haible  <bruno@clisp.org>
21998
21999         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
22000
22001 2007-03-25  Bruno Haible  <bruno@clisp.org>
22002
22003         * lib/regexec.c (merge_state_with_log): Make static.
22004
22005 2007-03-25  Bruno Haible  <bruno@clisp.org>
22006
22007         * lib/trigl.c (kernel_rem_pio2): Make static.
22008
22009 2007-03-25  Bruno Haible  <bruno@clisp.org>
22010
22011         * lib/sincosl.c (sincosl_table): Make static.
22012
22013 2007-03-25  Bruno Haible  <bruno@clisp.org>
22014
22015         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
22016         if the compiler does not support C99.
22017
22018 2007-03-25  Bruno Haible  <bruno@clisp.org>
22019
22020         * modules/time (Makefile.am): Ensure all rule action lines start with a
22021         tab.
22022
22023 2007-03-24  Bruno Haible  <bruno@clisp.org>
22024
22025         * modules/tsearch-tests: New file.
22026         * tests/test-tsearch.sh: New file.
22027         * tests/test-tsearch.c: New file, mostly copied from glibc.
22028
22029         * modules/search-tests: New file.
22030         * tests/test-search.c: New file.
22031
22032         * modules/search: New file.
22033         * lib/search_.h: New file, incorporating lib/tsearch.h.
22034         * m4/search_h.m4: New file.
22035         * lib/tsearch.h: Remove file.
22036         * lib/tsearch.c: Include search.h instead of tsearch.h.
22037         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
22038         HAVE_TSEARCH.
22039         * modules/tsearch (Files): Remove lib/tsearch.h.
22040         (Depends-on): Add search.
22041         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
22042         (Include): Change tsearch.h into search.h.
22043
22044 2007-03-24  Bruno Haible  <bruno@clisp.org>
22045
22046         * modules/fpucw: New file.
22047         * lib/fpucw.h: New file.
22048         * lib/frexp.c: Include fpucw.h.
22049         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
22050         (FUNC): Use them.
22051         * lib/printf-frexp.c: Include fpucw.h.
22052         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
22053         (FUNC): Use them.
22054         * lib/vasnprintf.c: Include fpucw.h.
22055         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
22056         'long double' calculations.
22057         * tests/test-frexpl.c: Include fpucw.h.
22058         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
22059         * tests/test-printf-frexpl.c: Include fpucw.h.
22060         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
22061         * modules/frexpl (Depends-on): Add fpucw.
22062         * modules/printf-frexpl (Depends-on): Likewise.
22063         * modules/fprintf-posix (Depends-on): Likewise.
22064         * modules/snprintf-posix (Depends-on): Likewise.
22065         * modules/sprintf-posix (Depends-on): Likewise.
22066         * modules/vasnprintf-posix (Depends-on): Likewise.
22067         * modules/vasprintf-posix (Depends-on): Likewise.
22068         * modules/vfprintf-posix (Depends-on): Likewise.
22069         * modules/vsnprintf-posix (Depends-on): Likewise.
22070         * modules/vsprintf-posix (Depends-on): Likewise.
22071         * modules/frexpl-tests (Depends-on): Likewise.
22072         * modules/printf-frexpl-tests (Depends-on): Likewise.
22073
22074 2007-03-24  Bruno Haible  <bruno@clisp.org>
22075
22076         * lib/float+.h: New file.
22077         * lib/isnan.c: Include float+.h.
22078         (SIZE): New macro.
22079         (FUNC): Compare only SIZE bytes of the value.
22080         * lib/vasnprintf.c: Include float+.h.
22081         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
22082         SIZEOF_LDBL or SIZEOF_DBL bytes.
22083         * modules/isnan-nolibm (Files): Add lib/float+.h.
22084         * modules/isnanl-nolibm (Files): Add lib/float+.h.
22085         * modules/isnanl (Files): Add lib/float+.h.
22086         * modules/vasnprintf (Files): Add lib/float+.h.
22087
22088 2007-03-24  Bruno Haible  <bruno@clisp.org>
22089
22090         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
22091         include isnanl-nolibm.h.
22092
22093 2007-03-24  Bruno Haible  <bruno@clisp.org>
22094
22095         * tests/test-read-file.c (main): Don't produce spurious output for
22096         expected situations. Make the test fail if it encountered unexpected
22097         results.
22098
22099 2007-03-24  Bruno Haible  <bruno@clisp.org>
22100
22101         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
22102         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
22103
22104 2007-03-24  Bruno Haible  <bruno@clisp.org>
22105
22106         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
22107
22108 2007-03-24  Bruno Haible  <bruno@clisp.org>
22109
22110         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
22111         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
22112
22113         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
22114         * modules/utf8-ucs4: Turn into a symbolic link to module
22115         unistr/u8-mbtouc.
22116
22117         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
22118         utf8-ucs4-unsafe.
22119         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
22120         unistr/u8-mbtouc-unsafe.
22121
22122         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
22123         * modules/utf16-ucs4: Turn into a symbolic link to module
22124         unistr/u16-mbtouc.
22125
22126         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
22127         utf16-ucs4-unsafe.
22128         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
22129         unistr/u16-mbtouc-unsafe.
22130
22131         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
22132         * modules/ucs4-utf8: Turn into a symbolic link to module
22133         unistr/u8-ubtomb.
22134
22135         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
22136         * modules/ucs4-utf16: Turn into a symbolic link to module
22137         unistr/u16-ubtomb.
22138
22139 2007-03-24  Bruno Haible  <bruno@clisp.org>
22140
22141         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
22142         Enable the function only if HAVE_INLINE.
22143         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
22144         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
22145         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
22146         Enable the function only if HAVE_INLINE.
22147         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
22148         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
22149         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
22150         Enable the function only if HAVE_INLINE.
22151         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
22152         Enable the function only if HAVE_INLINE.
22153         * modules/utf8-ucs4: Update.
22154         * modules/utf8-ucs4-unsafe: Update.
22155         * modules/utf16-ucs4: Update.
22156         * modules/utf16-ucs4-unsafe: Update.
22157         * modules/ucs4-utf8: Update.
22158         * modules/ucs4-utf16: Update.
22159
22160 2007-03-24  Bruno Haible  <bruno@clisp.org>
22161
22162         * lib/utf8-ucs4.h: Remove file.
22163         * lib/utf8-ucs4-unsafe.h: Remove file.
22164         * lib/utf16-ucs4.h: Remove file.
22165         * lib/utf16-ucs4-unsafe.h: Remove file.
22166         * lib/ucs4-utf8.h: Remove file.
22167         * lib/ucs4-utf16.h: Remove file.
22168         * lib/unistr.h: Include their previous contents.
22169         * m4/utf-ucs4.m4: Remove file.
22170         * m4/ucs4-utf.m4: Remove file.
22171         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
22172         (Depends-on): Add unistr/base.
22173         (configure.ac): Remove gl_UTF_UCS4.
22174         (Makefile.am): Update.
22175         (Include): Change to unistr.h.
22176         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
22177         (Depends-on): Add unistr/base.
22178         (configure.ac): Remove gl_UTF_UCS4.
22179         (Makefile.am): Update.
22180         (Include): Change to unistr.h.
22181         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
22182         (Depends-on): Add unistr/base.
22183         (configure.ac): Remove gl_UTF_UCS4.
22184         (Makefile.am): Update.
22185         (Include): Change to unistr.h.
22186         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
22187         (Depends-on): Add unistr/base.
22188         (configure.ac): Remove gl_UTF_UCS4.
22189         (Makefile.am): Update.
22190         (Include): Change to unistr.h.
22191         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
22192         (Depends-on): Add unistr/base.
22193         (configure.ac): Remove gl_UCS4_UTF.
22194         (Makefile.am): Update.
22195         (Include): Change to unistr.h.
22196         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
22197         (Depends-on): Add unistr/base.
22198         (configure.ac): Remove gl_UCS4_UTF.
22199         (Makefile.am): Update.
22200         (Include): Change to unistr.h.
22201         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
22202         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
22203         utf8-ucs4-unsafe.h.
22204         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
22205         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
22206         utf16-ucs4-unsafe.h.
22207         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
22208         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
22209         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
22210         * lib/unistr/u8-strchr.c: Likewise.
22211         * lib/unistr/u8-strrchr.c: Likewise.
22212         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
22213         * lib/unistr/u16-strchr.c: Likewise.
22214         * lib/unistr/u16-strrchr.c: Likewise.
22215         * lib/striconveh.c: Update.
22216         * lib/linebreak.c: Update.
22217
22218 2007-03-24  Bruno Haible  <bruno@clisp.org>
22219
22220         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
22221         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
22222
22223 2007-03-22  Bruno Haible  <bruno@clisp.org>
22224
22225         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
22226
22227 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
22228
22229         * MODULES.html.sh (File system functions): New module write-any-file.
22230         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
22231         * m4/write-any-file.m4: New files.
22232
22233 2007-03-23  Eric Blake  <ebb9@byu.net>
22234
22235         * gnulib-tool: Rearrange space-tab sequences, since some editors
22236         like to eat them.
22237
22238 2007-03-23  Eric Blake  <ebb9@byu.net>
22239
22240         * lib/version-etc.c (version_etc_va): Update license wording to
22241         be more concise.  Recommended by Richard Stallman.
22242
22243 2007-03-22  Bruno Haible  <bruno@clisp.org>
22244
22245         * lib/poll.c (MSG_PEEK): New fallback definition.
22246
22247 2007-03-22  Bruno Haible  <bruno@clisp.org>
22248
22249         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
22250         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
22251         (main): Update.
22252         Fixes a compilation error on BeOS.
22253
22254 2007-03-22  Bruno Haible  <bruno@clisp.org>
22255
22256         * modules/frexpl-tests: New file.
22257         * tests/test-frexpl.c: New file.
22258
22259         * modules/frexpl: New file.
22260         * m4/frexpl.m4: New file.
22261         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
22262         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
22263         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
22264         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
22265         (Depends-on): Add frexpl. Remove isnanl-nolibm.
22266         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
22267
22268 2007-03-22  Bruno Haible  <bruno@clisp.org>
22269
22270         * lib/frexpl.c: Share code with lib/frexp.c.
22271         * modules/mathl (Files): Add lib/frexp.c.
22272         (Depends-on): Add isnanl-nolibm.
22273
22274 2007-03-22  Bruno Haible  <bruno@clisp.org>
22275
22276         * modules/printf-frexp (Files): Add m4/frexp.m4.
22277         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
22278         only if the found frexp function actually works.
22279
22280 2007-03-22  Bruno Haible  <bruno@clisp.org>
22281
22282         * lib/frexp.c: Remove older implementation that uses divisions.
22283
22284 2007-03-21  Bruno Haible  <bruno@clisp.org>
22285
22286         * modules/frexp-tests: New file.
22287         * tests/test-frexp.c: New file.
22288
22289         * modules/frexp: New file.
22290         * lib/frexp.c: New file.
22291         * m4/frexp.m4: New file.
22292         * lib/math_.h (frexp): New declaration.
22293         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
22294         REPLACE_FREXP.
22295         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
22296
22297 2007-03-21  Bruno Haible  <bruno@clisp.org>
22298
22299         * modules/isnanl-tests: New file.
22300         * tests/test-isnanl.c: New file.
22301
22302         * modules/isnanl: New file.
22303         * lib/isnanl.h: New file.
22304         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
22305         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
22306         gl_FUNC_ISNANL_WORKS.
22307         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
22308         New macros.
22309
22310 2007-03-21  Bruno Haible  <bruno@clisp.org>
22311
22312         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
22313         lib/isnanl.h.
22314         (Include): Update.
22315         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
22316         * lib/vasnprintf.c: Update.
22317         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
22318         tests/test-isnanl.h, remove tests/test-isnanl.c.
22319         (Makefile.am): Update.
22320         * tests/test-isnanl-nolibm.c: New file.
22321         * tests/test-isnanl.h: New file.
22322         * tests/test-isnanl.c: Remove file.
22323
22324 2007-03-21  Jim Meyering  <jim@meyering.net>
22325
22326         When trying to open ".", treat ESTALE like EACCES.
22327         * lib/savewd.c (savewd_save): Resort to forking not just upon
22328         failure with EACCES, but also when errno is ESTALE.
22329
22330 2007-03-20  Bruno Haible  <bruno@clisp.org>
22331
22332         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
22333         Needed on AIX 5.1. Reported by Matthew Woehlke.
22334
22335 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22336
22337         Suggestions by Bruno Haible:
22338         * lib/acl-internal.h: Include "gettext.h" rather than rolling
22339         our own.
22340         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
22341         * modules/acl (Depends-on): Add gettext.
22342
22343 2007-03-19  Bruno Haible  <bruno@clisp.org>
22344
22345         * modules/iconvme: Remove file.
22346         * lib/iconvme.h: Remove file.
22347         * lib/iconvme.c: Remove file.
22348         * m4/iconvme.m4: Remove file.
22349
22350 2007-03-19  Bruno Haible  <bruno@clisp.org>
22351
22352         * doc/relocatable-maint.texi: Break long shell script line.
22353         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
22354
22355 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22356
22357         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
22358         handle file_has_acl.
22359         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
22360         * lib/acl.c: Move header inclusions and related macro defns into
22361         lib/acl-internal.h.
22362         (S_ISLNK): Remove defn, since that's now done for us.
22363         (file_has_acl): Move to lib/file-has-acl.c.
22364         Call acl_trivial if available.  This is the crucial part of the fix.
22365         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
22366         shared within the library.  Rewrite a bit, partly to make it compatible
22367         with the GNU coding style.
22368         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
22369         Remove unnecessary double-quotes.
22370         Don't test for acl_to_text; the build will catch that.
22371         Replace acl_entries if it doesn't exist and it is needed.
22372         Check for -lsec and acl_trivial (as used on Solaris 10).
22373         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
22374         lib/file-has-acl.c.
22375         (Depends-on): Add sys_stat, for S_ISLNK.
22376
22377 2007-03-19  Ben Pfaff  <blp@gnu.org>
22378
22379         * doc/gnulib.texi: Fix typos.
22380         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
22381
22382 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22383
22384         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
22385         If size is zero here, buf must be zero.
22386
22387 2007-03-19  Simon Josefsson  <simon@josefsson.org>
22388
22389         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
22390         <bruno@clisp.org>.
22391
22392 2007-03-18  Bruno Haible  <bruno@clisp.org>
22393
22394         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
22395         Suggested by Eric Blake.
22396
22397 2007-03-18  Ben Pfaff  <blp@gnu.org>
22398
22399         * doc/relocatable.texi: Recommend using as prefix a directory
22400         that does not exist and will never be created.  Based on
22401         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
22402         and others.
22403
22404 2007-03-17  Bruno Haible  <bruno@clisp.org>
22405
22406         * lib/fchownat.c: Include lchown.h.
22407
22408 2007-03-17  Bruno Haible  <bruno@clisp.org>
22409
22410         Fix endless loop when the given allocated size was > INT_MAX.
22411         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
22412         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
22413         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
22414         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
22415         * lib/sprintf.c (sprintf): Likewise.
22416
22417 2007-03-17  Bruno Haible  <bruno@clisp.org>
22418
22419         * tests/test-argp-2.sh (func_compare): Output a context diff.
22420
22421 2007-03-17  Bruno Haible  <bruno@clisp.org>
22422
22423         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
22424         locale's decimal-point character.
22425
22426 2007-03-17  Bruno Haible  <bruno@clisp.org>
22427
22428         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
22429         before comparing it. Needed because on some platforms (e.g. x86) a
22430         'long double' occupies less bytes than sizeof (long double).
22431
22432 2007-03-17  Bruno Haible  <bruno@clisp.org>
22433
22434         * tests/test-crc.c (main): Make printf statements 64-bit clean.
22435         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
22436         * tests/test-getaddrinfo.c (simple): Likewise.
22437         * tests/test-read-file.c (main): Likewise.
22438
22439 2007-03-17  Bruno Haible  <bruno@clisp.org>
22440
22441         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
22442
22443 2007-03-17  Bruno Haible  <bruno@clisp.org>
22444
22445         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
22446         unused variable.
22447
22448 2007-03-17  Bruno Haible  <bruno@clisp.org>
22449
22450         * tests/test-c-strcasecmp.c: Include c-strcase.h.
22451         * tests/test-c-strncasecmp.c: Likewise.
22452
22453 2007-03-17  Bruno Haible  <bruno@clisp.org>
22454
22455         * modules/stdlib (Depends-on): Add unistd.
22456         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
22457         Needed for MacOS X 10.3.
22458
22459 2007-03-17  Bruno Haible  <bruno@clisp.org>
22460
22461         * lib/unistr/u-strdup.h: Include <stdlib.h>.
22462
22463 2007-03-17  Bruno Haible  <bruno@clisp.org>
22464
22465         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
22466
22467 2007-03-17  Bruno Haible  <bruno@clisp.org>
22468
22469         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
22470         to reflect files copied from gnulib (with or without modifications).
22471         Suggested by Jim Meyering.
22472
22473 2007-03-17  Eric Blake  <ebb9@byu.net>
22474
22475         * NEWS: Document stdlib change from 2007-02-18.
22476
22477 2007-03-17  Jim Meyering  <jim@meyering.net>
22478
22479         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
22480         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
22481         someone uses a name containing shell meta-characters.
22482         Reported by Alfred M. Szmidt.
22483
22484         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
22485
22486 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
22487
22488         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
22489         and copy gettext configuration files only if configure.ac contains
22490         a use of AM_GNU_GETTEXT_VERSION.
22491
22492 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
22493
22494         * build-aux/bootstrap (gnulib_name): New variable.
22495         (gnulib_tool_options): Use it.
22496
22497 2007-03-13  Simon Josefsson  <simon@josefsson.org>
22498
22499         * tests/test-des.c: Use new namespace.
22500
22501 2007-03-15  Bruno Haible  <bruno@clisp.org>
22502
22503         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
22504         Reported by James Youngman <jay@gnu.org>.
22505
22506 2007-03-15  Bruno Haible  <bruno@clisp.org>
22507
22508         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
22509         declared prototype. Needed with cc on OSF/1 5.1.
22510
22511 2007-03-15  Bruno Haible  <bruno@clisp.org>
22512
22513         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
22514         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
22515         (struct gl_list_implementation): Add dispose_fn argument to the
22516         'create_empty', 'create' methods.
22517         (struct gl_list_impl_base): Add field 'dispose_fn'.
22518         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
22519         argument.
22520         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
22521         dispose_fn argument.
22522         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
22523         dispose_fn on the dropped values.
22524         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
22525         dispose_fn argument.
22526         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
22527         dropped values.
22528         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
22529         (gl_tree_remove_node): Call dispose_fn on the dropped value.
22530         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
22531         (gl_tree_remove_node): Call dispose_fn on the dropped value.
22532         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
22533         argument.
22534         (gl_tree_list_free): Call dispose_fn on the dropped values.
22535         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
22536         the dropped values.
22537         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
22538         Add dispose_fn argument.
22539         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
22540         Call dispose_fn on the dropped values.
22541         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
22542         Add dispose_fn argument.
22543         (gl_sublist_create): Initialize the 'dispose_fn' field.
22544         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
22545         * tests/test-array_list.c (main): Update.
22546         * tests/test-carray_list.c (main): Update.
22547         * tests/test-avltree_list.c (main): Update.
22548         * tests/test-rbtree_list.c (main): Update.
22549         * tests/test-avltreehash_list.c (main): Update.
22550         * tests/test-rbtreehash_list.c (main): Update.
22551         * tests/test-linked_list.c (main): Update.
22552         * tests/test-linkedhash_list.c (main): Update.
22553         * tests/test-array_oset.c (main): Update.
22554
22555 2007-03-15  Bruno Haible  <bruno@clisp.org>
22556
22557         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
22558         (gl_oset_create_empty): Add dispose_fn argument.
22559         (struct gl_oset_implementation): Add dispose_fn argument to
22560         'create_empty' method.
22561         (struct gl_oset_impl_base): Add dispose_fn field.
22562         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
22563         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
22564         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
22565         values.
22566         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
22567         (gl_tree_oset_free): Call dispose_fn on the dropped values.
22568         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
22569         dropped value.
22570         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
22571         dropped value.
22572         * tests/test-array_oset.c (main): Update.
22573         * tests/test-avltree_oset.c (main): Update.
22574         * tests/test-rbtree_oset.c (main): Update.
22575         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
22576
22577 2007-03-13  Bruno Haible  <bruno@clisp.org>
22578
22579         * tests/test-stdbool.c (i): Update after last patch.
22580
22581 2007-03-12  Bruno Haible  <bruno@clisp.org>
22582
22583         * lib/quotearg.c: Include <wctype.h> early, before the definition of
22584         the iswprint macro. Needed on Solaris 2.5.1.
22585
22586 2007-03-12  Bruno Haible  <bruno@clisp.org>
22587
22588         * tests/test-printf-frexp.c (main): Declare x as volatile.
22589
22590 2007-03-12  Simon Josefsson  <simon@josefsson.org>
22591
22592         * doc/gnulib.texi (Build robot for gnulib): New section.
22593
22594 2007-03-12  Jim Meyering  <jim@meyering.net>
22595
22596         * build-aux/bootstrap: New file.
22597         * build-aux/bootstrap.conf: New file, from coreutils.
22598
22599 2007-03-11  Bruno Haible  <bruno@clisp.org>
22600
22601         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
22602
22603 2007-03-12  Simon Josefsson  <simon@josefsson.org>
22604
22605         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
22606         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
22607         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
22608
22609 2007-03-11  Bruno Haible  <bruno@clisp.org>
22610
22611         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
22612         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
22613
22614 2007-03-11  Bruno Haible  <bruno@clisp.org>
22615
22616         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
22617         formula. Needed for SunPRO C 5.0.
22618
22619 2007-03-11  Bruno Haible  <bruno@clisp.org>
22620
22621         * modules/long-options (Depends-on): Add getopt.
22622
22623 2007-03-11  Bruno Haible  <bruno@clisp.org>
22624
22625         * modules/modechange (Depends-on): Add stdbool.
22626
22627 2007-03-11  Bruno Haible  <bruno@clisp.org>
22628
22629         * modules/i-ring (Depends-on): Add stdbool.
22630
22631 2007-03-11  Bruno Haible  <bruno@clisp.org>
22632
22633         * modules/gc-des (Depends-on): Add stdbool.
22634
22635 2007-03-11  Bruno Haible  <bruno@clisp.org>
22636
22637         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
22638
22639 2007-03-11  Bruno Haible  <bruno@clisp.org>
22640
22641         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
22642
22643 2007-03-11  Bruno Haible  <bruno@clisp.org>
22644
22645         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
22646
22647 2007-03-11  Bruno Haible  <bruno@clisp.org>
22648
22649         * lib/vasnprintf.c (sprintf): Undefine.
22650
22651 2007-03-11  Bruno Haible  <bruno@clisp.org>
22652
22653         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
22654         initializers in SunPRO C and Compaq C compilers.
22655
22656 2007-03-11  Bruno Haible  <bruno@clisp.org>
22657
22658         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
22659         decrementing code ANSI C compliant.
22660
22661 2007-03-11  Bruno Haible  <bruno@clisp.org>
22662
22663         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
22664         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
22665
22666 2007-03-11  Bruno Haible  <bruno@clisp.org>
22667
22668         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
22669         <stdbool.h> substitute doesn't pass.
22670
22671 2007-03-11  Bruno Haible  <bruno@clisp.org>
22672
22673         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
22674
22675 2007-03-11  Bruno Haible  <bruno@clisp.org>
22676
22677         * gnulib-tool (func_create_megatestdir): Create also an autobuild
22678         script, for submission to autobuild.josefsson.org.
22679
22680 2007-03-10  Bruno Haible  <bruno@clisp.org>
22681
22682         * modules/canonicalize-lgpl-tests: New file.
22683         * tests/test-canonicalize-lgpl.sh: New file.
22684         * tests/test-canonicalize-lgpl.c: New file.
22685
22686         * modules/c-strcase-tests: New file.
22687         * tests/test-c-strcase.sh: New file.
22688         * tests/test-c-strcasecmp.c: New file.
22689         * tests/test-c-strncasecmp.c: New file.
22690
22691         * modules/atexit-tests: New file.
22692         * tests/test-atexit.sh: New file.
22693         * tests/test-atexit.c: New file.
22694
22695 2007-03-10  Bruno Haible  <bruno@clisp.org>
22696
22697         * tests/test-binary-io.sh: Use temporary filenames that are not so
22698         likely to clash with those of other tests (in a parallel make).
22699         * tests/test-binary-io.c: Likewise.
22700
22701 2007-03-10  Bruno Haible  <bruno@clisp.org>
22702
22703         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
22704         fallback; use #error instead.
22705         Suggested by Simon Josefsson.
22706
22707 2007-03-10  Bruno Haible  <bruno@clisp.org>
22708
22709         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
22710         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
22711         first and the last.
22712
22713 2007-03-10  Bruno Haible  <bruno@clisp.org>
22714
22715         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
22716
22717 2007-03-10  Bruno Haible  <bruno@clisp.org>
22718
22719         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
22720         "make distcheck".
22721         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
22722         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
22723         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
22724
22725 2007-03-10  Bruno Haible  <bruno@clisp.org>
22726
22727         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
22728         variable.
22729         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
22730         variable.
22731
22732 2007-03-09  Eric Blake  <ebb9@byu.net>
22733         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
22734
22735         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
22736         types are not being provided by gnulib.
22737         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
22738         types are supported.
22739
22740 2007-03-10  Bruno Haible  <bruno@clisp.org>
22741
22742         * lib/stdio_.h (__attribute__): New macro.
22743         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
22744         vsprintf): Specify __attribute__ __format__ for GCC.
22745         Suggested by Eric Blake.
22746
22747 2007-03-09  Bruno Haible  <bruno@clisp.org>
22748
22749         * modules/printf-posix-tests: New file.
22750         * tests/test-printf-posix.sh: New file.
22751         * tests/test-printf-posix.c: New file.
22752
22753         * modules/printf-posix: New file.
22754         * lib/printf.c: New file.
22755         * m4/printf-posix-rpl.m4: New file.
22756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
22757         REPLACE_PRINTF.
22758         * lib/stdio_.h (printf): New declaration.
22759         (format, __format__, ____printf____, ____scanf____, ____strftime____,
22760         ____strfmon____): New macros.
22761         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
22762         REPLACE_PRINTF.
22763
22764 2007-03-09  Bruno Haible  <bruno@clisp.org>
22765
22766         * tests/test-vasnprintf-posix2.sh: New file.
22767         * tests/test-vasnprintf-posix2.c: New file.
22768         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
22769         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
22770         (Makefile.am): Activate test-vasnprintf-posix2.sh.
22771
22772         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
22773         a locale dependent decimal point, rather than always '.'.
22774
22775 2007-03-09  Eric Blake  <ebb9@byu.net>
22776
22777         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
22778         spite of platforms like Tandem/NSK that define it to -1.
22779
22780 2007-03-08  Bruno Haible  <bruno@clisp.org>
22781
22782         * modules/vprintf-posix-tests: New file.
22783         * tests/test-vprintf-posix.sh: New file.
22784         * tests/test-vprintf-posix.c: New file.
22785         * tests/test-printf-posix.h: New file.
22786
22787         * modules/vprintf-posix: New file.
22788         * lib/vprintf.c: New file.
22789         * m4/vprintf-posix.m4: New file.
22790         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
22791         REPLACE_VPRINTF.
22792         * lib/stdio_.h (vprintf): New declaration.
22793         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
22794         REPLACE_VPRINTF.
22795
22796 2007-03-08  Bruno Haible  <bruno@clisp.org>
22797
22798         * modules/fprintf-posix-tests: New file.
22799         * tests/test-fprintf-posix.sh: New file.
22800         * tests/test-fprintf-posix.c: New file.
22801
22802         * modules/fprintf-posix: New file.
22803         * lib/fprintf.c: New file.
22804         * m4/fprintf-posix.m4: New file.
22805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
22806         REPLACE_FPRINTF.
22807         * lib/stdio_.h (fprintf): New declaration.
22808         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
22809         REPLACE_FPRINTF.
22810
22811 2007-03-08  Bruno Haible  <bruno@clisp.org>
22812
22813         * modules/vfprintf-posix-tests: New file.
22814         * tests/test-vfprintf-posix.sh: New file.
22815         * tests/test-vfprintf-posix.c: New file.
22816         * tests/test-fprintf-posix.h: New file.
22817         * tests/test-fprintf-posix.out: New file.
22818
22819         * modules/vfprintf-posix: New file.
22820         * lib/vfprintf.c: New file.
22821         * m4/vfprintf-posix.m4: New file.
22822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
22823         REPLACE_VFPRINTF.
22824         * lib/stdio_.h (vfprintf): New declaration.
22825         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
22826         REPLACE_VFPRINTF.
22827
22828 2007-03-08  Bruno Haible  <bruno@clisp.org>
22829
22830         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
22831
22832 2007-03-08  Bruno Haible  <bruno@clisp.org>
22833
22834         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
22835         instead of 'expr' invocations.
22836         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22837         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22838         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22839         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22840         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22841         Suggested by Paul Eggert.
22842
22843 2007-03-08  Bruno Haible  <bruno@clisp.org>
22844
22845         * modules/fseterr-tests: New file.
22846         * tests/test-fseterr.c: New file.
22847
22848         * modules/fseterr: New file.
22849         * lib/fseterr.h: New file.
22850         * lib/fseterr.c: New file.
22851
22852 2007-03-08  Bruno Haible  <bruno@clisp.org>
22853
22854         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
22855         * lib/getopt_.h: Likewise.
22856         * lib/mbswidth.h: Likewise.
22857         * lib/setenv.h: Likewise.
22858         * lib/vasnprintf.h: Likewise.
22859         * lib/vasprintf.h: Likewise.
22860         * lib/verror.h: Likewise.
22861         * lib/xsetenv.h: Likewise.
22862         * lib/xvasprintf.h: Likewise.
22863
22864 2007-03-08  Jim Meyering  <jim@meyering.net>
22865
22866         * users.txt: Add parted.
22867
22868         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
22869
22870 2007-03-07  Bruno Haible  <bruno@clisp.org>
22871
22872         * m4/printf.m4: Make the shell script snippets copy&pastable.
22873
22874 2007-03-02  Bruno Haible  <bruno@clisp.org>
22875
22876         * lib/netinet_in_.h: New file.
22877         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
22878         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
22879         * modules/netinet_in (Files): Add lib/netinet_in_.h.
22880         (Depends-on): Add absolute-header.
22881         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
22882         into netinet/in.h.
22883
22884 2007-03-03  Bruno Haible  <bruno@clisp.org>
22885
22886         * lib/sys_select_.h: New file.
22887         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
22888         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
22889         * modules/sys_select (Files): Add lib/sys_select_.h.
22890         (Depends-on): Add absolute-header.
22891         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
22892         into sys/select.h.
22893
22894 2007-03-02  Bruno Haible  <bruno@clisp.org>
22895
22896         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
22897         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
22898         values.
22899         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
22900         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
22901         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
22902         * modules/sys_socket (Depends-on): Add absolute-header.
22903         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
22904         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
22905         (Include): Remove requirement of inclusion of <sys/types.h>.
22906
22907 2007-03-02  Bruno Haible  <bruno@clisp.org>
22908
22909         * lib/byteswap_.h (bswap_32): Fix formula.
22910
22911 2007-03-06  Bruno Haible  <bruno@clisp.org>
22912
22913         * modules/sprintf-posix-tests: New file.
22914         * tests/test-sprintf-posix.c: New file.
22915
22916         * modules/sprintf-posix: New file.
22917         * lib/sprintf.c: New file.
22918         * m4/sprintf-posix.m4: New file.
22919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
22920         REPLACE_SPRINTF.
22921         * lib/stdio_.h (sprintf): New declaration.
22922         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
22923         REPLACE_SPRINTF.
22924
22925 2007-03-06  Bruno Haible  <bruno@clisp.org>
22926
22927         * modules/vsprintf-posix-tests: New file.
22928         * tests/test-vsprintf-posix.c: New file.
22929         * tests/test-sprintf-posix.h: New file.
22930
22931         * modules/vsprintf-posix: New file.
22932         * lib/vsprintf.c: New file.
22933         * m4/vsprintf-posix.m4: New file.
22934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
22935         REPLACE_VSPRINTF.
22936         * lib/stdio_.h (vsprintf): New declaration.
22937         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
22938         REPLACE_VSPRINTF.
22939
22940 2007-03-06  Bruno Haible  <bruno@clisp.org>
22941
22942         * modules/vsnprintf (Depend-on): Remove minmax.
22943
22944 2007-03-06  Bruno Haible  <bruno@clisp.org>
22945
22946         * modules/snprintf-posix-tests: New file.
22947         * tests/test-snprintf-posix.c: New file.
22948
22949         * modules/snprintf-posix: New file.
22950         * m4/snprintf-posix.m4: New file.
22951         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
22952         gl_FUNC_SNPRINTF.
22953         (gl_FUNC_SNPRINTF): Invoke it.
22954         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
22955         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
22956         is set.
22957         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
22958
22959 2007-03-06  Bruno Haible  <bruno@clisp.org>
22960
22961         * modules/vsnprintf-posix-tests: New file.
22962         * tests/test-vsnprintf-posix.c: New file.
22963         * tests/test-snprintf-posix.h: New file.
22964
22965         * modules/vsnprintf-posix: New file.
22966         * m4/vsnprintf-posix.m4: New file.
22967         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
22968         gl_FUNC_VSNPRINTF.
22969         (gl_FUNC_VSNPRINTF): Invoke it.
22970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
22971         * lib/stdio_.h (vsnprintf): Define as a replacement if
22972         REPLACE_VSNPRINTF is set.
22973         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
22974
22975 2007-03-06  Bruno Haible  <bruno@clisp.org>
22976
22977         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
22978         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
22979
22980 2007-03-06  Bruno Haible  <bruno@clisp.org>
22981
22982         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
22983         (asinl): Declare also if HAVE_DECL_ASINL is set.
22984         (atanl): Declare also if HAVE_DECL_ATANL is set.
22985         (ceill): Declare also if HAVE_DECL_CEILL is set.
22986         (cosl): Declare also if HAVE_DECL_COSL is set.
22987         (expl): Declare also if HAVE_DECL_EXPL is set.
22988         (floorl): Declare also if HAVE_DECL_FLOORL is set.
22989         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
22990         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
22991         (logl): Declare also if HAVE_DECL_LOGL is set.
22992         (sinl): Declare also if HAVE_DECL_SINL is set.
22993         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
22994         (tanl): Declare also if HAVE_DECL_TANL is set.
22995         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
22996         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
22997         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
22998         declaration of frexpl, ldexpl.
22999         * modules/printf-frexpl (Depends-on): Add math.
23000         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
23001
23002 2007-03-05  Bruno Haible  <bruno@clisp.org>
23003
23004         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
23005         frexpl and ldexpl are declared.
23006         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
23007
23008 2007-03-05  Bruno Haible  <bruno@clisp.org>
23009
23010         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
23011         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
23012
23013 2007-03-05  Bruno Haible  <bruno@clisp.org>
23014
23015         * lib/stdio_.h: Include <stddef.h>.
23016
23017 2007-03-05  Bruno Haible  <bruno@clisp.org>
23018
23019         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
23020
23021 2007-03-05  Bruno Haible  <bruno@clisp.org>
23022
23023         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
23024         NetBSD 4, from Ralf Wildenhues.
23025
23026 2007-03-04  Bruno Haible  <bruno@clisp.org>
23027
23028         * lib/vasprintf.h: Update #if logic for the case when the functions
23029         exist but are overridden.
23030
23031 2007-03-04  Bruno Haible  <bruno@clisp.org>
23032
23033         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
23034         implementations: glibc-2.4 and MacOS X 10.3.
23035         * tests/test-vasnprintf-posix.c (test_function): Test also the case
23036         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
23037         * tests/test-vasprintf-posix.c (test_function): Likewise.
23038
23039 2007-03-04  Bruno Haible  <bruno@clisp.org>
23040
23041         * modules/vasprintf-posix-tests: New file.
23042         * tests/test-vasprintf-posix.c: New file.
23043
23044         * modules/vasprintf-posix: New file.
23045         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
23046         defined.
23047         * m4/vasprintf-posix.m4: New file.
23048         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
23049         gl_FUNC_VASPRINTF.
23050         (gl_FUNC_VASPRINTF): Invoke it.
23051         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
23052         here.
23053         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
23054
23055 2007-03-04  Bruno Haible  <bruno@clisp.org>
23056
23057         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
23058         REPLACE_GETTIMEOFDAY.
23059         * modules/sys_time (Makefile.am): Likewise.
23060         * m4/sys_time_h.m4: Likewise.
23061         * m4/gettimeofday.m4: Likewise.
23062
23063 2007-03-04  Bruno Haible  <bruno@clisp.org>
23064
23065         * modules/vasnprintf-posix-tests: New file.
23066         * tests/test-vasnprintf-posix.c: New file.
23067
23068         * modules/vasnprintf-posix: New file.
23069         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
23070         printf-frexpl.h.
23071         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
23072         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
23073         REPLACE_VASNPRINTF is defined.
23074         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
23075         gl_FUNC_VASNPRINTF.
23076         (gl_FUNC_VASNPRINTF): Invoke it.
23077         * m4/vasnprintf-posix.m4: New file.
23078         * m4/printf.m4: New file.
23079
23080 2007-03-04  Bruno Haible  <bruno@clisp.org>
23081
23082         Compile progreloc.c only if --enable-relocatable is specified.
23083         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
23084         if --enable-relocatable was specified.
23085         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
23086         lib_SOURCES.
23087
23088 2007-03-04  Jim Meyering  <jim@meyering.net>
23089
23090         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
23091         Use it consistently, rather than enumerating errno constants.
23092
23093 2007-03-04  Bruno Haible  <bruno@clisp.org>
23094
23095         * modules/xvasprintf-tests: New file.
23096         * tests/test-xvasprintf.c: New file.
23097
23098         * modules/vasprintf-tests: New file.
23099         * tests/test-vasprintf.c: New file.
23100
23101         * modules/vasnprintf-tests: New file.
23102         * tests/test-vasnprintf.c: New file.
23103
23104         * modules/vsnprintf-tests: New file.
23105         * tests/test-vsnprintf.c: New file.
23106
23107         * modules/snprintf-tests: New file.
23108         * tests/test-snprintf.c: New file.
23109
23110 2007-03-04  Bruno Haible  <bruno@clisp.org>
23111
23112         Compile relocatable.c only if --enable-relocatable is specified.
23113         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
23114         gl_RELOCATABLE_LIBRARY.
23115         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
23116         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
23117         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
23118         gl_RELOCATABLE_LIBRARY.
23119         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
23120         (Makefile.am): Remove lib_SOURCES.
23121         * modules/relocatable-lib-lgpl (configure.ac): Invoke
23122         gl_RELOCATABLE_LIBRARY.
23123         (Makefile.am): Remove lib_SOURCES.
23124         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
23125         always.
23126         * modules/relocatable-prog-wrapper (configure.ac): Invoke
23127         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
23128
23129 2007-03-04  Bruno Haible  <bruno@clisp.org>
23130
23131         * modules/argmatch-tests: New file.
23132         * tests/test-argmatch.c: New file.
23133
23134         * tests/test-allocsa.c (main): Halve the number of loop runs.
23135
23136         * modules/alloca-opt-tests: New file.
23137         * tests/test-alloca-opt.c: New file.
23138
23139 2007-03-04  Jim Meyering  <jim@meyering.net>
23140
23141         Work around difference between Linux ACLs and Solaris 10 ZFS.
23142         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
23143         for EINVAL.
23144
23145 2007-03-03  Bruno Haible  <bruno@clisp.org>
23146
23147         * modules/relocatable-prog (Depends-on): Add back progreloc's
23148         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
23149
23150 2007-03-03  Bruno Haible  <bruno@clisp.org>
23151
23152         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
23153         * modules/relocatable-lib: New file.
23154
23155 2007-03-03  Bruno Haible  <bruno@clisp.org>
23156
23157         * modules/relocatable-prog: Renamed from modules/relocatable.
23158         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
23159
23160 2007-03-03  Bruno Haible  <bruno@clisp.org>
23161
23162         * modules/relocatable-script (Files): Add doc/relocatable.texi,
23163         m4/relocatable-lib.m4.
23164         (Depends-on): Remove 'relocatable'.
23165         (configure.ac): Add gl_RELOCATABLE_NOP.
23166
23167 2007-03-03  Bruno Haible  <bruno@clisp.org>
23168
23169         * modules/relocatable-prog-wrapper: New file.
23170         * modules/relocatable (Depends-on): Add it. Remove all other
23171         dependencies except progname.
23172         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
23173
23174         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
23175         (gl_FUNC_STRERROR): Nop.
23176         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
23177
23178         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
23179         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
23180
23181         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
23182         (gl_FUNC_READLINK): Update.
23183
23184         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
23185
23186 2007-03-03  Bruno Haible  <bruno@clisp.org>
23187
23188         * lib/xreadlink.c: Include <unistd.h> unconditionally.
23189         * modules/xreadlink (Depends-on): Add unistd.
23190         * modules/xreadlink-with-size (Depends-on): Likewise.
23191
23192 2007-03-03  Bruno Haible  <bruno@clisp.org>
23193
23194         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
23195         extracted from gt_FUNC_SETENV.
23196         (gt_FUNC_SETENV): Remove macro.
23197         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
23198         remove gt_FUNC_SETENV.
23199
23200 2007-03-03  Bruno Haible  <bruno@clisp.org>
23201
23202         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
23203         ENABLE_RELOCATABLE here.
23204         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
23205
23206 2007-03-03  Bruno Haible  <bruno@clisp.org>
23207
23208         * modules/rbtreehash-list-tests (Depends-on): Add progname.
23209         * tests/test-rbtreehash_list.c: Include progname.h.
23210         (main): Call set_program_name.
23211
23212         * modules/rbtree-oset-tests (Depends-on): Add progname.
23213         * tests/test-rbtree_oset.c: Include progname.h.
23214         (main): Call set_program_name.
23215
23216         * modules/rbtree-list-tests (Depends-on): Add progname.
23217         * tests/test-rbtree_list.c: Include progname.h.
23218         (main): Call set_program_name.
23219
23220         * modules/linked-list-tests (Depends-on): Add progname.
23221         * tests/test-linked_list.c: Include progname.h.
23222         (main): Call set_program_name.
23223
23224 2007-03-03  Bruno Haible  <bruno@clisp.org>
23225
23226         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
23227         All uses of __restrict changed to _Restrict_.
23228         * lib/glob_.h (__restrict): Remove macro.
23229
23230 2007-03-02  Bruno Haible  <bruno@clisp.org>
23231
23232         * modules/gettext (configure.ac): Require gettext infrastructure
23233         from version 0.16.1.
23234
23235 2007-03-02  Bruno Haible  <bruno@clisp.org>
23236
23237         * modules/linkedhash-list-tests (Depends-on): Add progname.
23238         * tests/test-linkedhash_list.c: Include progname.h.
23239         (main): Call set_program_name.
23240
23241         * modules/carray-list-tests (Depends-on): Add progname.
23242         * tests/test-carray_list.c: Include progname.h.
23243         (main): Call set_program_name.
23244
23245         * modules/avltreehash-list-tests (Depends-on): Add progname.
23246         * tests/test-avltreehash_list.c: Include progname.h.
23247         (main): Call set_program_name.
23248
23249         * modules/avltree-oset-tests (Depends-on): Add progname.
23250         * tests/test-avltree_oset.c: Include progname.h.
23251         (main): Call set_program_name.
23252
23253         * modules/avltree-list-tests (Depends-on): Add progname.
23254         * tests/test-avltree_list.c: Include progname.h.
23255         (main): Call set_program_name.
23256
23257         * modules/array-oset-tests (Depends-on): Add progname.
23258         * tests/test-array_oset.c: Include progname.h.
23259         (main): Call set_program_name.
23260
23261         * modules/array-list-tests (Depends-on): Add progname.
23262         * tests/test-array_list.c: Include progname.h.
23263         (main): Call set_program_name.
23264
23265         * modules/argp-tests (Depends-on): Add progname.
23266         * tests/test-argp.c: Include argp.h first. Include progname.h.
23267         (main): Call set_program_name.
23268
23269 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
23270
23271         * doc/gnulib-tool.texi (Initial import): Reword description of
23272         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
23273         limited effect even if defined after the first system include.
23274
23275 2007-03-01  Bruno Haible  <bruno@clisp.org>
23276
23277         * build-aux/config.libpath: Update to libtool-1.5.22.
23278         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23279
23280 2007-03-01  Bruno Haible  <bruno@clisp.org>
23281
23282         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
23283         foo_CFLAGS.
23284         Reported by Ralf Wildenhues.
23285
23286 2007-03-01  Bruno Haible  <bruno@clisp.org>
23287
23288         * build-aux/install-reloc: Remove object files left over by some
23289         compilers.
23290         Reported by Ralf Wildenhues.
23291
23292 2007-03-01  Bruno Haible  <bruno@clisp.org>
23293
23294         * build-aux/install-reloc: Break long lines.
23295
23296 2007-03-01  Bruno Haible  <bruno@clisp.org>
23297
23298         * doc/relocatable.texi: Document that it may not work on OpenBSD.
23299         Reported by Ralf Wildenhues.
23300
23301 2007-03-01  Bruno Haible  <bruno@clisp.org>
23302
23303         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
23304         include ordering constraints.
23305
23306 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
23307
23308         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
23309         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
23310         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
23311         as another example.
23312         * lib/time_.h: Fix misspelling.
23313         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
23314         Require gl_HEADER_TIME_H_DEFAULTS.
23315         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
23316         * m4/time_r.m4 (gl_TIME_R): Likewise.
23317         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
23318
23319 2007-03-01  Bruno Haible  <bruno@clisp.org>
23320
23321         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
23322         * m4/utimens.m4 (gl_UTIMENS): Likewise.
23323
23324 2007-03-01  Jim Meyering  <jim@meyering.net>
23325
23326         * modules/xreadlink (Maintainer): Add my name.
23327         * modules/xreadlink-with-size (Depends-on): Alphabetize.
23328
23329 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
23330             Bruno Haible  <bruno@clisp.org>
23331
23332         * build-aux/install-reloc: Compile also c-ctype.c.
23333         * build-aux/relocatable.sh.in: New file.
23334         * doc/relocatable.texi: New file.
23335         * doc/relocatable-maint.texi: New file.
23336         * doc/gnulib.texi: Include relocatable-maint.texi.
23337         * lib/progreloc.c: Include unistd.h unconditionally.
23338         * lib/relocwrapper.c: Include unistd.h unconditionally.
23339         Include c-ctype.h.
23340         (add_dotbin): Use c_tolower.
23341         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
23342         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
23343         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
23344         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
23345         to m4/relocatable-lib.m4.
23346         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
23347         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
23348         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
23349         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
23350         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
23351         * modules/relocatable: New file.
23352         * modules/relocatable-lib: New file.
23353         * modules/relocatable-script: New file.
23354
23355 2007-02-28  Bruno Haible  <bruno@clisp.org>
23356
23357         Import --enable-relocatable infrastructure.
23358         * build-aux/config.libpath: New file, from GNU gettext.
23359         * build-aux/install-reloc: New file, from GNU gettext.
23360         * build-aux/reloc-ldflags: New file, from GNU gettext.
23361         * lib/relocatable.h: New file, from GNU gettext.
23362         * lib/relocatable.c: New file, from GNU gettext.
23363         * lib/relocwrapper.c: New file, from GNU gettext.
23364         * m4/relocatable.m4: New file, from GNU gettext.
23365
23366 2007-02-28  Bruno Haible  <bruno@clisp.org>
23367
23368         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
23369
23370         * modules/xreadlink: New file, from GNU gettext with modifications.
23371         * lib/xreadlink.c: New file, from GNU gettext.
23372         * lib/xreadlink.h: Add comments.
23373         (xreadlink): New declaration.
23374
23375         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
23376         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
23377         lib/xreadlink-with-size.c.
23378         (configure.ac): Remove gl_XREADLINK invocation.
23379         (Makefile.am): Augment lib_SOURCES.
23380         * m4/xreadlink.m4: Remove file.
23381         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
23382         (xreadlink_with_size): Renamed from xreadink.
23383         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
23384         * modules/canonicalize (Depends-on): Replace xreadlink with
23385         xreadlink-with-size.
23386         * lib/canonicalize.c (canonicalize_filename_mode): Update.
23387
23388 2007-02-25  Jim Meyering  <jim@meyering.net>
23389
23390         * build-aux/announce-gen: When complaining about excess arguments,
23391         list them.
23392
23393 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
23394
23395         * README: Document signed integer overflow situation more
23396         accurately.
23397
23398 2007-02-25  Bruno Haible  <bruno@clisp.org>
23399
23400         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
23401         'a' or 'A' conversion.
23402
23403 2007-02-25  Bruno Haible  <bruno@clisp.org>
23404
23405         * modules/filename: Renamed from modules/pathname.
23406         (Files): Replace lib/pathname.h with lib/filename.h. Replace
23407         lib/concatpath.c with lib/concat-filename.c.
23408         (Makefile.am): Update.
23409         (Include): Replace pathname.h with filename.h.
23410         * lib/filename.h: Renamed from lib/pathname.h.
23411         (concatenated_filename): Renamed from concatenated_pathname.
23412         * lib/concat-filename.c: Renamed from lib/concatpath.c.
23413         (concatenated_filename): Renamed from concatenated_pathname.
23414         * lib/findprog.c: Include filename.h instead of pathname.h.
23415         (find_in_path): Update.
23416         * lib/javacomp.c: Include filename.h instead of pathname.h.
23417         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
23418         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
23419         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
23420         is_oldgcj_14_13_usable, is_javac_usable): Update.
23421         * lib/javaexec.c: Include filename.h instead of pathname.h.
23422         (execute_java_class): Update.
23423         * modules/findprog: Update.
23424         * modules/javacomp: Update.
23425         * modules/javaexec: Update.
23426         * MODULES.html.sh (File system functions): Add 'filename', remove
23427         'pathname'.
23428
23429 2007-02-25  Bruno Haible  <bruno@clisp.org>
23430
23431         * modules/printf-frexpl-tests: New file.
23432         * tests/test-printf-frexpl.c: New file.
23433
23434         * modules/printf-frexpl: New file.
23435         * lib/printf-frexpl.h: New file.
23436         * lib/printf-frexpl.c: New file.
23437         * m4/printf-frexpl.m4: New file.
23438
23439 2007-02-25  Bruno Haible  <bruno@clisp.org>
23440
23441         * modules/printf-frexp-tests: New file.
23442         * tests/test-printf-frexp.c: New file.
23443
23444         * modules/printf-frexp: New file.
23445         * lib/printf-frexp.h: New file.
23446         * lib/printf-frexp.c: New file.
23447         * m4/printf-frexp.m4: New file.
23448
23449 2007-02-25  Bruno Haible  <bruno@clisp.org>
23450
23451         Assume automake >= 1.10 for the tests.
23452         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
23453         * modules/arctwo-tests: Likewise.
23454         * modules/argp-tests: Likewise.
23455         * modules/avltree-list-tests: Likewise.
23456         * modules/avltree-oset-tests: Likewise.
23457         * modules/avltreehash-list-tests: Likewise.
23458         * modules/carray-list-tests: Likewise.
23459         * modules/crc-tests: Likewise.
23460         * modules/des-tests: Likewise.
23461         * modules/gc-arcfour-tests: Likewise.
23462         * modules/gc-arctwo-tests: Likewise.
23463         * modules/gc-des-tests: Likewise.
23464         * modules/gc-hmac-md5-tests: Likewise.
23465         * modules/gc-hmac-sha1-tests: Likewise.
23466         * modules/gc-md2-tests: Likewise.
23467         * modules/gc-md4-tests: Likewise.
23468         * modules/gc-md5-tests: Likewise.
23469         * modules/gc-pbkdf2-sha1-tests: Likewise.
23470         * modules/gc-rijndael-tests: Likewise.
23471         * modules/gc-sha1-tests: Likewise.
23472         * modules/gc-tests: Likewise.
23473         * modules/getaddrinfo-tests: Likewise.
23474         * modules/hmac-md5-tests: Likewise.
23475         * modules/hmac-sha1-tests: Likewise.
23476         * modules/linked-list-tests: Likewise.
23477         * modules/linkedhash-list-tests: Likewise.
23478         * modules/lock-tests: Likewise.
23479         * modules/md2-tests: Likewise.
23480         * modules/md4-tests: Likewise.
23481         * modules/md5-tests: Likewise.
23482         * modules/rbtree-list-tests: Likewise.
23483         * modules/rbtree-oset-tests: Likewise.
23484         * modules/rbtreehash-list-tests: Likewise.
23485         * modules/read-file-tests: Likewise.
23486         * modules/rijndael-tests: Likewise.
23487         * modules/stdint-tests: Likewise.
23488         * modules/tls-tests: Likewise.
23489
23490 2007-02-24  Bruno Haible  <bruno@clisp.org>
23491
23492         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
23493         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
23494         function; instead check whether isnan with a double argument links.
23495         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
23496         function; instead check whether isnan with a 'long double' argument
23497         links.
23498         Reported by Eric Blake <ebb9@byu.net>.
23499
23500 2007-02-24  Bruno Haible  <bruno@clisp.org>
23501
23502         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
23503         defined.
23504         * lib/isnanl.c: Remove all code. Just include isnan.c.
23505         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
23506
23507 2007-02-25  Jim Meyering  <jim@meyering.net>
23508
23509         Avoid conflicting types for 'unsetenv' on FreeBSD.
23510         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
23511         conflicting with FreeBSD's (5.0 and 6.1) function declaration
23512         in stdlib.h.
23513
23514 2007-02-24  Bruno Haible  <bruno@clisp.org>
23515
23516         * modules/isnanl-nolibm-tests: New file.
23517         * tests/test-isnanl.c: New file.
23518
23519         * modules/isnanl-nolibm: New file.
23520         * lib/isnanl.h: New file.
23521         * lib/isnanl.c: New file.
23522         * m4/isnanl.m4: New file.
23523
23524 2007-02-24  Bruno Haible  <bruno@clisp.org>
23525
23526         * modules/isnan-nolibm-tests: New file.
23527         * tests/test-isnan.c: New file.
23528
23529         * modules/isnan-nolibm: New file.
23530         * lib/isnan.h: New file.
23531         * lib/isnan.c: New file.
23532         * m4/isnan.m4: New file.
23533
23534 2007-02-24  Bruno Haible  <bruno@clisp.org>
23535
23536         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
23537         assume that an exponent fits in 20 bits.
23538
23539 2007-02-24  Jim Meyering  <jim@meyering.net>
23540
23541         * m4/regex.m4: Update the description of the configure-time option,
23542         --without-included-regex, to state accurately what the defaults are,
23543         and perhaps to give people an idea why using this option is risky.
23544
23545 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23546
23547         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
23548         loops on small arguments.  This attempts to avoid the problem
23549         Bruno Haible reported for AIX 4.3.2 in
23550         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
23551
23552 2007-02-23  Bruno Haible  <bruno@clisp.org>
23553
23554         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
23555         Needed for help2man.
23556
23557 2007-02-23  Karl Berry  <karl@gnu.org>
23558
23559         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
23560         exists, foo.h should be cvs-ignored, not committed.
23561
23562 2007-02-23  Eric Blake  <ebb9@byu.net>
23563
23564         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
23565         * lib/stat-time.h (includes): Likewise.
23566         * lib/utimecmp.c (includes): Likewise.
23567         * lib/utimens.h (includes): Likewise.
23568         * lib/getdate.y (includes): Also include "timespec.h" for use
23569         internal to the module.
23570         * modules/utimens (Depends-on): Revert yesterday's patch.
23571         * modules/nanosleep (Depends-on): Add missing dependency.
23572
23573 2007-02-22  Bruno Haible  <bruno@clisp.org>
23574
23575         * lib/glob.c: Don't include getlogin_r.h.
23576
23577 2007-02-22  Jim Meyering  <jim@meyering.net>
23578
23579         * modules/utimens (Depends-on): Add timespec, required for
23580         utimens.h's inclusion of timespec.h.
23581
23582 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
23583
23584         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
23585         long unreadable paths in GNU/Linux.  Problem reported by Andreas
23586         Schwab in
23587         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
23588         I'll try to think of a better way to fix the Solaris problem.
23589
23590         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
23591         like glibc; on Solaris 10, it fails with errno == EINVAL.
23592         POSIX says the behavior is unspecified if the first argument is NULL,
23593         so play it safe and never pass NULL to the system getcwd.
23594
23595 2007-02-21  Jim Meyering  <jim@meyering.net>
23596
23597         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
23598         of gettimeofday.  It would conflict with the one now always
23599         provided via sys_time_.h.  Reported by Matthew Woehlke, as
23600         an IRIX 6.5 build failure.
23601
23602 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
23603
23604         Minor fixups to port to Solaris 10 with Sun C 5.8.
23605         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
23606         * modules/getcwd (Depends-on): Add dirfd.
23607         * lib/putenv.c (putenv): #undef it.
23608         (rpl_putenv): New decl.
23609         (malloc, free): Include <stdlib.h> rather than prototyping separately.
23610
23611 2007-02-20  Bruno Haible  <bruno@clisp.org>
23612
23613         * modules/stdio-tests: New file.
23614         * tests/test-stdio.c: New file.
23615
23616         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
23617         (Depends-on): Add stdio.
23618         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23619         (Include): Use <stdio.h> instead of vsnprintf.h.
23620         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
23621         HAVE_DECL_VSNPRINTF.
23622         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
23623
23624         * modules/snprintf (Files): Remove lib/snprintf.h.
23625         (Depends-on): Add stdio.
23626         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23627         (Include): Use <stdio.h> instead of snprintf.h.
23628         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
23629         HAVE_DECL_SNPRINTF.
23630         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
23631         * lib/getaddrinfo.c: Likewise.
23632
23633         * modules/stdio: New file.
23634         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
23635         * lib/snprintf.h: Remove file.
23636         * lib/vsnprintf.h: Remove file.
23637         * lib/.cppi-disable: Remove snprintf.h.
23638         * m4/stdio_h.m4: New file.
23639         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
23640
23641 2007-02-20  Jim Meyering  <jim@meyering.net>
23642
23643         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
23644         used by e.g., mingw.  From Bruno Haible.
23645
23646 2007-02-19  Bruno Haible  <bruno@clisp.org>
23647
23648         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
23649         warnings.
23650         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23651
23652 2007-02-19  Bruno Haible  <bruno@clisp.org>
23653
23654         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
23655         from mingw users.
23656
23657 2007-02-19  Bruno Haible  <bruno@clisp.org>
23658
23659         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
23660         warnings.
23661         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
23662
23663 2007-02-19  Jim Meyering  <jim@meyering.net>
23664
23665         Don't use FD after a successful "fdopendir (fd)".
23666         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
23667         Reset it by calling dirfd on the just-obtained DIR*.
23668
23669         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
23670         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
23671
23672 2007-02-18  Bruno Haible  <bruno@clisp.org>
23673
23674         * lib/readlink.c: Include <unistd.h>.
23675         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
23676         HAVE_READLINK.
23677         * modules/readlink (Depends-on): Add unistd.
23678         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23679         (Include): Add <unistd.h>.
23680
23681         * lib/getlogin_r.h: Remove file.
23682         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
23683         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
23684         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
23685         HAVE_DECL_GETLOGIN_R.
23686         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
23687         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23688         (Include): Use <unistd.h> instead of getlogin_r.h.
23689
23690         * lib/getcwd.h: Remove file.
23691         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
23692         * lib/xgetcwd.c: Likewise.
23693         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
23694         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
23695         * modules/getcwd (Files): Remove lib/getcwd.h.
23696         (Depends-on): Add unistd.
23697         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23698         (Include): Use <unistd.h> instad of getcwd.h.
23699
23700         * lib/ftruncate.c: Include <unistd.h> first.
23701         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
23702         Set HAVE_FTRUNCATE.
23703         * modules/ftruncate (Depends-on): Add unistd.
23704         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23705
23706         * lib/fchdir.c: Include <unistd.h> first.
23707         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
23708         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
23709         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
23710         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23711         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
23712
23713         * lib/dup2.c: Include <unistd.h> first.
23714         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
23715         HAVE_DUP2.
23716         * modules/dup2 (Depends-on): Add unistd.
23717         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23718
23719         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
23720         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
23721         REPLACE_CHOWN. Don't define chown as a macro here.
23722         * modules/chown (Depends-on): Add unistd.
23723         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23724
23725         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
23726         Add definition for GL_LINK_WARNING.
23727         (chown, dup2): New declarations.
23728         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
23729         link warning.
23730         (ftruncate): New declaration.
23731         (getcwd): New declaration, taken from old getcwd.h.
23732         (getlogin_r): New declaration, taken from old getlogin_r.h.
23733         (readlink): New declaration.
23734         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
23735         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
23736         (gl_PREREQ_UNISTD): Remove macro.
23737         (gl_UNISTD_MODULE_INDICATOR): New macro.
23738         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
23739         many new variables. Don't set UNISTD_H.
23740         * modules/unistd (Description): Change.
23741         (Depends-on): Add link-warning.
23742         (configure.ac): Update.
23743         (Makefile.am): Create unistd.h always. Substitute many new variables
23744         into it.
23745
23746 2007-02-18  Bruno Haible  <bruno@clisp.org>
23747
23748         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
23749         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
23750         HAVE_GETSUBOPT.
23751         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
23752         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
23753         * lib/getsubopt.h: Remove file.
23754         * modules/getsubopt (Files): Remove lib/getsubopt.h.
23755         (Depends-on): Add stdlib.
23756         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23757         (Includes): Use <stdlib.h> instead of getsubopt.h.
23758         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
23759         Set HAVE_GETSUBOPT.
23760         * lib/getsubopt.c: Don't include getsubopt.h.
23761
23762 2007-02-18  Bruno Haible  <bruno@clisp.org>
23763
23764         * modules/fchdir (Depends-on): Add dup2.
23765
23766 2007-02-18  Bruno Haible  <bruno@clisp.org>
23767
23768         * lib/stdlib_.h: Handle glibc's special invocation convention
23769         specially.
23770
23771 2007-02-18  Bruno Haible  <bruno@clisp.org>
23772
23773         * modules/stdlib-tests: New file.
23774         * tests/test-stdlib.c: New file.
23775
23776         * modules/mkstemp (Files): Remove lib/mkstemp.h.
23777         (Depends-on): Add stdlib.
23778         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23779         (Includes): Use <stdlib.h> instead of mkstemp.h.
23780         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
23781         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
23782         * lib/mkstemp.c: Don't include mkstemp.h.
23783         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
23784         * lib/stdlib--.h: Don't include mkstemp.h.
23785
23786         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
23787         (Depends-on): Add stdlib.
23788         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23789         (Includes): Use <stdlib.h> instead of mkdtemp.h.
23790         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
23791         HAVE_MKDTEMP.
23792         * lib/mkdtemp.c: Don't include mkdtemp.h.
23793         * lib/clean-temp.c: Don't include mkdtemp.h.
23794
23795         * modules/exit (Files): Remove lib/exit.h.
23796         (Depends-on): Add stdlib.
23797         (Makefile.am): Remove lib_SOURCES.
23798         (Include): Use <stdlib.h> instead of exit.h.
23799         * lib/argmatch.c: Don't include exit.h.
23800         * lib/execute.c: Likewise.
23801         * lib/pagealign_alloc.c: Likewise.
23802         * lib/pipe.c: Likewise.
23803         * lib/wait-process.c: Likewise.
23804         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
23805         * lib/exitfail.c: Likewise.
23806         * lib/savewd.c: Likewise.
23807         * lib/xsetenv.c: Likewise.
23808
23809         * modules/stdlib: New file.
23810         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
23811         and extra comments about mkstemp().
23812         * lib/exit.h: Remove file.
23813         * lib/mkdtemp.h: Remove file.
23814         * lib/mkstemp.h: Remove file.
23815         * m4/stdlib_h.m4: New file.
23816         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
23817
23818 2007-02-18  Bruno Haible  <bruno@clisp.org>
23819
23820         * modules/math-tests: New file.
23821         * tests/test-math.c: New file.
23822
23823         * modules/math: New file.
23824         * modules/mathl (Files): Remove lib/mathl.h.
23825         (Depends-on): Add math.
23826         (Makefile.am): Don't mention mathl.h.
23827         (Include): Use <math.h> instead of mathl.h.
23828         * lib/math_.h: New file.
23829         * lib/mathl.h: Remove file.
23830         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
23831         mathl.h.
23832         * lib/asinl.c: Likewise.
23833         * lib/atanl.c: Likewise.
23834         * lib/ceill.c: Likewise.
23835         * lib/cosl.c: Likewise.
23836         * lib/expl.c: Likewise.
23837         * lib/floorl.c: Likewise.
23838         * lib/frexpl.c: Likewise.
23839         * lib/ldexpl.c: Likewise.
23840         * lib/logl.c: Likewise.
23841         * lib/sincosl.c: Likewise.
23842         * lib/sinl.c: Likewise.
23843         * lib/sqrtl.c: Likewise.
23844         * lib/tanl.c: Likewise.
23845         * lib/trigl.c: Likewise.
23846         * m4/math_h.m4: New file.
23847         * MODULES.html.sh (Mathematics): Add math.
23848
23849 2007-02-17  Bruno Haible  <bruno@clisp.org>
23850
23851         * modules/wctype-tests: New file.
23852         * tests/test-wctype.c: New file.
23853
23854         * modules/wchar-tests: New file.
23855         * tests/test-wchar.c: New file.
23856
23857         * modules/unistd-tests: New file.
23858         * tests/test-unistd.c: New file.
23859
23860         * modules/time-tests: New file.
23861         * tests/test-time.c: New file.
23862
23863         * modules/sysexits-tests: New file.
23864         * tests/test-sysexits.c: New file.
23865
23866         * modules/sys_time-tests: New file.
23867         * tests/test-sys_time.c: New file.
23868
23869         * modules/sys_stat-tests: New file.
23870         * tests/test-sys_stat.c: New file.
23871
23872         * modules/sys_socket-tests: New file.
23873         * tests/test-sys_socket.c: New file.
23874
23875         * modules/sys_select-tests: New file.
23876         * tests/test-sys_select.c: New file.
23877
23878         * modules/string-tests: New file.
23879         * tests/test-string.c: New file.
23880
23881         * modules/stdbool-tests: New file.
23882         * tests/test-stdbool.c: New file.
23883
23884         * modules/netinet_in-tests: New file.
23885         * tests/test-netinet_in.c: New file.
23886
23887         * modules/inttypes-tests: New file.
23888         * tests/test-inttypes.c: New file.
23889
23890         * modules/fcntl-tests: New file.
23891         * tests/test-fcntl.c: New file.
23892
23893         * modules/byteswap-tests: New file.
23894         * tests/test-byteswap.c: New file.
23895
23896         * modules/arpa_inet-tests: New file.
23897         * tests/test-arpa_inet.c: New file.
23898
23899 2007-02-17  Bruno Haible  <bruno@clisp.org>
23900
23901         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
23902         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
23903         if the corresponding module is not enabled. Emit link warnings if
23904         the function is used nevertheless.
23905         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
23906         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
23907         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
23908         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
23909         * modules/inttypes (Depends-on): Add link-warning.
23910         (Makefile.am): Copy the contents of build-aux/link-warning.h into
23911         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
23912         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
23913         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
23914         * modules/imaxdiv (configure.ac): Likewise.
23915         * modules/strtoimax (configure.ac): Likewise.
23916         * modules/strtoumax (configure.ac): Likewise.
23917
23918 2007-02-17  Bruno Haible  <bruno@clisp.org>
23919
23920         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
23921         gl_STRING_MODULE_INDICATOR_DEFAULTS.
23922         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
23923         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
23924
23925 2007-02-17  Bruno Haible  <bruno@clisp.org>
23926
23927         * modules/link-warning: New file.
23928         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
23929         * lib/string_.h (GL_LINK_WARNING): Remove definition.
23930         * modules/string (Depends-on): Add link-warning.
23931         (Makefile.am): Copy the contents of build-aux/link-warning.h into
23932         string.h.
23933         * MODULES.html.sh (Support for building libraries and executables): Add
23934         link-warning.
23935
23936 2007-02-17  Bruno Haible  <bruno@clisp.org>
23937
23938         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
23939         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
23940         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
23941         long lines.
23942
23943 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
23944             Bruno Haible  <bruno@clisp.org>
23945
23946         * modules/tmpfile: New file.
23947         * lib/tmpfile.c: New file.
23948         * m4/tmpfile.m4: New file.
23949         * MODULES.html.sh (func_all_modules): New section "Input/output".
23950
23951 2007-02-15  Bruno Haible  <bruno@clisp.org>
23952
23953         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
23954         (supports_delete_on_close): New function.
23955         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
23956
23957 2007-02-14  Bruno Haible  <bruno@clisp.org>
23958
23959         * modules/mbspcasecmp-tests: New file.
23960         * tests/test-mbspcasecmp.sh: New file.
23961         * tests/test-mbspcasecmp.c: New file.
23962
23963         New module mbspcasecmp.
23964         * modules/mbspcasecmp: New file.
23965         * lib/mbspcasecmp.c: New file.
23966         * lib/string_.h (strncasecmp): Change warning message.
23967         (mbspcasecmp): New declaration.
23968         * m4/mbspcasecmp.m4: New file.
23969         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23970         GNULIB_MBSPCASECMP.
23971         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
23972         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
23973
23974 2007-02-14  Bruno Haible  <bruno@clisp.org>
23975
23976         * modules/mbsncasecmp-tests: New file.
23977         * tests/test-mbsncasecmp.sh: New file.
23978         * tests/test-mbsncasecmp.c: New file.
23979
23980         New module mbsncasecmp.
23981         * modules/mbsncasecmp: New file.
23982         * lib/mbsncasecmp.c: New file.
23983         * lib/string_.h (mbsncasecmp): New declaration.
23984         * m4/mbsncasecmp.m4: New file.
23985         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23986         GNULIB_MBSNCASECMP.
23987         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
23988         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
23989
23990 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
23991
23992         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
23993         Verify that it doesn't overlap with our flags.
23994         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
23995         do not have the desired effect in multibyte locales; instead, use
23996         mbscasecmp.
23997         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
23998         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
23999         we don't require GNU fnmatch ourselves (if our users require it, they
24000         should do so explicitly).
24001
24002         Fix regex code so it doesn't rely on strcasecmp.
24003         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
24004         Otherwise, include gnulib's langinfo.h.
24005         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
24006         undesirable behavior in non-C locales.  Instead, rely on localecharset.
24007         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
24008         * modules/regex (FILES): Remove m4/codeset.m4.
24009         (Depends-on): Add localcharset.  Remove strcase.
24010
24011 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24012
24013         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
24014         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
24015
24016 2007-02-13  Bruno Haible  <bruno@clisp.org>
24017
24018         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
24019         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24020
24021 2007-02-12  Bruno Haible  <bruno@clisp.org>
24022
24023         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
24024         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
24025         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
24026         time warning rather than a link error.
24027
24028 2007-02-12  Bruno Haible  <bruno@clisp.org>
24029
24030         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
24031         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24032         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24033
24034 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24035
24036         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
24037         args, not 2.
24038
24039 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24040
24041         New module 'time', so that apps can include <time.h> as per
24042         POSIX and GNU instead of separate include files like time_r.h
24043         and timegm.h.  This implementation tries out a simpler approach
24044         for replacing decls in standard include files (as compared to
24045         the string module), somewhat as an experiment.
24046
24047         * config/srclist.txt: Comment out mktime.c for now.
24048         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
24049         since it doesn't apply any more.  Use generic wording instead.
24050         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
24051         'time'.
24052         * lib/time_.h, m4/time_h.m4, modules/time: New files.
24053         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
24054         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
24055         Don't include <sys/types.h>; no longer needed since we assume C89.
24056         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
24057         * lib/strftime.c: Likewise.
24058         * lib/time_r.c: Likewise.
24059         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
24060         * lib/nanosleep.c: Include <time.h> first, to check interface.
24061         * lib/strptime.c: Likewise.
24062         * lib/time_r.c: Likewise.
24063         * lib/timegm.c: Likewise.
24064         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
24065         needed.
24066         * lib/timegm.c: Don't include timegm.h; no longer needed.
24067         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
24068         time.h now handles any problems in that area.
24069         (struct timespec, nanosleep): Remove; time.h now arranges for these.
24070         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
24071         that time.h defines struct timespec.
24072         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
24073         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
24074         handles that.
24075         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
24076         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
24077         needed.  Set REPLACE_LOCALTIME.
24078         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
24079         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
24080         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
24081         nanosleep; time_h.m4 now does that.  Don't require
24082         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
24083         module handles this now.
24084         * modules/getdate (Depends-on): Remove timespec.  Add time.
24085         * modules/nanosleep (Depends-on): Likewise.
24086         * modules/stat-time (Depends-on): Likewise.
24087         * modules/nanosleep (Include): Include time.h, not timespec.h.
24088         * modules/strptime (Files): Remove lib/strptime.h.
24089         (Depends-on): Add extensions, time.
24090         (Include): Include time.h, not strptime.h.
24091         * modules/time_r (Files): Remove lib/time_r.h.
24092         (Depends-on): Add time.
24093         (Include): Include time.h, not time_r.h.
24094         * modules/timegm: Likewise.
24095         * modules/timespec (Description): Now does timespec-related decls
24096         of our own, instead of struct timespec itself.
24097         (Depends-on): Add time; remove extensions.
24098         (Maintainer): Add self.
24099         * modules/utimecmp (Depends-on): Add time; remove timespec.
24100         * modules/utimens (Depends-on): Likewise.
24101         * modules/xnanosleep (Depends-on): Likewise.
24102
24103 2007-02-11  Bruno Haible  <bruno@clisp.org>
24104
24105         * lib/c-strstr.c: Include allocsa.h.
24106         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
24107         * lib/c-strcasestr.c: Include allocsa.h.
24108         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
24109         * lib/strcasestr.c: Include allocsa.h.
24110         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
24111         * lib/mbsstr.c: Include allocsa.h.
24112         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
24113         allocsa/freesa instead of malloc/free.
24114         * lib/mbscasestr.c: Include allocsa.h.
24115         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
24116         allocsa/freesa instead of malloc/free.
24117         * modules/c-strstr (Depends-on): Add allocsa.
24118         * modules/c-strcasestr (Depends-on): Likewise.
24119         * modules/strcasestr (Depends-on): Likewise.
24120         * modules/mbsstr (Depends-on): Likewise.
24121         * modules/mbscasestr (Depends-on): Likewise.
24122
24123 2007-02-11  Bruno Haible  <bruno@clisp.org>
24124
24125         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
24126
24127         * modules/mbsspn-tests: New file.
24128         * tests/test-mbsspn.sh: New file.
24129         * tests/test-mbsspn.c: New file.
24130
24131 2007-02-11  Bruno Haible  <bruno@clisp.org>
24132
24133         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
24134
24135         * modules/mbspbrk-tests: New file.
24136         * tests/test-mbspbrk.sh: New file.
24137         * tests/test-mbspbrk.c: New file.
24138
24139 2007-02-11  Bruno Haible  <bruno@clisp.org>
24140
24141         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
24142         unneeded cast.
24143
24144         * modules/mbscspn-tests: New file.
24145         * tests/test-mbscspn.sh: New file.
24146         * tests/test-mbscspn.c: New file.
24147
24148 2007-02-11  Bruno Haible  <bruno@clisp.org>
24149
24150         * modules/mbscasecmp-tests: New file.
24151         * tests/test-mbscasecmp.sh: New file.
24152         * tests/test-mbscasecmp.c: New file.
24153
24154 2007-02-11  Bruno Haible  <bruno@clisp.org>
24155
24156         Ensure O(n) worst-case complexity of mbscasestr.
24157         * lib/mbscasestr.c: Include stdbool.h.
24158         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
24159         functions.
24160         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
24161         the bookkeeping indicates that it's worth it.
24162         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
24163
24164         * modules/mbscasestr-tests: New file.
24165         * tests/test-mbscasestr1.c: New file.
24166         * tests/test-mbscasestr2.sh: New file.
24167         * tests/test-mbscasestr2.c: New file.
24168         * tests/test-mbscasestr3.sh: New file.
24169         * tests/test-mbscasestr3.c: New file.
24170         * tests/test-mbscasestr4.sh: New file.
24171         * tests/test-mbscasestr4.c: New file.
24172         * m4/locale-tr.m4: New file.
24173
24174 2007-02-11  Bruno Haible  <bruno@clisp.org>
24175
24176         Ensure O(n) worst-case complexity of mbsstr.
24177         * lib/mbsstr.c: Include stdbool.h.
24178         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
24179         functions.
24180         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
24181         bookkeeping indicates that it's worth it.
24182         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
24183
24184         * modules/mbsstr-tests: New file.
24185         * tests/test-mbsstr1.c: New file.
24186         * tests/test-mbsstr2.sh: New file.
24187         * tests/test-mbsstr2.c: New file.
24188         * tests/test-mbsstr3.sh: New file.
24189         * tests/test-mbsstr3.c: New file.
24190         * m4/locale-fr.m4: New file.
24191
24192 2007-02-11  Bruno Haible  <bruno@clisp.org>
24193
24194         * lib/mbsrchr.c (mbsrchr): Fix bug.
24195
24196         * modules/mbsrchr-tests: New file.
24197         * tests/test-mbsrchr.sh: New file.
24198         * tests/test-mbsrchr.c: New file.
24199
24200 2007-02-11  Bruno Haible  <bruno@clisp.org>
24201
24202         * lib/mbschr.c (mbschr): Fix bug.
24203
24204         * modules/mbschr-tests: New file.
24205         * tests/test-mbschr.sh: New file.
24206         * tests/test-mbschr.c: New file.
24207         * m4/locale-zh.m4: New file.
24208
24209 2007-02-11  Bruno Haible  <bruno@clisp.org>
24210
24211         Support for copying multibyte string iterators.
24212         * lib/mbiter.h: Include <string.h>.
24213         (mbiter_multi_copy): New function.
24214         (mbi_copy): New macro.
24215         * lib/mbuiter.h: Include <string.h>.
24216         (mbuiter_multi_copy): New function.
24217         (mbui_copy): New macro.
24218
24219 2007-02-11  Bruno Haible  <bruno@clisp.org>
24220
24221         New module mbslen.
24222         * modules/mbslen: New file.
24223         * lib/mbslen.c: New file.
24224         * lib/string_.h (mbslen): New declaration.
24225         * m4/mbslen.m4: New file.
24226         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24227         GNULIB_MBSLEN.
24228         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
24229         * MODULES.html.sh (Internationalization functions): Add mbslen.
24230
24231 2007-02-11  Bruno Haible  <bruno@clisp.org>
24232
24233         Ensure O(n) worst-case complexity of strcasestr substitute.
24234         * lib/strcasestr.c: Include stdbool.h.
24235         (knuth_morris_pratt): New function.
24236         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
24237         bookkeeping indicates that it's worth it.
24238         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
24239
24240         * modules/strcasestr-tests: New file.
24241         * tests/test-strcasestr.c: New file.
24242
24243 2007-02-11  Bruno Haible  <bruno@clisp.org>
24244
24245         Ensure O(n) worst-case complexity of c_strcasestr.
24246         * lib/c-strcasestr.c: Include stdbool.h, string.h.
24247         (knuth_morris_pratt): New function.
24248         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
24249         the bookkeeping indicates that it's worth it.
24250         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
24251
24252         * modules/c-strcasestr-tests: New file.
24253         * tests/test-c-strcasestr.c: New file.
24254
24255 2007-02-11  Bruno Haible  <bruno@clisp.org>
24256
24257         Ensure O(n) worst-case complexity of c_strstr.
24258         * lib/c-strstr.c: Include stdbool.h, string.h.
24259         (knuth_morris_pratt): New function.
24260         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
24261         bookkeeping indicates that it's worth it.
24262         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
24263
24264         * lib/c-strstr.c: Complete rewrite for maintainability.
24265
24266         * modules/c-strstr-tests: New file.
24267         * tests/test-c-strstr.c: New file.
24268
24269 2007-02-11  Bruno Haible  <bruno@clisp.org>
24270
24271         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
24272         5.2.1 and earlier, whereby \055 was treated just like the range
24273         delimiter '-'.
24274         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
24275
24276 2007-02-08  Bruno Haible  <bruno@clisp.org>
24277
24278         * modules/regex (Depends-on): Add stdbool.
24279         Reported by Dalibor Topic <robilad@kaffe.org>.
24280
24281 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
24282
24283         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
24284         Prefer returning from main to exiting from it.
24285         Remove unnecessary parens after sizeof.
24286
24287 2007-02-05  Bruno Haible  <bruno@clisp.org>
24288
24289         New module mbssep.
24290         * modules/mbssep: New file.
24291         * lib/mbssep.c: New file.
24292         * lib/string_.h (strsep): Add a conditional link warning.
24293         (mbssep): New declaration.
24294         * m4/mbssep.m4: New file.
24295         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24296         GNULIB_MBSSEP.
24297         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
24298         * MODULES.html.sh (Internationalization functions): Add mbssep.
24299
24300 2007-02-05  Bruno Haible  <bruno@clisp.org>
24301
24302         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
24303         Optimize search in case of 1 delimiter.
24304
24305 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
24306
24307         * lib/acl.h: Include sys/types.h before sys/acl.h.
24308
24309 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
24310
24311         Merge upstream fix for glibc bugzilla #3957:
24312
24313         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
24314
24315         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
24316         bit for RE_HAT_LISTS_NOT_NEWLINE.
24317         (build_charclass_op): Remove bogus comment.
24318
24319 2007-02-05  Simon Josefsson  <simon@josefsson.org>
24320
24321         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
24322
24323 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24324
24325         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
24326         * lib/memmem.c [!defined _LIBC]: Include config.h.
24327
24328 2007-02-04  Bruno Haible  <bruno@clisp.org>
24329
24330         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
24331         warning message.
24332
24333 2007-02-04  Bruno Haible  <bruno@clisp.org>
24334
24335         New module mbstok_r.
24336         * modules/mbstok_r: New file.
24337         * lib/mbstok_r.c: New file.
24338         * lib/string_.h (strtok_r): Change argument names to match the
24339         comments. Add a conditional link warning.
24340         (mbstok_r): New declaration.
24341         * m4/mbstok_r.m4: New file.
24342         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24343         GNULIB_MBSTOK_R.
24344         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
24345         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
24346
24347 2007-02-04  Bruno Haible  <bruno@clisp.org>
24348
24349         New module mbsspn.
24350         * modules/mbsspn: New file.
24351         * lib/mbsspn.c: New file.
24352         * lib/string_.h (strspn): Add a conditional link warning.
24353         (mbsspn): New declaration.
24354         * m4/mbsspn.m4: New file.
24355         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24356         GNULIB_MBSSPN.
24357         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
24358         * MODULES.html.sh (Internationalization functions): Add mbsspn.
24359
24360 2007-02-04  Bruno Haible  <bruno@clisp.org>
24361
24362         New module mbspbrk.
24363         * modules/mbspbrk: New file.
24364         * lib/mbspbrk.c: New file.
24365         * lib/string_.h (strpbrk): Add a conditional link warning.
24366         (mbspbrk): New declaration.
24367         * m4/mbspbrk.m4: New file.
24368         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24369         GNULIB_MBSPBRK.
24370         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
24371         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
24372
24373 2007-02-04  Bruno Haible  <bruno@clisp.org>
24374
24375         New module mbscspn.
24376         * modules/mbscspn: New file.
24377         * lib/mbscspn.c: New file.
24378         * lib/string_.h (strcspn): Add a conditional link warning.
24379         (mbscspn): New declaration.
24380         * m4/mbscspn.m4: New file.
24381         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24382         GNULIB_MBSCSPN.
24383         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
24384         * MODULES.html.sh (Internationalization functions): Add mbscspn.
24385
24386 2007-02-04  Bruno Haible  <bruno@clisp.org>
24387
24388         New module mbscasestr, reduced goal of strcasestr.
24389         * modules/mbscasestr: New file.
24390         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
24391         (mbscasestr): Renamed from strcasestr.
24392         * lib/strcasestr.c: Don't include mbuiter.h.
24393         (strcasestr): Remove support for multibyte locales.
24394         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
24395         Change the conditional link warning.
24396         (mbscasestr): New declaration.
24397         * m4/mbscasestr.m4: New file.
24398         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
24399         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
24400         REPLACE_STRCASESTR.
24401         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
24402         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24403         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
24404         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
24405         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
24406         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
24407         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
24408         (Depends-on): Remove mbuiter.
24409         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
24410
24411 2007-02-04  Bruno Haible  <bruno@clisp.org>
24412
24413         Simplify handling of strncasecmp.
24414         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
24415         the conditional link warning.
24416         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24417         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
24418         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
24419         * modules/strcase (configure.ac): Don't invoke
24420         gl_STRING_MODULE_INDICATOR.
24421         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
24422
24423 2007-02-04  Bruno Haible  <bruno@clisp.org>
24424
24425         New module mbscasecmp, reduced goal of strcasecmp.
24426         * modules/mbscasecmp: New file.
24427         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
24428         (mbscasecmp): Renamed from strcasecmp.
24429         * lib/strcasecmp.c: Don't include mbuiter.h.
24430         (strcasecmp): Remove support for multibyte locales.
24431         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
24432         Change the conditional link warning.
24433         (mbscasecmp): New declaration.
24434         * m4/mbscasecmp.m4: New file.
24435         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
24436         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
24437         REPLACE_STRCASECMP.
24438         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
24439         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24440         GNULIB_MBSCASECMP.
24441         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
24442         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
24443         * modules/strcase (Files): Remove m4/mbrtowc.m4.
24444         (Depends-on): Remove mbuiter.
24445         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
24446
24447 2007-02-04  Bruno Haible  <bruno@clisp.org>
24448
24449         New module mbsstr. Remove module strstr.
24450         * modules/mbsstr: New file.
24451         * modules/strstr: Remove file.
24452         * lib/mbsstr.c: Renamed from lib/strstr.c.
24453         (mbsstr): Renamed from strstr.
24454         * lib/string_.h (strstr): Remove declaration. Change the conditional
24455         link warning.
24456         (mbsstr): New declaration.
24457         * m4/mbsstr.m4: New file.
24458         * m4/strstr.m4: Remove file.
24459         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24460         REPLACE_STRSTR.
24461         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
24462         Don't initialize GNULIB_STRSTR.
24463         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
24464         substitute GNULIB_STRSTR and REPLACE_STRSTR.
24465         * MODULES.html.sh (Internationalization functions): Add mbsstr.
24466         (Support for systems lacking ANSI C 89): Remove strstr.
24467
24468 2007-02-04  Bruno Haible  <bruno@clisp.org>
24469
24470         New module mbsrchr.
24471         * modules/mbsrchr: New file.
24472         * lib/mbsrchr.c: New file.
24473         * lib/string_.h (strrchr): Add a conditional link warning.
24474         (mbsrchr): New declaration.
24475         * m4/mbsrchr.m4: New file.
24476         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24477         GNULIB_MBSRCHR.
24478         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
24479         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
24480
24481 2007-02-04  Bruno Haible  <bruno@clisp.org>
24482
24483         New module mbschr.
24484         * modules/mbschr: New file.
24485         * lib/mbschr.c: New file.
24486         * lib/string_.h (strchr): Add a conditional link warning.
24487         (mbschr): New declaration.
24488         * m4/mbschr.m4: New file.
24489         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24490         GNULIB_MBSCHR.
24491         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
24492         * MODULES.html.sh (Internationalization functions): Add mbschr.
24493
24494 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24495
24496         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
24497
24498         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
24499
24500 2007-02-04  Bruno Haible  <bruno@clisp.org>
24501
24502         New module description section 'configure.ac-early'.
24503         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
24504         (func_get_autoconf_early_snippet): New function.
24505         (func_import, func_create_testdir): Use it. Remove special cases for
24506         modules 'extensions' and 'lock'.
24507         * modules/extensions (configure.ac-early): Require
24508         gl_USE_SYSTEM_EXTENSIONS.
24509         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
24510
24511 2007-02-04  Bruno Haible  <bruno@clisp.org>
24512
24513         Make use of gcj-4.3's -fsource and -ftarget option.
24514         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
24515         and if so try the options -fsource and -ftarget.
24516         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
24517         source_version, ftarget_option, target_version arguments.
24518         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
24519         (is_envjavac_oldgcj_14_14_usable): Renamed from
24520         is_envjavac_gcj_14_14_usable.
24521         (is_envjavac_oldgcj_14_13_usable): Renamed from
24522         is_envjavac_gcj_14_13_usable.
24523         (is_gcj_present): Update.
24524         (is_gcj_43, is_gcj43_usable): New functions.
24525         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
24526         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
24527         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
24528         try the options -fsource and -ftarget.
24529
24530 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
24531
24532         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
24533         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
24534         larger value.
24535
24536 2007-02-03  Jim Meyering  <jim@meyering.net>
24537
24538         Give tools a better chance to allocate space for very large buffers.
24539         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
24540
24541         Make pwd and readlink work also when run with an unreadable parent dir
24542         on systems with openat support.
24543         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
24544         provided getcwd function, even when we have openat support.
24545         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
24546
24547 2007-02-02  Bruno Haible  <bruno@clisp.org>
24548
24549         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
24550         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
24551         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
24552         portability problems if one of these functions is only used on specific
24553         platforms.
24554         Reported by Paul Eggert.
24555
24556 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
24557
24558         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
24559         is causing more trouble than it's curing.
24560         * lib/regex_internal.h (__mempcpy): Remove.
24561         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
24562         (and make the code a tad smaller to boot).
24563         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
24564
24565 2007-02-02  Jim Meyering  <jim@meyering.net>
24566
24567         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
24568         section, not in the Makefile.am: one.
24569
24570 2007-02-02  Eric Blake  <ebb9@byu.net>
24571
24572         * lib/strchrnul.c: Always include config.h first.
24573
24574         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
24575         gnulib strstr is not necessary here.
24576
24577 2007-02-02  Simon Josefsson  <simon@josefsson.org>
24578
24579         * m4/socklen.m4: Fix typo.
24580
24581 2007-02-02  Eric Blake  <ebb9@byu.net>
24582
24583         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
24584         * modules/netinet_in (Makefile.am): Likewise.
24585
24586 2007-02-01  Bruno Haible  <bruno@clisp.org>
24587
24588         * lib/string_.h (GL_LINK_WARNING): New macro.
24589         (strcasecmp, strstr, strcasestr): If provided by the system,
24590         conditionally define as a macro that leads to a warning instead of to
24591         an error.
24592         (strncasecmp): Conditionally define as a macro that leads to a warning.
24593
24594 2007-02-01  Karl Berry  <karl@gnu.org>
24595
24596         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
24597
24598 2007-02-01  Bruno Haible  <bruno@clisp.org>
24599
24600         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
24601         renamings.
24602
24603 2007-02-01  Eric Blake  <ebb9@byu.net>
24604
24605         * modules/regex (Depends-on): Revert dependence on mempcpy.
24606         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
24607         module's definition of mempcpy.
24608         Reported by Paul Eggert.
24609
24610 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
24611
24612         * lib/string_.h: If the gnulib module XYZ is not present, undefine
24613         the symbol XYZ before redefining it.  This fixes a problem with
24614         programs that don't use XYZ, when compiled on systems that define
24615         XYZ to something else.
24616
24617 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
24618
24619         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
24620         occurs when "mkdir -m foo" creates a setgid directory that is (1)
24621         writeable to group or other and (2) is intended to have a special
24622         mode bit that is set or cleared.  In such a case, the directory
24623         should be neither group- nor other-writeable until the special
24624         mode bits are right.
24625
24626 2007-01-31  Eric Blake  <ebb9@byu.net>
24627
24628         * modules/mountlist (Depends-on): Add strstr.
24629
24630         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
24631         bug.
24632         * modules/string (Makefile.am): Remove redundant replacement.
24633         * modules/regex (Depends-on): Add mempcpy.
24634
24635 2007-01-31  Bruno Haible  <bruno@clisp.org>
24636
24637         New module description field 'Link'.
24638         * gnulib-tool (func_usage): Document --extract-link-directive.
24639         (sed_extract_prog): Recognize 'Link' directive.
24640         (func_get_link_directive): New function.
24641         (func_import): Show summary of link directives.
24642         Handle --extract-link-directive option.
24643         * modules/acl (Link): New section.
24644         * modules/clock-time (Link): New section.
24645         * modules/euidaccess (Link): New section.
24646         * modules/gettext (Link): New section.
24647         * modules/iconv (Link): New section.
24648         * modules/lock (Link): New section.
24649         * modules/nanosleep (Link): New section.
24650         * modules/readline (Link): New section.
24651
24652 2007-01-27  Bruno Haible  <bruno@clisp.org>
24653
24654         Enforce the use of gnulib modules for unportable <string.h> functions.
24655         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
24656         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
24657         (gl_HEADER_STRING_H_BODY): Require it.
24658         * lib/string_.h: If the gnulib module XYZ is not present, redefine
24659         the symbol XYZ to one that gives a link error.
24660         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
24661         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
24662         * modules/mempcpy (configure.ac): Likewise.
24663         * modules/memrchr (configure.ac): Likewise.
24664         * modules/stpcpy (configure.ac): Likewise.
24665         * modules/stpncpy (configure.ac): Likewise.
24666         * modules/strcase (configure.ac): Likewise.
24667         * modules/strcasestr (configure.ac): Likewise.
24668         * modules/strchrnul (configure.ac): Likewise.
24669         * modules/strdup (configure.ac): Likewise.
24670         * modules/strndup (configure.ac): Likewise.
24671         * modules/strnlen (configure.ac): Likewise.
24672         * modules/strpbrk (configure.ac): Likewise.
24673         * modules/strsep (configure.ac): Likewise.
24674         * modules/strstr (configure.ac): Likewise.
24675         * modules/strtok_r (configure.ac): Likewise.
24676
24677 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
24678
24679         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
24680
24681 2007-01-30  Jim Meyering  <jim@meyering.net>
24682
24683         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
24684
24685 2007-01-29  Bruno Haible  <bruno@clisp.org>
24686
24687         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
24688         * lib/execute.c: Likewise.
24689         * lib/pipe.c: Likewise.
24690         * lib/printf-args.h: Likewise.
24691         * lib/printf-args.c: Likewise.
24692         * lib/printf-parse.c: Likewise.
24693         * lib/vasnprintf.c: Likewise.
24694
24695 2007-01-29  Eric Blake  <ebb9@byu.net>
24696
24697         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
24698         declaration.
24699
24700 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
24701
24702         * lib/strptime.h (strptime): Use 'restrict' for args where
24703         POSIX requires this.
24704         * lib/strptime.c (strptime): Likewise.
24705         Change license notice from LGPL to GPL, since gnulib-tool will
24706         change this as needed.
24707         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
24708         defined.
24709         Include "strptime.h" first, to check interface.
24710         Do not #undef _LIBC and _NL_CURRENT.
24711         Do not include <stdlib.h>; no longer needed.
24712         Include "time_r.h" and declare ptime_locale_status
24713         only if _LIBC is not defined.
24714         (__P): Remove unused macro.
24715         (match_string): Bring back glibc version, but use it only if _LIBC
24716         is defined.
24717         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
24718         Remove unnecessary assertion and abort() call.
24719         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
24720         * m4/strptime.m4: Fix serial number comment.
24721         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
24722         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
24723         (Depends-on): Add time_r.
24724
24725 2007-01-29  Bruno Haible  <bruno@clisp.org>
24726
24727         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24728         strptime.
24729         * modules/strptime (Depends-on): Add stdbool.
24730         * lib/strptime.h: Include <time.h> always. Add comments.
24731
24732 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24733
24734         * modules/strptime: New file.
24735         * lib/strptime.h: New file.
24736         * lib/strptime.c: New file.
24737         * m4/strptime.m4: New file.
24738
24739 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24740
24741         * MODULES.html.sh: New module mpsort.
24742         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
24743
24744         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
24745         a circularity problem with HP-UX ia64 reported by Bob Proulx in
24746         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
24747         All uses changed.
24748         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
24749         All uses changed.
24750         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
24751         to _Restrict_.
24752         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
24753         the parameter matches the prototype.
24754
24755 2007-01-28  Jim Meyering  <jim@meyering.net>
24756
24757         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
24758         sys/time.h here, reverting that part of the previous patch:
24759         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
24760
24761 2007-01-28  Bruno Haible  <bruno@clisp.org>
24762
24763         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
24764         value of $(SYS_TIME_H).
24765         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
24766         remove it conditionally, too. [added by Jim Meyering]
24767         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
24768         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
24769         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
24770         GETTIMEOFDAY_REPLACEMENT to 1.
24771
24772 2007-01-28  Bruno Haible  <bruno@clisp.org>
24773
24774         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
24775         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
24776         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
24777         Set UNISTD_H instead of UNISTD_H2.
24778         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
24779
24780 2007-01-28  Bruno Haible  <bruno@clisp.org>
24781
24782         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
24783         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
24784
24785 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24786
24787         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
24788         (func_create_testdir): Ensure C locale for `grep' and `tr'
24789         character ranges.
24790         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
24791         ACLOCAL_AMFLAGS parsing state machine.
24792
24793 2007-01-27  Bruno Haible  <bruno@clisp.org>
24794
24795         * modules/unistr/base: Update.
24796
24797 2007-01-27  Bruno Haible  <bruno@clisp.org>
24798
24799         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
24800         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
24801         * modules/unistr/u32-mbtouc-unsafe: Renamed from
24802         modules/unistr/u32-mbtouc.
24803         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
24804         * lib/unistr.h: Update.
24805         * lib/linebreak.c: Update.
24806         * modules/unistr/u32-mbtouc: Renamed from
24807         modules/unistr/u32-mbtouc-safe.
24808         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
24809         * lib/unistr.h: Update.
24810         * lib/unistr/u32-to-u8.c: Update.
24811         * lib/unistr/u32-to-u16.c: Update.
24812
24813 2007-01-27  Bruno Haible  <bruno@clisp.org>
24814
24815         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
24816         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
24817         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
24818         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
24819         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
24820         * modules/unistr/u16-mbtouc-unsafe: Renamed from
24821         modules/unistr/u16-mbtouc.
24822         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
24823         * lib/unistr.h: Update.
24824         * lib/linebreak.c: Update.
24825         * modules/linebreak: Update.
24826         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
24827         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
24828         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
24829         * modules/unistr/u16-mbtouc: Renamed from
24830         modules/unistr/u16-mbtouc-safe.
24831         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
24832         * lib/unistr.h: Update.
24833         * lib/unistr/u16-to-u8.c: Update.
24834         * modules/unistr/u16-to-u8: Update.
24835         * lib/unistr/u16-to-u32.c: Update.
24836         * modules/unistr/u16-to-u32: Update.
24837
24838 2007-01-27  Bruno Haible  <bruno@clisp.org>
24839
24840         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
24841         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
24842         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
24843         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
24844         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
24845         * modules/unistr/u8-mbtouc-unsafe: Renamed from
24846         modules/unistr/u8-mbtouc.
24847         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
24848         * lib/unistr.h: Update.
24849         * lib/striconveh.c: Update.
24850         * modules/striconveh: Update.
24851         * lib/linebreak.c: Update.
24852         * modules/linebreak: Update.
24853         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
24854         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
24855         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
24856         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
24857         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
24858         * lib/unistr.h: Update.
24859         * lib/striconveh.c: Update.
24860         * modules/striconveh: Update.
24861         * lib/unistr/u8-to-u16.c: Update.
24862         * modules/unistr/u8-to-u16: Update.
24863         * lib/unistr/u8-to-u32.c: Update.
24864         * modules/unistr/u8-to-u32: Update.
24865
24866 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24867
24868         Sync from Libtool.
24869         * lib/argz.c: Do not include strings.h nor memory.h, include
24870         string.h unconditionally.  Patch by Simon Josefsson.
24871
24872 2007-01-27  Bruno Haible  <bruno@clisp.org>
24873
24874         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
24875         from gl_HEADER_STRING_H_BODY.
24876         (gl_HEADER_STRING_H_BODY): Require it.
24877         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
24878         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
24879         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
24880         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
24881         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24882         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
24883         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24884         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
24885         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
24886         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
24887         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
24888         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
24889         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
24890         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24891         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
24892
24893 2007-01-27  Bruno Haible  <bruno@clisp.org>
24894
24895         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
24896         check_PROGRAMS into noinst_PROGRAMS.
24897         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
24898         check_PROGRAMS in this case.
24899         (func_import): Set for_test to false.
24900         (func_create_testdir): Set for_test to true.
24901
24902 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
24903             Bruno Haible  <bruno@clisp.org>
24904
24905         * modules/strcasestr (Files): Remove lib/strcasestr.h.
24906         (Depends-on): Add string.
24907         (Includes): Use <string.h> instead of strcasestr.h.
24908         * modules/string (Makefile.am): Also substitute the value of
24909         REPLACE_STRCASESTR.
24910         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
24911         assume strcasestr is declared in <string.h> not <strings.h>. Also
24912         set REPLACE_STRCASESTR.
24913         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
24914         REPLACE_STRCASESTR.
24915         * lib/strcasestr.h: Remove file.
24916         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
24917         * lib/string_.h (strcasestr): New declaration.
24918
24919 2007-01-27  Bruno Haible  <bruno@clisp.org>
24920
24921         * lib/string_.h: Use 'extern'.
24922
24923 2007-01-27  Jim Meyering  <jim@meyering.net>
24924
24925         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
24926         of set-but-not-used local, "q".
24927
24928         * lib/mempcpy.c: Include <config.h> before <string.h>.
24929         This fixes a compilation error on HP-UX, due to the system's
24930         "restrict"-using mempcpy prototype.
24931
24932 2007-01-26  Bruno Haible  <bruno@clisp.org>
24933
24934         Small optimization.
24935         * lib/javacomp.c: Include c-strstr.h.
24936          (is_envjavac_gcj): Use c_strstr instead of strstr.
24937         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
24938
24939 2007-01-26  Bruno Haible  <bruno@clisp.org>
24940
24941         * MODULES.html.sh (Unicode string functions): Add the new modules.
24942
24943         * modules/uniconv/u32-strconv-to-locale: New file.
24944         * lib/uniconv/u32-strconv-to-locale.c: New file.
24945
24946         * modules/uniconv/u16-strconv-to-locale: New file.
24947         * lib/uniconv/u16-strconv-to-locale.c: New file.
24948
24949         * modules/uniconv/u8-strconv-to-locale: New file.
24950         * lib/uniconv/u8-strconv-to-locale.c: New file.
24951
24952         * modules/uniconv/u32-strconv-from-locale: New file.
24953         * lib/uniconv/u32-strconv-from-locale.c: New file.
24954
24955         * modules/uniconv/u16-strconv-from-locale: New file.
24956         * lib/uniconv/u16-strconv-from-locale.c: New file.
24957
24958         * modules/uniconv/u8-strconv-from-locale: New file.
24959         * lib/uniconv/u8-strconv-from-locale.c: New file.
24960
24961         * modules/uniconv/u32-strconv-to-enc: New file.
24962         * lib/uniconv/u32-strconv-to-enc.c: New file.
24963         * modules/uniconv/u32-strconv-to-enc-tests: New file.
24964         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
24965
24966         * modules/uniconv/u16-strconv-to-enc: New file.
24967         * lib/uniconv/u16-strconv-to-enc.c: New file.
24968         * lib/uniconv/u-strconv-to-enc.h: New file.
24969         * modules/uniconv/u16-strconv-to-enc-tests: New file.
24970         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
24971
24972         * modules/uniconv/u8-strconv-to-enc: New file.
24973         * lib/uniconv/u8-strconv-to-enc.c: New file.
24974         * modules/uniconv/u8-strconv-to-enc-tests: New file.
24975         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
24976
24977         * modules/uniconv/u32-strconv-from-enc: New file.
24978         * lib/uniconv/u32-strconv-from-enc.c: New file.
24979         * modules/uniconv/u32-strconv-from-enc-tests: New file.
24980         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
24981
24982         * modules/uniconv/u16-strconv-from-enc: New file.
24983         * lib/uniconv/u16-strconv-from-enc.c: New file.
24984         * modules/uniconv/u16-strconv-from-enc-tests: New file.
24985         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
24986
24987         * modules/uniconv/u8-strconv-from-enc: New file.
24988         * lib/uniconv/u8-strconv-from-enc.c: New file.
24989         * lib/uniconv/u-strconv-from-enc.h: New file.
24990         * modules/uniconv/u8-strconv-from-enc-tests: New file.
24991         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
24992
24993         * modules/uniconv/u32-conv-from-enc: New file.
24994         * lib/uniconv/u32-conv-from-enc.c: New file.
24995         * modules/uniconv/u32-conv-from-enc-tests: New file.
24996         * tests/uniconv/test-u32-conv-from-enc.c: New file.
24997
24998         * modules/uniconv/u16-conv-from-enc: New file.
24999         * lib/uniconv/u16-conv-from-enc.c: New file.
25000         * lib/uniconv/u-conv-from-enc.h: New file.
25001         * modules/uniconv/u16-conv-from-enc-tests: New file.
25002         * tests/uniconv/test-u16-conv-from-enc.c: New file.
25003
25004         * modules/uniconv/u8-conv-from-enc: New file.
25005         * lib/uniconv/u8-conv-from-enc.c: New file.
25006         * modules/uniconv/u8-conv-from-enc-tests: New file.
25007         * tests/uniconv/test-u8-conv-from-enc.c: New file.
25008
25009         * modules/uniconv/base: New file.
25010         * lib/uniconv.h: New file.
25011
25012 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
25013
25014         * doc/gnulib-tool.texi (Initial import): Update to match current
25015         behavior with strdup module.
25016         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
25017         * lib/memmem.h: Remove; all uses removed.  This is now done
25018         by <string.h>.
25019         * lib/mempcpy.h: Likewise.
25020         * lib/memrchr.h: Likewise.
25021         * lib/stpcpy.h: Likewise.
25022         * lib/stpncpy.h: Likewise.
25023         * lib/strcase.h: Likewise.
25024         * lib/strchrnul.h: Likewise.
25025         * lib/strdup.h: Likewise.
25026         * lib/strndup.h: Likewise.
25027         * lib/strnlen.h: Likewise.
25028         * lib/strpbrk.h: Likewise.
25029         * lib/strsep.h: Likewise.
25030         * lib/strstr.h: Likewise.
25031         * lib/strtok_r.h: Likewise.
25032         * lib/string_.h: New file.
25033         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
25034         Rely on <string.h> instead.
25035         * lib/canon-host.c: Likewise.
25036         * lib/chdir-long.c: Likewise.
25037         * lib/concatpath.c: Likewise.
25038         * lib/exclude.c: Likewise.
25039         * lib/fchdir.c: Likewise.
25040         * lib/getaddrinfo.c: Likewise.
25041         * lib/getcwd.c: Likewise.
25042         * lib/getsubopt.c: Likewise.
25043         * lib/glob.c: Likewise.
25044         * lib/hard-locale.c: Likewise.
25045         * lib/iconvme.c: Likewise.
25046         * lib/javacomp.c: Likewise.
25047         * lib/mempcpy.c: Likewise.
25048         * lib/memrchr.c: Likewise.
25049         * lib/regex_internal.h: Likewise.
25050         * lib/stpncpy.c: Likewise.
25051         * lib/strcasecmp.c: Likewise.
25052         * lib/strchrnul.c: Likewise.
25053         * lib/strdup.c: Likewise.
25054         * lib/striconv.c: Likewise.
25055         * lib/striconveh.c: Likewise.
25056         * lib/striconveha.c: Likewise.
25057         * lib/strncasecmp.c: Likewise.
25058         * lib/strndup.c: Likewise.
25059         * lib/strnlen.c: Likewise.
25060         * lib/strsep.c: Likewise.
25061         * lib/strstr.c: Likewise.
25062         * lib/strtok_r.c: Likewise.
25063         * lib/userspec.c: Likewise.
25064         * lib/w32spawn.h: Likewise.
25065         * lib/xstrndup.c: Likewise.
25066         * lib/mountlist.c (strstr): Remove decl.
25067         * m4/string_h.m4: New file.
25068         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
25069         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
25070         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
25071         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
25072         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
25073         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
25074         Set REPLACE_STRCASECMP if necessary.
25075         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
25076         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
25077         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
25078         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
25079         HAVE_DECL_STRDUP if necessary.
25080         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
25081         since gl_FUNC_STRNDUP does that now.
25082         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
25083         Check for decl here...
25084         (gl_PREREQ_STRNLEN): ... not here.
25085         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
25086         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
25087         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
25088         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
25089         necessary.
25090         * modules/string: New file.
25091         * modules/memmem (Files): Remove special-purpose include file.
25092         (Depends-on): Add string.
25093         (Include): Include <string.h>, not the removed file.
25094         * modules/mempcpy: Likewise.
25095         * modules/memrchr: Likewise.
25096         * modules/stpcpy: Likewise.
25097         * modules/stpncpy: Likewise.
25098         * modules/strcase: Likewise.
25099         * modules/strchrnul: Likewise.
25100         * modules/strdup: Likewise.
25101         * modules/strndup: Likewise.
25102         * modules/strnlen: Likewise.
25103         * modules/strpbrk: Likewise.
25104         * modules/strsep: Likewise.
25105         * modules/strstr: Likewise.
25106         * modules/strtok_r: Likewise.
25107         * tests/test-dirname.c: Don't include "strdup.h", since
25108         <string.h> now suffices.
25109         * tests/test-memmem.c: Don't include "memmem.h", since
25110         <string.h> now suffices.
25111
25112 2007-01-25  Bruno Haible  <bruno@clisp.org>
25113
25114         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
25115         *resultp is 0.
25116
25117         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
25118         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
25119         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
25120         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
25121
25122         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
25123         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
25124         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
25125         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
25126         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
25127         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
25128
25129 2007-01-24  Bruno Haible  <bruno@clisp.org>
25130
25131         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
25132         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
25133         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
25134         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
25135         gl_FUNC_FTS_CORE.
25136         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
25137         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
25138         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
25139         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
25140         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
25141         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
25142         gl_FUNC_FCHOWNAT.
25143         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
25144         gl_FUNC_STRFTIME.
25145         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
25146         Reported by Ralf Wildenhues.
25147
25148 2007-01-24  Bruno Haible  <bruno@clisp.org>
25149
25150         Drop AC_REQUIRE calls that are redundant with the module dependencies.
25151         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
25152         gl_GETADDRINFO.
25153         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
25154         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
25155         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
25156
25157 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
25158
25159         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
25160         Don't use 'exit'; just return from 'main'.
25161         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
25162
25163         * lib/fnmatch_.h: Readjust white space and comments to match
25164         glibc, to avoid spurious diffs.
25165
25166 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25167
25168         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
25169         2004-12-01 change by Jakub Jelinek, since this code won't compile
25170         if !LIBC.  Problem reported by Bob Proulx.
25171
25172 2007-01-23  Bruno Haible  <bruno@clisp.org>
25173
25174         * lib/striconveh.c: Include c-strcaseeq.h.
25175         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
25176         * modules/striconveh (Depends-on): Add c-strcaseeq.
25177
25178 2007-01-23  Bruno Haible  <bruno@clisp.org>
25179
25180         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
25181
25182         * modules/c-strcaseeq: New file.
25183         * lib/c-strcaseeq.h: New file.
25184
25185         * modules/streq: New file.
25186         * lib/streq.h: New file.
25187
25188 2007-01-23  Bruno Haible  <bruno@clisp.org>
25189
25190         * modules/striconveha-tests: New file.
25191         * tests/test-striconveha.c: New file.
25192
25193         * lib/striconveha.h: Include <stdbool.h>.
25194         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
25195         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
25196         (mem_iconveha_notranslit): Renamed from mem_iconveha.
25197         (mem_iconveha): New function.
25198         (str_iconveha_notranslit): Renamed from str_iconveha.
25199         (str_iconveha): New function.
25200         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
25201         c-strcase.
25202
25203 2007-01-23  Bruno Haible  <bruno@clisp.org>
25204
25205         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
25206         encodings without forgiving before trying any encoding with handler.
25207         (str_iconveha): Try all encodings without forgiving before trying any
25208         encoding with handler.
25209
25210 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25211
25212         Import the following changes from libc.
25213
25214         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
25215
25216         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
25217
25218         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
25219
25220         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
25221         normal_bracket label.
25222
25223         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
25224
25225         [BZ #361]
25226         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
25227         to normal_bracket after fetching the next character.
25228
25229 2007-01-22  Bruno Haible  <bruno@clisp.org>
25230
25231         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
25232         argument.
25233         * lib/striconveh.c (iconv_carefully_1): New function.
25234         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
25235         argument.
25236         (str_cd_iconveh): Update.
25237         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
25238         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
25239         * tests/test-striconveh.c (MAGIC): New macro.
25240         (new_offsets): New function.
25241         (main): Test call with and without offsets.
25242
25243 2007-01-22  Bruno Haible  <bruno@clisp.org>
25244
25245         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
25246         * modules/sys_select (Makefile.am): Likewise.
25247         * modules/sys_socket (Makefile.am): Likewise.
25248         * modules/sys_time (Makefile.am): Likewise.
25249
25250 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
25251
25252         * modules/gettimeofday (License): Change from GPL to LGPL, since
25253         gettimeofday is a library function.
25254
25255 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25256
25257         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
25258
25259 2007-01-21  Bruno Haible  <bruno@clisp.org>
25260
25261         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
25262
25263 2007-01-21  Bruno Haible  <bruno@clisp.org>
25264
25265         * modules/striconveha: New file.
25266         * lib/striconveha.h: New file.
25267         * lib/striconveha.c: New file.
25268         * MODULES.html.sh (Internationalization functions): Add striconveha.
25269         * lib/striconv.c (str_iconv): Optimize the case of an empty input
25270         string.
25271         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
25272
25273 2007-01-21  Bruno Haible  <bruno@clisp.org>
25274
25275         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
25276         * lib/striconveh.c (str_iconveh): Likewise.
25277
25278 2007-01-21  Bruno Haible  <bruno@clisp.org>
25279
25280         * lib/striconveh.h (mem_iconveh): New declaration.
25281         * lib/striconveh.c (mem_iconveh): New function.
25282         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
25283
25284 2007-01-21  Bruno Haible  <bruno@clisp.org>
25285
25286         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
25287
25288         * lib/striconveh.h (mem_cd_iconveh): Change specification.
25289         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
25290         original result buffer.
25291         (str_cd_iconveh): Update.
25292         * tests/test-striconveh.c (main): Update.
25293
25294         * lib/striconv.h (mem_cd_iconv): Change specification.
25295         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
25296         result buffer.
25297         (str_cd_iconv): Update.
25298         * tests/test-striconv.c (main): Update.
25299
25300 2007-01-21  Bruno Haible  <bruno@clisp.org>
25301
25302         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
25303
25304 2007-01-20  Jim Meyering  <jim@meyering.net>
25305
25306         * lib/userspec.c (parse_with_separator): If a user or group string
25307         starts with "+", skip the corresponding name-to-ID look-up, since
25308         such a look-up must fail: user and group names may not include "+".
25309
25310 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
25311
25312         * lib/poll.c: Include sys/time.h and time.h unconditionally,
25313         since we now assume the sys_time module.
25314         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
25315         check for sys/time.h; no longer needed.
25316         * modules/poll (Depends-on): Depend on sys_time.
25317
25318 2007-01-18  Bruno Haible  <bruno@clisp.org>
25319
25320         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
25321         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
25322
25323         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
25324         gettimeofday.
25325
25326         * tests/test-gettimeofday.c: Include <time.h>.
25327         (dummy): Remove variable.
25328
25329         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
25330         gl_HEADER_SYS_TIME_H.
25331         (gl_HEADER_SYS_TIME_H): New macro.
25332
25333         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
25334         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25335         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
25336         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
25337         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25338         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
25339         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
25340         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25341         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
25342         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
25343         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25344
25345         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
25346         last change; it caused a compilation error when cross-compiling to
25347         Cygwin.
25348
25349 2007-01-18  Jim Meyering  <jim@meyering.net>
25350
25351         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
25352         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
25353         than the race-prone "test -d sys || mkdir sys".
25354         (configure.ac): Use AC_PROG_MKDIR_P.
25355         * modules/sys_select: Likewise.
25356         * modules/sys_socket: Likewise.
25357         * modules/sys_time: Likewise.
25358
25359 2007-01-18  Eric Blake  <ebb9@byu.net>
25360
25361         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
25362         replace gettimeofday.
25363         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
25364         name, to avoid infinite recursion.
25365
25366 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
25367
25368         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
25369         module sys_time.
25370         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
25371         assume timespec.h defines struct timeval.
25372         * lib/settime.c: Likewise.
25373         * lib/utimens.c: Likewise.
25374         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
25375         since we now assume the gettimeofday module.
25376         * lib/tempname.c (__gen_tempname): Likewise.
25377         * lib/gettimeofday.h: Remove.
25378         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
25379         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
25380         Include <time.h>, for 'time()'.
25381         (localtime_buffer_addr): Also use this workaround if
25382         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
25383         to simplify the uses.  All uses changed.
25384         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
25385         that #undef is inside {}, and 'const' follows type name consistently.
25386         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
25387         (gettimeofday): Do not use the maximum possible value for
25388         tv->tv_usec, since that might break usages other than ls.c.
25389         Instead, we'll leave ls.c alone.  This undoes today's patch
25390         by Bruno.  Add a compile-time warning for 1s-clock resolution;
25391         we've never observed the problem but might as well keep the
25392         canary.
25393         * lib/nanosleep.c: Include timespec.h first, for interface check.
25394         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
25395         now assume the sys_time module.
25396         * lib/tempname.c: Likewise.
25397         * lib/timespec.h: Likewise.
25398         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
25399         needed.
25400         * lib/strftime.c: Likewise.
25401         * lib/timespec.h: Likewise.
25402         * lib/posixtm.c: Include posixtm.h first, for interface check.
25403         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
25404         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
25405         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
25406         * lib/sys_time_.h: New file.
25407         * lib/timespec.h (struct timespec): Use long int, not long.
25408         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
25409         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
25410         Remove obsolescent call to AC_HEADER_TIME.
25411         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25412         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25413         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
25414         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
25415         Likewise.
25416         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
25417         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
25418         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
25419         into the sys_time module.  Check for gettimeofday just once.
25420         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
25421         for gettimeofday signature to just check the signature.  Merely
25422         compile it, since linking doesn't test signature.  Improve test for
25423         whether gettimeofday.o is actually needed.
25424         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
25425         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
25426         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
25427         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25428         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
25429         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
25430         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
25431         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
25432         than worrying about sys/time.h.
25433         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
25434         Don't bother worrying about TIME_WITH_SYS_TIME.
25435         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
25436         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
25437         * m4/sys_time_h.m4: New file.
25438         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
25439         Don't include sys/time.h.  Return from main rather than exiting.
25440         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
25441         all uses changed.
25442         * modules/gethrxtime (Depends-on): Add sys_time.
25443         * modules/gettime (Depends-on): Likewise.
25444         * modules/gettimeofday (Depends-on): Likewise.
25445         * modules/nanosleep (Depends-on): Likewise.
25446         * modules/settime (Depends-on): Likewise.
25447         * modules/tempname (Depends-on): Likewise.
25448         * modules/utimens (Depends-on): Likewise.
25449         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
25450         (Include:) Change back to <sys/time.h>.
25451         (Maintainer:) Add self.
25452         * modules/sys_time: New file.
25453         * modules/tempname (Depends-on): Add gettimeofday.
25454         * tests/test-gettimeofday.c: Include <sys/time.h>
25455         rather than gettimeofday.h.
25456
25457 2007-01-17  Bruno Haible  <bruno@clisp.org>
25458
25459         * gnulib-tool (func_get_license): Revert last patch. Instead, let
25460         the license default to GPL.
25461         (func_create_testdir): Don't complain if a module is LGPL and its
25462         tests module depends on GPLed modules.
25463
25464 2007-01-17  Bruno Haible  <bruno@clisp.org>
25465
25466         * lib/gettimeofday.c (gettimeofday): Add code for the case
25467         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
25468         maximum possible value for tv->tv_usec, rather than the minimum one.
25469
25470 2005-10-08  Martin Lambers  <marlam@marlam.de>
25471 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25472 2007-01-16  Bruno Haible  <bruno@clisp.org>
25473
25474         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
25475         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
25476         gl_FUNC_GETTIMEOFDAY.
25477         (Include): Add gettimeofday.h.
25478         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
25479         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
25480         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
25481         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
25482         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
25483         * lib/gettimeofday.h: New file.
25484         * lib/gettimeofday.c: Include <sys/timeb.h>.
25485         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
25486         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25487         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
25488         fall back on time().
25489
25490         * tests/test-gettimeofday.c: New file.
25491         * modules/gettimeofday-tests: New file.
25492
25493 2007-01-16  Eric Blake  <ebb9@byu.net>
25494
25495         * modules/fnmatch (Depends-on): Depend on wchar.
25496         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
25497         * m4/fnmatch.m4: Likewise.
25498         * modules/mbchar (Makefile.am): Assume <wchar.h>.
25499         * m4/mbchar.m4: Likewise.
25500         * modules/mbswidth (Depends-on): Depend on wchar.
25501         * lib/mbswidth.c: Assume <wchar.h>.
25502         * m4/mbswidth.m4: Likewise.
25503         * modules/quotearg (Depends-on): Depend on wchar.
25504         * lib/quotearg.c: Assume <wchar.h>.
25505         * m4/quotearg.m4: Likewise.
25506         * modules/regex (Depends-on): Depend on wchar.
25507         * lib/regex_internal.h: Assume <wchar.h>.
25508         * m4/regex.m4: Likewise.
25509         * modules/stdint (Depends-on): Depend on wchar.
25510         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
25511         * m4/stdint.m4: Likewise.
25512         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
25513         * modules/strftime (Depends-on): Depend on wchar.
25514         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
25515         * modules/strtol (Depends-on): Depend on wchar.
25516         * lib/strtol.c: Assume <wchar.h>.
25517         * modules/wcwidth (Depends-on): Depend on wchar.
25518         * lib/wcwidth.h: Assume <wchar.h>.
25519         * m4/wcwidth.m4: Likewise.
25520
25521 2007-01-16  Bruno Haible  <bruno@clisp.org>
25522
25523         * modules/csharpexec-script: New, created from...
25524         * modules/csharpexec: ... this.
25525
25526 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
25527
25528         * modules/javaexec-script: New, created from...
25529         * modules/javaexec: ... this.
25530
25531 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25532
25533         * modules/poll (Dependencies): Add sys_select.
25534
25535 2007-01-15  Jim Meyering  <jim@meyering.net>
25536
25537         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
25538         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
25539         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
25540         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
25541
25542 2007-01-15  Bruno Haible  <bruno@clisp.org>
25543
25544         * modules/striconveh: New file.
25545         * lib/striconveh.h: New file.
25546         * lib/striconveh.c: New file.
25547         * MODULES.html.sh (Internationalization functions): Add striconveh.
25548
25549         * modules/striconveh-tests: New file.
25550         * tests/test-striconveh.c: New file.
25551
25552 2007-01-15  Bruno Haible  <bruno@clisp.org>
25553
25554         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
25555         not from GNU libiconv or GNU libc.
25556
25557 2007-01-15  Bruno Haible  <bruno@clisp.org>
25558
25559         * doc/gnulib-intro.texi (Copyright): Explain the different license
25560         terms for module descriptions, autoconf macros, tests, documentation.
25561
25562 2007-01-14  Bruno Haible  <bruno@clisp.org>
25563
25564         * modules/striconv-tests: New file.
25565         * tests/test-striconv.c: New file.
25566
25567 2007-01-14  Bruno Haible  <bruno@clisp.org>
25568
25569         * modules/iconv-tests: New file.
25570         * tests/test-iconv.c: New file.
25571
25572 2007-01-14  Bruno Haible  <bruno@clisp.org>
25573
25574         * gnulib-tool (func_get_license): For test modules, use the license of
25575         the main module.
25576
25577 2007-01-14  Bruno Haible  <bruno@clisp.org>
25578
25579         * modules/iconv (Include): Clarify that <iconv.h> can only be included
25580         if iconv is found to exist.
25581
25582 2007-01-14  Bruno Haible  <bruno@clisp.org>
25583
25584         * modules/c-ctype-tests: New file.
25585         * tests/test-c-ctype.c: New file.
25586
25587 2007-01-14  Bruno Haible  <bruno@clisp.org>
25588
25589         * modules/binary-io-tests: New file.
25590         * tests/test-binary-io.sh: New file.
25591         * tests/test-binary-io.c: New file.
25592
25593 2007-01-14  Bruno Haible  <bruno@clisp.org>
25594
25595         * modules/array-oset-tests: New file.
25596         * tests/test-array_oset.c: New file.
25597
25598 2007-01-14  Bruno Haible  <bruno@clisp.org>
25599
25600         * modules/array-list-tests: New file.
25601         * tests/test-array_list.c: New file.
25602
25603 2007-01-14  Bruno Haible  <bruno@clisp.org>
25604
25605         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
25606         and make.
25607         Reported by Simon Josefsson in
25608         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
25609
25610 2007-01-14  Bruno Haible  <bruno@clisp.org>
25611
25612         * modules/allocsa-tests: New file.
25613         * tests/test-allocsa.c: New file.
25614
25615 2007-01-14  Bruno Haible  <bruno@clisp.org>
25616
25617         * modules/fchdir (Depends-on): Add absolute-header.
25618         * modules/unistd (Depends-on): Likewise.
25619
25620 2006-12-30  Bruno Haible  <bruno@clisp.org>
25621
25622         * modules/fchdir: New file.
25623         * modules/unistd (Files): Add lib/unistd_.h.
25624         (Makefile.am): Generate unistd.h from unistd_.h.
25625         * lib/fchdir.c: New file.
25626         * lib/dirent_.h: New file.
25627         * lib/unistd_.h: New file.
25628         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
25629         * m4/fchdir.m4: New file.
25630         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
25631         (gl_HEADER_UNISTD): Invoke it.
25632         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
25633         function.
25634         * lib/backupfile.c (opendir, closedir): Undefine.
25635         * lib/chown.c (open, close): Undefine.
25636         * lib/clean-temp.c (open, close): Undefine.
25637         * lib/copy-file.c (open, close): Undefine.
25638         * lib/execute.c (open, close): Undefine.
25639         * lib/fsusage.c (open, close): Undefine.
25640         * lib/gc-gnulib.c (open, close): Undefine.
25641         * lib/getcwd.c (opendir, closedir): Undefine.
25642         * lib/glob.c (opendir, closedir): Undefine.
25643         * lib/javacomp.c (open, close): Undefine.
25644         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
25645         * lib/openat-proc.c (open, close): Undefine.
25646         * lib/pagealign_alloc.c (open, close): Undefine.
25647         * lib/pipe.c (open, close): Undefine.
25648         * lib/progreloc.c (open, close): Undefine.
25649         * lib/savedir.c (opendir, closedir): Undefine.
25650         * lib/utime.c (open, close): Undefine.
25651         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
25652
25653 2007-01-10  Bruno Haible  <bruno@clisp.org>
25654
25655         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
25656
25657 2007-01-12  Eric Blake  <ebb9@byu.net>
25658
25659         Provide a robust <wchar.h>.  Further simplifications are now
25660         possible in other modules, but not included here.
25661         * modules/wchar: New module.
25662         * m4/wchar.m4: New file.
25663         * lib/wchar_.h: Likewise.
25664         * modules/mbchar (Depends-on): Depend on wchar, as the first use
25665         of the new module.
25666         * MODULES.html.sh (Extended multibyte and wide character utilities):
25667         New section.
25668
25669 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
25670
25671         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
25672         to a reasonable default for memory allocation.
25673         (xreadlink): Don't allocate a huge buffer, to work around a buggy
25674         file system that reports garbage st_size values for symlinks.
25675         Problem reported by Liyang Hu.
25676
25677 2007-01-11  Simon Josefsson  <simon@josefsson.org>
25678
25679         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
25680         Emacs .#* auto-save files).
25681
25682 2007-01-11  Bruno Haible  <bruno@clisp.org>
25683
25684         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
25685         directory.
25686
25687 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25688
25689         Use @...@ consistently in lib/wctype_.h.
25690         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
25691         on it being set to 1 or 0.
25692         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
25693         go back to AC_SUBSTing it.
25694         * modules/wctype (Makefile.am): Undo previous change.
25695
25696 2007-01-10  Eric Blake  <ebb9@byu.net>
25697
25698         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
25699         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
25700         * modules/wctype (Makefile.am): Likewise.
25701         Reported by Chris McGuire.
25702
25703 2007-01-10  Jim Meyering  <jim@meyering.net>
25704
25705         fts.c: a small readability/maintainability improvement
25706         * lib/fts.c (fts_read): Make this code slightly more readable and
25707         maintainable by hoisting the "sp->fts_cur = p" assignments to
25708         immediately follow the statements that set P.  Derived from
25709         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
25710
25711 2007-01-10  Eric Blake  <ebb9@byu.net>
25712
25713         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
25714         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
25715         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25716         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25717         Reported by Chris McGuire.
25718
25719 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25720
25721         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
25722         in sed script.
25723
25724 2007-01-09  Bruno Haible  <bruno@clisp.org>
25725
25726         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
25727         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
25728         variables.
25729         (func_module): Use them.
25730
25731 2007-01-09  Bruno Haible  <bruno@clisp.org>
25732
25733         * modules/unistr/base: New file.
25734         * lib/unistr.h: New file.
25735
25736         * modules/unistr/u8-to-u16: New file.
25737         * lib/unistr/u8-to-u16.c: New file.
25738
25739         * modules/unistr/u8-to-u32: New file.
25740         * lib/unistr/u8-to-u32.c: New file.
25741
25742         * modules/unistr/u16-to-u8: New file.
25743         * lib/unistr/u16-to-u8.c: New file.
25744
25745         * modules/unistr/u16-to-u32: New file.
25746         * lib/unistr/u16-to-u32.c: New file.
25747
25748         * modules/unistr/u32-to-u8: New file.
25749         * lib/unistr/u32-to-u8.c: New file.
25750
25751         * modules/unistr/u32-to-u16: New file.
25752         * lib/unistr/u32-to-u16.c: New file.
25753
25754         * modules/unistr/u8-check: New file.
25755         * modules/unistr/u16-check: New file.
25756         * modules/unistr/u32-check: New file.
25757         * lib/unistr/u8-check.c: New file.
25758         * lib/unistr/u16-check.c: New file.
25759         * lib/unistr/u32-check.c: New file.
25760
25761         * modules/unistr/u8-chr: New file.
25762         * modules/unistr/u16-chr: New file.
25763         * modules/unistr/u32-chr: New file.
25764         * lib/unistr/u8-chr.c: New file.
25765         * lib/unistr/u16-chr.c: New file.
25766         * lib/unistr/u32-chr.c: New file.
25767
25768         * modules/unistr/u8-cmp: New file.
25769         * modules/unistr/u16-cmp: New file.
25770         * modules/unistr/u32-cmp: New file.
25771         * lib/unistr/u8-cmp.c: New file.
25772         * lib/unistr/u16-cmp.c: New file.
25773         * lib/unistr/u32-cmp.c: New file.
25774
25775         * modules/unistr/u8-cpy: New file.
25776         * modules/unistr/u16-cpy: New file.
25777         * modules/unistr/u32-cpy: New file.
25778         * lib/unistr/u8-cpy.c: New file.
25779         * lib/unistr/u16-cpy.c: New file.
25780         * lib/unistr/u32-cpy.c: New file.
25781         * lib/unistr/u-cpy.h: New file.
25782
25783         * modules/unistr/u8-cpy-alloc: New file.
25784         * modules/unistr/u16-cpy-alloc: New file.
25785         * modules/unistr/u32-cpy-alloc: New file.
25786         * lib/unistr/u8-cpy-alloc.c: New file.
25787         * lib/unistr/u16-cpy-alloc.c: New file.
25788         * lib/unistr/u32-cpy-alloc.c: New file.
25789         * lib/unistr/u-cpy-alloc.h: New file.
25790
25791         * modules/unistr/u8-endswith: New file.
25792         * modules/unistr/u16-endswith: New file.
25793         * modules/unistr/u32-endswith: New file.
25794         * lib/unistr/u8-endswith.c: New file.
25795         * lib/unistr/u16-endswith.c: New file.
25796         * lib/unistr/u32-endswith.c: New file.
25797         * lib/unistr/u-endswith.h: New file.
25798
25799         * modules/unistr/u8-mblen: New file.
25800         * modules/unistr/u16-mblen: New file.
25801         * modules/unistr/u32-mblen: New file.
25802         * lib/unistr/u8-mblen.c: New file.
25803         * lib/unistr/u16-mblen.c: New file.
25804         * lib/unistr/u32-mblen.c: New file.
25805
25806         * modules/unistr/u8-mbtouc: New file.
25807         * modules/unistr/u16-mbtouc: New file.
25808         * modules/unistr/u32-mbtouc: New file.
25809         * lib/unistr/u8-mbtouc.c: New file.
25810         * lib/unistr/u16-mbtouc.c: New file.
25811         * lib/unistr/u32-mbtouc.c: New file.
25812
25813         * modules/unistr/u8-mbtouc-safe: New file.
25814         * modules/unistr/u16-mbtouc-safe: New file.
25815         * modules/unistr/u32-mbtouc-safe: New file.
25816         * lib/unistr/u8-mbtouc-safe.c: New file.
25817         * lib/unistr/u16-mbtouc-safe.c: New file.
25818         * lib/unistr/u32-mbtouc-safe.c: New file.
25819
25820         * modules/unistr/u8-move: New file.
25821         * modules/unistr/u16-move: New file.
25822         * modules/unistr/u32-move: New file.
25823         * lib/unistr/u8-move.c: New file.
25824         * lib/unistr/u16-move.c: New file.
25825         * lib/unistr/u32-move.c: New file.
25826         * lib/unistr/u-move.h: New file.
25827
25828         * modules/unistr/u8-next: New file.
25829         * modules/unistr/u16-next: New file.
25830         * modules/unistr/u32-next: New file.
25831         * lib/unistr/u8-next.c: New file.
25832         * lib/unistr/u16-next.c: New file.
25833         * lib/unistr/u32-next.c: New file.
25834
25835         * modules/unistr/u8-prev: New file.
25836         * modules/unistr/u16-prev: New file.
25837         * modules/unistr/u32-prev: New file.
25838         * lib/unistr/u8-prev.c: New file.
25839         * lib/unistr/u16-prev.c: New file.
25840         * lib/unistr/u32-prev.c: New file.
25841
25842         * modules/unistr/u8-set: New file.
25843         * modules/unistr/u16-set: New file.
25844         * modules/unistr/u32-set: New file.
25845         * lib/unistr/u8-set.c: New file.
25846         * lib/unistr/u16-set.c: New file.
25847         * lib/unistr/u32-set.c: New file.
25848         * lib/unistr/u-set.h: New file.
25849
25850         * modules/unistr/u8-startswith: New file.
25851         * modules/unistr/u16-startswith: New file.
25852         * modules/unistr/u32-startswith: New file.
25853         * lib/unistr/u8-startswith.c: New file.
25854         * lib/unistr/u16-startswith.c: New file.
25855         * lib/unistr/u32-startswith.c: New file.
25856         * lib/unistr/u-startswith.h: New file.
25857
25858         * modules/unistr/u8-stpcpy: New file.
25859         * modules/unistr/u16-stpcpy: New file.
25860         * modules/unistr/u32-stpcpy: New file.
25861         * lib/unistr/u8-stpcpy.c: New file.
25862         * lib/unistr/u16-stpcpy.c: New file.
25863         * lib/unistr/u32-stpcpy.c: New file.
25864         * lib/unistr/u-stpcpy.h: New file.
25865
25866         * modules/unistr/u8-stpncpy: New file.
25867         * modules/unistr/u16-stpncpy: New file.
25868         * modules/unistr/u32-stpncpy: New file.
25869         * lib/unistr/u8-stpncpy.c: New file.
25870         * lib/unistr/u16-stpncpy.c: New file.
25871         * lib/unistr/u32-stpncpy.c: New file.
25872         * lib/unistr/u-stpncpy.h: New file.
25873
25874         * modules/unistr/u8-strcat: New file.
25875         * modules/unistr/u16-strcat: New file.
25876         * modules/unistr/u32-strcat: New file.
25877         * lib/unistr/u8-strcat.c: New file.
25878         * lib/unistr/u16-strcat.c: New file.
25879         * lib/unistr/u32-strcat.c: New file.
25880         * lib/unistr/u-strcat.h: New file.
25881
25882         * modules/unistr/u8-strchr: New file.
25883         * modules/unistr/u16-strchr: New file.
25884         * modules/unistr/u32-strchr: New file.
25885         * lib/unistr/u8-strchr.c: New file.
25886         * lib/unistr/u16-strchr.c: New file.
25887         * lib/unistr/u32-strchr.c: New file.
25888
25889         * modules/unistr/u8-strcmp: New file.
25890         * modules/unistr/u16-strcmp: New file.
25891         * modules/unistr/u32-strcmp: New file.
25892         * lib/unistr/u8-strcmp.c: New file.
25893         * lib/unistr/u16-strcmp.c: New file.
25894         * lib/unistr/u32-strcmp.c: New file.
25895
25896         * modules/unistr/u8-strcpy: New file.
25897         * modules/unistr/u16-strcpy: New file.
25898         * modules/unistr/u32-strcpy: New file.
25899         * lib/unistr/u8-strcpy.c: New file.
25900         * lib/unistr/u16-strcpy.c: New file.
25901         * lib/unistr/u32-strcpy.c: New file.
25902         * lib/unistr/u-strcpy.h: New file.
25903
25904         * modules/unistr/u8-strcspn: New file.
25905         * modules/unistr/u16-strcspn: New file.
25906         * modules/unistr/u32-strcspn: New file.
25907         * lib/unistr/u8-strcspn.c: New file.
25908         * lib/unistr/u16-strcspn.c: New file.
25909         * lib/unistr/u32-strcspn.c: New file.
25910         * lib/unistr/u-strcspn.h: New file.
25911
25912         * modules/unistr/u8-strdup: New file.
25913         * modules/unistr/u16-strdup: New file.
25914         * modules/unistr/u32-strdup: New file.
25915         * lib/unistr/u8-strdup.c: New file.
25916         * lib/unistr/u16-strdup.c: New file.
25917         * lib/unistr/u32-strdup.c: New file.
25918         * lib/unistr/u-strdup.h: New file.
25919
25920         * modules/unistr/u8-strlen: New file.
25921         * modules/unistr/u16-strlen: New file.
25922         * modules/unistr/u32-strlen: New file.
25923         * lib/unistr/u8-strlen.c: New file.
25924         * lib/unistr/u16-strlen.c: New file.
25925         * lib/unistr/u32-strlen.c: New file.
25926         * lib/unistr/u-strlen.h: New file.
25927
25928         * modules/unistr/u8-strmblen: New file.
25929         * modules/unistr/u16-strmblen: New file.
25930         * modules/unistr/u32-strmblen: New file.
25931         * lib/unistr/u8-strmblen.c: New file.
25932         * lib/unistr/u16-strmblen.c: New file.
25933         * lib/unistr/u32-strmblen.c: New file.
25934
25935         * modules/unistr/u8-strmbtouc: New file.
25936         * modules/unistr/u16-strmbtouc: New file.
25937         * modules/unistr/u32-strmbtouc: New file.
25938         * lib/unistr/u8-strmbtouc.c: New file.
25939         * lib/unistr/u16-strmbtouc.c: New file.
25940         * lib/unistr/u32-strmbtouc.c: New file.
25941
25942         * modules/unistr/u8-strncat: New file.
25943         * modules/unistr/u16-strncat: New file.
25944         * modules/unistr/u32-strncat: New file.
25945         * lib/unistr/u8-strncat.c: New file.
25946         * lib/unistr/u16-strncat.c: New file.
25947         * lib/unistr/u32-strncat.c: New file.
25948         * lib/unistr/u-strncat.h: New file.
25949
25950         * modules/unistr/u8-strncmp: New file.
25951         * modules/unistr/u16-strncmp: New file.
25952         * modules/unistr/u32-strncmp: New file.
25953         * lib/unistr/u8-strncmp.c: New file.
25954         * lib/unistr/u16-strncmp.c: New file.
25955         * lib/unistr/u32-strncmp.c: New file.
25956
25957         * modules/unistr/u8-strncpy: New file.
25958         * modules/unistr/u16-strncpy: New file.
25959         * modules/unistr/u32-strncpy: New file.
25960         * lib/unistr/u8-strncpy.c: New file.
25961         * lib/unistr/u16-strncpy.c: New file.
25962         * lib/unistr/u32-strncpy.c: New file.
25963         * lib/unistr/u-strncpy.h: New file.
25964
25965         * modules/unistr/u8-strnlen: New file.
25966         * modules/unistr/u16-strnlen: New file.
25967         * modules/unistr/u32-strnlen: New file.
25968         * lib/unistr/u8-strnlen.c: New file.
25969         * lib/unistr/u16-strnlen.c: New file.
25970         * lib/unistr/u32-strnlen.c: New file.
25971         * lib/unistr/u-strnlen.h: New file.
25972
25973         * modules/unistr/u8-strpbrk: New file.
25974         * modules/unistr/u16-strpbrk: New file.
25975         * modules/unistr/u32-strpbrk: New file.
25976         * lib/unistr/u8-strpbrk.c: New file.
25977         * lib/unistr/u16-strpbrk.c: New file.
25978         * lib/unistr/u32-strpbrk.c: New file.
25979         * lib/unistr/u-strpbrk.h: New file.
25980
25981         * modules/unistr/u8-strrchr: New file.
25982         * modules/unistr/u16-strrchr: New file.
25983         * modules/unistr/u32-strrchr: New file.
25984         * lib/unistr/u8-strrchr.c: New file.
25985         * lib/unistr/u16-strrchr.c: New file.
25986         * lib/unistr/u32-strrchr.c: New file.
25987
25988         * modules/unistr/u8-strspn: New file.
25989         * modules/unistr/u16-strspn: New file.
25990         * modules/unistr/u32-strspn: New file.
25991         * lib/unistr/u8-strspn.c: New file.
25992         * lib/unistr/u16-strspn.c: New file.
25993         * lib/unistr/u32-strspn.c: New file.
25994         * lib/unistr/u-strspn.h: New file.
25995
25996         * modules/unistr/u8-strstr: New file.
25997         * modules/unistr/u16-strstr: New file.
25998         * modules/unistr/u32-strstr: New file.
25999         * lib/unistr/u8-strstr.c: New file.
26000         * lib/unistr/u16-strstr.c: New file.
26001         * lib/unistr/u32-strstr.c: New file.
26002         * lib/unistr/u-strstr.h: New file.
26003
26004         * modules/unistr/u8-strtok: New file.
26005         * modules/unistr/u16-strtok: New file.
26006         * modules/unistr/u32-strtok: New file.
26007         * lib/unistr/u8-strtok.c: New file.
26008         * lib/unistr/u16-strtok.c: New file.
26009         * lib/unistr/u32-strtok.c: New file.
26010         * lib/unistr/u-strtok.h: New file.
26011
26012         * modules/unistr/u8-uctomb: New file.
26013         * modules/unistr/u16-uctomb: New file.
26014         * modules/unistr/u32-uctomb: New file.
26015         * lib/unistr/u8-uctomb.c: New file.
26016         * lib/unistr/u16-uctomb.c: New file.
26017         * lib/unistr/u32-uctomb.c: New file.
26018
26019         * MODULES.html.sh (Unicode string functions): Add the new modules.
26020
26021 2007-01-08  Bruno Haible  <bruno@clisp.org>
26022
26023         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
26024         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
26025         subdirectories.
26026
26027 2007-01-08  Karl Berry  <karl@gnu.org>
26028
26029         * doc/error.texi: mention that main() fns must set program_name
26030         when progname is used.
26031
26032 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
26033
26034         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
26035         WCTYPE_H is empty, for the benefit of builds from non-distclean
26036         directories.  Problem reported by Eric Blake in
26037         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
26038
26039 2007-01-08  Bruno Haible  <bruno@clisp.org>
26040
26041         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
26042         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
26043         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
26044         PROVIDE_CANONICALIZE_FILENAME_MODE.
26045         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
26046
26047 2007-01-08  Bruno Haible  <bruno@clisp.org>
26048
26049         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
26050         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
26051         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
26052         * lib/fts.c: Likewise.
26053         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
26054
26055 2006-12-25  Bruno Haible  <bruno@clisp.org>
26056
26057         * modules/utf8-ucs4-safe: New file.
26058         * lib/utf8-ucs4-safe.h: New file.
26059         * lib/unistr/utf8-ucs4-safe.c: New file.
26060
26061         * modules/utf16-ucs4-safe: New file.
26062         * lib/utf16-ucs4-safe.h: New file.
26063         * lib/unistr/utf16-ucs4-safe.c: New file.
26064
26065         * MODULES.html.sh (Unicode string functions): Add the new modules.
26066
26067 2007-01-08  Bruno Haible  <bruno@clisp.org>
26068
26069         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
26070         (Depends-on): Add unitypes.
26071         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
26072         (u8_mbtouc_aux): Move out to separate file.
26073         (u8_mbtouc): Use ucs4_t, uint8_t types.
26074         * lib/unistr/utf8-ucs4.c: New file.
26075
26076         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
26077         (Depends-on): Add unitypes.
26078         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
26079         (u16_mbtouc_aux): Move out to separate file.
26080         (u16_mbtouc): Use ucs4_t, uint16_t types.
26081         * lib/unistr/utf16-ucs4.c: New file.
26082
26083         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
26084         (Depends-on): Add unitypes.
26085         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
26086         (u8_uctomb_aux): Move out to separate file.
26087         (u8_uctomb): Use ucs4_t, uint8_t types.
26088         * lib/unistr/ucs4-utf8.c: New file.
26089
26090         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
26091         (Depends-on): Add unitypes.
26092         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
26093         (u16_uctomb_aux): Move out to separate file.
26094         (u16_uctomb): Use ucs4_t, uint16_t types.
26095         * lib/unistr/ucs4-utf16.c: New file.
26096
26097 2006-12-25  Bruno Haible  <bruno@clisp.org>
26098
26099         * modules/unitypes: New file.
26100         * lib/unitypes.h: New file.
26101         * MODULES.html.sh (func_all_modules): New section "Unicode string
26102         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
26103         this section. Add unitypes.
26104
26105 2007-01-08  Bruno Haible  <bruno@clisp.org>
26106
26107         Avoid variable names that conflict with those from libtool.
26108         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
26109         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
26110         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
26111         library_names_spec to acl_library_names_spec, hardcode_* to
26112         acl_hardcode_*.
26113         Reported by Ralf Wildenhues.
26114
26115 2007-01-08  Bruno Haible  <bruno@clisp.org>
26116
26117         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
26118         definition.
26119         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
26120         definition.
26121         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
26122         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
26123         definition.
26124         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
26125         definition.
26126         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
26127         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
26128         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
26129         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
26130         definition.
26131         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
26132         definition.
26133         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
26134         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
26135         GC_USE_<algorithm>.
26136         * lib/gc-libgcrypt.c: Likewise.
26137         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
26138         * modules/gc-arctwo (configure.ac): Likewise.
26139         * modules/gc-des (configure.ac): Likewise.
26140         * modules/gc-hmac-md5 (configure.ac): Likewise.
26141         * modules/gc-hmac-sha1 (configure.ac): Likewise.
26142         * modules/gc-md2 (configure.ac): Likewise.
26143         * modules/gc-md4 (configure.ac): Likewise.
26144         * modules/gc-md5 (configure.ac): Likewise.
26145         * modules/gc-random (configure.ac): Likewise.
26146         * modules/gc-rijndael (configure.ac): Likewise.
26147         * modules/gc-sha1 (configure.ac): Likewise.
26148
26149 2007-01-08  Bruno Haible  <bruno@clisp.org>
26150
26151         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
26152         macro definition.
26153         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
26154         definition.
26155         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
26156         definition.
26157         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
26158         * modules/fcntl-safer (configure.ac): Likewise.
26159         * modules/fopen-safer (configure.ac): Likewise.
26160         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
26161         GNULIB_FWRITEERROR macro definition.
26162
26163 2007-01-08  Bruno Haible  <bruno@clisp.org>
26164
26165         * m4/gnulib-common.m4: New file.
26166         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
26167         (func_get_filelist): Add m4/gnulib-common.m4.
26168
26169 2007-01-08  Bruno Haible  <bruno@clisp.org>
26170
26171         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
26172         command.
26173
26174 2007-01-08  Jim Meyering  <jim@meyering.net>
26175
26176         Use a more robust test for a "can't happen" condition.
26177         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
26178         narrowed the st_size value.  Presuming the "can't happen" condition
26179         is true, that narrowing could conceivably convert an invalid st_size
26180         value into a valid one.  Instead, use a change based on Matthew
26181         Woehlke's original patch.
26182
26183         Slight readability improvement: use an assert-like macro
26184         in place of literal "abort ()" uses.
26185         * lib/fts.c (fts_assert): Define.
26186         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
26187         Use this macro instead of a bare 'abort'.
26188
26189 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
26190
26191         Don't worry about using IRIX 5.3's wctype.h broken definitions;
26192         simply work around them.
26193         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
26194         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
26195         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
26196         declaring.
26197         Don't bother to define as macros, since the standard doesn't require it.
26198         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
26199         longer worry about IRIX 5.3.
26200         (HAVE_WCTYPE_CTMP_BUG): Remove.
26201
26202 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26203
26204         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
26205         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
26206         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
26207         Problems reported by Georg Schwarz for IRIX 5.3.
26208
26209         * gnulib-tool (autoconf_minversion): Take the maximum version number
26210         found, not the minimum.  Problem reported by James Youngman.
26211
26212 2007-01-03  Karl Berry  <karl@gnu.org>
26213
26214         * doc/error.texi: new file, explaining interaction with progname.
26215         * doc/gnulib.texi: include it.  Update copyright.
26216
26217 2007-01-03  Simon Josefsson  <simon@josefsson.org>
26218
26219         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
26220         AC_CANONICAL_HOST, to improve autobuild outputs.
26221
26222 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
26223             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26224
26225         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
26226         sockets, server sockets, and other file descriptors.  Count errors
26227         to compute the return value.  Reorder the code a bit to be easier
26228         to follow.  Don't set event bits that were not requested (except
26229         POLLERR and POLLHUP).
26230
26231 2007-01-01  Bruno Haible  <bruno@clisp.org>
26232
26233         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
26234
26235 2007-01-03  Jim Meyering  <jim@meyering.net>
26236
26237         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
26238
26239 2007-01-02  Bruno Haible  <bruno@clisp.org>
26240
26241         * modules/settime (Include): Require timespec.h.
26242         * modules/nanosleep (Include): Likewise.
26243
26244 2007-01-01  Bruno Haible  <bruno@clisp.org>
26245
26246         * gnulib-tool (func_emit_copyright_notice): Bump year.
26247         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
26248
26249 2007-01-01  Bruno Haible  <bruno@clisp.org>
26250
26251         Improve support for OpenBSD.
26252         * build-aux/config.rpath (libname_spec): Export.
26253         (library_names_spec): New variable. Export.
26254         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
26255         library_names_spec from the config.rpath output. Locate shared library
26256         through the name pattern in library_names_spec.
26257
26258 2007-01-01  Eric Blake  <ebb9@byu.net>
26259
26260         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
26261
26262 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
26263
26264         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
26265         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
26266         assume the C locale, and avoid an "eval" that could cause trouble.
26267         Problem with SORT reported by Bob Proulx.
26268
26269         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
26270         Define.  Trivial patch from Henning Nielsen Lund, originally
26271         sent to bug-grep@gnu.org today.
26272
26273 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26274
26275         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
26276         struct stat.  Problem reported by Henning Nielsen Lund.
26277         * lib/acl.c: Include acl.h first, to check interface.  Don't
26278         bother to include sys/types.h and sys/stat.h again.
26279
26280 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
26281
26282         Import the following change from libc; problem reported by
26283         Sven Verdoolaege.
26284
26285         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
26286
26287         [BZ #1373]
26288         * lib/argp.h: Remove __NTH for __argp_usage inline function.
26289
26290 2006-12-28  Jim Meyering  <jim@meyering.net>
26291
26292         * build-aux/announce-gen: Do not assume that the package
26293         builds any of tar.gz, tar.bz2, and .xdelta files.
26294         Suggestion from Simon Josefsson.
26295
26296 2006-12-28  Simon Josefsson  <simon@josefsson.org>
26297
26298         * modules/announce-gen: New file.
26299
26300 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26301
26302         * lib/mbchar.h: Just include <wctype.h>; the wctype module
26303         handles its gotchas now.
26304         * lib/mbswidth.c: Likewise.
26305         * lib/wcwidth.h: Likewise.
26306         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
26307         and iswcntrl; the wctype module does this stuff now.
26308         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26309         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26310         * modules/mbchar (Depends-on): Add wctype.
26311         * modules/mbswidth (Depends-on): Likewise.
26312         * modules/wcwidth (Depends-on): Likewise.
26313
26314 2006-12-27  Eric Blake  <ebb9@byu.net>
26315
26316         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
26317         module uses more than what <wctype.h> is required to provide.
26318
26319 2006-12-26  Eric Blake  <ebb9@byu.net>
26320
26321         * gnulib-tool (sed_extract_prog): Avoid space-tab.
26322
26323 2006-12-26  Eric Blake  <ebb9@byu.net>
26324
26325         * modules/absolute-header: New module.
26326         * modules/fcntl (Depends-on): Depend on it.
26327         * modules/inttypes (Depends-on): Likewise.
26328         * modules/stdint (Depends-on): Likewise.
26329         * modules/sys_stat (Depends-on): Likewise.
26330         * modules/wctype (Depends-on): Likewise.
26331         * MODULES.html.sh (Support for building libraries and
26332         executables): Document it.
26333
26334 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26335
26336         * gnulib-tool (SED): Remove, undoing previous change.
26337         The problem was that it broke coreutils on Solaris, because
26338         "sed --posix" leaked into a makefile.
26339         (sed): New alias, if 'alias' and GNU sed.
26340
26341 2006-12-24  Jim Meyering  <jim@meyering.net>
26342
26343         Work around an fchownat bug in glibc-2.4:
26344         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
26345         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
26346         in spite of the -P option.
26347         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
26348         New macros.
26349         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
26350         * modules/openat (Files): Add lib/fchownat.c.
26351         * lib/openat.c (fchownat): Don't define here.  Move to...
26352         * lib/fchownat.c: ...this new file.
26353
26354 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26355
26356         Fix bug reported by Bruno Haible in
26357         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
26358         where quotearg.c didn't compile on Mac OS X 10.2 because it
26359         lacks <wchar.h> and wint_t.
26360         * lib/wctype_.h (__wctype_wint_t): New type.
26361         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
26362         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
26363         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
26364         Arg is now of type __wctype_wint_t, not wint_t.
26365         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
26366         substitute HAVE_WINT_T.
26367         * modules/wctype (Files): Add m4/wint_t.m4.
26368         (wctype.h): Substitute HAVE_WINT_T.
26369
26370 2006-12-23  Bruno Haible  <bruno@clisp.org>
26371
26372         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
26373
26374 2006-12-23  Bruno Haible  <bruno@clisp.org>
26375
26376         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
26377         S_ISLNK.
26378         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
26379         mingw.
26380
26381 2006-12-22  Bruno Haible  <bruno@clisp.org>
26382
26383         * lib/copy-file.c: Include acl.h.
26384         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
26385         Close the file descriptors only after being done with copy_acl.
26386         * modules/copy-file (Depends-on): Add acl.
26387
26388 2006-12-22  Bruno Haible  <bruno@clisp.org>
26389
26390         * gnulib-tool (SED): New variable.
26391         Use $SED instead of sed everywhere.
26392
26393 2006-12-22  Bruno Haible  <bruno@clisp.org>
26394
26395         * modules/no-c++: New file.
26396         * m4/no-c++.m4: New file.
26397         * MODULES.html.sh (Support for building libraries and executables):
26398         Add no-c++.
26399
26400 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26401
26402         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
26403         Include <limits.h>, and use its INT_MAX to rewrite the
26404         j loop so that it does not overflow 'int'.  Problem reported by
26405         Ralf Wildenhues in
26406         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
26407         Play it safe by shifting left by 1 rather than multiplying by 2,
26408         as GCC is less likely to optimize this away when the value
26409         is signed (when it assumes overflow leads to undefined behavior).
26410         Also, don't assume time_t uses two's complement.
26411
26412 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
26413
26414         * MODULES.html.sh: New module wctype.
26415         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
26416         * lib/fnmatch.c: Don't bother to include <wchar.h> before
26417         <wctype.h>, since the new wctype module should fix this.
26418         * lib/quotearg.c: Include <wctype.h> unconditionally, since
26419         the wctype module should arrange for it.
26420         * lib/regex_internal.h: Likewise.
26421         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
26422         since the wctype module should handle this now.
26423         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
26424         * modules/fnmatch (Depends-on): Add wctype.
26425         * modules/quotearg (Depends-on): Likewise.
26426         * modules/regex (Depends-on): Likewise.
26427
26428 2006-12-19  Bruno Haible  <bruno@clisp.org>
26429
26430         * lib/strdup.h [C++]: Wrap definitions in extern "C".
26431         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
26432
26433 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26434
26435         * modules/savewd (Depends-on): Fix dependency on fcntl.
26436
26437 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26438
26439         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
26440         conforms to C99, rather than relying on the user's environment
26441         setting of STDINT_H.
26442
26443 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26444         and Eric Blake  <ebb9@byu.net>
26445
26446         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
26447         This is more consistent with the other defines here.
26448         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
26449         Port to z/OS.  Problem reported by Paul Gilmartin.
26450         Change local vars to use gl_ prefix rather than ac_.
26451         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
26452         with other defines.
26453         * modules/double-slash-root: New module.
26454         * modules/dirname (Files): Remove m4/double-slash-root.m4.
26455         (Depends-on): Add double-slash-root.
26456         * MODULES.html.sh (File system functions): Mention new module.
26457
26458 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
26459
26460         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
26461         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
26462         This is for the benefit of gzip, which doesn't do i18n.
26463
26464 2006-12-12  Jim Meyering  <jim@meyering.net>
26465
26466         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
26467         Reported by Andreas Schwab <schwab@suse.de>.
26468
26469 2006-12-12  Bruno Haible  <bruno@clisp.org>
26470
26471         Merge these changes.
26472         2006-09-05  Bruno Haible  <bruno@clisp.org>
26473         * lib/iconvme.c (iconv_string): No need to save and restore errno when
26474         iconv_alloc succeeded.
26475         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
26476         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
26477         test for " && dest " at the end - dest is always != NULL there. Call
26478         iconv with 4xNULL arguments initially, to reset the state. Call iconv
26479         with 2xNULL arguments, also to flush the state storage. Handle the
26480         IRIX iconv behaviour. Realloc the final result, to throw away unused
26481         memory.
26482
26483 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
26484
26485         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
26486         and fchmodat unconditionally, since glibc 2.4 has them.
26487         Problem reported by Arkadiusz Miskiewicz.
26488
26489 2006-12-10  Bruno Haible  <bruno@clisp.org>
26490
26491         * gnulib-tool (func_import): Show the include files only for those
26492         modules that are copied and specified.
26493         Reported by Karl Berry.
26494
26495 2006-12-08  Jim Meyering  <jim@meyering.net>
26496
26497         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
26498         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
26499
26500         * build-aux/announce-gen: Add two new options, both optional:
26501         --bootstrap-tools=TOOL_LIST
26502               a comma-separated list of tools, e.g.,
26503               autoconf,automake,bison,gnulib
26504         --gnulib-snapshot-date=DATE
26505               if gnulib is in the bootstrap tool list,
26506               then report this as the snapshot date.
26507               If not specified, use the current date/time.
26508               If you specify a date here, be sure it's UTC.
26509
26510 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26511
26512         * tests/test-argp-2.sh: Fix test to match actual output.
26513         (func_compare): Fix sed script to be portable.
26514
26515 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
26516
26517         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
26518         workaround for this case.  It is not autoconfigured now; offhand
26519         it's hard to see how to autoconfigure it.
26520
26521 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
26522
26523         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
26524         a directory that is about to be chowned.  Such a directory's
26525         initial file permissions should permit the owner only and this
26526         should not be changed until after the chown, since the group and
26527         other bits would be incorrect if they granted permission before
26528         the chown.
26529
26530         Fix porting problem for iswctype reported by Georg Schwarz in:
26531         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
26532         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
26533         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
26534         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
26535         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
26536
26537 2006-12-03  Jim Meyering  <jim@meyering.net>
26538
26539         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
26540         p->fts_statp may not yet be defined.
26541         (fts_read): Instead, set it in the caller, once p->fts_statp is
26542         sure to be defined, and corresponds to a top-level directory.
26543         This bug made du -x fail.  Here's the coreutils test case:
26544         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
26545         Reported by Mike Frysinger.
26546
26547 2006-12-01  Jim Meyering  <jim@meyering.net>
26548
26549         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
26550         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
26551         Reported by Simon Josefsson.
26552
26553 2006-11-30  Jim Meyering  <jim@meyering.net>
26554
26555         * m4/warning.m4: Use the all-permissive copyright notice
26556         recommended by RMS (rather than LGPL).
26557         * m4/vararrays.m4: Likewise.
26558         * m4/flexmember.m4: Likewise.
26559
26560 2006-11-29  Bruno Haible  <bruno@clisp.org>
26561
26562         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
26563         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
26564         using +=.
26565         Reported by Simon Josefsson <simon@josefsson.org>.
26566
26567 2006-11-28  James Youngman <jay@gnu.org>
26568
26569         * README: Advise users that they might find the bug-gnulib@gnu.org
26570         and autotools-announce@gnu.org mailing lists useful.
26571
26572 2006-11-28  Bruno Haible  <bruno@clisp.org>
26573
26574         * m4/ptrdiff_max.m4: Remove file.
26575
26576 2006-11-21  Bruno Haible  <bruno@clisp.org>
26577
26578         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
26579         _AC_COMPUTE_INT.
26580         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26581         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
26582         _AC_COMPUTE_INT.
26583         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26584         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
26585         _AC_COMPUTE_INT.
26586         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26587
26588 2006-11-28  Jim Meyering  <jim@meyering.net>
26589
26590         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
26591         warning from "gcc -Wshadow" about shadowing the builtin.
26592
26593 2006-11-27  Bruno Haible  <bruno@clisp.org>
26594
26595         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
26596         _AC_COMPUTE_INT.
26597         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26598
26599 2006-11-27  Bruno Haible  <bruno@clisp.org>
26600             Paul Eggert  <eggert@cs.ucla.edu>
26601
26602         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
26603
26604 2006-11-26  Bruno Haible  <bruno@clisp.org>
26605
26606         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
26607         noinst_LTLIBRARIES.
26608
26609 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
26610             Bruno Haible  <bruno@clisp.org>
26611
26612         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
26613         if compiling with "gcc -ansi".
26614
26615 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
26616
26617         Fix some incompatibilities with gcc -ansi -pedantic.
26618         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
26619         if compiling pedantically with GCC, unless it's C99 or later.
26620         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
26621         it mishandles gcc -ansi -pedantic as well.
26622         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
26623         if gcc -pedantic.
26624         * lib/regexec.c (check_node_accept_bytes): Don't use auto
26625         initializers for struct if -pedantic, unless it's C99 or later.
26626
26627 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
26628
26629         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
26630         Don't close an fd more than once. Identical atimes indicate
26631         success, not failure.
26632
26633 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
26634
26635         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
26636
26637 2006-11-23  Jim Meyering  <jim@meyering.net>
26638
26639         * build-aux/announce-gen: New file.  From coreutils.
26640
26641 2006-11-22  Jim Meyering  <jim@meyering.net>
26642
26643         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
26644         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
26645         (fts_read): Use a temporary to narrow the overused st_size member
26646         before using it in a switch statement.  Reported by Matthew Woehlke.
26647
26648         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
26649         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26650
26651 2006-11-20  Bruno Haible  <bruno@clisp.org>
26652
26653         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
26654         changequote instead of pairs of brackets.
26655         Reported by Andreas Schwab <schwab@suse.de>.
26656
26657 2006-11-21  Jim Meyering  <jim@meyering.net>
26658
26659         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
26660         so as to remain compatible with older compilers.
26661         Patch from Michael Deutschmann.
26662
26663 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
26664
26665         * MODULES.html.sh (File system functions): Add openat.
26666
26667         * lib/openat.h (rpl_fstatat): New macro, if
26668         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
26669         (fstatat): Define to rpl_fstatat under the same conditions,
26670         unless COMPILING_FSTATAT.
26671         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
26672         seems to have the bug.
26673         * lib/fstatat.c: New file.
26674         * modules/openat (Files): Add it.
26675
26676 2006-11-20  Bruno Haible  <bruno@clisp.org>
26677
26678         * Makefile: New file.
26679
26680 2006-11-20  Jim Meyering  <jim@meyering.net>
26681
26682         The beginnings of syntax-related checks for gnulib.
26683         * lib/Makefile: New file.
26684         * lib/t-idcache: New script.  Ensure that the two halves of
26685         idcache.c stay in sync.
26686
26687         * lib/idcache.c: Adjust comments in user- and group- portions to
26688         be more accurate, and to be consistent with one another.
26689
26690 2006-11-20  Jim Meyering  <jim@meyering.net>
26691
26692         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
26693         continue using the flexible array member (thus, this module performs
26694         half as many malloc calls), with the addition that...
26695         (getgroup, getuser): Consistently record a non-match via an empty
26696         "name" string, and map an empty string match to a NULL return value.
26697         * modules/idcache (Depends-on): Re-add flexmember.
26698
26699         * lib/idcache.c (getuser): Remove all uses of the register keyword.
26700         (getuidbyname, getgroup, getgidbyname): Likewise.
26701
26702         Use cleaner syntax: NULL rather than 0.
26703         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
26704
26705 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
26706
26707         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
26708         It mishandled the case where the group was missing.
26709         Problem reported by Greg Schafer.
26710         * modules/idcache: Likewise.
26711
26712 2006-11-18  Jim Meyering  <jim@meyering.net>
26713
26714         * check-module (%exempt_header): Add exception for some
26715         conditionally-included headers.
26716
26717         * modules/i-ring (Depends-on): Add verify.
26718         (License): Change to LGPL.
26719
26720 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
26721
26722         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
26723         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
26724         and inttostr.h.  Use snprintf rather than uinttostr, so that
26725         LGPLed code doesn't depend on GPLed.
26726
26727 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26728
26729         * modules/inline (License): Change from GPL to LGPL.
26730
26731 2006-11-17  Jim Meyering  <jim@meyering.net>
26732
26733         * modules/d-type (License): Switch to LGPL.
26734
26735 2006-11-15  Bruno Haible  <bruno@clisp.org>
26736
26737         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
26738
26739 2006-11-15  Eric Blake  <ebb9@byu.net>
26740
26741         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
26742         the module dependency.
26743
26744 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26745             Bruno Haible  <bruno@clisp.org>
26746
26747         * gnulib-tool (func_create_testdir): Add license consistency check.
26748
26749 2006-11-15  Eric Blake  <ebb9@byu.net>
26750
26751         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
26752         random "(cached)" in configure output.
26753
26754 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26755
26756         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
26757         test for conforming inttypes.h is both announced and cached.
26758
26759         * MODULES.html.sh (seen_modules, seen_files): New variables.
26760         (func_module): Rewrite to use a few less gnulib-tool and sed
26761         invocations.  Avoid a couple of quadratic algorithms for ...
26762         (missed_modules, missed_files): ... these, with ...
26763         (func_append, func_tmpdir): ... these new functions, from
26764         gnulib-tool.  Analogously, install traps for cleanup.
26765
26766         * tests/test-gc.c (main): Remove unused variables.
26767         * tests/test-read-file.c: Include stdlib.h, for 'free'.
26768
26769 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
26770
26771         * modules/inttostr (License): Change to LGPL.
26772
26773 2006-11-14  Eric Blake  <ebb9@byu.net>
26774
26775         * modules/tempname (License): Change to LGPL.
26776
26777 2006-11-14  Eric Blake  <ebb9@byu.net>
26778
26779         * doc/functions.texi (Function Portability): *printf functions on
26780         Cygwin now understand all POSIX size specifiers.
26781
26782 2006-11-14  Bruno Haible  <bruno@clisp.org>
26783
26784         * modules/c-ctype (License): Change to LGPL.
26785
26786 2006-11-12  Bruno Haible  <bruno@clisp.org>
26787
26788         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26789         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
26790         for GNOME libraries, for which the include files are installed in
26791         subdirectories of $prefix/include.
26792
26793 2006-11-12  Bruno Haible  <bruno@clisp.org>
26794
26795         * m4/lib-link.m4: Require at least autoconf-2.54.
26796         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
26797         name to underscores for the --with option.
26798
26799 2006-11-13  Bruno Haible  <bruno@clisp.org>
26800
26801         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
26802         the tests directory.
26803         Reported by Ralf Wildenhues.
26804
26805 2006-11-13  Bruno Haible  <bruno@clisp.org>
26806
26807         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
26808         (func_emit_initmacro_end): Undo the override here.
26809         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
26810         Works around the famous automake error in coreutils.
26811
26812 2006-11-13  Eric Blake  <ebb9@byu.net>
26813
26814         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
26815         element, not its node.
26816
26817 2006-11-12  Bruno Haible  <bruno@clisp.org>
26818
26819         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
26820         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
26821
26822 2006-11-12  Bruno Haible  <bruno@clisp.org>
26823
26824         * gnulib-tool: New option --local-symlink.
26825         (func_usage): Document it.
26826         (lsymbolic): New variable.
26827         (func_import, func_create_testdir): If --symlink was not specified,
26828         test whether --local-symlink was specified and the file comes from
26829         the local_gnulib_dir.
26830
26831 2006-11-12  Bruno Haible  <bruno@clisp.org>
26832
26833         * gnulib-tool (func_ln): New function.
26834         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
26835
26836 2006-11-12  Bruno Haible  <bruno@clisp.org>
26837
26838         Finish support for source files in subdirectories.
26839         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
26840         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
26841         AUTOMAKE_OPTIONS.
26842         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
26843
26844 2006-11-12  Bruno Haible  <bruno@clisp.org>
26845
26846         * gnulib-tool (func_get_automake_snippet): Synthesize also an
26847         EXTRA_lib_SOURCES augmentation.
26848         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
26849
26850 2006-11-12  Jim Meyering  <jim@meyering.net>
26851
26852         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
26853         file descriptors.  This also averts a failure on systems with
26854         native openat support when a traversed directory lacks "x" access.
26855         * lib/fts_.h: Include "i-ring.h"
26856         (struct FTS) [fts_fd_ring]: New member.
26857         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
26858         (FCHDIR): Add parentheses.
26859         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
26860         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
26861         When descending, rather than simply closing the previous
26862         fts_cwd_fd value, push that file descriptor onto the ring.
26863         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
26864         (fts_open): Initialize the new fd_ring member.
26865         (fts_close): Clear the ring.
26866         (fts_safe_changedir): When possible, use our new fd_ring to skip
26867         the diropen and fstat and dev/ino comparison that would normally
26868         accompany a virtual `chdir ("..")'.
26869
26870         * modules/fts (Depends-on): Add i-ring.
26871         * modules/i-ring: New module.
26872         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
26873         * m4/i-ring.m4: New file.
26874
26875 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26876
26877         * gnulib-tool (func_create_testdir): Fix replacement of
26878         `build-aux' in configure.ac.  Run autotools in gltests
26879         subdirectory.
26880         (func_create_testdir, func_create_megatestdir, test): There is
26881         no need for '--force' in most autotool invocations in a new
26882         tree.  Actually fail the whole test if any of the tools, or the
26883         configure or make stages fail.
26884
26885         Sync from Automake.
26886         * build-aux/gnupload: Revert last change.  Add pointer to upload
26887         instructions of the GNU Maintenance Instructions.
26888         Suggestion by Karl Berry.
26889
26890 2006-11-10  Jim Meyering  <jim@meyering.net>
26891
26892         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
26893
26894 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
26895
26896         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
26897         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
26898         (bind_textdomain_codeset) [! ENABLE_NLS]:
26899         Evaluate all the arguments.  That way, callers get compatible behavior
26900         if the arguments have side effects.  Also, it avoids some GCC
26901         diagnostics in some cases; Joel E. Denny reported problems when Bison
26902         was configured with --enable-gcc-warnigs.
26903
26904 2006-11-10  Jim Meyering  <jim@meyering.net>
26905
26906         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
26907         relevant options in CFLAGS (like -O, -fno-inline) are taken into
26908         account.
26909
26910 2006-11-10  Jim Meyering  <jim@meyering.net>
26911
26912         * modules/inline: New file/module.
26913         * modules/xalloc (Files): Remove m4/inline.m4.
26914         (Depends-on): Add inline, instead.
26915         * modules/oset: Likewise.
26916         * modules/list: Likewise.
26917
26918 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
26919
26920         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
26921         Problem reported by Matthew Woehlke.
26922
26923 2006-11-09  Bruno Haible  <bruno@clisp.org>
26924
26925         * lib/tempname.c (gen_tempname): Remove variant that invokes
26926         __gen_tempname.
26927         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
26928         __gen_tempname.
26929
26930 2006-11-08  Bruno Haible  <bruno@clisp.org>
26931
26932         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
26933         to 'yes' instead of 'cross-compiling'.
26934
26935 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
26936
26937         * lib/quotearg.h (quotearg_free): New decl.
26938         * lib/quotearg.c (quotearg_free): New function.
26939         (slot0, nslots, slotvec0, slotvec):
26940         Now file-scope so that quotearg_free can get at them.
26941
26942 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26943
26944         Sync from Automake.
26945         * build-aux/gnupload: Add missing 'gnu' to example URL.
26946         Report by Karl Berry.
26947
26948 2006-11-08  Bruno Haible  <bruno@clisp.org>
26949
26950         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
26951         Suggested by Paul Eggert.
26952
26953 2006-11-08  Jim Meyering  <jim@meyering.net>
26954
26955         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
26956         It's already included if !_LIBC.
26957         (fts_safe_changedir): Add a comment.
26958
26959 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
26960
26961         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
26962         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
26963         Matthew Woehlke.
26964
26965         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
26966         definitions up, to avoid colliding with change below.
26967         (static_inline) [HAVE_INLINE]: New macro.
26968         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
26969         Provide extern decls when !HAVE_INLINE.  Do not define unless
26970         static_inline is defined, either by us or by xmalloc.c.  Use
26971         static_inline rather than static inline.
26972         (XCALLOC): Optimize sizeof(T) = 1 case.
26973         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
26974
26975 2006-11-07  Bruno Haible  <bruno@clisp.org>
26976
26977         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
26978         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
26979         AC_C_INLINE.
26980         * modules/xalloc (Files): Add m4/inline.m4.
26981
26982 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26983
26984         * README: Fix typo.
26985         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
26986         (Miscellanous Notes): ...from this.
26987
26988 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
26989
26990         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
26991         Mention that offsetof should be used instead of sizeof.
26992         From Bruno Haible.
26993
26994 2006-11-07  Bruno Haible  <bruno@clisp.org>
26995
26996         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
26997
26998 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
26999
27000         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
27001         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
27002         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
27003         (gl_tree_add_before, gl_tree_add_after):
27004         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
27005         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
27006         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
27007         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
27008         (gl_linked_add_after, gl_linked_add_at): Likewise.
27009         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
27010         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
27011         (gl_tree_add_before, gl_tree_add_after): Likewise.
27012         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
27013         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
27014         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
27015
27016 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27017
27018         * lib/gl_oset.h: Use C comment style, not C++ comment style.
27019
27020 2006-11-06  Bruno Haible  <bruno@clisp.org>
27021
27022         * m4/inline.m4: New file.
27023         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
27024         * modules/list (Files): Add m4/inline.m4.
27025         * modules/oset (Files): Likewise.
27026
27027 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
27028
27029         * lib/idcache.c: Include <stddef.h>, for offsetof.
27030         (struct userid.name): Change from char * to a flexible array member.
27031         All uses changed.
27032         * modules/idcache (Depends-on): Add flexmember.
27033
27034         * MODULES.html.sh (Core language properties): New module flexmember.
27035         * modules/flexmember, m4/flexmember.m4: New files.
27036
27037         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
27038         inline functions that are identical with the old xnmalloc_inline,
27039         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
27040         that we can avoid some unnecessary integer multiplications and
27041         divisions in the common case where the element size is known at
27042         compile time.
27043         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
27044         needed.
27045         (xnboundedmalloc): Remove.
27046         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
27047         arguments, for consistency with rest of this header.
27048         (xcharalloc): Rewrite using XNMALLOC.
27049         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
27050         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
27051         versions have been moved to lib/xalloc.h and renamed to be the
27052         non-*_inline versions.
27053         (xmalloc, xrealloc): Implement without reference to the xnmalloc
27054         and xnrealloc functions, since those functions are now inline and
27055         now call us.
27056         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
27057         renaming described above.
27058         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
27059         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
27060         captures the dependency in AC_C_INLINE.
27061
27062         New module canonicalize-lgpl, proposed by Charles Wilson in
27063         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
27064         with a few small changes afterwards.
27065         * MODULES.html.sh (File system functions): New module
27066         canonicalize-lgpl.
27067         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
27068         and canonicalize_file_name.
27069         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
27070         * modules/canonicalize-lgpl: New files.
27071
27072 2006-11-05  Bruno Haible  <bruno@clisp.org>
27073
27074         * gnulib-tool (func_import, func_create_testdir): Create directories
27075         also for files in subdirectories of lib/.
27076
27077 2006-11-05  Bruno Haible  <bruno@clisp.org>
27078
27079         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
27080         ANSI C compliant.
27081
27082 2006-11-03  Bruno Haible  <bruno@clisp.org>
27083
27084         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
27085         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
27086         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
27087         (xnboundedmalloc): New inline function.
27088         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
27089         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
27090         xmalloc.
27091         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
27092         xmalloc.
27093         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
27094         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
27095         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
27096         xmalloc.
27097         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
27098         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
27099         xmalloc.
27100         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
27101         gl_tree_add_after): Use XMALLOC instead of xmalloc.
27102         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
27103         xmalloc.
27104         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
27105         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
27106         gl_tree_add_after): Use XMALLOC instead of xmalloc.
27107         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
27108         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
27109         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
27110         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
27111
27112 2006-11-03  Bruno Haible  <bruno@clisp.org>
27113
27114         * lib/c-ctype.h [C++]: Define functions without name mangling.
27115         * lib/fwriteerror.h [C++]: Likewise.
27116         * lib/gcd.h [C++]: Likewise.
27117         * lib/linebreak.h [C++]: Likewise.
27118
27119 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
27120
27121         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
27122         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
27123         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
27124         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
27125         Check for functions and headers just once.
27126         Check for declaration of canonicalize_file_name.
27127         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
27128
27129 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
27130
27131         * gnulib-tool (func_import): Fix typo in actioncmd.
27132
27133 2006-11-02  Bruno Haible  <bruno@clisp.org>
27134
27135         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
27136         newline sequence in the Makefile.am snippet as a space, like "make"
27137         does.
27138         Reported by Roger Persson <perrog@gmail.com>.
27139
27140 2006-11-01  Bruno Haible  <bruno@clisp.org>
27141
27142         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
27143         already declared in <string.h>.
27144         * lib/strcase.h (strncasecmp): Don't declare it if yes.
27145
27146 2006-11-01  Bruno Haible  <bruno@clisp.org>
27147
27148         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
27149         * lib/strcase.h: Include <string.h>.
27150         (strcasecmp): Define to rpl_strcasecmp here.
27151
27152 2006-11-01  Bruno Haible  <bruno@clisp.org>
27153
27154         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
27155
27156 2006-11-01  Eric Blake  <ebb9@byu.net>
27157
27158         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
27159
27160         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
27161
27162 2006-10-29  Bruno Haible  <bruno@clisp.org>
27163
27164         Make it compile in C++ mode.
27165         * lib/full-write.c (full_rw): Add a cast.
27166
27167 2006-11-01  Bruno Haible  <bruno@clisp.org>
27168
27169         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
27170         be POSIX compliant.
27171         Reported by Roger Persson <perrog@gmail.com>.
27172
27173 2006-11-01  Eric Blake  <ebb9@byu.net>
27174
27175         * lib/getopt_.h: Fix comments.
27176
27177 2006-10-31  Eric Blake  <ebb9@byu.net>
27178
27179         * modules/tmpdir (Depends-on): Add sys_stat.
27180         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
27181         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
27182         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
27183         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
27184         tempname.
27185
27186 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
27187
27188         Avoid some C++ diagnostics reported by Bruno Haible.
27189         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
27190         xmalloc.
27191         (quotearg_alloc): Use xcharalloc rather than xmalloc.
27192         (struct slotvec): Move to top level.
27193         (quotearg_n_options): Rewrite to avoid xmalloc.
27194         * lib/xalloc.h (xcharalloc): New function.
27195         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
27196         [defined __cplusplus]: Add function template that provides result
27197         type propagation.  This part of the change is from Bruno Haible.
27198
27199 2006-10-29  Bruno Haible  <bruno@clisp.org>
27200
27201         Make it compile in C++ mode.
27202         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
27203         * lib/strnlen1.c (strnlen1): Cast memchr result.
27204         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
27205         * lib/clean-temp.c (string_equals, string_hash): Add casts.
27206         (create_temp_dir): Rename local variable 'template'.
27207         (compile_csharp_using_sscli): Add cast.
27208         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
27209         * lib/findprog.c (find_in_path): Likewise.
27210         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
27211         * lib/wait-process.c (register_slave_subprocess): Likewise.
27212
27213 2006-10-22  Bruno Haible  <bruno@clisp.org>
27214
27215         * modules/tsearch: New file.
27216         * lib/tsearch.h: New file.
27217         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
27218         * m4/tsearch.m4: New file.
27219         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
27220
27221 2006-10-29  Eric Blake  <ebb9@byu.net>
27222
27223         * lib/arcfour.c: Assume config.h.
27224         * lib/arctwo.c: Likewise.
27225         * lib/base64.c: Likewise.
27226         * lib/check-version.c: Likewise.
27227         * lib/crc.c: Likewise.
27228         * lib/des.c: Likewise.
27229         * lib/gc-gnulib.c: Likewise.
27230         * lib/gc-libgcrypt.c: Likewise.
27231         * lib/gc-pbkdf2-sha1.c: Likewise.
27232         * lib/getaddrinfo.c: Likewise.
27233         * lib/getdelim.c: Likewise.
27234         * lib/getline.c: Likewise.
27235         * lib/hmac-md5.c: Likewise.
27236         * lib/hmac-sha1.c: Likewise.
27237         * lib/iconvme.c: Likewise.
27238         * lib/md2.c: Likewise.
27239         * lib/md4.c: Likewise.
27240         * lib/memxor.c: Likewise.
27241         * lib/read-file.c: Likewise.
27242         * lib/readline.c: Likewise.
27243         * lib/rijndael-alg-fst.c: Likewise.
27244         * lib/rijndael-api-fst.c: Likewise.
27245         * lib/xgetdomainname.c: Likewise.
27246
27247 2006-10-28  Eric Blake  <ebb9@byu.net>
27248
27249         * lib/xstrndup.c: Assume config.h.
27250
27251 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
27252
27253         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
27254         stat-macros.h is now for our own macros, whereas stat_h is for
27255         macros in the <sys/stat.h> name space.
27256         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
27257         (STAT_MACROS_H): Remove.
27258         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
27259         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
27260         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
27261         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
27262         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
27263         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
27264         Move these macros to ...
27265         * lib/stat_.h: here.  Don't include stat-macros.h.
27266         * lib/canonicalize.c: Don't include stat-macros.h.
27267         * lib/chown.c: Likewise.
27268         * lib/euidaccess.c: Likewise.
27269         * lib/file-type.c: Likewise.
27270         * lib/filemode.c: Likewise.
27271         * lib/glob.c: Likewise.
27272         * lib/isapipe.c: Likewise.
27273         * lib/lchown.c: Likewise.
27274         * lib/lstat.c: Likewise.
27275         * lib/mkdir-p.c: Likewise.
27276         * lib/rmdir.c: Likewise.
27277         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
27278         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
27279         unless mkdir isn't declared, to speed up 'configure'.
27280         Always create sys/stat.h, since it's unlikely any real sys/stat.h
27281         would define all the S_* symbols.
27282         * modules/canonicalize (Depends-on):
27283         Depend on sys_stat, not stat-macros.
27284         * modules/chown: Likewise.
27285         * modules/euidaccess: Likewise.
27286         * modules/filemode: Likewise.
27287         * modules/file-type: Likewise.
27288         * modules/glob: Likewise.
27289         * modules/isapipe: Likewise.
27290         * modules/lchown: Likewise.
27291         * modules/lstat: Likewise.
27292         * modules/mkancesdirs: Likewise.
27293         * modules/rmdir: Likewise.
27294         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
27295         * modules/modechange: Likewise.
27296         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
27297         (configure.ac): Remove gl_STAT_MACROS.
27298         * modules/sys_stat (Depends-on): Remove stat-macros.
27299
27300 2006-10-27  Bruno Haible  <bruno@clisp.org>
27301
27302         * m4/signed.m4: Remove file.
27303         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
27304         invocation.
27305         * modules/vasnprintf (Files): Remove m4/signed.m4.
27306
27307 2006-10-27  Bruno Haible  <bruno@clisp.org>
27308
27309         Update to GNU gettext 0.16.
27310         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
27311         m4/inttypes-h.m4, m4/signed.m4.
27312         * m4/gettext.m4: Update to GNU gettext 0.16.
27313         * m4/intl.m4: New file, from GNU gettext.
27314         * m4/intldir.m4: New file, from GNU gettext.
27315         * config/srclist.txt: Update
27316
27317 2006-10-27  Eric Blake  <ebb9@byu.net>
27318
27319         * MODULES.html.sh: Document tempname.
27320         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
27321         dependencies.
27322         (Files): Move lib/tempname.c...
27323         * modules/tempname: ...to this new module.
27324         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
27325         (gl_PREREQ_TEMPNAME): Move...
27326         * m4/tempname.m4: ...to this new file.
27327         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
27328         * modules/sys_stat (Depends-on): Add stat-macros.
27329         * lib/stat_.h (includes): Pick up stat macros.
27330         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
27331         if stat macros are broken.
27332         * lib/tempname.c (includes): No need to include "stat-macros.h".
27333         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
27334         (direxists, __path_search) [!_LIBC]: Don't compile these in
27335         gnulib; the tmpdir module covers that.
27336         * lib/tempname.h: New file.
27337
27338 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27339
27340         * COPYING: Explain how gnulib-tool converts licence headers.
27341         Almost all wording by Eric Blake.
27342
27343 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
27344
27345         * lib/mbchar.h (is_basic_table): Make read-only.
27346         * lib/mbchar.c (is_basic_table): Likewise.
27347         Reported by John Darrington.
27348
27349 2006-10-25  Bruno Haible  <bruno@clisp.org>
27350
27351         * lib/progname.h (set_program_name): Undefine before defining.
27352
27353 2006-10-25  Bruno Haible  <bruno@clisp.org>
27354
27355         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
27356         false for non-gcc C++ compilers.
27357         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
27358
27359 2006-10-24  Bruno Haible  <bruno@clisp.org>
27360
27361         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
27362         iconv implementations like Irix iconv.
27363
27364 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27365
27366         * modules/vararrays: New file.
27367         * m4/vararrays.m4: New file, taken from diffutils.
27368         * MODULES.html.sh: New module vararrays.
27369
27370 2006-10-24  Karl Berry  <karl@gnu.org>
27371
27372         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
27373         Don't call GNU Unix.
27374
27375 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27376
27377         * users.txt: Add Libtool.
27378
27379         Sync from Libtool:
27380
27381         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27382
27383         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
27384         to gnulib's policy of including config.h unconditionally.
27385
27386 2006-10-24  Bruno Haible  <bruno@clisp.org>
27387
27388         * modules/wcwidth (Files): Add m4/wint_t.m4.
27389         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
27390         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
27391
27392 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27393
27394         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
27395         to pacify GCC with some -W flags enabled.  Problem reported by
27396         Bruno Haible.
27397
27398 2006-10-24  Jim Meyering  <jim@meyering.net>
27399
27400         * MODULES.html.sh: Remove uinttostr.  It's not a module.
27401         Reported by Karl Berry.
27402
27403 2006-10-23  Bruno Haible  <bruno@clisp.org>
27404
27405         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
27406
27407 2006-10-24  Bruno Haible  <bruno@clisp.org>
27408
27409         * lib/gl_list.h: Use C comment style, not C++ comment style.
27410
27411 2006-10-23  Eric Blake  <ebb9@byu.net>
27412
27413         * lib/getaddrinfo.c (includes): Add missing include.
27414
27415 2006-10-23  Bruno Haible  <bruno@clisp.org>
27416             Paul Eggert  <eggert@cs.ucla.edu>
27417
27418         Ability to rename obstack_free.
27419         * lib/obstack.h (__obstack_free): New macro. Declare instead of
27420         obstack_free.
27421         (obstack_free): Invoke the __obstack_free macro.
27422         * lib/obstack.c (obstack_free): Use __obstack_free macro.
27423
27424 2006-10-23  Bruno Haible  <bruno@clisp.org>
27425             Paul Eggert  <eggert@cs.ucla.edu>
27426
27427         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
27428         __argc, __argv from the declaration. (They are defined as macros on
27429         mingw.)
27430
27431 2006-10-22  Bruno Haible  <bruno@clisp.org>
27432
27433         * doc/gnulib-intro.texi: New file.
27434         * doc/gnulib.texi: Include it.
27435
27436 2006-10-21  Bruno Haible  <bruno@clisp.org>
27437
27438         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
27439         "Introduction", "Miscellanous Notes", "Particular Modules".
27440
27441 2006-10-21  Bruno Haible  <bruno@clisp.org>
27442
27443         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27444         Change mostlyclean-local rule to avoid sh syntax error from bash
27445         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
27446
27447 2006-10-23  Jim Meyering  <jim@meyering.net>
27448
27449         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
27450         in place of snprintf.
27451
27452         * modules/inttostr (Files): Add lib/uinttostr.c.
27453         * lib/uinttostr.c (inttostr): New file/function.
27454         * lib/inttostr.h (uinttostr): Declare.
27455         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
27456         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
27457         Add uinttostr.
27458         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
27459
27460 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
27461
27462         * lib/canonicalize.c (ELOOP): Define if not already defined.
27463         Problem reported by Bruno Haible in
27464         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
27465
27466 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
27467
27468         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
27469         Problem reported by Perry Smith and Ville Laurikari.
27470
27471         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
27472         uses.
27473
27474 2006-10-19  Bruno Haible  <bruno@clisp.org>
27475
27476         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
27477         for mingw.
27478
27479 2006-10-19  Bruno Haible  <bruno@clisp.org>
27480
27481         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
27482         Needed for mingw.
27483
27484 2006-10-19  Bruno Haible  <bruno@clisp.org>
27485
27486         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
27487
27488 2006-10-19  Bruno Haible  <bruno@clisp.org>
27489
27490         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
27491         it.
27492
27493 2006-10-19  Bruno Haible  <bruno@clisp.org>
27494
27495         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
27496         invocation.
27497
27498 2006-10-19  Bruno Haible  <bruno@clisp.org>
27499
27500         * gnulib-tool (func_create_testdir): Don't include ftruncate and
27501         mountlist by default.
27502
27503 2006-10-16  Bruno Haible  <bruno@clisp.org>
27504
27505         * lib/c-strstr.c: Include c-strstr.h.
27506
27507 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
27508
27509         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
27510         in a slash.
27511
27512 2006-10-18  Bruno Haible  <bruno@clisp.org>
27513
27514         * lib/lock.h [C++]: Wrap definitions in extern "C".
27515
27516 2006-10-18  Bruno Haible  <bruno@clisp.org>
27517
27518         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
27519         gl_LIBOBJS list.
27520
27521 2006-10-18  Bruno Haible  <bruno@clisp.org>
27522
27523         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
27524
27525 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
27526
27527         * lib/xstrtol.h: Include gettext.h.
27528         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
27529         Problem reported by Eric Blake.
27530         * modules/xstrtol (Depends-on): Add gettext-h.
27531
27532 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
27533
27534         * lib/strftime.c (advance): New macro.
27535         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
27536         incomplete type, so you can't add 0 to it.  Problem and patch
27537         reported by Eelco Dolstra for dietlibc.
27538
27539 2006-10-18  Jim Meyering  <jim@meyering.net>
27540
27541         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
27542         type for a local, and rename it: s/up/user_proc/.
27543
27544 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
27545
27546         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
27547         READ_UTMP_USER_PROCESS.
27548         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
27549
27550 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
27551
27552         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
27553         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
27554
27555 2006-10-17  Eric Blake  <ebb9@byu.net>
27556
27557         * lib/sigprocmask.c (sigprocmask): Fix typo.
27558
27559         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
27560
27561         * modules/clean-temp (Makefile.am): Don't add to make output...
27562         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
27563         config.h.
27564
27565 2006-10-17  Bruno Haible  <bruno@clisp.org>
27566
27567         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
27568         differently if DEFAULT_TEXT_DOMAIN is set.
27569
27570 2006-10-16  Bruno Haible  <bruno@clisp.org>
27571
27572         * lib/clean-temp.c: Include fwriteerror.h.
27573
27574 2006-10-16  Bruno Haible  <bruno@clisp.org>
27575
27576         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
27577
27578 2006-10-16  Bruno Haible  <bruno@clisp.org>
27579
27580         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
27581         * lib/sigprocmask.h: Include <sys/types.h>.
27582         (sigset_t): Use the system's definition if present.
27583
27584 2006-10-17  Eric Blake  <ebb9@byu.net>
27585
27586         * lib/xvasprintf.c (includes): Assume config.h.
27587         * lib/xasprintf.c (includes): Likewise.
27588
27589 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
27590
27591         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
27592         at least as wide as intmax_t.
27593
27594 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
27595
27596         (Imported from Automake.)
27597         * build-aux/gnupload: Update to version 1.1 of directive file.
27598
27599 2006-10-16  Eric Blake  <ebb9@byu.net>
27600
27601         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
27602         match Automake 1.10a.
27603
27604 2006-10-14  Bruno Haible  <bruno@clisp.org>
27605
27606         * modules/sigprocmask: New file.
27607         * lib/sigprocmask.h: New file.
27608         * lib/sigprocmask.c: New file.
27609         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
27610         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
27611         request sigprocmask.o.
27612         (gl_PREREQ_SIGPROCMASK): New macro.
27613         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
27614         (Depends-on): Add sigprocmask.
27615         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
27616         gt_SIGNALBLOCKING. Test for 'raise' only once.
27617         * lib/fatal-signal.c: Include sigprocmask.h.
27618         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
27619         unblock_fatal_signals): Define always.
27620         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27621         sigprocmask.
27622
27623 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
27624
27625         Sync from Automake.
27626         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
27627         which incorrectly sets the mode of an existing destination
27628         directory.  In some cases the unpatched install-sh could do the
27629         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
27630         system.  We hope this is rare in practice, but it's clearly worth
27631         fixing.  Problem reported by Alex Unleashed in
27632         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
27633         Also, don't bother to check for -m bugs unless we're using -m;
27634         suggested by Stepan Kasal.
27635
27636 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27637
27638         Sync from Automake.
27639         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
27640         `-c' flag, so they appear at the same position as in %FASTDEP%
27641         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
27642         which ignores unknown options only after the first non-option.
27643         Bug report against M4 by Nelson H. F. Beebe.
27644
27645 2006-10-13  Jim Meyering  <jim@meyering.net>
27646
27647         Fix a bug in yesterday's change.
27648         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
27649         p->fts_statp->st_dev would be used uninitialized.
27650         Ensures that we always call fts_stat on the very first entry.
27651         Miklos Szeredi reported that find -xdev stopped working.
27652
27653 2006-10-12  Bruno Haible  <bruno@clisp.org>
27654
27655         * gnulib-tool (func_get_automake_snippet): Append an automatically
27656         computed EXTRA_DIST augmentation.
27657         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
27658         * modules/alloca-opt (Makefile.am): Likewise.
27659         * modules/allocsa (Makefile.am): Likewise.
27660         * modules/arcfour (Makefile.am): Likewise.
27661         * modules/arctwo (Makefile.am): Likewise.
27662         * modules/argmatch (Makefile.am): Likewise.
27663         * modules/argz (Makefile.am): Likewise.
27664         * modules/atexit (Makefile.am): Likewise.
27665         * modules/backupfile (Makefile.am): Likewise.
27666         * modules/byteswap (Makefile.am): Likewise.
27667         * modules/c-strtod (Makefile.am): Likewise.
27668         * modules/c-strtold (Makefile.am): Likewise.
27669         * modules/calloc (Makefile.am): Likewise.
27670         * modules/canon-host (Makefile.am): Likewise.
27671         * modules/canonicalize (Makefile.am): Likewise.
27672         * modules/chdir-long (Makefile.am): Likewise.
27673         * modules/chdir-safer (Makefile.am): Likewise.
27674         * modules/check-version (Makefile.am): Likewise.
27675         * modules/chown (Makefile.am): Likewise.
27676         * modules/cloexec (Makefile.am): Likewise.
27677         * modules/close-stream (Makefile.am): Likewise.
27678         * modules/closeout (Makefile.am): Likewise.
27679         * modules/crc (Makefile.am): Likewise.
27680         * modules/csharpexec (Makefile.am): Likewise.
27681         * modules/cycle-check (Makefile.am): Likewise.
27682         * modules/des (Makefile.am): Likewise.
27683         * modules/dev-ino (Makefile.am): Likewise.
27684         * modules/dirfd (Makefile.am): Likewise.
27685         * modules/dirname (Makefile.am): Likewise.
27686         * modules/dup2 (Makefile.am): Likewise.
27687         * modules/eealloc (Makefile.am): Likewise.
27688         * modules/error (Makefile.am): Likewise.
27689         * modules/euidaccess (Makefile.am): Likewise.
27690         * modules/exclude (Makefile.am): Likewise.
27691         * modules/exitfail (Makefile.am): Likewise.
27692         * modules/fcntl-safer (Makefile.am): Likewise.
27693         * modules/fcntl (Makefile.am): Likewise.
27694         * modules/file-type (Makefile.am): Likewise.
27695         * modules/fileblocks (Makefile.am): Likewise.
27696         * modules/filemode (Makefile.am): Likewise.
27697         * modules/filenamecat (Makefile.am): Likewise.
27698         * modules/fnmatch (Makefile.am): Likewise.
27699         * modules/fopen-safer (Makefile.am): Likewise.
27700         * modules/fpending (Makefile.am): Likewise.
27701         * modules/fprintftime (Makefile.am): Likewise.
27702         * modules/free (Makefile.am): Likewise.
27703         * modules/fsusage (Makefile.am): Likewise.
27704         * modules/ftruncate (Makefile.am): Likewise.
27705         * modules/fts (Makefile.am): Likewise.
27706         * modules/gc-arcfour (Makefile.am): Likewise.
27707         * modules/gc-des (Makefile.am): Likewise.
27708         * modules/gc-hmac-md5 (Makefile.am): Likewise.
27709         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
27710         * modules/gc-md4 (Makefile.am): Likewise.
27711         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
27712         * modules/gc-sha1 (Makefile.am): Likewise.
27713         * modules/gc (Makefile.am): Likewise.
27714         * modules/getaddrinfo (Makefile.am): Likewise.
27715         * modules/getcwd (Makefile.am): Likewise.
27716         * modules/getdelim (Makefile.am): Likewise.
27717         * modules/getdomainname (Makefile.am): Likewise.
27718         * modules/getgroups (Makefile.am): Likewise.
27719         * modules/gethostname (Makefile.am): Likewise.
27720         * modules/gethrxtime (Makefile.am): Likewise.
27721         * modules/getline (Makefile.am): Likewise.
27722         * modules/getloadavg (Makefile.am): Likewise.
27723         * modules/getlogin_r (Makefile.am): Likewise.
27724         * modules/getndelim2 (Makefile.am): Likewise.
27725         * modules/getopt (Makefile.am): Likewise.
27726         * modules/getpagesize (Makefile.am): Likewise.
27727         * modules/getpass-gnu (Makefile.am): Likewise.
27728         * modules/getpass (Makefile.am): Likewise.
27729         * modules/getsubopt (Makefile.am): Likewise.
27730         * modules/gettime (Makefile.am): Likewise.
27731         * modules/gettimeofday (Makefile.am): Likewise.
27732         * modules/getugroups (Makefile.am): Likewise.
27733         * modules/getusershell (Makefile.am): Likewise.
27734         * modules/glob (Makefile.am): Likewise.
27735         * modules/group-member (Makefile.am): Likewise.
27736         * modules/hard-locale (Makefile.am): Likewise.
27737         * modules/hash (Makefile.am): Likewise.
27738         * modules/hmac-md5 (Makefile.am): Likewise.
27739         * modules/hmac-sha1 (Makefile.am): Likewise.
27740         * modules/human (Makefile.am): Likewise.
27741         * modules/idcache (Makefile.am): Likewise.
27742         * modules/imaxabs (Makefile.am): Likewise.
27743         * modules/imaxdiv (Makefile.am): Likewise.
27744         * modules/inet_ntop (Makefile.am): Likewise.
27745         * modules/inet_pton (Makefile.am): Likewise.
27746         * modules/intprops (Makefile.am): Likewise.
27747         * modules/inttostr (Makefile.am): Likewise.
27748         * modules/inttypes (Makefile.am): Likewise.
27749         * modules/isapipe (Makefile.am): Likewise.
27750         * modules/javaversion (Makefile.am): Likewise.
27751         * modules/lchmod (Makefile.am): Likewise.
27752         * modules/lchown (Makefile.am): Likewise.
27753         * modules/localcharset (Makefile.am): Likewise.
27754         * modules/long-options (Makefile.am): Likewise.
27755         * modules/lstat (Makefile.am): Likewise.
27756         * modules/malloc (Makefile.am): Likewise.
27757         * modules/mathl (Makefile.am): Likewise.
27758         * modules/mbchar (Makefile.am): Likewise.
27759         * modules/md2 (Makefile.am): Likewise.
27760         * modules/md4 (Makefile.am): Likewise.
27761         * modules/md5 (Makefile.am): Likewise.
27762         * modules/memcasecmp (Makefile.am): Likewise.
27763         * modules/memchr (Makefile.am): Likewise.
27764         * modules/memcmp (Makefile.am): Likewise.
27765         * modules/memcoll (Makefile.am): Likewise.
27766         * modules/memcpy (Makefile.am): Likewise.
27767         * modules/memmem (Makefile.am): Likewise.
27768         * modules/memmove (Makefile.am): Likewise.
27769         * modules/mempcpy (Makefile.am): Likewise.
27770         * modules/memrchr (Makefile.am): Likewise.
27771         * modules/memset (Makefile.am): Likewise.
27772         * modules/memxor (Makefile.am): Likewise.
27773         * modules/mkancesdirs (Makefile.am): Likewise.
27774         * modules/mkdir-p (Makefile.am): Likewise.
27775         * modules/mkdir (Makefile.am): Likewise.
27776         * modules/mkdtemp (Makefile.am): Likewise.
27777         * modules/mkstemp (Makefile.am): Likewise.
27778         * modules/mktime (Makefile.am): Likewise.
27779         * modules/modechange (Makefile.am): Likewise.
27780         * modules/mountlist (Makefile.am): Likewise.
27781         * modules/nanosleep (Makefile.am): Likewise.
27782         * modules/obstack (Makefile.am): Likewise.
27783         * modules/openat (Makefile.am): Likewise.
27784         * modules/pagealign_alloc (Makefile.am): Likewise.
27785         * modules/pathmax (Makefile.am): Likewise.
27786         * modules/physmem (Makefile.am): Likewise.
27787         * modules/poll (Makefile.am): Likewise.
27788         * modules/posixtm (Makefile.am): Likewise.
27789         * modules/posixver (Makefile.am): Likewise.
27790         * modules/putenv (Makefile.am): Likewise.
27791         * modules/quote (Makefile.am): Likewise.
27792         * modules/quotearg (Makefile.am): Likewise.
27793         * modules/raise (Makefile.am): Likewise.
27794         * modules/read-file (Makefile.am): Likewise.
27795         * modules/readline (Makefile.am): Likewise.
27796         * modules/readlink (Makefile.am): Likewise.
27797         * modules/readtokens (Makefile.am): Likewise.
27798         * modules/readutmp (Makefile.am): Likewise.
27799         * modules/realloc (Makefile.am): Likewise.
27800         * modules/regex (Makefile.am): Likewise.
27801         * modules/rename-dest-slash (Makefile.am): Likewise.
27802         * modules/rename (Makefile.am): Likewise.
27803         * modules/rijndael (Makefile.am): Likewise.
27804         * modules/rmdir (Makefile.am): Likewise.
27805         * modules/rpmatch (Makefile.am): Likewise.
27806         * modules/safe-read (Makefile.am): Likewise.
27807         * modules/safe-write (Makefile.am): Likewise.
27808         * modules/same-inode (Makefile.am): Likewise.
27809         * modules/same (Makefile.am): Likewise.
27810         * modules/save-cwd (Makefile.am): Likewise.
27811         * modules/savedir (Makefile.am): Likewise.
27812         * modules/setenv (Makefile.am): Likewise.
27813         * modules/settime (Makefile.am): Likewise.
27814         * modules/sha1 (Makefile.am): Likewise.
27815         * modules/sig2str (Makefile.am): Likewise.
27816         * modules/snprintf (Makefile.am): Likewise.
27817         * modules/stat-macros (Makefile.am): Likewise.
27818         * modules/stat-time (Makefile.am): Likewise.
27819         * modules/stdbool (Makefile.am): Likewise.
27820         * modules/stdint (Makefile.am): Likewise.
27821         * modules/stdlib-safer (Makefile.am): Likewise.
27822         * modules/stpcpy (Makefile.am): Likewise.
27823         * modules/stpncpy (Makefile.am): Likewise.
27824         * modules/strcase (Makefile.am): Likewise.
27825         * modules/strcasestr (Makefile.am): Likewise.
27826         * modules/strchrnul (Makefile.am): Likewise.
27827         * modules/strcspn (Makefile.am): Likewise.
27828         * modules/strdup (Makefile.am): Likewise.
27829         * modules/strerror (Makefile.am): Likewise.
27830         * modules/strftime (Makefile.am): Likewise.
27831         * modules/strndup (Makefile.am): Likewise.
27832         * modules/strnlen (Makefile.am): Likewise.
27833         * modules/strpbrk (Makefile.am): Likewise.
27834         * modules/strsep (Makefile.am): Likewise.
27835         * modules/strstr (Makefile.am): Likewise.
27836         * modules/strtod (Makefile.am): Likewise.
27837         * modules/strtoimax (Makefile.am): Likewise.
27838         * modules/strtok_r (Makefile.am): Likewise.
27839         * modules/strtol (Makefile.am): Likewise.
27840         * modules/strtoll (Makefile.am): Likewise.
27841         * modules/strtoul (Makefile.am): Likewise.
27842         * modules/strtoull (Makefile.am): Likewise.
27843         * modules/strtoumax (Makefile.am): Likewise.
27844         * modules/strverscmp (Makefile.am): Likewise.
27845         * modules/sys_socket (Makefile.am): Likewise.
27846         * modules/sys_stat (Makefile.am): Likewise.
27847         * modules/sysexits (Makefile.am): Likewise.
27848         * modules/time_r (Makefile.am): Likewise.
27849         * modules/timegm (Makefile.am): Likewise.
27850         * modules/timespec (Makefile.am): Likewise.
27851         * modules/tmpfile-safer (Makefile.am): Likewise.
27852         * modules/trim (Makefile.am): Likewise.
27853         * modules/unistd-safer (Makefile.am): Likewise.
27854         * modules/unlinkdir (Makefile.am): Likewise.
27855         * modules/unlocked-io (Makefile.am): Likewise.
27856         * modules/userspec (Makefile.am): Likewise.
27857         * modules/utime (Makefile.am): Likewise.
27858         * modules/utimecmp (Makefile.am): Likewise.
27859         * modules/utimens (Makefile.am): Likewise.
27860         * modules/vasnprintf (Makefile.am): Likewise.
27861         * modules/vasprintf (Makefile.am): Likewise.
27862         * modules/vsnprintf (Makefile.am): Likewise.
27863         * modules/xalloc (Makefile.am): Likewise.
27864         * modules/xgetcwd (Makefile.am): Likewise.
27865         * modules/xnanosleep (Makefile.am): Likewise.
27866         * modules/xreadlink (Makefile.am): Likewise.
27867         * modules/xstrtod (Makefile.am): Likewise.
27868         * modules/xstrtol (Makefile.am): Likewise.
27869         * modules/xstrtold (Makefile.am): Likewise.
27870         * modules/yesno (Makefile.am): Likewise.
27871         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
27872
27873 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
27874
27875         * modules/error (Makefile.am): Distribute files through
27876         EXTRA_DIST, not lib_SOURCES.
27877
27878 2006-10-12  Eric Blake  <ebb9@byu.net>
27879
27880         * modules/error (Makefile.am): Distribute files in /lib.
27881         * modules/obstack (Makefile.am): Likewise.
27882
27883 2006-10-12  Bruno Haible  <bruno@clisp.org>
27884
27885         * modules/acl (Makefile.am): Distribute all files in lib/ through
27886         EXTRA_DIST.
27887         * modules/arcfour (Makefile.am): Likewise.
27888         * modules/arctwo (Makefile.am): Likewise.
27889         * modules/argmatch (Makefile.am): Likewise.
27890         * modules/argz (Makefile.am): Likewise.
27891         * modules/atexit (Makefile.am): Likewise.
27892         * modules/backupfile (Makefile.am): Likewise.
27893         * modules/c-strtod (Makefile.am): Likewise.
27894         * modules/c-strtold (Makefile.am): Likewise.
27895         * modules/calloc (Makefile.am): Likewise.
27896         * modules/canon-host (Makefile.am): Likewise.
27897         * modules/canonicalize (Makefile.am): Likewise.
27898         * modules/chdir-long (Makefile.am): Likewise.
27899         * modules/chdir-safer (Makefile.am): Likewise.
27900         * modules/check-version (Makefile.am): Likewise.
27901         * modules/chown (Makefile.am): Likewise.
27902         * modules/cloexec (Makefile.am): Likewise.
27903         * modules/close-stream (Makefile.am): Likewise.
27904         * modules/closeout (Makefile.am): Likewise.
27905         * modules/crc (Makefile.am): Likewise.
27906         * modules/cycle-check (Makefile.am): Likewise.
27907         * modules/des (Makefile.am): Likewise.
27908         * modules/dirfd (Makefile.am): Likewise.
27909         * modules/dirname (Makefile.am): Likewise.
27910         * modules/dup2 (Makefile.am): Likewise.
27911         * modules/euidaccess (Makefile.am): Likewise.
27912         * modules/exclude (Makefile.am): Likewise.
27913         * modules/exitfail (Makefile.am): Likewise.
27914         * modules/fcntl-safer (Makefile.am): Likewise.
27915         * modules/file-type (Makefile.am): Likewise.
27916         * modules/fileblocks (Makefile.am): Likewise.
27917         * modules/filemode (Makefile.am): Likewise.
27918         * modules/filenamecat (Makefile.am): Likewise.
27919         * modules/fnmatch (Makefile.am): Likewise.
27920         * modules/fopen-safer (Makefile.am): Likewise.
27921         * modules/fpending (Makefile.am): Likewise.
27922         * modules/fprintftime (Makefile.am): Likewise.
27923         * modules/free (Makefile.am): Likewise.
27924         * modules/fsusage (Makefile.am): Likewise.
27925         * modules/ftruncate (Makefile.am): Likewise.
27926         * modules/fts (Makefile.am): Likewise.
27927         * modules/gc (Makefile.am): Likewise.
27928         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
27929         * modules/getaddrinfo (Makefile.am): Likewise.
27930         * modules/getcwd (Makefile.am): Likewise.
27931         * modules/getdelim (Makefile.am): Likewise.
27932         * modules/getdomainname (Makefile.am): Likewise.
27933         * modules/getgroups (Makefile.am): Likewise.
27934         * modules/gethostname (Makefile.am): Likewise.
27935         * modules/gethrxtime (Makefile.am): Likewise.
27936         * modules/getline (Makefile.am): Likewise.
27937         * modules/getloadavg (Makefile.am): Likewise.
27938         * modules/getlogin_r (Makefile.am): Likewise.
27939         * modules/getopt (Makefile.am): Likewise.
27940         * modules/getpass (Makefile.am): Likewise.
27941         * modules/getpass-gnu (Makefile.am): Likewise.
27942         * modules/getsubopt (Makefile.am): Likewise.
27943         * modules/gettime (Makefile.am): Likewise.
27944         * modules/gettimeofday (Makefile.am): Likewise.
27945         * modules/getugroups (Makefile.am): Likewise.
27946         * modules/getusershell (Makefile.am): Likewise.
27947         * modules/glob (Makefile.am): Likewise.
27948         * modules/group-member (Makefile.am): Likewise.
27949         * modules/hard-locale (Makefile.am): Likewise.
27950         * modules/hash (Makefile.am): Likewise.
27951         * modules/hmac-md5 (Makefile.am): Likewise.
27952         * modules/hmac-sha1 (Makefile.am): Likewise.
27953         * modules/human (Makefile.am): Likewise.
27954         * modules/idcache (Makefile.am): Likewise.
27955         * modules/imaxabs (Makefile.am): Likewise.
27956         * modules/imaxdiv (Makefile.am): Likewise.
27957         * modules/inet_ntop (Makefile.am): Likewise.
27958         * modules/inet_pton (Makefile.am): Likewise.
27959         * modules/inttostr (Makefile.am): Likewise.
27960         * modules/isapipe (Makefile.am): Likewise.
27961         * modules/lchown (Makefile.am): Likewise.
27962         * modules/long-options (Makefile.am): Likewise.
27963         * modules/lstat (Makefile.am): Likewise.
27964         * modules/malloc (Makefile.am): Likewise.
27965         * modules/mathl (Makefile.am): Likewise.
27966         * modules/mbchar (Makefile.am): Likewise.
27967         * modules/md2 (Makefile.am): Likewise.
27968         * modules/md4 (Makefile.am): Likewise.
27969         * modules/md5 (Makefile.am): Likewise.
27970         * modules/memcasecmp (Makefile.am): Likewise.
27971         * modules/memchr (Makefile.am): Likewise.
27972         * modules/memcmp (Makefile.am): Likewise.
27973         * modules/memcoll (Makefile.am): Likewise.
27974         * modules/memcpy (Makefile.am): Likewise.
27975         * modules/memmem (Makefile.am): Likewise.
27976         * modules/memmove (Makefile.am): Likewise.
27977         * modules/mempcpy (Makefile.am): Likewise.
27978         * modules/memrchr (Makefile.am): Likewise.
27979         * modules/memset (Makefile.am): Likewise.
27980         * modules/memxor (Makefile.am): Likewise.
27981         * modules/mkancesdirs (Makefile.am): Likewise.
27982         * modules/mkdir (Makefile.am): Likewise.
27983         * modules/mkdir-p (Makefile.am): Likewise.
27984         * modules/mkdtemp (Makefile.am): Likewise.
27985         * modules/mkstemp (Makefile.am): Likewise.
27986         * modules/mktime (Makefile.am): Likewise.
27987         * modules/modechange (Makefile.am): Likewise.
27988         * modules/mountlist (Makefile.am): Likewise.
27989         * modules/nanosleep (Makefile.am): Likewise.
27990         * modules/openat (Makefile.am): Likewise.
27991         * modules/pagealign_alloc (Makefile.am): Likewise.
27992         * modules/physmem (Makefile.am): Likewise.
27993         * modules/poll (Makefile.am): Likewise.
27994         * modules/posixtm (Makefile.am): Likewise.
27995         * modules/posixver (Makefile.am): Likewise.
27996         * modules/putenv (Makefile.am): Likewise.
27997         * modules/quote (Makefile.am): Likewise.
27998         * modules/quotearg (Makefile.am): Likewise.
27999         * modules/raise (Makefile.am): Likewise.
28000         * modules/read-file (Makefile.am): Likewise.
28001         * modules/readline (Makefile.am): Likewise.
28002         * modules/readlink (Makefile.am): Likewise.
28003         * modules/readtokens (Makefile.am): Likewise.
28004         * modules/readutmp (Makefile.am): Likewise.
28005         * modules/realloc (Makefile.am): Likewise.
28006         * modules/regex (Makefile.am): Likewise.
28007         * modules/rename (Makefile.am): Likewise.
28008         * modules/rename-dest-slash (Makefile.am): Likewise.
28009         * modules/rijndael (Makefile.am): Likewise.
28010         * modules/rmdir (Makefile.am): Likewise.
28011         * modules/rpmatch (Makefile.am): Likewise.
28012         * modules/safe-read (Makefile.am): Likewise.
28013         * modules/safe-write (Makefile.am): Likewise.
28014         * modules/same (Makefile.am): Likewise.
28015         * modules/save-cwd (Makefile.am): Likewise.
28016         * modules/savedir (Makefile.am): Likewise.
28017         * modules/setenv (Makefile.am): Likewise.
28018         * modules/settime (Makefile.am): Likewise.
28019         * modules/sha1 (Makefile.am): Likewise.
28020         * modules/sig2str (Makefile.am): Likewise.
28021         * modules/snprintf (Makefile.am): Likewise.
28022         * modules/stdlib-safer (Makefile.am): Likewise.
28023         * modules/stpcpy (Makefile.am): Likewise.
28024         * modules/stpncpy (Makefile.am): Likewise.
28025         * modules/strcase (Makefile.am): Likewise.
28026         * modules/strcasestr (Makefile.am): Likewise.
28027         * modules/strchrnul (Makefile.am): Likewise.
28028         * modules/strcspn (Makefile.am): Likewise.
28029         * modules/strdup (Makefile.am): Likewise.
28030         * modules/strerror (Makefile.am): Likewise.
28031         * modules/strftime (Makefile.am): Likewise.
28032         * modules/strndup (Makefile.am): Likewise.
28033         * modules/strnlen (Makefile.am): Likewise.
28034         * modules/strpbrk (Makefile.am): Likewise.
28035         * modules/strsep (Makefile.am): Likewise.
28036         * modules/strstr (Makefile.am): Likewise.
28037         * modules/strtod (Makefile.am): Likewise.
28038         * modules/strtoimax (Makefile.am): Likewise.
28039         * modules/strtok_r (Makefile.am): Likewise.
28040         * modules/strtol (Makefile.am): Likewise.
28041         * modules/strtoll (Makefile.am): Likewise.
28042         * modules/strtoul (Makefile.am): Likewise.
28043         * modules/strtoull (Makefile.am): Likewise.
28044         * modules/strtoumax (Makefile.am): Likewise.
28045         * modules/strverscmp (Makefile.am): Likewise.
28046         * modules/time_r (Makefile.am): Likewise.
28047         * modules/timegm (Makefile.am): Likewise.
28048         * modules/tmpfile-safer (Makefile.am): Likewise.
28049         * modules/unistd-safer (Makefile.am): Likewise.
28050         * modules/unlinkdir (Makefile.am): Likewise.
28051         * modules/userspec (Makefile.am): Likewise.
28052         * modules/utime (Makefile.am): Likewise.
28053         * modules/utimecmp (Makefile.am): Likewise.
28054         * modules/utimens (Makefile.am): Likewise.
28055         * modules/vasnprintf (Makefile.am): Likewise.
28056         * modules/vasprintf (Makefile.am): Likewise.
28057         * modules/vsnprintf (Makefile.am): Likewise.
28058         * modules/xalloc (Makefile.am): Likewise.
28059         * modules/xgetcwd (Makefile.am): Likewise.
28060         * modules/xnanosleep (Makefile.am): Likewise.
28061         * modules/xreadlink (Makefile.am): Likewise.
28062         * modules/xstrtod (Makefile.am): Likewise.
28063         * modules/xstrtol (Makefile.am): Likewise.
28064         * modules/xstrtold (Makefile.am): Likewise.
28065         * modules/yesno (Makefile.am): Likewise.
28066
28067 2006-10-12  Jim Meyering  <jim@meyering.net>
28068
28069         * m4/getloadavg.m4: Revert the change below.
28070
28071         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
28072         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
28073         fail with a symlink, which is what coreutils' ./bootstrap now
28074         creates by default.
28075
28076 2006-10-12  Bruno Haible  <bruno@clisp.org>
28077
28078         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
28079         mingw.
28080         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
28081         MSVC and mingw explicitly.
28082
28083 2006-10-11  Simon Josefsson  <jas@extundo.com>
28084             Bruno Haible  <bruno@clisp.org>
28085
28086         Add support for multiple gnulib-tool invocations in the scope of a
28087         single configure.ac file.
28088         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
28089         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
28090         with the same contents as the _LIBADD variable.
28091         (func_emit_initmacro_start, func_emit_initmacro_end,
28092         func_emit_initmacro_done): New functions.
28093         (func_import, func_create_testdir): Invoke them. Allow the identifiers
28094         gl_LIBOBJS and gl_LTLIBOBJS.
28095
28096 2006-10-11  Bruno Haible  <bruno@clisp.org>
28097
28098         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
28099         (func_create_testdir): Don't create po/Makefile.am, don't invoke
28100         autoreconf. Instead, invoke autopoint explicitly but move back the
28101         *.m4 files from gnulib.
28102
28103 2006-10-11  Bruno Haible  <bruno@clisp.org>
28104
28105         * gnulib-tool (func_usage): Make module names after --create-testdir
28106         optional.
28107         (func_create_testdir): If no module was specified, use nearly all
28108         modules.
28109
28110 2006-10-12  Jim Meyering  <jim@meyering.net>
28111
28112         Big performance improvement for fts-based tools that use FTS_NOSTAT.
28113         Avoid spurious inode-mismatch problems on non-POSIX file systems.
28114         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
28115         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
28116         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
28117         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
28118         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
28119         (fts_set_stat_required): New function.
28120         (fts_open): Defer the calls to fts_stat, if possible or requested.
28121         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
28122         into fts_stat itself.
28123         (fts_read): Perform any required (deferred) fts_stat call.
28124         (fts_build): Likewise, for the directory we're about to open and read.
28125         In the readdir loop, carefully decide whether each entry will require
28126         an eventual call to fts_stat, using dirent.d_type info if available.
28127         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
28128         a command line argument into this function.  Update all callers.
28129         Map a return value of FTS_DOT to FTS_D for a command line argument.
28130         * modules/fts (Depends-on): Add d-type.  Alphabetize.
28131         Thanks to Miklos Szeredi for his tenacity and for the initial
28132         bug report about "find" failing on a FUSE-based file system.
28133
28134         * lib/fts.c (fts_open): Use consistent indentation.
28135
28136 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
28137
28138         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
28139         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
28140         reported by Jim Meyering.  All uses of cache variables renamed
28141         to match Autoconf's.
28142         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
28143         the other one.
28144
28145         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
28146         Fix misspelling in diagnostic.
28147
28148 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28149
28150         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
28151         defined.  Problem reported by Matthew Woehlke.
28152
28153         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
28154         Add support for Tandem NonStop R series.
28155         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
28156         Use new macro.
28157
28158         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
28159         (has_trailing_slash): Omit size arg; all callers changed.
28160         Omit 'inline', since it doesn't help performance and we'd
28161         need to configure it.
28162         Don't count //, ///, etc. as having a trailing slash.
28163         As a side effect, this removes a C99ism reported by Matthew Woehlke.
28164         (rpl_rename_dest_slash): On failure, use rename's errno rather
28165         than (in some cases) an incorrect or junk errno.
28166         Simplify code by removing need to compute length; this does
28167         cause it to make two passes instead of one over the file name,
28168         but it's worth it.
28169
28170         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
28171         change, since Autoconf's version may no longer be appropriate now
28172         that we are using CVS Autoconf's version.  Add support for Tandem.
28173
28174 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28175             Bruno Haible  <bruno@clisp.org>
28176
28177         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
28178         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
28179         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
28180         gl_AC_TYPE_LONG_LONG.
28181
28182         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
28183         instead of HAVE_LONG_LONG.
28184         * lib/printf-args.c (printf_fetchargs): Likewise.
28185         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
28186         * lib/vasnprintf.c (VASNPRINTF): Likewise.
28187         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
28188         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
28189         gl_AC_TYPE_LONG_LONG.
28190
28191 2006-10-11  Bruno Haible  <bruno@clisp.org>
28192
28193         * m4/longlong.m4: Add comments.
28194         * m4/ulonglong.m4: Likewise.
28195
28196 2006-10-10  Bruno Haible  <bruno@clisp.org>
28197
28198         Make it possible to #define stpcpy, strdup to aliases.
28199         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
28200         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
28201
28202 2006-10-10  Bruno Haible  <bruno@clisp.org>
28203
28204         Make it possible to #define gcd to an alias.
28205         * lib/gcd.c: Include config.h.
28206
28207 2006-10-10  Bruno Haible  <bruno@clisp.org>
28208
28209         Make it possible to #define c_isascii to an alias.
28210         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
28211         defined. Undefine the macros before defining them, to avoid gcc
28212         warnings.
28213         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
28214         define NO_C_CTYPE_MACROS early.
28215
28216 2006-10-10  Bruno Haible  <bruno@clisp.org>
28217
28218         Make it possible to #define set_program_name to an alias.
28219         * lib/progname.c: Don't undefine set_program_name; instead, undefine
28220         ENABLE_RELOCATABLE early.
28221
28222 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28223
28224         Port to Tandem NSK OSS, which has 64-bit signed int but at most
28225         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
28226         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
28227         More generally, don't assume that 64-bit signed int is available
28228         if unsigned int is, and vice versa.
28229         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
28230         unsigned symbols, not on their signed counterparts.
28231         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
28232         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
28233         (UINT64_C, UINTMAX_C):
28234         Likewise.
28235         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
28236         unsigned counterparts.
28237         (Have_long_long, Unsigned): New macros.
28238         (Int): Renamed from INT.
28239         (strtoimax): Use the new macros.
28240         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
28241         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
28242         * modules/inttypes (inttypes.h): Substitute
28243         HAVE_UNSIGNED_LONG_LONG_INT.
28244         * modules/stdint (stdint.h): Likewise.
28245         (Files): Add m4/ulonglong.m4.
28246
28247 2006-10-10  Bruno Haible  <bruno@clisp.org>
28248
28249         Fix a gcc -Wshadow warning.
28250         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
28251         to 'bucket'.
28252         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
28253         gl_linked_indexof_from_to): Likewise.
28254         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
28255         Likewise.
28256         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
28257         Likewise.
28258         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
28259         Reported by Eric Blake.
28260
28261 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
28262
28263         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
28264         for NetBSD.  Problem reported by Bruno Haible.
28265
28266 2006-10-09  Jim Meyering  <jim@meyering.net>
28267
28268         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
28269         Patch from Bruno Haible.
28270
28271 2006-10-09  Jim Meyering  <jim@meyering.net>
28272
28273         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
28274         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
28275         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
28276
28277 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28278
28279         Don't include <config.h> twice; this doesn't work in some cases,
28280         e.g., when config.h has "#define intmax_t long long int" and
28281         we include <config.h>, <inttypes.h>, <config.h> in that order.
28282         Problem reported by Matthew Woehlke in:
28283         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
28284         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
28285         * lib/fts-cycle.c: Don't include config.h.
28286         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
28287         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
28288         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
28289         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
28290         inttypes.h.
28291         * lib/xstrtoumax.c: Likewise.
28292         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
28293         __strtol and the like, so that this module is more like its siblings.
28294         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
28295         Remove; no longer needed now that we assume gnulib inttypes.h.
28296
28297 2006-10-08  Bruno Haible  <bruno@clisp.org>
28298
28299         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
28300         option.
28301
28302 2006-10-07  Jim Meyering  <jim@meyering.net>
28303
28304         * modules/inttypes (inttypes.h): Revert what seems to have been
28305         an inadvertent part of today's change: use "|", not "/" in the
28306         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
28307
28308 2006-10-07  Bruno Haible  <bruno@clisp.org>
28309
28310         * modules/sublist: New file.
28311
28312 2006-10-07  Bruno Haible  <bruno@clisp.org>
28313
28314         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
28315         * modules/argz (argz.h): Likewise.
28316         * modules/arpa_inet (arpa/inet.h): Likewise.
28317         * modules/byteswap (byteswap.h): Likewise.
28318         * modules/configmake (configmake.h): Likewise.
28319         * modules/fcntl (fcntl.h): Likewise.
28320         * modules/fnmatch (fnmatch.h): Likewise.
28321         * modules/getopt (getopt.h): Likewise.
28322         * modules/glob (glob.h): Likewise.
28323         * modules/inttypes (inttypes.h): Likewise.
28324         * modules/netinet_in (netinet/in.h): Likewise.
28325         * modules/poll (poll.h): Likewise.
28326         * modules/stdbool (stdbool.h): Likewise.
28327         * modules/stdint (stdint.h): Likewise.
28328         * modules/sys_select (sys/select.h): Likewise.
28329         * modules/sys_socket (sys/socket.h): Likewise.
28330         * modules/sys_stat (sys/stat.h): Likewise.
28331         * modules/sysexits (sysexits.h): Likewise.
28332         * modules/unistd (unistd.h): Likewise.
28333         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28334         Add a "DO NOT EDIT" comment to the generated file.
28335         (func_import): Likewise for gnulib-comp.m4.
28336
28337 2006-10-07  Bruno Haible  <bruno@clisp.org>
28338
28339         * lib/gl_sublist.h: New file.
28340         * lib/gl_sublist.c: New file.
28341
28342 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
28343
28344         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
28345         name (relative to the original working directory) and the file
28346         name component (relative to the temporary working directory).  All
28347         callers changed.
28348         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
28349         * lib/mkdir-p.c (make_dir_parents): Likewise.
28350         * lib/mkdir-p.h (make_dir_parents): Likewise.
28351
28352 2006-10-06  Eric Blake  <ebb9@byu.net>
28353
28354         Define several macros for use by the clean-temp module.
28355         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
28356         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
28357         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
28358
28359         * lib/clean-temp.h (close_stream_temp): New declaration.
28360         * lib/clean-temp.c (includes): Pull in headers according to what
28361         other modules are in use.
28362         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
28363
28364 2006-10-06  Bruno Haible  <bruno@clisp.org>
28365
28366         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
28367         instead of fopen, fwriteerror.
28368
28369 2006-10-06  Bruno Haible  <bruno@clisp.org>
28370
28371         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
28372         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
28373         int.
28374         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
28375         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
28376         Return an error indicator.
28377         Suggested by Eric Blake.
28378
28379 2006-10-06  Bruno Haible  <bruno@clisp.org>
28380
28381         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
28382         Reported by Eric Blake.
28383
28384 2006-10-06  Bruno Haible  <bruno@clisp.org>
28385
28386         * modules/closeout (Description): Mention stderr too.
28387
28388 2006-10-06  Bruno Haible  <bruno@clisp.org>
28389         and Paul Eggert  <eggert@cs.ucla.edu>
28390
28391         * lib/closeout.c (close_stdout): Also close stderr.
28392         * lib/closeout.h: Update comment.
28393
28394 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28395
28396         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
28397         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
28398         * lib/dirchownmod.c: Include lchown.h.
28399         * lib/lchown.c: Don't include files that lchown.h now includes.
28400         Don't declare chown, since lchown.h now does that.
28401         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
28402         (lchown): Define to rpl_chown if lchown is declared but
28403         does not exist.  Declare using a prototype if lchown is not
28404         declared.  Add a copyright notice.
28405         * lib/mkstemp.h: Include <unistd.h>.
28406         * lib/openat.c: Include lchown.h.
28407
28408         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
28409         we now test for that separately.
28410         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
28411         rather than O_NOFOLLOW, when testing whether it's possible to
28412         avoid a race condition reliably.
28413         * lib/savewd.c (savewd_chdir): Likewise.
28414
28415         Remove macros that are no longer needed now that stdint.h is
28416         reliable.
28417         * lib/fsusage.c (UINTMAX_MAX): Remove.
28418         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
28419         * lib/utimecmp.c (SIZE_MAX): Remove.
28420
28421         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
28422
28423         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
28424         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
28425         O_NOATIME works.
28426
28427 2006-10-05  Bruno Haible  <bruno@clisp.org>
28428
28429         * lib/gl_list.h (gl_sortedlist_search_from_to,
28430         gl_sortedlist_indexof_from_to): New declarations.
28431         (gl_list_implementation): New fields sortedlist_search_from_to,
28432         sortedlist_indexof_from_to.
28433         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
28434         inline functions.
28435         * lib/gl_list.c (gl_sortedlist_search_from_to,
28436         gl_sortedlist_indexof_from_to): New functions.
28437         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
28438         function.
28439         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
28440         (gl_array_sortedlist_search_from_to): New function.
28441         (gl_array_list_implementation): Update.
28442         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
28443         function.
28444         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
28445         (gl_carray_sortedlist_search_from_to): New function.
28446         (gl_carray_list_implementation): Update.
28447         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
28448         gl_linked_sortedlist_indexof_from_to): New functions.
28449         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
28450         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
28451         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
28452         gl_tree_sortedlist_indexof_from_to): New functions.
28453         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
28454         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
28455         Update.
28456         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
28457         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
28458         Update.
28459
28460 2006-10-05  Bruno Haible  <bruno@clisp.org>
28461
28462         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
28463         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
28464         (struct gl_list_implementation): Add fields search_from_to,
28465         indexof_from_to. Remove fields search, indexof.
28466         (gl_list_search): Use the search_from_to method.
28467         (gl_list_search_from, gl_list_search_from_to): New functions.
28468         (gl_list_indexof): Use the indexof_from_to method.
28469         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
28470         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
28471         (gl_list_search_from, gl_list_search_from_to): New functions.
28472         (gl_list_indexof): Use the indexof_from_to method.
28473         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
28474         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
28475         gl_array_indexof. Add start_index, end_index arguments.
28476         (gl_array_search_from_to): Renamed from gl_array_search. Add
28477         start_index, end_index arguments.
28478         (gl_array_remove, gl_array_list_implementation): Update.
28479         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
28480         gl_carray_indexof. Add start_index, end_index arguments.
28481         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
28482         start_index, end_index arguments.
28483         (gl_carray_remove, gl_carray_list_implementation): Update.
28484         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
28485         gl_linked_search. Add start_index, end_index arguments.
28486         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
28487         start_index, end_index arguments.
28488         (gl_linked_remove): Update.
28489         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
28490         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
28491         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
28492         field to 'size_t'.
28493         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
28494         gl_tree_search. Add start_index, end_index arguments.
28495         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
28496         start_index, end_index arguments.
28497         (gl_tree_remove): Update.
28498         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
28499         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
28500         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
28501         function.
28502         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
28503         gl_tree_search. Add start_index, end_index arguments.
28504         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
28505         start_index, end_index arguments.
28506         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
28507         Update.
28508         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
28509
28510 2006-10-05  Bruno Haible  <bruno@clisp.org>
28511
28512         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
28513
28514         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
28515         fwriteerror_temp): New declarations.
28516         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
28517         (descriptors): New variable.
28518         (cleanup): First, close the descriptors.
28519         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
28520         fclose_temp, fwriteerror_temp): New functions.
28521
28522 2006-10-04  Jim Meyering  <jim@meyering.net>
28523
28524         * lib/fts.c (fts_open): Tiny comment change.
28525
28526 2006-10-04  Bruno Haible  <bruno@clisp.org>
28527
28528         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
28529         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
28530         gl_LOCK_BODY.
28531         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
28532         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
28533         gl_LOCK_EARLY_BODY.
28534         (gl_LOCK): Require gl_LOCK_BODY.
28535
28536 2006-10-04  Bruno Haible  <bruno@clisp.org>
28537
28538         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
28539         (gl_oset_search_atleast): New declaration.
28540         (struct gl_oset_implementation): Add field 'search_atleast'.
28541         (gl_oset_search_atleast): New inline function.
28542         * lib/gl_oset.c (gl_oset_search_atleast): New function.
28543         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
28544         (gl_array_oset_implementation): Update.
28545         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
28546         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
28547         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
28548
28549 2006-10-04  Bruno Haible  <bruno@clisp.org>
28550
28551         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
28552
28553 2006-10-03  Bruno Haible  <bruno@clisp.org>
28554
28555         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
28556         from gl_avltreehash_list_implementation.
28557
28558 2006-10-03  Bruno Haible  <bruno@clisp.org>
28559
28560         * lib/gl_oset.c (gl_oset_add): Fix return type.
28561
28562 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
28563
28564         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
28565
28566 2006-10-02  Eric Blake  <ebb9@byu.net>
28567
28568         * modules/strnlen (Depends-on): Add extensions.
28569
28570 2006-10-02  Eric Blake  <ebb9@byu.net>
28571
28572         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
28573         definition in 2.60+.
28574
28575 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
28576
28577         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
28578         checks.
28579
28580 2006-10-02  Bruno Haible  <bruno@clisp.org>
28581
28582         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
28583         to the AUTOMAKE_OPTIONS.
28584         Reported by Jim Meyering.
28585
28586 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
28587
28588         Work around bug in Solaris 10 /proc file system:
28589         /proc/self/fd/NNN/.. isn't the parent directory of
28590         the directory whose file descriptor is NNN.  This needs to
28591         be worked around at run time, not compile time, since a
28592         program might be built on Solaris 8, where things work, and
28593         run on Solaris 10.
28594         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
28595         to use the following interface instead:
28596         (OPENAT_BUFFER_SIZE): New macro.
28597         (openat_proc_name): New function.
28598         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
28599         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
28600         Likewise.
28601         * lib/openat-proc.c: New file.
28602         * modules/openat (Files): Add lib/openat-proc.c.
28603         (Depends-on): Add same-inode, stdbool.
28604         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
28605
28606 2006-09-29  Bruno Haible  <bruno@clisp.org>
28607
28608         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
28609         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
28610         argument. Set stdout_closed before testing for ferror, not after.
28611         (fwriteerror, fwriteerror_no_ebadf): New functions.
28612
28613 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28614
28615         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
28616
28617 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
28618
28619         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
28620         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
28621
28622 2006-09-28  Jim Meyering  <jim@meyering.net>
28623
28624         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
28625         Include <unistd.h>.
28626
28627 2006-09-28  Bruno Haible  <bruno@clisp.org>
28628
28629         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
28630         * modules/linkedhash-list (Depends-on): Likewise.
28631         * modules/rbtreehash-list (Depends-on): Likewise.
28632
28633 2006-09-28  Bruno Haible  <bruno@clisp.org>
28634
28635         * lib/strndup.h: Simplify the redefinition of strndup.
28636         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
28637         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
28638
28639 2006-09-28  Bruno Haible  <bruno@clisp.org>
28640
28641         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
28642         * lib/gl_linkedhash_list.c: Likewise.
28643         * lib/gl_rbtreehash_list.c: Likewise.
28644
28645 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
28646
28647         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
28648         getaddrinfo.
28649
28650         * lib/__fpending.h: Don't include <stdio_ext.h> unless
28651         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
28652         it causes <stdio_ext.h> to cause a compile-time error.
28653         Problem reported by Nelson H. F. Beebe.
28654         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
28655         of HAVE_DECL___PENDING.
28656
28657         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
28658         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
28659         declaration.
28660
28661 2006-09-27  Jim Meyering  <jim@meyering.net>
28662
28663         This file could end up with a definition for a function
28664         named __strndup, rather than rpl_strndup on a system with
28665         incomplete weak_alias support.
28666         * lib/strndup.c (strndup): Rename from __strndup.
28667         Remove #defines that used to map __strndup to strndup.
28668         Don't use K&R prototypes.
28669         Remove LIBC-related code, since this file is not sync'd with glibc.
28670         * lib/strndup.h: Revamp, accordingly.
28671         * m4/strndup.m4: Modernize.
28672
28673 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
28674
28675         * modules/savewd (Depends-on): Add 'raise'.
28676         * lib/savewd.c: Include <signal.h>, for 'raise'.
28677
28678 2006-09-26  Jim Meyering  <jim@meyering.net>
28679
28680         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
28681         when we detect Darwin 8.7.0's acl_get_file bug.
28682         Rearrange to perform the new (below) run-test while $LIBS
28683         contains any acl-related library.  Set USE_ACL at the end.
28684         (gl_ACL_GET_FILE): New function.
28685
28686 2006-09-26  Eric Blake  <ebb9@byu.net>
28687
28688         * lib/verror.c: Include <config.h> unconditionally.
28689
28690 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28691
28692         * modules/clock-time (Maintainer): Add self.
28693         * modules/getlogin_r (Depends-on): Add extensions.
28694
28695 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28696
28697         * modules/clock-time: New module.
28698         * modules/nanosleep (Depends-on): Add clock-time.
28699         * modules/gethrxtime (Depends-on): Likewise.
28700         * modules/gettime (Depends-on): Likewise.
28701         * modules/settime (Depends-on): Likewise.
28702
28703         * modules/fts-lgpl: Depend on openat.
28704         * modules/mkancesdirs: Depend on savewd.
28705         * modules/mkdir-p: Likewise.
28706
28707 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28708
28709         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
28710
28711         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
28712         `gl_have_arbitrary_file_name_length_limit' to
28713         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
28714         actually works between configure runs.
28715
28716 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28717             Bruno Haible  <bruno@clisp.org>
28718
28719         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
28720
28721 2006-09-25  Jim Meyering  <jim@meyering.net>
28722
28723         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
28724         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
28725
28726 2006-09-25  Eric Blake  <ebb9@byu.net>
28727
28728         * gnulib-tool (func_import, func_create_testdir): Fix typos in
28729         exec's in 2006-09-18 patch when shuffling fds.
28730
28731 2006-09-25  Bruno Haible  <bruno@clisp.org>
28732
28733         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
28734         Reported by Jim Meyering.
28735
28736 2006-09-24  Jim Meyering  <jim@meyering.net>
28737
28738         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
28739         compare a pointer against a literal "0".  That caused failures with
28740         at least HP-UX's hpcc.
28741
28742 2006-09-22  Simon Josefsson  <jas@extundo.com>
28743
28744         * modules/gc-sha1:
28745         * modules/gc-md4:
28746         * modules/gc-hmac-sha1:
28747         * modules/gc-hmac-md5:
28748         * modules/gc-des:
28749         * modules/gc-arcfour: Distribute more files.
28750
28751 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28752
28753         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
28754         (gl_linked_iterator_from_to): Initialize struct completely.
28755         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
28756         (gl_tree_iterator_from_to): Likewise
28757         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
28758         * lib/gl_array_list.c [lint] (gl_array_iterator)
28759         (gl_array_iterator_from_to): Likewise.
28760         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
28761         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
28762         (gl_carray_iterator_from_to): Likewise.
28763
28764         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
28765         * lib/md4.c (md4_process_block): Remove unused variable.
28766         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
28767         parentheses for clarity.
28768
28769 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28770
28771         * modules/bison-i18n (Depends-on): Add gettext.
28772
28773 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28774
28775         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
28776         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
28777         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
28778         also add missing comma that caused broken test.
28779         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
28780         stdlib.h, for `abort'.
28781         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
28782         variables.
28783         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
28784         include unistd.h if present, for `rmdir'.
28785         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
28786         variables.
28787         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
28788         in the process include standard headers for prototypes.
28789         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
28790         gets declared on GNU/Linux.
28791         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
28792         unistd.h, for `rmdir'.
28793         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
28794
28795         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
28796         always true.
28797         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
28798
28799         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
28800
28801 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28802
28803         * gnulib-tool (func_version): Create output all at once.  This
28804         may help avoid triggering unnecessary SIGPIPEs, and at any
28805         rate it doesn't hurt.
28806
28807 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28808             Bruno Haible  <bruno@clisp.org>
28809
28810         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
28811         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28812         * m4/signed.m4 (bh_C_SIGNED): Likewise.
28813
28814         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
28815         (gl_FUNC_VASPRINTF): Invoke it.
28816
28817 2006-09-22  Bruno Haible  <bruno@clisp.org>
28818
28819         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
28820         getloadavg.c as first argument.
28821
28822 2006-09-22  Bruno Haible  <bruno@clisp.org>
28823
28824         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
28825         at the beginning of the gl_INIT macro.
28826         * modules/getloadavg (configure.ac): Pass $gl_source_base to
28827         gl_GETLOADAVG.
28828
28829 2006-09-22  Bruno Haible  <bruno@clisp.org>
28830
28831         * gnulib-tool (func_create_megatestdir): Don't include the config-h
28832         module.
28833         Suggested by Ralf Wildenhues.
28834
28835 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28836
28837         Import this patch from libc:
28838
28839         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
28840
28841         * lib/regex_internal.c (re_string_reconstruct): Handle
28842         offset < pstr->valid_raw_len && pstr->offsets_needed case.
28843         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
28844         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
28845         re_string_context_at.
28846
28847         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
28848         now requires it.
28849         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
28850         gl_REGEX now does it for us.
28851         (gl_REGEX): Add test taken from
28852         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
28853
28854         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
28855         Check that large offsets work.  Modernize Autoconf usages.
28856         Prefer "yes" to mean a good thing rather than a bad.
28857         Don't put "#define mkstemp" in config.h, as this might interfere
28858         with standard system headers that "#define mkstemp mkstemp64".
28859
28860         * modules/mkstemp (Depends-on): Add extensions, so that
28861         mkstemp is visible on some platforms.
28862         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
28863         (Include): Change to "mkstemp.h" from <stdlib.h>.
28864         (Files): Add mkstemp.h.
28865
28866         * lib/mkstemp.h: New file, since some standard headers
28867         #define mkstemp.
28868         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
28869         Include "mkstemp.h".
28870         Make the _LIBC code resemble glibc original more,
28871         e.g., use K&R style.
28872         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
28873         (mkstemp): Remove, since mkstemp.h does this for us.
28874         * lib/stdlib--.h: Include mkstemp.h.
28875
28876         Import this patch from libc:
28877
28878         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
28879
28880         * lib/tempname.c (__gen_tempname): Change attempts_min
28881         into a macro.  Use preprocessor to decide how to initialize
28882         attempts [Coverity CID 67].
28883
28884 2006-09-20  Bruno Haible  <bruno@clisp.org>
28885
28886         * lib/mkdtemp.c: Import from libc.
28887         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
28888                 * sysdeps/posix/tempname.c (__gen_tempname): Change
28889                 attempts_min into a macro.  Use preprocessor to decide how to
28890                 initialize attempts [Coverity CID 67].
28891         2001-11-27  Paul Eggert  <eggert@twinsun.com>
28892                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
28893                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
28894
28895 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28896
28897         * gnulib-tool (func_exit): New function, to allow to pass the
28898         exit status portably through the trap.  Use everywhere.
28899         (--help, --version): Signal a write error.
28900         (trap): catch SIGPIPE, for write errors.
28901         Exit at the end of the trap, with the correct exit status.
28902
28903 2006-09-19  Karl Berry  <karl@gnu.org>
28904
28905         * doc/gnulib.texi: note about the license texinfo files.
28906
28907 2006-09-19  Eric Blake  <ebb9@byu.net>
28908
28909         * gnulib-tool: Avoid space-tab.
28910
28911 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
28912
28913         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
28914         that prevented coreutils 6.1 from building.  Problem reported
28915         by Petter Reinholdtsen.
28916
28917 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
28918
28919         * gnulib-tool (avoidlist): Fix typo that broke options like
28920         --avoid=lock that are used by coreutils bootstrap.
28921
28922 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
28923
28924         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
28925         more systematically.
28926
28927 2006-09-18  Jim Meyering  <jim@meyering.net>
28928
28929         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
28930
28931 2006-09-18  Bruno Haible  <bruno@clisp.org>
28932
28933         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
28934
28935 2006-09-18  Bruno Haible  <bruno@clisp.org>
28936
28937         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
28938         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
28939         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
28940         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
28941         * m4/gettext.m4: Require autoconf >= 2.52.
28942         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
28943         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
28944         of gl_cv_header_inttypes_h.
28945
28946 2006-09-18  Bruno Haible  <bruno@clisp.org>
28947
28948         * lib/javaversion.c: Include configmake.h.
28949
28950 2006-09-18  Bruno Haible  <bruno@clisp.org>
28951
28952         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
28953         avoid that the while loops be executed in a subshell.
28954
28955 2006-09-18  Bruno Haible  <bruno@clisp.org>
28956
28957         * MODULES.html.sh (func_module): Break long lines.
28958         Suggested by Bruce Korb <bkorb@gnu.org>.
28959
28960 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28961
28962         Speed up by a factor of 1.12.
28963         * gnulib-tool (nl): New variable.
28964         (func_import): Rewrite include directive extraction to only read each
28965         directive once.
28966
28967 2006-09-17  Bruno Haible  <bruno@clisp.org>
28968
28969         * modules/javaversion (Makefile.am): Remove DEFS setting.
28970         (Depends-on): Add configmake, for PKGDATADIR definition.
28971
28972 2006-09-17  Bruno Haible  <bruno@clisp.org>
28973
28974         * gnulib-tool (func_create_testdir): Rewrite all files at once.
28975
28976 2006-09-17  Bruno Haible  <bruno@clisp.org>
28977
28978         * gnulib-tool (func_append): New function, stolen from libtool.m4.
28979         (func_modules_transitive_closure, func_modules_add_dummy,
28980         func_modules_to_filelist, func_import, func_create_testdir,
28981         func_create_megatestdir, ...): Use it wherever possible.
28982         Suggested by Ralf Wildenhues.
28983
28984 2006-09-16  Karl Berry  <karl@gnu.org>
28985
28986         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
28987         to avoid sectioning errors.
28988         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
28989         [ifinfo]: blank line after @center-ed titles.
28990         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
28991         Spell FSF address consistently with others.
28992         (These changes approved by rms.)
28993
28994 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28995
28996         Speed up by a factor of 1.61.
28997         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
28998         already checked module names again.
28999
29000 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29001
29002         Speed up by a factor of 1.13.
29003         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
29004         for new_files, and the input to func_add_or_update.
29005
29006 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29007
29008         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
29009         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
29010
29011 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
29012
29013         * modules/mkancesdirs (Depends-on): Add fcntl.
29014         * modules/savewd: New file.
29015         * MODULES.html.sh (File system functions): Add savewd.
29016
29017         * modules/configmake (Makefile.am): Add support for the
29018         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
29019
29020 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
29021
29022         * m4/savewd.m4: New file.
29023
29024 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
29025
29026         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
29027         (dirchownmod): New arg FD.  All callers changed.
29028         Use FD rather than opening the directory ourself, as opening is
29029         now the caller's responsibility.
29030         * lib/dirchownmod.h: Likewise.
29031         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
29032         hosts that require <sys/types.h> before <sys/stat.h>.  Include
29033         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
29034         (test_dir): Remove.
29035         (mkancesdirs): Return length of prefix of FILE that has already
29036         been made, or -2 if there is a child doing the work.  Redo
29037         algorithm so that it is O(N) rather than O(N**2).  Optimize away
29038         ".", and treat ".." specially since it might stray back into
29039         already-created areas.  Use a subprocess if necessary.  New arg
29040         WD; all users changed.  MAKE_DIR function should now return 1
29041         if it creates a directory that is not readable.  Return -2 if
29042         a child process is spun off.
29043         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
29044         Adjust signature to match code.
29045         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
29046         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
29047         all users changed.
29048         * lib/savewd.c, lib/savewd.h: New files.
29049
29050 2006-09-15  Jim Meyering  <jim@meyering.net>
29051
29052         * modules/rename-dest-slash: New module.
29053         * MODULES.html.sh (posix_compat): Add it here.
29054
29055         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
29056
29057 2006-09-15  Jim Meyering  <jim@meyering.net>
29058
29059         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
29060         file.
29061
29062         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
29063
29064 2006-09-15  Jim Meyering  <jim@meyering.net>
29065
29066         * lib/rename-dest-slash.c (has_trailing_slash): Use
29067         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
29068         (rpl_rename_dest_slash): Perform the cheaper trailing slash
29069         test before testing whether SRC is a directory.
29070         Suggestions from Bruno Haible.
29071
29072         Avoid a warning about an unused variable.
29073         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
29074         into the #ifdef block where it's used.
29075
29076         * lib/rename-dest-slash.c: New file.
29077
29078 2006-09-14  Bruno Haible  <bruno@clisp.org>
29079
29080         * lib/allocsa.c: Include <config.h> unconditionally.
29081         * lib/asnprintf.c: Likewise.
29082         * lib/asprintf.c: Likewise.
29083         * lib/c-strcasecmp.c: Likewise.
29084         * lib/c-strcasestr.c: Likewise.
29085         * lib/c-strncasecmp.c: Likewise.
29086         * lib/c-strstr.c: Likewise.
29087         * lib/classpath.c: Likewise.
29088         * lib/clean-temp.c: Likewise.
29089         * lib/concatpath.c: Likewise.
29090         * lib/copy-file.c: Likewise.
29091         * lib/csharpcomp.c: Likewise.
29092         * lib/csharpexec.c: Likewise.
29093         * lib/execute.c: Likewise.
29094         * lib/fatal-signal.c: Likewise.
29095         * lib/findprog.c: Likewise.
29096         * lib/fwriteerror.c: Likewise.
29097         * lib/gl_array_list.c: Likewise.
29098         * lib/gl_array_oset.c: Likewise.
29099         * lib/gl_avltree_list.c: Likewise.
29100         * lib/gl_avltree_oset.c: Likewise.
29101         * lib/gl_avltreehash_list.c: Likewise.
29102         * lib/gl_carray_list.c: Likewise.
29103         * lib/gl_linked_list.c: Likewise.
29104         * lib/gl_linkedhash_list.c: Likewise.
29105         * lib/gl_list.c: Likewise.
29106         * lib/gl_oset.c: Likewise.
29107         * lib/gl_rbtree_list.c: Likewise.
29108         * lib/gl_rbtree_oset.c: Likewise.
29109         * lib/gl_rbtreehash_list.c: Likewise.
29110         * lib/imaxabs.c: Likewise.
29111         * lib/imaxdiv.c: Likewise.
29112         * lib/javacomp.c: Likewise.
29113         * lib/javaexec.c: Likewise.
29114         * lib/javaversion.c: Likewise.
29115         * lib/linebreak.c: Likewise.
29116         * lib/localcharset.c: Likewise.
29117         * lib/lock.c: Likewise.
29118         * lib/mbchar.c: Likewise.
29119         * lib/mbswidth.c: Likewise.
29120         * lib/mkdtemp.c: Likewise.
29121         * lib/pipe.c: Likewise.
29122         * lib/printf-args.c: Likewise.
29123         * lib/printf-parse.c: Likewise.
29124         * lib/progname.c: Likewise.
29125         * lib/progreloc.c: Likewise.
29126         * lib/readlink.c: Likewise.
29127         * lib/sh-quote.c: Likewise.
29128         * lib/stpcpy.c: Likewise.
29129         * lib/stpncpy.c: Likewise.
29130         * lib/strcasecmp.c: Likewise.
29131         * lib/strcasestr.c: Likewise.
29132         * lib/strcspn.c: Likewise.
29133         * lib/striconv.c: Likewise.
29134         * lib/strncasecmp.c: Likewise.
29135         * lib/strnlen1.c: Likewise.
29136         * lib/strstr.c: Likewise.
29137         * lib/strtok_r.c: Likewise.
29138         * lib/tls.c: Likewise.
29139         * lib/tmpdir.c: Likewise.
29140         * lib/unicodeio.c: Likewise.
29141         * lib/unsetenv.c: Likewise.
29142         * lib/vasnprintf.c: Likewise.
29143         * lib/vasprintf.c: Likewise.
29144         * lib/wait-process.c: Likewise.
29145         * lib/xallocsa.c: Likewise.
29146         * lib/xsetenv.c: Likewise.
29147         * lib/xstriconv.c: Likewise.
29148
29149 2006-09-13  Simon Josefsson  <jas@extundo.com>
29150
29151         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
29152         that internally, suggested by Ralf Wildenhues
29153         <Ralf.Wildenhues@gmx.de>.
29154
29155 2006-09-13  Simon Josefsson  <jas@extundo.com>
29156
29157         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
29158         @LIBOBJS@.
29159         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29160
29161 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29162
29163         * lib/_fpending.c: Include <config.h> unconditionally, since we no
29164         longer worry about uses that don't define HAVE_CONFIG_H.
29165         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
29166         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
29167         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
29168         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
29169         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
29170         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
29171         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
29172         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
29173         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
29174         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
29175         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
29176         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
29177         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
29178         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
29179         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
29180         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
29181         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
29182         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
29183         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
29184         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
29185         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
29186         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
29187         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
29188         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
29189         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
29190         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
29191         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
29192         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
29193         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
29194         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
29195         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
29196         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
29197         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
29198         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
29199         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
29200         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
29201         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
29202         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
29203         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
29204         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
29205         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
29206         Likewise.
29207
29208 2006-09-13  Eric Blake  <ebb9@byu.net>
29209
29210         * lib/getopt.c: Fix typo in last commit.
29211
29212 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29213
29214         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
29215         dgettext.
29216
29217 2006-09-12  Jim Meyering  <jim@meyering.net>
29218
29219         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
29220         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
29221         Reported by Nelson H. F. Beebe.
29222
29223 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
29224
29225         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
29226         program_invocation_name and program_invocation_short_name are
29227         initialized.
29228         * lib/argp-namefrob.h: Move declarations of program_invocation_name
29229         and program_invocation_short_name to argp.h, so they are visible
29230         to user programs.
29231         * lib/argp.h: Likewise
29232
29233 2006-09-10  Bruno Haible  <bruno@clisp.org>
29234
29235         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
29236         m4/inttypes_h.m4, m4/uintmax_t.m4.
29237
29238 2006-09-10  Bruno Haible  <bruno@clisp.org>
29239
29240         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
29241         gl_AC_TYPE_UINTMAX_T.
29242
29243 2006-09-10  Bruno Haible  <bruno@clisp.org>
29244
29245         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
29246
29247 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29248
29249         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
29250         convention.  Text proposed by Bruno Haible.
29251         (struct argp_option): Document the use of N_() wrappers.
29252
29253         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
29254         '\v', and translate the two parts separately, instead of feeding
29255         the whole string to gettext.  This allows to exclude
29256         '\v' from the strings visible to the translator by writing doc
29257         strings as N_("..") "\v" N_("..").
29258
29259 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
29260
29261         * config/srclist.txt: Undo latest change; the bug was fixed.
29262
29263 2006-09-09  Bruno Haible  <bruno@clisp.org>
29264
29265         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
29266         assignments if building a library without libtool.
29267         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
29268         in func_emit_lib_Makefile_am.
29269         (func_import): When building a static library libfoo.a, arrange to
29270         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
29271         (func_create_testdir): Likewise.
29272         * modules/gc (configure.ac, Makefile.am): If building statically,
29273         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
29274         * modules/iconvme (configure.ac, Makefile.am): Likewise.
29275         * modules/striconv (configure.ac, Makefile.am): Likewise.
29276         Based on a suggestion by Ralf Wildenhues.
29277
29278 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29279
29280         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
29281         Check for unistd.h too, since Autoconf doesn't assume POSIX.
29282         Also:
29283
29284         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29285         Add year_2050_test to catch glibc bug 2821
29286         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
29287
29288         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
29289         Prefer #ifdef to #if.
29290
29291         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
29292         Return from 'main' instead of calling 'exit'.
29293
29294 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29295
29296         * lib/mktime.c (guess_time_tm): Fix bug where mktime
29297         returned the maximum time_t value rather than (time_t) -1.
29298         Problem originally reported by William Bardwell
29299         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
29300
29301         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
29302         Moved to here ...
29303         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
29304         ... from here.
29305
29306 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
29307
29308         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
29309         2821 is fixed.
29310
29311 2006-09-08  Jim Meyering  <jim@meyering.net>
29312
29313         Don't make generated files read-only.  That would bother too many
29314         people.  However, do retain the ability to work when targets are
29315         read-only: remove the destination and temporary files before writing
29316         them (when generated via sed or echo), or by using the -f option for
29317         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
29318         * modules/alloca-opt, modules/argz, modules/arpa_inet:
29319         * modules/byteswap, modules/configmake, modules/fcntl:
29320         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
29321         * modules/localcharset, modules/netinet_in, modules/poll:
29322         * modules/stdbool, modules/stdint, modules/sys_select:
29323         * modules/sys_socket, modules/sys_stat, modules/sysexits:
29324
29325 2006-09-08  Jim Meyering  <jim@meyering.net>
29326
29327         Avoid new build failure on FreeBSD 6.0.
29328         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
29329         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
29330         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
29331
29332 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29333
29334         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
29335
29336 2006-09-07  Jim Meyering  <jim@meyering.net>
29337
29338         Fix global typo in last change: use chmod u-w, not chmod u-x.
29339         Spotted by Paul Eggert and Bruce Korb.
29340         * modules/alloca-opt, modules/argz, modules/arpa_inet:
29341         * modules/byteswap, modules/configmake, modules/fcntl:
29342         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
29343         * modules/localcharset, modules/netinet_in, modules/poll:
29344         * modules/stdbool, modules/stdint, modules/sys_select:
29345         * modules/sys_socket, modules/sys_stat, modules/sysexits:
29346
29347 2006-09-06  Jim Meyering  <jim@meyering.net>
29348
29349         Make generated files be read-only.
29350         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
29351         Ensure that each generated file is now read-only.
29352         * modules/argz: Likewise.
29353         * modules/arpa_inet: Likewise.
29354         * modules/byteswap: Likewise.
29355         * modules/configmake: Likewise.
29356         * modules/fcntl: Likewise.
29357         * modules/fnmatch: Likewise.
29358         * modules/getopt: Likewise.
29359         * modules/glob: Likewise.
29360         * modules/inttypes: Likewise.
29361         * modules/netinet_in: Likewise.
29362         * modules/poll: Likewise.
29363         * modules/stdbool: Likewise.
29364         * modules/stdint: Likewise.
29365         * modules/sys_select: Likewise.
29366         * modules/sys_socket: Likewise.
29367         * modules/sys_stat: Likewise.
29368         * modules/sysexits: Likewise.
29369         * modules/localcharset: Same as above, but continue using temporary
29370         file named "t-$@" (why different?) rather than the "$@-t" used
29371         everywhere else.
29372
29373         * modules/sysexits (Makefile.am): Replace literal occurrences
29374         of "sysexit.h" more readable, and more consistent, "$@".
29375
29376 2006-09-06  Bruno Haible  <bruno@clisp.org>
29377
29378         * modules/striconv: New file.
29379         * modules/xstriconv: New file.
29380         * MODULES.html.sh (Internationalization functions): Add striconv,
29381         xstriconv.
29382
29383 2006-09-06  Bruno Haible  <bruno@clisp.org>
29384
29385         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
29386         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
29387         not using libtool correctly.
29388
29389 2006-09-06  Bruno Haible  <bruno@clisp.org>
29390
29391         * lib/striconv.h: New file.
29392         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
29393         iconvstring.c.
29394         * lib/xstriconv.h: New file.
29395         * lib/xstriconv.c: New file.
29396
29397 2006-09-06  Bruno Haible  <bruno@clisp.org>
29398
29399         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
29400         lib_..._LDFLAGS.
29401
29402 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29403
29404         * lib/argz_.h: Sync from Libtool.
29405
29406         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
29407                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29408
29409         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
29410
29411 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
29412
29413         * modules/trim: New file.
29414
29415 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
29416
29417         * lib/trim.h: New file.
29418         * lib/trim.c: New file.
29419
29420 2006-09-05  Bruno Haible  <bruno@clisp.org>
29421
29422         * MODULES.html.sh (String handling): Add trim.
29423
29424 2006-09-04  Karl Berry  <karl@gnu.org>
29425
29426         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
29427         until next release.
29428
29429 2006-09-03  Bruno Haible  <bruno@clisp.org>
29430
29431         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
29432         correctly.
29433
29434 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29435
29436         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
29437         not gl_GETLOADAVG.  Omit unneeded semicolons.
29438         Problems reported by Ralf Wildenhues in
29439         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
29440         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
29441         at the end, which is the usual gnulib style.
29442
29443         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
29444         of doing all the work ourselves.
29445         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
29446         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
29447
29448 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29449
29450         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
29451         Problem reported by Ralf Wildenhues in
29452         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
29453
29454         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
29455         HAVE_STRUCT_STATFS_F_FSTYPENAME.
29456
29457 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29458
29459         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
29460         yesterday's patch by changing test -n to test -z.
29461
29462 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29463
29464         * modules/getloadavg (Files): Add m4/getloadavg.m4.
29465         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
29466         the former is now obsolescent.
29467
29468         * modules/chdir-long (Depends-on): Add fcntl.
29469
29470 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29471
29472         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
29473         obsolescent, and programs should use gnulib instead.
29474         * m4/getloadavg.m4: New file, with contents taken from Autoconf
29475         but with prefixes changed.
29476
29477 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29478
29479         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
29480         or stdbool.h, because they might not exist while configuring.
29481
29482         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
29483         Don't include unistd.h or limits.h; not needed, since chdir-long.h
29484         does that for us.
29485         (O_DIRECTORY): Remove.
29486
29487 2006-08-31  Eric Blake  <ebb9@byu.net>
29488
29489         * gnulib-tool: Don't let emacs change spaces to TAB.
29490
29491 2006-08-31  Bruno Haible  <bruno@clisp.org>
29492
29493         * gnulib-tool: When calling func_import more than once, do it in a
29494         subshell.
29495         Reported by Eric Blake <ebb9@byu.net>.
29496
29497 2006-08-31  Bruno Haible  <bruno@clisp.org>
29498
29499         * gnulib-tool (nl): Remove variable.
29500         (sed_transform_lib_file): Use more robust test for config-h module.
29501         (func_import): Fix typo in 2006-08-25 patch.
29502
29503 2006-08-31  Bruno Haible  <bruno@clisp.org>
29504
29505         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
29506         specified, augment Makefile.am variables instead of assigning them.
29507
29508 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29509
29510         Work around a bug in both the Linux and SunOS 64-bit kernels:
29511         nanosleep mishandles sleeps for longer than 2**31 seconds.
29512         Problem reported by Frank v Waveren in
29513         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
29514         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
29515         Check for nanosleep bug.
29516         (LIB_NANOSLEEP): Append clock_gettime library if needed.
29517
29518 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29519
29520         Work around a bug in both the Linux and SunOS 64-bit kernels:
29521         nanosleep mishandles sleeps for longer than 2**31 seconds.
29522         Problem reported by Frank v Waveren in
29523         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
29524         * lib/nanosleep.c (BILLION): New constant.
29525         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
29526         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
29527         implementation.
29528
29529 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29530
29531         * modules/nanosleep (Depends-on): Add gettime.
29532
29533 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29534         and Simon Josefsson  <jas@extundo.com>
29535         and Oskar Liljeblad  <oskar@osk.mine.nu>
29536
29537         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
29538         * gnulib-tool (func_import): New license type 'unmodifiable license
29539         text'.
29540         * modules/fdl: Use it.  Longer description.
29541         * module/gpl, module/lgpl: New files.
29542
29543 2006-08-30  Jim Meyering  <jim@meyering.net>
29544
29545         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
29546         shadowing the parameter.
29547
29548 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29549
29550         Sync from Libtool:
29551
29552         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29553
29554         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
29555         sharing with gnulib.  Report by Eric Blake.
29556
29557 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29558
29559         * modules/isapipe: New file.
29560         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
29561
29562 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29563
29564         * modules/configmake (Makefile.am): Add a comment, and omit
29565         the CONFIGMAKE_ prefix from generated macro names.  Suggested
29566         by Bruno Haible.
29567
29568 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29569
29570         * m4/isapipe.m4: New file.
29571
29572 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29573
29574         * lib/isapipe.c, lib/isapipe.h: New files.
29575
29576 2006-08-29  Jim Meyering  <jim@meyering.net>
29577
29578         * modules/configmake (Makefile.am): Make configmake.h depend on
29579         Makefile.  Otherwise, a stale configmake.h could hang around.
29580
29581 2006-08-29  Eric Blake  <ebb9@byu.net>
29582
29583         * lib/error.c (error_at_line, print_errno_message): Match libc, after
29584         resolution of upstream bug 3044.
29585
29586 2006-08-29  Bruno Haible  <bruno@clisp.org>
29587
29588         * modules/localcharset (Depends-on): Add configmake.
29589         (Makefile.am): Remove setting of LIBDIR through DEFS.
29590
29591 2006-08-29  Bruno Haible  <bruno@clisp.org>
29592
29593         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
29594         defined.
29595
29596 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29597
29598         * modules/fcntl: New file.
29599         * modules/chdir-safer (Depends-on): Add fcntl.
29600         * modules/fts: Likewise.
29601         * modules/mkdir-p: Likewise.
29602
29603         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
29604         This undoes the most recent change, since we're now addressing the
29605         problem in a different way.
29606
29607         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
29608         into output, since the output might be called Makefile.am even
29609         if $makefile_name is something different.
29610         (func_import): Use $makefile_am rather than
29611         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
29612         empty.
29613
29614         * modules/inttypes (Files): Add m4/inttypes-h.m4.
29615
29616 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29617
29618         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
29619         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
29620         recent change to stdint.m4, since we're now addressing the problem in a
29621         different way.
29622
29623 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29624
29625         * m4/fcntl_h.m4: New file.
29626
29627 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29628
29629         * lib/fcntl_.h: New file.
29630         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
29631         the fcntl module.
29632         * lib/dirchownmod.c: Likewise.
29633         * lib/fts.c: Likewise.
29634
29635         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
29636         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
29637         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
29638         just before including <inttypes.h>, to avoid circular inclusion.
29639
29640 2006-08-28  Jim Meyering  <jim@meyering.net>
29641
29642         * doc/visibility.texi: Actually read and correct the grammar of the
29643         sentence affected by yesterday's change.
29644
29645 2006-08-28  Eric Blake  <ebb9@byu.net>
29646
29647         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
29648         needs wrapper.
29649
29650 2006-08-28  Eric Blake  <ebb9@byu.net>
29651
29652         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
29653
29654 2006-08-28  Eric Blake  <ebb9@byu.net>
29655
29656         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
29657
29658 2006-08-28  Bruno Haible  <bruno@clisp.org>
29659
29660         * modules/c-strstr: New file, from GNU gettext.
29661         * MODULES.html.sh (String handling): Add c-strstr.
29662
29663 2006-08-28  Bruno Haible  <bruno@clisp.org>
29664
29665         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
29666         macros.
29667         Reported by Eric Blake.
29668
29669 2006-08-28  Bruno Haible  <bruno@clisp.org>
29670
29671         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
29672         (VASNPRINTF): Return a string of length > INT_MAX without failing.
29673         * lib/vasprintf.c: Include errno.h, limits.h.
29674         (EOVERFLOW): New fallback definition.
29675         (vasprintf): Test here whether the string length is > INT_MAX.
29676         * lib/vsnprintf.c: Include errno.h, limits.h.
29677         (EOVERFLOW): New fallback definition.
29678         (vsnprintf): Fix bug when generated string was too long for the buffer.
29679         Test here whether the string length is > INT_MAX.
29680
29681 2006-08-28  Bruno Haible  <bruno@clisp.org>
29682
29683         * lib/inttypes_.h (SCNX*): Remove definitions.
29684         Reported by Eric Blake.
29685
29686 2006-08-28  Bruno Haible  <bruno@clisp.org>
29687
29688         * lib/c-strstr.h: New file, from GNU gettext.
29689         * lib/c-strstr.c: New file, from GNU gettext.
29690
29691 2006-08-28  Bruno Haible  <bruno@clisp.org>
29692
29693         * gnulib-tool: Reorder some statements.
29694
29695 2006-08-28  Bruno Haible  <bruno@clisp.org>
29696
29697         * gnulib-tool: New option --makefile-name.
29698         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
29699         $makefile_name.
29700         (func_import): Write $makefile_name to the cache file, and read it from
29701         there unless explicitly specified. Use $makefile_name as file name
29702         instead of Makefile.am. Adjust the recommendations accordingly.
29703
29704 2006-08-28  Bruno Haible  <bruno@clisp.org>
29705
29706         * gnulib-tool (func_verify_module): Check against misapplying patch.
29707
29708 2006-08-28  Bruno Haible  <bruno@clisp.org>
29709
29710         * gnulib-tool (func_relativize, func_relconcat): New functions.
29711         Give an error if --local-dir is given with --update.
29712         Remove trailing slashes from $local_gnulib_dir.
29713         (func_import): Store the relativized $local_gnulib_dir in
29714         gnulib-cache.m4, and read it from there if not specified explicitly.
29715
29716 2006-08-28  Bruno Haible  <bruno@clisp.org>
29717
29718         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
29719         is the current directory. Respect also $local_gnulib_dir.
29720
29721 2006-08-28  Bruno Haible  <bruno@clisp.org>
29722             Simon Josefsson  <jas@extundo.com>
29723
29724         BeOS portability.
29725         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
29726
29727 2006-08-27  Jim Meyering  <jim@meyering.net>
29728
29729         * doc/visibility.texi: Remove duplicate word: "pointer".
29730
29731 2006-08-26  Bruno Haible  <bruno@clisp.org>
29732
29733         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
29734         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
29735         (Makefile.am): Create inttypes.h from inttypes_.h.
29736         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
29737
29738         * modules/imaxabs: New file.
29739
29740         * modules/imaxdiv: New file.
29741
29742 2006-08-26  Bruno Haible  <bruno@clisp.org>
29743
29744         * m4/inttypes.m4: New file.
29745         * m4/_inttypes_h.m4: Remove file.
29746         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
29747         PRI_MACROS_BROKEN.
29748         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
29749
29750         * m4/imaxabs.m4: New file.
29751
29752         * m4/imaxdiv.m4: New file.
29753
29754 2006-08-26  Bruno Haible  <bruno@clisp.org>
29755
29756         * lib/inttypes_.h: New file.
29757         * lib/inttypes.h: Remove file.
29758         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
29759
29760         * lib/imaxabs.c: New file.
29761
29762         * lib/imaxdiv.c: New file.
29763
29764 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29765
29766         New config-h module, so that "make" output needn't be cluttered
29767         by -DHAVE_CONFIG_H.
29768         * MODULES.html.sh (Support for building libraries and executables):
29769         Add config-h.
29770         * modules/config-h: New file.
29771         * gnulib-tool (nl, sed_transform_lib_file): New vars.
29772         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
29773         the config-h module is used.
29774
29775         New configmake module, so that "make" output needn't be cluttered
29776         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
29777         * MODULES.html.sh (Support for building libraries and executables):
29778         Add configmake.
29779         * modules/configmake: New file.
29780
29781 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29782
29783         * m4/config-h.m4: New file.
29784
29785 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29786
29787         * config/srclist.txt: Add elisp-comp.
29788
29789 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29790
29791         * MODULES.html.sh (Support for building libraries and executables):
29792         Add elisp-comp.
29793         * build-aux/elisp-comp: New file.
29794         * modules/elisp-comp: New file.
29795
29796 2006-08-24  Bruno Haible  <bruno@clisp.org>
29797
29798         * gnulib-tool (func_create_testdir): Use non-default values of
29799         sourcebase and m4base.
29800
29801 2006-08-24  Bruno Haible  <bruno@clisp.org>
29802
29803         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
29804         HTML structure.
29805
29806 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29807
29808         * modules/openat (Depends-on): Add lchown.
29809
29810 2006-08-23  Bruno Haible  <bruno@clisp.org>
29811
29812         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
29813         of gl_LOCK_EARLY instead of gl_LOCK.
29814
29815 2006-08-23  Bruno Haible  <bruno@clisp.org>
29816
29817         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
29818         on OSF/1 to no.
29819         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
29820
29821 2006-08-23  Bruno Haible  <bruno@clisp.org>
29822
29823         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
29824         as unusable.
29825
29826         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
29827         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
29828         (gl_LOCK): New macro.
29829
29830 2006-08-22  Simon Josefsson  <jas@extundo.com>
29831
29832         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
29833         to md5 module.
29834
29835 2006-08-22  Simon Josefsson  <jas@extundo.com>
29836
29837         * MODULES.html.sh: Add "Support for maintaining and release
29838         projects".
29839
29840         * build-aux/gnupload: New file, from coreutils.
29841
29842 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
29843
29844         Avoid the need for AC_LIBSOURCES in m4 macros.
29845         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
29846         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
29847         * modules/check-version (EXTRA_DIST): Add check-version.h.
29848         * modules/crc (EXTRA_DIST): Add crc.h.
29849         * modules/des (EXTRA_DIST): Add des.h.
29850         * modules/gc (EXTRA_DIST): Add gc.h.
29851         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
29852         * modules/getline (EXTRA_DIST): Add getline.h.
29853         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
29854         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
29855         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
29856         * modules/md2 (EXTRA_DIST): Add md2.h.
29857         * modules/md4 (EXTRA_DIST): Add md4.h.
29858         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
29859         * modules/read-file (EXTRA_DIST): Add read-file.h.
29860         * modules/readline (EXTRA_DIST): Add readline.h.
29861         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
29862         rijndael-api-fst.h.
29863
29864 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
29865
29866         * m4/rijndael.m4 (gl_ARCFOUR):
29867         * m4/arctwo.m4 (gl_ARCTWO):
29868         * m4/check-version.m4 (gl_CHECK_VERSION):
29869         * m4/crc.m4 (gl_CRC):
29870         * m4/des.m4 (gl_DES):
29871         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
29872         * m4/gc.m4 (gl_GC):
29873         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
29874         * m4/getline.m4 (gl_FUNC_GETLINE):
29875         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
29876         * m4/hmac-md5.m4 (gl_HMAC_MD5):
29877         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
29878         * m4/md2.m4 (gl_MD2):
29879         * m4/md4.m4 (gl_MD4):
29880         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
29881         * m4/read-file.m4 (gl_FUNC_READ_FILE):
29882         * m4/readline.m4 (gl_FUNC_READLINE):
29883         * m4/rijndael.m4 (gl_RIJNDAEL):
29884         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
29885         to get the necessary .h files and whatnot.
29886
29887 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
29888
29889         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
29890         gnulib rather than the other way around.
29891         * config/srclistvars.sh (COREUTILS): Remove.
29892
29893 2006-08-22  Jim Meyering  <jim@meyering.net>
29894
29895         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
29896
29897         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
29898
29899 2006-08-22  Eric Blake  <ebb9@byu.net>
29900
29901         * modules/regexprops-generic: New file.
29902         * MODULES.html.sh (Support for building documentation): List it.
29903
29904 2006-08-22  Eric Blake  <ebb9@byu.net>
29905
29906         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
29907         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29908         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
29909         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
29910
29911 2006-08-22  Bruno Haible  <bruno@clisp.org>
29912
29913         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
29914         and lib_LTLIBRARIES like the other lib_* variables.
29915
29916 2006-08-22  Bruno Haible  <bruno@clisp.org>
29917
29918         * build-aux/x-to-1.in: New file, from GNU gettext.
29919
29920 2006-08-22  Bruno Haible  <bruno@clisp.org>
29921
29922         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
29923         <utmpx.h> exists.
29924
29925 2006-08-22  Bruno Haible  <bruno@clisp.org>
29926
29927         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
29928         <utmpx.h> exists.
29929
29930 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
29931
29932         BeOS portability.
29933         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
29934         exist.
29935         Problem reported by Bruno Haible.
29936
29937 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
29938
29939         Avoid the need for AC_LIBSOURCES in m4 macros.
29940         * modules/acl (EXTRA_DIST): Add acl.h.
29941         * modules/argmatch (Files): Add m4/argmatch.m4.
29942         (configure.ac): Add gl_ARGMATCH.
29943         (EXTRA_DIST): Renamed from lib_SOURCES, for
29944         consistency with the other modules.  Remove argmatch.c.
29945         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
29946         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
29947         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
29948         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
29949         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
29950         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
29951         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
29952         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
29953         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
29954         * modules/closeout (EXTRA_DIST): Add closeout.h.
29955         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
29956         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
29957         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
29958         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
29959         dirname.h; remove basename.c and stripslash.c.
29960         * modules/exclude (EXTRA_DIST): Add exclude.h.
29961         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
29962         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
29963         * modules/file-type (EXTRA_DIST): Add file-type.h.
29964         * modules/filemode (EXTRA_DIST): Add filemode.h.
29965         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
29966         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
29967         * modules/fpending (EXTRA_DIST): Add __fpending.h.
29968         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
29969         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
29970         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
29971         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
29972         * modules/getdate (EXTRA_DIST): Add getdate.c.
29973         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
29974         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
29975         * modules/getpass (EXTRA_DIST): Add getpass.h.
29976         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
29977         * modules/group-member (EXTRA_DIST): Add group-member.h.
29978         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
29979         * modules/hash (EXTRA_DIST): Add hash.h.
29980         * modules/human (EXTRA_DIST): Add human.h.
29981         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
29982         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
29983         * modules/lchown (EXTRA_DIST): Add lchown.h.
29984         * modules/long-options (EXTRA_DIST): Add long-options.h.
29985         * modules/lstat (EXTRA_DIST): Add lstat.h.
29986         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
29987         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
29988         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
29989         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
29990         * modules/memxor (EXTRA_DIST): Add memxor.h.
29991         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
29992         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
29993         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
29994         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
29995         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
29996         * modules/physmem (EXTRA_DIST): Add physmem.h.
29997         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
29998         * modules/posixver (EXTRA_DIST): Add posixver.h.
29999         * modules/quote (EXTRA_DIST): Add quote.h.
30000         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
30001         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
30002         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
30003         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
30004         regex_internal.h regexec.c.
30005         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
30006         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
30007         * modules/same (EXTRA_DIST): Add same.h.
30008         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
30009         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
30010         * modules/savedir (EXTRA_DIST): Add savedir.h.
30011         * modules/sha1 (EXTRA_DIST): Add sha1.h.
30012         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
30013         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
30014         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
30015         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
30016         * modules/strdup (EXTRA_DIST): Add strdup.h.
30017         * modules/strftime (EXTRA_DIST): Add strftime.h.
30018         * modules/strndup (EXTRA_DIST): Add strndup.h.
30019         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
30020         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
30021         * modules/time_r (EXTRA_DIST): Add time_r.h.
30022         * modules/timespec (EXTRA_DIST): Add timespec.h.
30023         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
30024         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
30025         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
30026         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
30027         * modules/userspec (EXTRA_DIST): Add userspec.h.
30028         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
30029         * modules/utimens (EXTRA_DIST): Add utimens.h.
30030         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
30031         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
30032         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
30033         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
30034         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
30035         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
30036         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
30037         * modules/yesno (EXTRA_DIST): Add yesno.h.
30038
30039 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
30040
30041         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
30042
30043         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
30044         * m4/dev-ino.m4, same-inode.m4: Remove.
30045
30046         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
30047         * m4/acl.m4 (AC_FUNC_ACL):
30048         * m4/backupfile.m4 (gl_BACKUPFILE):
30049         * m4/c-strtod.m4 (gl_C99_STRTOLD):
30050         * m4/canon-host.m4 (gl_CANON_HOST):
30051         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
30052         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
30053         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
30054         * m4/cloexec.m4 (gl_CLOEXEC):
30055         * m4/close-stream.m4 (gl_CLOSE_STREAM):
30056         * m4/closeout.m4 (gl_CLOSEOUT):
30057         * m4/dirfd.m4 (gl_FUNC_DIRFD):
30058         * m4/dirname.m4 (gl_DIRNAME):
30059         * m4/exclude.m4 (gl_EXCLUDE):
30060         * m4/exitfail.m4 (gl_EXITFAIL):
30061         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
30062         * m4/file-type.m4 (gl_FILE_TYPE):
30063         * m4/filemode.m4 (gl_FILEMODE):
30064         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
30065         * m4/fpending.m4 (gl_FUNC_FPENDING):
30066         * m4/fprintftime.m4 (gl_FPRINTFTIME):
30067         * m4/fts.m4 (gl_FUNC_FTS):
30068         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
30069         * m4/getdate.m4 (gl_GETDATE):
30070         * m4/gethrxtime.m4 (gl_GETHRXTIME):
30071         * m4/getpagesize.m4 (gl_GETPAGESIZE):
30072         * m4/getpass.m4 (gl_FUNC_GETPASS):
30073         * m4/gettime.m4 (gl_GETTIME):
30074         * m4/getugroups.m4 (gl_GETUGROUPS):
30075         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
30076         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
30077         * m4/hard-locale.m4 (gl_HARD_LOCALE):
30078         * m4/hash.m4 (gl_HASH):
30079         * m4/idcache.m4 (gl_IDCACHE):
30080         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
30081         * m4/lchown.m4 (gl_FUNC_LCHOWN):
30082         * m4/long-options.m4 (gl_LONG_OPTIONS):
30083         * m4/lstat.m4 (gl_FUNC_LSTAT):
30084         * m4/md5.m4 (gl_MD5):
30085         * m4/memcasecmp.m4 (gl_MEMCASECMP):
30086         * m4/memcoll.m4 (gl_MEMCOLL):
30087         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
30088         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
30089         * m4/memxor.m4 (gl_MEMXOR):
30090         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
30091         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
30092         * m4/modechange.m4 (gl_MODECHANGE):
30093         * m4/mountlist.m4 (gl_MOUNTLIST):
30094         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
30095         * m4/openat.m4 (gl_FUNC_OPENAT):
30096         * m4/pathmax.m4 (gl_PATHMAX):
30097         * m4/physmem.m4 (gl_PHYSMEM):
30098         * m4/posixtm.m4 (gl_POSIXTM):
30099         * m4/posixver.m4 (gl_POSIXVER):
30100         * m4/quote.m4 (gl_QUOTE):
30101         * m4/quotearg.m4 (gl_QUOTEARG):
30102         * m4/readtokens.m4 (gl_READTOKENS):
30103         * m4/readutmp.m4 (gl_READUTMP):
30104         * m4/regex.m4 (gl_REGEX):
30105         * m4/safe-read.m4 (gl_SAFE_READ):
30106         * m4/safe-write.m4 (gl_SAFE_WRITE):
30107         * m4/same.m4 (gl_SAME):
30108         * m4/save-cwd.m4 (gl_SAVE_CWD):
30109         * m4/savedir.m4 (gl_SAVEDIR):
30110         * m4/settime.m4 (gl_SETTIME):
30111         * m4/sha1.m4 (gl_SHA1):
30112         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
30113         * m4/stat-macros.m4 (gl_STAT_MACROS):
30114         * m4/stat-time.m4 (gl_STAT_TIME):
30115         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
30116         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
30117         * m4/strdup.m4 (gl_FUNC_STRDUP):
30118         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
30119         * m4/strndup.m4 (gl_FUNC_STRNDUP):
30120         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
30121         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
30122         * m4/time_r.m4 (gl_TIME_R):
30123         * m4/timespec.m4 (gl_TIMESPEC):
30124         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
30125         * m4/unlinkdir.m4 (gl_UNLINKDIR):
30126         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
30127         * m4/userspec.m4 (gl_USERSPEC):
30128         * m4/utimecmp.m4 (gl_UTIMECMP):
30129         * m4/utimens.m4 (gl_UTIMENS):
30130         * m4/xalloc.m4 (gl_XALLOC):
30131         * m4/xgetcwd.m4 (gl_XGETCWD):
30132         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
30133         * m4/xreadlink.m4 (gl_XREADLINK):
30134         * m4/xstrtod.m4 (gl_XSTRTOD):
30135         * m4/yesno.m4 (gl_YESNO):
30136         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
30137         to get the necessary .h files and whatnot.
30138
30139 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
30140             Bruno Haible  <bruno@clisp.org>
30141
30142         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
30143         /bin/sh understanding of '!' conditional negation.
30144
30145 2006-08-21  Jim Meyering  <jim@meyering.net>
30146
30147         * modules/openat (Depends-on): Really alphabetize.
30148
30149         * modules/acl (Depends-on): Add error and quote.
30150
30151         * check-module (find_included_lib_files): Add at-func.c to the
30152         ok-to-include-more-than-once white list.
30153
30154         * modules/openat (Depends-on): Add lstat.  Alphabetize.
30155
30156 2006-08-21  Bruno Haible  <bruno@clisp.org>
30157
30158         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30159         Emit a pkgdata_DATA variable only if some snippets add contents to it.
30160         Reported by Martin Lambers <marlam@marlam.de>.
30161
30162 2006-08-21  Bruno Haible  <bruno@clisp.org>
30163
30164         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
30165         specify an installation location, don't emit a noinst_LIBRARIES or
30166         noinst_LTLIBRARIES assignment.
30167
30168 2006-08-21  Bruno Haible  <bruno@clisp.org>
30169
30170         BeOS portability.
30171         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
30172         BeOS has mbrtowc() but no <wctype.h>.
30173
30174 2006-08-21  Bruno Haible  <bruno@clisp.org>
30175
30176         BeOS portability.
30177         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
30178         exist.
30179
30180 2006-08-21  Bruno Haible  <bruno@clisp.org>
30181
30182         BeOS portability.
30183         * lib/mbchar.h: Include <wctype.h> only if it exists.
30184
30185 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
30186
30187         Remove files that are no longer needed by their respective modules.
30188         * m4/obstack.m4: Remove.
30189         * m4/strerror_r.m4: Remove.
30190         * m4/uint32_t.m4: Remove.
30191         * m4/uintptr_t.m4: Remove.
30192         * m4/ullong_max.m4: Remove.
30193         * m4/xstrtoimax.m4: Remove.
30194         * m4/xstrtoumax.m4: Remove.
30195
30196         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
30197         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
30198         dependencies now capture this.
30199
30200         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
30201         Do not use AC_LIBSOURCES, since gnulib modules now do this.
30202         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
30203         * m4/human.m4 (gl_HUMAN): Likewise.
30204         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
30205         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
30206
30207         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
30208
30209         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
30210         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
30211         stdint.
30212         * m4/human.m4 (gl_HUMAN): Likewise.
30213         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
30214         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
30215         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
30216         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
30217         * m4/xstrtol (gl_XSTRTOL): Likewise.
30218
30219         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
30220         AC_TYPE_LONG_LONG_INT.
30221         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
30222         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
30223         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
30224         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
30225
30226         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
30227         on stdbool.
30228
30229         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
30230         (gl_PREREQ_XSTRTOUL): Remove.
30231
30232         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
30233
30234         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
30235         mode.
30236
30237 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
30238
30239         Add and change modules to make it easier for coreutils to use
30240         gnulib-tool.
30241         * modules/backupfile (Files): Remove m4/d-ino.m4.
30242         (Depends-on): Add d-ino.
30243         * modules/cycle-check (Depends-on): Add stdint.
30244         (lib_SOURCES): Add cycle-check.h.
30245         * modules/d-ino: New module.
30246         * modules/d-type: New module.
30247         * modules/error (Files): Remove m4/strerror_r.m4.
30248         * modules/filemode (Files): Add m4/st_dm_mode.m4.
30249         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
30250         m4/inttypes_h.m4, m4/uintmax_t.m4.
30251         (Depends-on): Add stdint.
30252         (lib_SOURCES): Add fsusage.h.
30253         * modules/getcwd (Files): Remove d-ino.m4.
30254         (Depends-on): Add d-ino.
30255         * modules/getndelim2 (Depends-on): Add stdint.
30256         * modules/glob (Files): Remove m4/d-type.m4.
30257         (Depends-on): Add d-type.
30258         * modules/host-os: New module.
30259         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
30260         m4/inttypes_h.m4, m4/uintmax_t.m4.
30261         * Depends-on: Add stdint.
30262         (lib_SOURCES): Add human.h.
30263         * modules/inttostr (Files): Remove m4/intmax_t.m4,
30264         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
30265         m4/uintmax_t.m4, m4/ulonglong.m4.
30266         (Depends-on): Add stdint.
30267         (EXTRA_DIST): Add inttostr.h.
30268         * modules/lchmod: New module.
30269         * modules/link-follow: New module.
30270         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
30271         (Depends-on): Add lchmod.
30272         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
30273         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
30274         (Depends-on): Add stdint.
30275         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
30276         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
30277         (Depends-on): Add stdint.
30278         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
30279         * modules/perl: New module.
30280         * modules/regex (Depends-on): Add stdint.
30281         * modules/rmdir-errno: New module.
30282         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
30283         m4/intmax_t.m4.
30284         (Depends-on): Add stdint.
30285         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
30286         m4/uintmax_t.m4.
30287         (Depends-on): Add stdint.
30288         * modules/unlink-busy: New module.
30289         * modules/utimecmp (Depends-on): Add stdint.
30290         * modules/uptime: New module.
30291         * modules/winsz-ioctl: New module.
30292         * modules/winsz-termios: New module.
30293         * modules/xnanosleep (Depends-on): Add nanosleep.
30294         * modules/ullong_max: Remove.
30295         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
30296         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
30297         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
30298         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
30299         (Depends-on): Add inttypes.
30300         (lib_SOURCES): Add xstrtol.h.
30301         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
30302         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
30303         * MODULES.html.sh: Move 'assert' into the assert section.
30304         Move 'dummy' into the linking section.
30305         Remove ullong_max.
30306         Add section for compatibility checks for POSIX:2001 functions,
30307         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
30308         winsz-ioctl, and winsz-termios into it.
30309         Add lchmod.
30310         Add top-level Misc section and put host-os, perl, and uptime
30311         into it.
30312
30313 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
30314
30315         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
30316         now assume the stdint module.  Do not include inttypes.h.
30317         * lib/fsusage.h: Likewise.
30318         * lib/getndelim2.c: Likewise.
30319         * lib/human.h: Likewise.
30320         * lib/inttostr.h: Likewise.
30321         * lib/obstack.c: Likewise.
30322         * lib/regex_internal.h: Likewise.
30323         * lib/tempname.c: Likewise.
30324         * lib/utimecmp.c: Likewise.
30325         * lib/xstrtol.h: Likewise.
30326
30327         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
30328
30329         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
30330         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
30331         * lib/xtime.h: Likewise.
30332
30333 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30334
30335         * modules/openat (Files): Add lib/fchmodat.c.
30336         Fixes problem reported by Jay Youngman.
30337
30338 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
30339
30340         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
30341         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
30342
30343 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
30344             Bruno Haible  <bruno@clisp.org>
30345
30346         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
30347         and is a script that invokes bison. Tighten the code. Add comments.
30348
30349 2006-08-18  Jim Meyering  <jim@meyering.net>
30350
30351         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
30352         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
30353         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
30354         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
30355
30356 2006-08-18  Bruno Haible  <bruno@clisp.org>
30357
30358         * modules/bison-i18n: New file.
30359         * MODULES.html.sh (Internationalization functions): Add it.
30360
30361 2006-08-18  Bruno Haible  <bruno@clisp.org>
30362
30363         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
30364         sys/statvfs.h. When getmntinfo was found, check its declaration and
30365         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
30366
30367 2006-08-18  Bruno Haible  <bruno@clisp.org>
30368
30369         * m4/bison-i18n.m4: New file, from bison.
30370
30371 2006-08-18  Bruno Haible  <bruno@clisp.org>
30372
30373         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
30374         (ME_DUMMY): Treat "kernfs" as a dummy.
30375         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
30376
30377 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
30378
30379         Update from coreutils.
30380
30381         2006-08-15  Jim Meyering  <jim@meyering.net>
30382
30383         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
30384
30385         2006-01-17  Jim Meyering  <jim@meyering.net>
30386
30387         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
30388
30389         2006-01-11  Jim Meyering  <jim@meyering.net>
30390
30391         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
30392         Check for the lchmod function.
30393
30394 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
30395
30396         Update from coreutils.
30397
30398         * lib/__fpending.h: Add copyright notice.
30399         * lib/fprintftime.h: Likewise.
30400         * lib/savedir.c: Use (C) in copyright notice.
30401         * lib/savedir.h: Likewise.
30402
30403         2006-08-15  Jim Meyering  <jim@meyering.net>
30404
30405         * lib/at-func.c: New file, with the logic of all emulated at-functions.
30406         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
30407         in support of the EXPECTED_ERRNO macro.
30408         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
30409         definitions.  Instead, define the appropriate symbols and include
30410         "at-func.c".
30411         * lib/mkdirat.c (mkdirat): Likewise.
30412         * lib/fchmodat.c (fchmodat): Likewise.
30413         (ENOSYS): Remove definition.
30414         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
30415         it.  Don't include "unistd--.h" -- it wasn't ever used.
30416
30417         2006-01-17  Jim Meyering  <jim@meyering.net>
30418
30419         Rewrite fts.c not to change the current working directory,
30420         by using openat, fstatat, fdopendir, etc..
30421
30422         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
30423         (HAVE_OPENAT_SUPPORT): Define.
30424         [_LIBC] (fchdir): Don't undef or define; no longer used.
30425         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
30426         Now, this `function' always succeeds, and consumes its file descriptor
30427         parameter -- so callers must not close such FDs.  Update callers.
30428         (diropen_fd, opendirat, cwd_advance_fd): New functions.
30429         (diropen): Add parameter, SP.  Adjust all callers.
30430         Implement using diropen_fd, rather than open.
30431         (fts_open): Initialize new member, fts_cwd_fd.
30432         Remove fts_rft-setting code.
30433         (fts_close): Close fts_cwd_fd, if necessary.
30434         (__opendir2): Define in terms of opendir or opendirat,
30435         depending on whether the FST_NOCHDIR flag is set.
30436         (fts_build): Since fts_safe_changedir consumes its FD, and since
30437         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
30438         and close the dup'd file descriptor upon failure.
30439         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
30440         (fts_safe_changedir): Tweak semantics to reflect that this function
30441         now calls cwd_advance_fd and hence consumes its FD argument.
30442         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
30443         [struct FTS] (fts_rft): Remove now-unused member.
30444         [struct FTS] (fts_cycle.state): Improve comment.
30445
30446         * lib/openat.c (openat_needs_fchdir): New function.
30447         * lib/openat.h (openat_needs_fchdir): Declare it.
30448
30449 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
30450
30451         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
30452         Problem and fix reported by Pádraig Brady in
30453         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
30454
30455 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30456
30457         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
30458
30459 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30460
30461         * lib/memcoll.c (memcoll): Optimize for the common case where the
30462         arguments are bytewise equal.
30463
30464 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30465
30466         * doc/regexprops-generic.texi: Add a copyright notice.
30467
30468 2006-08-15  Bruno Haible  <bruno@clisp.org>
30469
30470         * modules/tmpdir (License): Change to LGPL.
30471
30472 2006-08-15  Bruno Haible  <bruno@clisp.org>
30473
30474         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
30475         module.
30476
30477 2006-08-14  Simon Josefsson  <jas@extundo.com>
30478
30479         * config/srclist.txt: Add gnupload.
30480
30481 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30482
30483         Change copyright notice from LGPL 2 to GPL 2, since that's the
30484         standard form used in the gnulib repository.
30485         * tests/test-lock.c: Likewise.
30486         * tests/test-stdint.c: Likewise.
30487         * tests/test-tls.c: Likewise.
30488
30489         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
30490         prelude-manager.  User shorter URLs for GNU projects, without '?'.
30491         Add copyright notice.
30492
30493         * check-module: Add copyright notice.  Output a copyright
30494         notice if "--version" is specified.
30495         * modules/COPYING: New file.
30496         * tests/test-getaddrinfo.c: Add copyright notice.
30497         * tests/test-verify.c: Likewise.
30498
30499 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30500
30501         Change copyright notice from LGPL 2 to GPL 2, since that's the
30502         standard form used in the gnulib repository.
30503         * lib/lock.c: LGPL -> GPL.
30504         * lib/lock.h: Likewise.
30505         * lib/strnlen1.c: Likewise.
30506         * lib/strnlen1.h: Likewise.
30507         * lib/tls.c: Likewise.
30508         * lib/tls.h: Likewise.
30509         * lib/tmpdir.c: Likewise.
30510
30511         * lib/TODO: Remove; this belongs only in coreutils.
30512
30513 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30514
30515         Add copyright notices to long-enough files that lack them, since
30516         otherwise the files aren't clearly free.  Use the same notice that
30517         getdate.texi already uses.
30518         * doc/alloca-opt.texi: Add copyright notice.
30519         * doc/alloca.texi: Likewise.
30520         * doc/ctime.texi: Likewise.
30521         * doc/functions.texi: Likewise.
30522         * doc/gcd.texi: Likewise.
30523         * doc/gnulib-tool.texi: Likewise.
30524         * doc/inet_ntoa.texi: Likewise.
30525         * doc/visibility.texi: Likewise.
30526
30527         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
30528         * doc/quote.texi: Add copyright notice.
30529
30530         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
30531         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
30532         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
30533         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
30534         is now obsolete, and give a pointer to the Sun list.
30535         Add copyright notice.
30536
30537 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30538
30539         * config/srclistvars.sh: Add copyright notice.
30540
30541 2006-08-14  Eric Blake  <ebb9@byu.net>
30542
30543         Import the following change from libc:
30544
30545         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
30546
30547         Upstream bug 2997.
30548         * lib/misc/error.c: Add space between program name and message if file
30549         name is missing.
30550
30551 2006-08-12  Karl Berry  <karl@gnu.org>
30552
30553         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
30554         remove, these originate in gnulib now.
30555
30556 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30557
30558         * doc/Makefile (standards.info standards.html standards.dvi):
30559         Also depend on make-stds.texi.
30560
30561 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30562
30563         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
30564         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
30565
30566         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
30567         in wchar_t.  Problem reported by Eric Blake.
30568
30569         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
30570         LEN is smaller than SIZE.  Suggested by Bruno Haible.
30571         Also, help the compiler to keep LEN in a register.
30572
30573 2006-08-11  Eric Blake  <ebb9@byu.net>
30574
30575         * users.txt: Sort.  Add tar.
30576
30577 2006-08-11  Bruno Haible  <bruno@clisp.org>
30578
30579         * users.txt: New file.
30580
30581 2006-08-11  Bruno Haible  <bruno@clisp.org>
30582
30583         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
30584         before <wchar.h>. Needed for OSF/1 and BSD/OS.
30585
30586 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30587
30588         * modules/snprintf (Depends-on): Remove minmax.
30589         (Maintainer): Add self and Bruno.
30590
30591 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30592
30593         * lib/.cppi-disable: Add snprintf.h, socket_.h.
30594         * lib/snprintf.c: Include <errno.h> and <limits.h>.
30595         (EOVERFLOW): Define if the system does not.
30596         Do not include "minmax.h"; it wasn't used.
30597         (snprintf): Don't assume size_t promotes to an unsigned type.
30598         Fix bug when generated string was too long for the buffer: the
30599         buffer's contents are supposed to be the initial prefix of the
30600         output.  Don't assume vasnprintf returns EOVERFLOW if the size
30601         exceeds INT_MAX; do the check ourselves.
30602
30603         Import the following changes from libc:
30604
30605         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
30606
30607         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
30608         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
30609         set wc to the byte which couldn't be converted.
30610         (re_string_reconstruct): Don't clear valid_raw_len before calling
30611         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
30612         tip_context using re_string_context_at.
30613
30614         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
30615
30616         * lib/posix/regex.h: g++ still cannot handled [restrict].
30617
30618         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
30619
30620         * lib/posix/regex.h: Remove special handling for VMS.
30621
30622 2006-08-10  Jim Meyering  <jim@meyering.net>
30623
30624         * modules/same-inode: New module.
30625         * modules/dev-ino: New module.
30626         * modules/cycle-check: Depend on these modules, rather than simply
30627         including their .h files.
30628         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
30629         required via m4/cycle-check.m4.
30630         * modules/same: Depend on new same-inode module, rather than
30631         including same-inode.h.
30632         * modules/chdir-safer: New file.
30633
30634         * modules/chown (Depends-on): Add stat-macros.
30635
30636 2006-08-10  Jim Meyering  <jim@meyering.net>
30637
30638         * m4/cycle-check.m4: New file.
30639         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
30640         * m4/dev-ino.m4, m4/same-inode.m4: New files.
30641
30642 2006-08-10  Eric Blake  <ebb9@byu.net>
30643
30644         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
30645         in from original proposal.
30646
30647 2006-08-10  Eric Blake  <ebb9@byu.net>
30648         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30649
30650         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
30651         namespace.
30652
30653 2006-08-10  Bruno Haible  <bruno@clisp.org>
30654
30655         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
30656         as well.
30657
30658 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30659
30660         Sync from coreutils.
30661
30662         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
30663
30664         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
30665         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
30666
30667 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30668
30669         * modules/restrict: Remove; no longer needed now that we assume
30670         Autoconf 2.59 or later.
30671         * MODULES.html.sh: Remove 'restrict'.
30672         * modules/argp (Depends-on): Remove 'restrict'.
30673         * modules/base64 (Depends-on): Likewise.
30674         * modules/gc (Depends-on): Likewise.
30675         * modules/getaddrinfo (Depends-on): Likewise.
30676         * modules/glob (Depends-on): Likewise.
30677         * modules/inet_ntop (Depends-on): Likewise.
30678         * modules/inet_pton (Depends-on): Likewise.
30679         * modules/memxor (Depends-on): Likewise.
30680         * modules/regex (Depends-on): Likewise.
30681         * modules/strtok_r (Depends-on): Likewise.
30682         * modules/time_r (Depends-on): Likewise.
30683
30684 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30685
30686         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
30687         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
30688         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
30689         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
30690         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
30691         * m4/memxor.m4 (gl_MEMXOR): Likewise.
30692         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
30693         gl_C_RESTRICT replaced by AC_C_RESTRICT.
30694
30695         Merge from coreutils.
30696         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
30697         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
30698         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
30699         * m4/time_r.m4 (gl_TIME_R): Likewise.
30700
30701 2006-08-09  Karl Berry  <karl@gnu.org>
30702
30703         * config/srclist.txt: no more gettext-tools, per Bruno.
30704
30705 2006-08-08  Eric Blake  <ebb9@byu.net>
30706
30707         * modules/verror: New module.
30708         * MODULES.html.sh: Document it.
30709
30710 2006-08-08  Eric Blake  <ebb9@byu.net>
30711
30712         * lib/verror.h, lib/verror.c: New files.
30713
30714 2006-08-08  Eric Blake  <ebb9@byu.net>
30715
30716         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
30717         verror_at_line output complies with GNU Coding Standards even when
30718         file is NULL.
30719
30720 2006-08-07  Bruno Haible  <bruno@clisp.org>
30721
30722         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
30723         versions of AIX.
30724         Reported by Ralf Wildenhues.
30725
30726 2006-08-07  Bruno Haible  <bruno@clisp.org>
30727
30728         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
30729         in an AC_DEFUN. Needed so that the autoconf snippets can use
30730         AC_REQUIRE.
30731
30732 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30733
30734         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30735         Initialize pkgdata_DATA.
30736         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
30737         overriding it.
30738
30739 2006-08-06  Eric Blake  <ebb9@byu.net>
30740
30741         * lib/error.h: Fold in some upstream changes from glibc.
30742         * lib/error.c: Likewise.
30743
30744 2006-08-04  Bruno Haible  <bruno@clisp.org>
30745
30746         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30747         Make the mostlyclean-local rule depend on mostlyclean-generic.
30748         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
30749
30750 2006-07-31  Bruno Haible  <bruno@clisp.org>
30751
30752         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
30753         <stdlib.h>, <string.h>.
30754
30755 2006-07-30  Bruno Haible  <bruno@clisp.org>
30756
30757         * modules/readlink (License): Change to LGPL.
30758
30759 2006-07-30  Bruno Haible  <bruno@clisp.org>
30760
30761         * modules/javaversion (Makefile.am): Distribute javaversion.java and
30762         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
30763         set PKGDATADIR to point to it.
30764
30765 2006-07-30  Bruno Haible  <bruno@clisp.org>
30766
30767         * modules/csharpexec (configure.ac): Comment out macro invocation.
30768         * modules/javaexec (configure.ac): Likewise.
30769         * modules/javacomp-script (configure.ac): Likewise.
30770
30771         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
30772
30773 2006-07-30  Bruno Haible  <bruno@clisp.org>
30774
30775         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
30776         linked-list.
30777
30778 2006-07-30  Bruno Haible  <bruno@clisp.org>
30779
30780         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
30781
30782 2006-07-30  Bruno Haible  <bruno@clisp.org>
30783
30784         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30785         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
30786         get removed.
30787
30788 2006-07-29  Bruno Haible  <bruno@clisp.org>
30789
30790         Make it possible for gnulib-tool to work with locally modified or
30791         augmented gnulib repositories.
30792         * gnulib-tool (func_usage): Document --local-dir option.
30793         (local_gnulib_dir): New variable.
30794         Handle --local-dir option.
30795         (func_lookup_file): New function.
30796         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
30797         (func_get_description, func_get_filelist, func_get_description,
30798         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
30799         func_get_automake_snippet, func_get_include_directive,
30800         func_get_license, func_get_maintainer): Use func_lookup_file.
30801         (func_import, func_create_testdir): Use func_lookup_file.
30802
30803 2006-07-29  Bruno Haible  <bruno@clisp.org>
30804
30805         * modules/setenv (Depends-on): Add unistd.
30806
30807 2006-07-29  Bruno Haible  <bruno@clisp.org>
30808
30809         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
30810
30811 2006-07-29  Bruno Haible  <bruno@clisp.org>
30812
30813         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
30814
30815 2006-07-29  Bruno Haible  <bruno@clisp.org>
30816
30817         * gnulib-tool (import, update): If there is no Makefile.am, look at
30818         aclocal.m4, instead of bailing out.
30819
30820 2006-07-29  Bruno Haible  <bruno@clisp.org>
30821
30822         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
30823         Categorize the options by when they are useful.
30824
30825 2006-07-29  Bruno Haible  <bruno@clisp.org>
30826
30827         * gnulib-tool (func_usage): Document option --no-libtool.
30828         Handle option --no-libtool.
30829         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
30830         for changed semantics of $libtool variable.
30831         (func_import): Likewise. If libtool is not used, show this through
30832         an option --no-libtool.
30833         (func_create_testdir): Update.
30834
30835 2006-07-29  Bruno Haible  <bruno@clisp.org>
30836
30837         * gnulib-tool (func_import): Extend error message about missing
30838         --doc-base.
30839
30840 2006-07-29  Bruno Haible  <bruno@clisp.org>
30841
30842         * gnulib-tool (func_import): Don't create the $docbase directory if
30843         there is no file to store there.
30844
30845 2006-07-29  Bruno Haible  <bruno@clisp.org>
30846
30847         * gnulib-tool (autoconf_minversion): If a --dir option is given and
30848         relevant, look for configure.ac there, not in the current directory.
30849         Also use a simple search for AC_PREREQ, not "autoconf --trace".
30850
30851 2006-07-29  Bruno Haible  <bruno@clisp.org>
30852
30853         * gnulib-tool (SORT): New variable.
30854         (func_usage): Undocument --assume-autoconf option.
30855         Remove --assume-autoconf option handling.
30856         (autoconf_minversion): Determine from the contents of configure.ac.
30857         (func_import): Remove autoconf_minversion handling.
30858         Suggested by Eric Blake.
30859
30860 2006-07-29  Bruno Haible  <bruno@clisp.org>
30861
30862         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
30863
30864 2006-07-29  Bruno Haible  <bruno@clisp.org>
30865
30866         * config/srclist.txt (*setenv.[ch]): Remove rules.
30867
30868 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30869
30870         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
30871
30872 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30873
30874         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
30875         arpa/inet.h.
30876
30877 2006-07-28  Simon Josefsson  <jas@extundo.com>
30878
30879         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
30880         * modules/inet_pton (Depends-on): Likewise.
30881
30882 2006-07-28  Simon Josefsson  <jas@extundo.com>
30883
30884         * m4/netinet_in_h.m4: New file.
30885
30886 2006-07-28  Simon Josefsson  <jas@extundo.com>
30887
30888         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
30889         #include's.
30890
30891 2006-07-28  Simon Josefsson  <jas@extundo.com>
30892
30893         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
30894         #include's.
30895
30896 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
30897
30898         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
30899         setgid on directories only if they set these bits.
30900         * lib/modechange.h: Remove obsolete comment about masks.
30901
30902 2006-07-28  Eric Blake  <ebb9@byu.net>
30903
30904         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
30905         macro expansion.
30906
30907 2006-07-28  Bruno Haible  <bruno@clisp.org>
30908
30909         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
30910
30911 2006-07-28  Bruno Haible  <bruno@clisp.org>
30912
30913         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
30914
30915 2006-07-28  Bruno Haible  <bruno@clisp.org>
30916
30917         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
30918         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
30919         Define fallbacks.
30920         Avoids link error on FreeBSD 4.x.
30921         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30922
30923         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
30924         encoding.
30925         * lib/mbswidth.c (iswcntrl): Likewise.
30926
30927 2006-07-27  Bruno Haible  <bruno@clisp.org>
30928
30929         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
30930         test.
30931
30932 2006-07-27  Bruno Haible  <bruno@clisp.org>
30933
30934         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
30935         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
30936         defined.
30937
30938 2006-07-26  Eric Blake  <ebb9@byu.net>
30939
30940         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
30941
30942 2006-07-26  Eric Blake  <ebb9@byu.net>
30943
30944         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
30945         like mingw that lack mkstemp.
30946         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
30947         avoid compilation warning on mingw.
30948
30949 2006-07-26  Bruno Haible  <bruno@clisp.org>
30950
30951         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
30952         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
30953         INT_FAST*_MIN, INTPTR_MIN.
30954
30955 2006-07-25  Bruno Haible  <bruno@clisp.org>
30956
30957         * modules/version-etc (Depends-on): Add stdarg.
30958
30959 2006-07-25  Bruno Haible  <bruno@clisp.org>
30960
30961         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
30962         complex commands.
30963
30964 2006-07-25  Bruno Haible  <bruno@clisp.org>
30965
30966         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
30967         defined in <stdarg.h> or config.h.
30968
30969 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
30970
30971         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
30972         (gl_STDIO_SAFER): Remove.
30973
30974 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
30975
30976         * MODULES.html.sh (File stream based Input/Output):
30977         Add fopen-safer, tmpfile-safer; remove stdio-safer.
30978         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
30979         * modules/fopen-safer, modules/tmpfile-safer: New files.
30980         * modules/stdio-safer: Remove.
30981
30982 2006-07-24  Bruno Haible  <bruno@clisp.org>
30983
30984         * modules/tmpdir: New file.
30985         * MODULES.html.sh (File system functions): Add it.
30986
30987 2006-07-24  Bruno Haible  <bruno@clisp.org>
30988
30989         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
30990         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
30991
30992 2006-07-24  Bruno Haible  <bruno@clisp.org>
30993
30994         * modules/clean-temp: New file.
30995
30996 2006-07-24  Bruno Haible  <bruno@clisp.org>
30997
30998         * m4/tmpdir.m4: New file, from GNU gettext.
30999
31000 2006-07-24  Bruno Haible  <bruno@clisp.org>
31001
31002         * lib/tmpdir.h: New file, from GNU gettext.
31003         * lib/tmpdir.c: New file, from GNU gettext.
31004
31005 2006-07-24  Bruno Haible  <bruno@clisp.org>
31006
31007         * lib/clean-temp.h: New file, from GNU gettext.
31008         * lib/clean-temp.c: New file, from GNU gettext.
31009
31010 2006-07-23  Eric Blake  <ebb9@byu.net>
31011
31012         * modules/stdio-safer (Files): Add tmpfile-safer.c.
31013         (Depends-on): Add binary-io.
31014
31015 2006-07-23  Eric Blake  <ebb9@byu.net>
31016
31017         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
31018
31019 2006-07-23  Eric Blake  <ebb9@byu.net>
31020
31021         * lib/tmpfile-safer.c: New file.
31022         * lib/stdio-safer.h (fopen_safer): Add prototype.
31023         * lib/stdio--.h (tmpfile): Make safer.
31024
31025 2006-07-23  Bruno Haible  <bruno@clisp.org>
31026
31027         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
31028         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
31029         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
31030         gl_linked_remove_at): Use it.
31031
31032 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31033         and Simon Josefsson <jas@extundo.com>
31034
31035         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
31036
31037         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
31038
31039 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
31040
31041         * modules/close-stream: New file.
31042         * modules/closeout (Description): Make it clear that it exits
31043         with a diagnostic on error.
31044         (Depends-on): Add close-stream.  Remove fpending, stdbool.
31045         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
31046
31047 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
31048
31049         * m4/close-stream.m4: New file.
31050
31051 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
31052
31053         * lib/close-stream.c, lib/close-stream.h: New files.
31054
31055 2006-07-22  Bruno Haible  <bruno@clisp.org>
31056
31057         Merge from GNU gettext 0.15.
31058
31059         2006-05-01  Bruno Haible  <bruno@clisp.org>
31060
31061                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
31062
31063         2006-07-22  Bruno Haible  <bruno@clisp.org>
31064
31065                 * modules/javaversion: New file.
31066                 * MODULES.html.sh (Java): Add javaversion.
31067
31068         2006-03-12  Bruno Haible  <bruno@clisp.org>
31069
31070                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
31071
31072         2005-12-04  Bruno Haible  <bruno@clisp.org>
31073
31074                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
31075                 (untested).
31076
31077         2006-06-21  Bruno Haible  <bruno@clisp.org>
31078
31079                 Avoid warnings from recent versions of mcs.
31080                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
31081                 -o, -L, -r any more. Use options documented since mcs-1.0
31082                 instead. Similarly for -g.
31083
31084         2005-12-04  Bruno Haible  <bruno@clisp.org>
31085
31086                 * build-aux/csharpcomp.sh.in: Suffix for resources is
31087                 .resources, not .resource.
31088
31089         2005-07-09  Bruno Haible  <bruno@clisp.org>
31090
31091                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
31092                 add a .dll suffix.
31093                 Reported by Mark Junker <mjscod@gmx.de>.
31094
31095         2006-07-22  Bruno Haible  <bruno@clisp.org>
31096
31097                 * modules/gettext: Upgrade to gettext-0.15.
31098                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
31099                 m4/visibility.m4.
31100                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
31101
31102 2006-07-22  Bruno Haible  <bruno@clisp.org>
31103
31104         Merge from GNU gettext 0.15.
31105
31106         2006-03-25  Bruno Haible  <bruno@clisp.org>
31107
31108                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
31109
31110         2006-07-21  Bruno Haible  <bruno@clisp.org>
31111
31112                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
31113                 "1.1".
31114
31115         2006-05-09  Bruno Haible  <bruno@clisp.org>
31116
31117                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
31118                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
31119                 for the conftestver execution.
31120
31121         2006-05-01  Bruno Haible  <bruno@clisp.org>
31122
31123                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
31124                 optional target-version argument. Verify that the compiler
31125                 groks source of the specified source-version, or add -source
31126                 option as necessary. Verify that the compiler produces
31127                 bytecode in the specified target-version, or add -target and
31128                 -source options as necessary. Make the result of the test
31129                 available as variable CONF_JAVAC. Also log error output in
31130                 config.log.
31131
31132         2006-03-11  Bruno Haible  <bruno@clisp.org>
31133
31134                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
31135
31136         2006-05-09  Bruno Haible  <bruno@clisp.org>
31137
31138                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
31139                 CLASSPATH_SEPARATOR to a semicolon.
31140
31141         2006-03-12  Bruno Haible  <bruno@clisp.org>
31142
31143                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
31144                 available as variable CONF_JAVA, for subsequent autoconf
31145                 tests. Also log error output in config.log.
31146
31147         2006-07-19  Bruno Haible  <bruno@clisp.org>
31148
31149                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
31150                 that getline works on glibc2 systems. Needed to avoid trouble
31151                 in relocatable.c.
31152                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
31153
31154         2005-12-04  Bruno Haible  <bruno@clisp.org>
31155
31156                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
31157                 launcher (untested).
31158
31159         2005-12-04  Bruno Haible  <bruno@clisp.org>
31160
31161                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
31162
31163         2006-07-22  Bruno Haible  <bruno@clisp.org>
31164
31165                 * gettext.m4: Update from GNU gettext-0.15.
31166                 * nls.m4: Likewise.
31167                 * po.m4: Likewise.
31168                 * inttypes-pri.m4: Likewise.
31169                 * inttypes-h.m4: Renamed from inttypes.m4.
31170                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
31171
31172 2006-07-22  Bruno Haible  <bruno@clisp.org>
31173
31174         Merge from GNU gettext 0.15.
31175
31176         2005-07-05  Bruno Haible  <bruno@clisp.org>
31177
31178                 * printf-args.c (printf_fetchargs): Work around broken
31179                 definition of wint_t on mingw.
31180
31181         2005-02-12  Bruno Haible  <bruno@clisp.org>
31182
31183                 * xallocsa.h: Add extern "C" for C++.
31184
31185         2006-05-17  Bruno Haible  <bruno@clisp.org>
31186
31187                 Cygwin portability.
31188                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
31189
31190         2006-04-30  Bruno Haible  <bruno@clisp.org>
31191
31192                 * progreloc.c: Include <mach-o/dyld.h> if available.
31193                 (find_executable): Use _NSGetExecutablePath when possible.
31194
31195         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
31196
31197                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
31198                 function.
31199
31200         2005-12-29  Bruno Haible  <bruno@clisp.org>
31201
31202                 * progreloc.c (set_program_name_and_installdir): Fix
31203                 compilation error.
31204
31205         2005-12-04  Bruno Haible  <bruno@clisp.org>
31206
31207                 Cygwin portability.
31208                 * progreloc.c: Include <windows.h> also on Cygwin.
31209                 (find_executable): Add support for Cygwin.
31210                 (set_program_name_and_installdir): Handle also platforms with
31211                 nonempty EXEEXT.
31212
31213         2006-07-11  Bruno Haible  <bruno@clisp.org>
31214
31215                 * javacomp.c: Fix a comment.
31216                 Reported by Jim Meyering.
31217
31218         2006-04-30  Bruno Haible  <bruno@clisp.org>
31219
31220                 * javacomp.h (compile_java_class): Add source_version,
31221                 target_version arguments.
31222                 * javacomp.c: Rewritten to choose only a compiler that
31223                 respects the specified source_version and target_version.
31224
31225         2006-06-27  Bruno Haible  <bruno@clisp.org>
31226
31227                 Assume correct S_ISDIR macro.
31228                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
31229
31230         2006-07-22  Bruno Haible  <bruno@clisp.org>
31231
31232                 * javaversion.h: New file, from GNU gettext.
31233                 * javaversion.c: New file, from GNU gettext.
31234                 * javaversion.java: New file, from GNU gettext.
31235                 * javaversion.class: New file, from GNU gettext.
31236
31237         2006-05-17  Bruno Haible  <bruno@clisp.org>
31238
31239                 Cygwin portability.
31240                 * javaexec.c (execute_java_class): Test for jview program
31241                 also on Cygwin.
31242
31243         2006-04-09  Bruno Haible  <bruno@clisp.org>
31244
31245                 * fatal-signal.c: Don't include string.h.
31246                 (at_fatal_signal): Use a copying loop instead of memcpy.
31247
31248         2005-12-04  Bruno Haible  <bruno@clisp.org>
31249
31250                 * csharpexec.c: Add support for 'clix' launcher (untested).
31251                 (execute_csharp_using_sscli): New function.
31252                 (execute_csharp_program): Call it.
31253
31254         2006-06-21  Bruno Haible  <bruno@clisp.org>
31255
31256                 Avoid warnings from recent versions of mcs.
31257                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
31258                 -o, -L, -r any more. Use options documented since mcs-1.0
31259                 instead. Similarly for -g.
31260
31261         2005-07-09  Bruno Haible  <bruno@clisp.org>
31262
31263                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
31264                 add a .dll suffix.
31265                 Reported by Mark Junker <mjscod@gmx.de>.
31266
31267         2006-06-17  Bruno Haible  <bruno@clisp.org>
31268
31269                 * config.charset: Update for NetBSD 3.0.
31270
31271         2006-05-17  Bruno Haible  <bruno@clisp.org>
31272
31273                 Cygwin portability.
31274                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
31275
31276         2006-05-16  Bruno Haible  <bruno@clisp.org>
31277
31278                 * localcharset.c [CYGWIN]: Include <windows.h>.
31279                 (get_charset_aliases): For Cygwin, return the same CPxxx
31280                 aliases list as under WIN32.
31281                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
31282                 the environment variables. Fall back to GetACP().
31283
31284         2006-04-05  Bruno Haible  <bruno@clisp.org>
31285
31286                 * config.charset: Update Juan Manuel Guerrero's address.
31287
31288         2005-02-12  Bruno Haible  <bruno@clisp.org>
31289
31290                 * allocsa.h: Add extern "C" for C++.
31291
31292         2005-02-10  Bruno Haible  <bruno@clisp.org>
31293
31294                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
31295                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
31296
31297         2006-07-22  Bruno Haible  <bruno@clisp.org>
31298
31299                 * gettext.h: Update to GNU gettext-0.15.
31300
31301 2006-07-22  Bruno Haible  <bruno@clisp.org>
31302
31303         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
31304         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
31305         lib-prefix.m4, longdouble.m4, ssize_t.m4.
31306
31307 2006-07-21  Eric Blake  <ebb9@byu.net>
31308
31309         * modules/stdlib-safer: New file.
31310         * MODULES.html.sh (File stream based Input/Output): Add
31311         stdlib-safer.
31312
31313 2006-07-21  Eric Blake  <ebb9@byu.net>
31314
31315         * lib/stdlib-safer.h: New file from coreutils, required by
31316         stdlib--.h.
31317
31318 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
31319
31320         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
31321
31322 2006-07-20  Bruno Haible  <bruno@clisp.org>
31323
31324         * gnulib-tool: Recognize new option --assume-autoconf.
31325         (autoconf_minversion): New variable.
31326         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
31327
31328 2006-07-20  Bruno Haible  <bruno@clisp.org>
31329
31330         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
31331
31332 2006-07-19  Derek R. Price  <derek@ximbiot.com>
31333
31334         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
31335         Reindent and repaginate.
31336
31337 2006-07-19  Derek Price  <derek@ximbiot.com>
31338
31339         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
31340         Correct grammar.
31341
31342 2006-07-17  Bruno Haible  <bruno@clisp.org>
31343
31344         * modules/list: New file.
31345         * modules/array-list: New file.
31346         * modules/carray-list, modules/carray-list-tests: New files.
31347         * modules/linked-list, modules/linked-list-tests: New files.
31348         * modules/avltree-list, modules/avltree-list-tests: New files.
31349         * modules/rbtree-list, modules/rbtree-list-tests: New files.
31350         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
31351         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
31352         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
31353         * modules/oset: New file.
31354         * modules/array-oset: New file.
31355         * modules/avltree-oset, modules/avltree-oset-tests: New files.
31356         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
31357         * tests/test-carray_list.c: New file.
31358         * tests/test-linked_list.c: New file.
31359         * tests/test-avltree_list.c: New file.
31360         * tests/test-rbtree_list.c: New file.
31361         * tests/test-linkedhash_list.c: New file.
31362         * tests/test-avltreehash_list.c: New file.
31363         * tests/test-rbtreehash_list.c: New file.
31364         * tests/test-avltree_oset.c: New file.
31365         * tests/test-rbtree_oset.c: New file.
31366         * MODULES.html.sh (Container data structures): New section.
31367
31368 2006-07-17  Bruno Haible  <bruno@clisp.org>
31369
31370         * m4/gl_list.m4: New file.
31371
31372 2006-07-17  Bruno Haible  <bruno@clisp.org>
31373
31374         * lib/gl_list.h: New file.
31375         * lib/gl_list.c: New file.
31376         * lib/gl_array_list.h: New file.
31377         * lib/gl_array_list.c: New file.
31378         * lib/gl_carray_list.h: New file.
31379         * lib/gl_carray_list.c: New file.
31380         * lib/gl_linked_list.h: New file.
31381         * lib/gl_linked_list.c: New file.
31382         * lib/gl_anylinked_list1.h: New file.
31383         * lib/gl_anylinked_list2.h: New file.
31384         * lib/gl_avltree_list.h: New file.
31385         * lib/gl_avltree_list.c: New file.
31386         * lib/gl_anyavltree_list1.h: New file.
31387         * lib/gl_anyavltree_list2.h: New file.
31388         * lib/gl_rbtree_list.h: New file.
31389         * lib/gl_rbtree_list.c: New file.
31390         * lib/gl_anyrbtree_list1.h: New file.
31391         * lib/gl_anyrbtree_list2.h: New file.
31392         * lib/gl_anytree_list1.h: New file.
31393         * lib/gl_anytree_list2.h: New file.
31394         * lib/gl_linkedhash_list.h: New file.
31395         * lib/gl_linkedhash_list.c: New file.
31396         * lib/gl_anyhash_list1.h: New file.
31397         * lib/gl_anyhash_list2.h: New file.
31398         * lib/gl_avltreehash_list.h: New file.
31399         * lib/gl_avltreehash_list.c: New file.
31400         * lib/gl_rbtreehash_list.h: New file.
31401         * lib/gl_rbtreehash_list.c: New file.
31402         * lib/gl_anytreehash_list1.h: New file.
31403         * lib/gl_anytreehash_list2.h: New file.
31404
31405         * lib/gl_oset.h: New file.
31406         * lib/gl_oset.c: New file.
31407         * lib/gl_array_oset.h: New file.
31408         * lib/gl_array_oset.c: New file.
31409         * lib/gl_avltree_oset.h: New file.
31410         * lib/gl_avltree_oset.c: New file.
31411         * lib/gl_rbtree_oset.h: New file.
31412         * lib/gl_rbtree_oset.c: New file.
31413         * lib/gl_anytree_oset.h: New file.
31414
31415 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
31416
31417         * m4/mkancesdirs.m4: New file.
31418         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
31419         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
31420         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
31421         it.
31422
31423 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
31424
31425         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
31426         * lib/mkancesdirs.h: New files.
31427         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
31428         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
31429         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
31430         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
31431         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
31432         callers changed.  Revamp internals significantly, by not
31433         attempting to create directories that are temporarily more
31434         permissive than the final results.  Do not attempt to use
31435         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
31436         This removes some race conditions, fixes some bugs, and simplifies
31437         things.  Use new dirchownmod function to do owner and mode changes.
31438         * lib/mkdir-p.h: Likewise.
31439         * lib/modechange.c (octal_to_mode): New function.
31440         (struct mode_change): New member mentioned.
31441         (make_node_op_equals): New arg mentioned.  All callers changed.
31442         (mode_compile): Keep track of which mode bits the user has explicitly
31443         mentioned.
31444         (mode_adjust): New arg DIR, so that we implement the X op correctly.
31445         New arg PMODE_BITS, to keep track of which mode bits the user
31446         mentioned; it treats S_ISUID and S_ISGID speciall.
31447         All callers changed.
31448         * lib/modechange.h: Likewise.
31449
31450 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
31451
31452         * MODULES.html.sh: Add mkancestors.
31453         * modules/mkancesdirs: New module.
31454         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
31455         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
31456         The chdir-safer and afs files are now orphans; I'll remove them
31457         unless someone speaks up.
31458         Add lib/dirchownmod.c, lib/dirchownmod.h.
31459         (Depends-on): Remove alloca, chown, save-cwd, dirname.
31460         Add lchown, mkancesdirs.
31461         (Maintainer): Add self.
31462
31463 2006-07-15  Karl Berry  <karl@gnu.org>
31464
31465         * gnulib-tool: help message wording/arrangement.
31466
31467 2006-07-14  Simon Josefsson  <jas@extundo.com>
31468
31469         * doc/gnulib.texi (Libtool and Windows): New section.
31470
31471 2006-07-12  Simon Josefsson  <jas@extundo.com>
31472
31473         * modules/gendocs (License): Fix license, approved by Karl.
31474
31475 2006-07-12  Eric Blake  <ebb9@byu.net>
31476
31477         * MODULES.html.sh: Add gendocs.
31478
31479 2006-07-11  Eric Blake  <ebb9@byu.net>
31480
31481         * modules/fdl: New module, to install doc/fdl.texi.
31482         * MODULES.html.sh: Add new section for documentation modules.
31483         * gnulib-tool: Avoid space-tab.
31484         (--doc-base): New option, to manage files from doc.
31485
31486 2006-07-11  Eric Blake  <ebb9@byu.net>
31487
31488         * m4/absolute-header.m4: Fix comments to match recent change.
31489
31490 2006-07-11  Eric Blake  <ebb9@byu.net>
31491
31492         * gnulib-tool: List --doc-base before --tests-base.
31493
31494 2006-07-11  Derek R. Price  <derek@ximbiot.com>
31495
31496         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
31497
31498 2006-07-11  Bruno Haible  <bruno@clisp.org>
31499
31500         * README: Mention where to put documentation.
31501
31502 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31503
31504         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
31505
31506 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
31507
31508         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
31509         to stdint.m4.
31510
31511 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
31512
31513         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
31514         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
31515         "no/such/file/stdint.h" when there is no such file, so that
31516         the resulting C code can be parsed by dodgy compilers.
31517         Problems reported by Bob Proulx.
31518
31519 2006-07-10  Derek R. Price  <derek@ximbiot.com>
31520
31521         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
31522         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
31523         macros into the GNU _D_EXACT_NAMLEN.
31524         * lib/savedir.c:  Likewise.
31525         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
31526
31527 2006-07-10  Derek R. Price  <derek@ximbiot.com>
31528         and Paul Eggert  <eggert@cs.ucla.edu>
31529
31530         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
31531         * m4/savedir.m4:
31532         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
31533         macros into the GNU _D_EXACT_NAMLEN.
31534
31535 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31536
31537         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
31538         around the absolute name, to work around a problem with the HP-UX
31539         11.23 native C compiler, reported by Bob Proulx.
31540
31541 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31542
31543         * doc/maintain.texi, make-stds.texi: Sync from
31544         <http://savannah.gnu.org/projects/gnustandards>.
31545
31546 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31547
31548         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
31549
31550 2006-07-09  Jim Meyering  <jim@meyering.net>
31551
31552         * m4/glob.m4: Remove a doubled word in a comment.
31553
31554 2006-07-09  Jim Meyering  <jim@meyering.net>
31555
31556         * lib/argp-pv.c: Remove a doubled word in a comment.
31557         * lib/check-version.c (check_version): Likewise.
31558         * lib/javacomp.c (compile_java_class): Likewise.
31559
31560 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31561
31562         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
31563         for the benefit of people using Autoconf 2.60.  If you want to
31564         support older Autoconf versions you can copy m4/onceonly_2_57.m4
31565         (or m4/onceonly.m4, if pre-2.57) manually.
31566
31567 2006-07-08  Jim Meyering  <jim@meyering.net>
31568
31569         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
31570         comment.
31571         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
31572         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
31573         comment.
31574
31575 2006-07-08  Jim Meyering  <jim@meyering.net>
31576
31577         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
31578
31579 2006-07-07  Simon Josefsson  <jas@extundo.com>
31580
31581         * tests/test-crc.c: Change expected crc value, the test vector
31582         were probably computed using the old broken crc.c?
31583
31584 2006-07-06  Simon Josefsson  <jas@extundo.com>
31585
31586         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
31587         now the canonical place for the M4 file).
31588
31589         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
31590         from the sys_socket dependency now.
31591
31592         * modules/inet_pton (Files): Ditto.
31593
31594         * modules/inet_ntop (Files): Ditto.
31595
31596 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
31597
31598         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
31599         not gl_PREREQ_GETUSERSHELL.
31600
31601 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31602
31603         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
31604         with only one argument, for Autoconf 2.60.
31605         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
31606         expand to nothing, so add a shell command to avoid syntax error.
31607         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
31608
31609 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31610
31611         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
31612
31613 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31614
31615         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
31616         no longer needed.  Check for isblank decl.
31617         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
31618         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
31619         of existence.
31620
31621 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31622
31623         * lib/getloadavg.c: Use __VMS, not VMS.
31624         * lib/getopt.c: Likewise.
31625         * lib/getpagesize.h: Likewise.
31626         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
31627         and probably does not work.
31628
31629 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31630
31631         * lib/.cppi-disable: Add wcwidth.
31632         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
31633         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
31634         (ISGRAPH): Remove.  All uses changed to isgraph.
31635         (FOLD) [!defined _LIBC]: Remove special case.
31636         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
31637         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
31638         HAVE_ISBLANK.
31639         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
31640         case.
31641
31642 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
31643
31644         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
31645         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
31646         brackets.  Other minor changes to suppress some compiler
31647         warnings.
31648
31649 2006-07-06  Derek R. Price  <derek@ximbiot.com>
31650         and Paul Eggert  <eggert@cs.ucla.edu>
31651
31652         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
31653         of invoking obsolescent AC_HEADER_DIRENT macro.
31654         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
31655         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
31656         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
31657         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
31658         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
31659         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31660         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
31661         * m4/readdir.m4: Remove; no longer needed.
31662
31663 2006-07-06  Derek R. Price  <derek@ximbiot.com>
31664         and Paul Eggert  <eggert@cs.ucla.edu>
31665
31666         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
31667         Don't worry about this obsolete case any more.
31668         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
31669         directories.
31670         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
31671         worry about this obsolete case any more.
31672         * lib/fts.c: Likewise.
31673         * lib/getcwd.c: Likewise.
31674         * lib/glob.h: Likewise.
31675         * lib/savedir.c: Likewise.
31676
31677 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31678
31679         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
31680         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
31681         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
31682         needed.
31683         All uses removed.
31684         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
31685         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
31686         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
31687         needed.
31688         * m4/getdate.m4 (gl_GETDATE): Likewise.
31689         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
31690         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
31691         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
31692         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
31693         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
31694         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
31695         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
31696         needed.
31697
31698 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31699
31700         * lib/memcasecmp.c: Include <limits.h>.
31701         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
31702         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
31703         Don't assume isdigit succeeds only on '0' through '9'.
31704
31705 2006-07-05  Eric Blake  <ebb9@byu.net>
31706
31707         * modules/getaddrinfo (Depends-on): Add snprintf.
31708
31709 2006-07-05  Eric Blake  <ebb9@byu.net>
31710
31711         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
31712         to avoid 'header present but could not be compiled' on cygwin.
31713
31714 2006-07-05  Eric Blake  <ebb9@byu.net>
31715
31716         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
31717         missing from netdb.h.
31718         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
31719
31720 2006-07-05  Derek R. Price  <derek@ximbiot.com>
31721
31722         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
31723         no longer needed.
31724         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
31725         * m4/getdate.m4 (gl_GETDATE): Likewise.
31726         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
31727         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
31728         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
31729         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
31730         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
31731
31732 2006-07-05  Derek R. Price  <derek@ximbiot.com>
31733
31734         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
31735         All uses of is_space replaced by isspace.
31736         * lib/exit.h: Don't talk about STDC_HEADERS.
31737         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
31738         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
31739         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
31740         replaced by isprint etc.
31741         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
31742         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
31743         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
31744         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
31745         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
31746         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
31747
31748 2006-07-05  Bruno Haible  <bruno@clisp.org>
31749
31750         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
31751         the function exists, before testing against AIX.
31752         Reported by Martin Lambers <marlam@marlam.de>.
31753
31754 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
31755
31756         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
31757         From Mark D. Baushke.
31758
31759 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
31760
31761         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
31762         to the absolute name, not just one, to bypass Sun C 5.8's
31763         "warning: #include of /usr/include/... may be non-portable".
31764
31765 2006-07-04  Eric Blake  <ebb9@byu.net>
31766
31767         * modules/dirname-tests: New test module.
31768         * tests/test-dirname.c: New file, replacing dirname.c
31769         TEST_DIRNAME section that was recently deleted.
31770
31771 2006-07-04  Bruno Haible  <bruno@clisp.org>
31772
31773         Assume ANSI C header files and <ctype.h> functions.
31774         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
31775         (mbsnwidth): Use isprint, iscntrl instead.
31776
31777 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31778
31779         Merge from coreutils.
31780         * MODULES.html.sh: Add xstrtold.
31781         * modules/xstrtold: New file.
31782         * modules/cycle-check (Files): Add lib/same-inode.h.
31783         * modules/dirname (Files): Add m4/double-slash-root.m4.
31784         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
31785         * modules/mkdir-p (Files): Add lib/same-inode.h.
31786         * modules/same (Files): Add lib/same-inode.h.
31787
31788 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31789
31790         * m4/absolute-header.m4: Renamed from full-header-path.m4.
31791         This is to keep the terminology clean; POSIX talks about
31792         "absolute pathnames", not "full pathnames", but the GNU
31793         Coding Standards say to use "path" for something else;
31794         so use "absolute" to keep both sides happy.
31795         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
31796         Set gl_absolute_header, not gl_full_header_path.
31797         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
31798         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
31799         All uses changed.
31800
31801         Merge from coreutils.
31802
31803         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
31804
31805         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
31806         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
31807         want to require the building of c-strtod.o.
31808         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
31809         needs -lm directly.
31810         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
31811
31812         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
31813
31814         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
31815         --as-needed option if available.  Problem reported by Albert Chin in
31816         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
31817         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
31818         cc merely issues a bunch of annoying warnings for --as-needed
31819         (this problem was reported by Bob Proulx).  Also, try linking with
31820         -lm to detect a bug in binutils 2.16 (this problem was reported
31821         by Ralf Wildenhues).
31822
31823         2006-06-18  Jim Meyering  <jim@meyering.net>
31824
31825         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
31826         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
31827         macro.
31828         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
31829         also check for glibc-2.4's abort-inducing bug.
31830
31831         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
31832         Low-probability clean-up should be to use rmdir to get rid of
31833         the just-created directory, not unlink.
31834
31835         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
31836         configure fail, and request a bug report to inform us about it.
31837         Add a comment that, barring reports to the contrary, in 2007 we'll
31838         assume ftruncate is universally available.
31839
31840         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
31841
31842         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
31843
31844         2006-03-12  Jim Meyering  <jim@meyering.net>
31845
31846         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
31847         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
31848         * m4/same.m4 (gl_SAME): Likewise.
31849         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
31850
31851         2006-03-11  Eric Blake  <ebb9@byu.net>
31852
31853         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
31854         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
31855         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
31856         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
31857
31858 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31859
31860         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
31861         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
31862         reported by Mark D. Baushke, one in
31863         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
31864
31865         Merge from coreutils.
31866
31867         * lib/.cppi-disable: Add stdint_.h.
31868         * lib/.cvsignore: Add stdint.h.
31869
31870         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
31871
31872         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
31873         both double and long double versions.
31874         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
31875         * lib/xstrtold.c: New file.
31876         * lib/xstrtod.h (xstrtold): New decl.
31877
31878         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
31879
31880         * lib/filemode.c (setst): Remove.
31881         (strmode): Rewrite to avoid setst.  This makes the code shorter,
31882         (arguably) clearer, and the generated code is a bit smaller on my
31883         Debian GNU/Linux stable x86 host.
31884
31885         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
31886
31887         * lib/filemode.c: Include "filemode.h" first, to test the interface.
31888         Assume that filemode.h includes sys/types.h and sys/stat.h.
31889         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
31890         (ftypelet): Reorder to put common cases first, for efficiency.
31891         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
31892         to do 'M'.
31893         (strmode): Renamed from mode_string, and now stores 12 bytes instead
31894         of 10, for compatibility with FreeBSD.  All callers changed.
31895         (filemodestring): Now stores 12 bytes instead of 10, and sets file
31896         types that can't be deduced solely from st_mode.  First arg is now a
31897         const pointer.
31898         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
31899         (strmode): Renamed from mode_string.
31900         (filemodestring): New decl.
31901         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
31902         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
31903         needed.
31904         (S_ISPORT, S_ISWHT): New macros, if not already defined.
31905
31906         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
31907
31908         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
31909         fsusage.h now does that.  Include fsusage.h first, to test interface.
31910         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
31911         at most one method (the old code could have generated decls that
31912         didn't conform to C89, not that this was ever exercised).
31913         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
31914
31915         2006-03-19  Jim Meyering  <jim@meyering.net>
31916
31917         Work even in a chroot where d_ino values for entries in "/"
31918         don't match the stat.st_ino values for the same names.
31919         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
31920         number, iterate through all entries again, using lstat instead.
31921         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
31922         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
31923
31924         * lib/getcwd.c (__getcwd): Clarify a comment.
31925         Use memcpy in place of a call to strcpy.
31926
31927         2006-03-12  Jim Meyering  <jim@meyering.net>
31928
31929         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
31930         matches that of the current directory (which we're about to chdir ".."
31931         out of), then save the dev-ino of the parent, instead.
31932
31933         * lib/same-inode.h (SAME_INODE): New file/macro.
31934         * lib/chdir-safer.c (SAME_INODE): Remove definition.
31935         Include "same-inode.h", instead.
31936         * lib/same.c: Likewise.
31937         * lib/cycle-check.h: Include "same-inode.h".
31938         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
31939         * lib/cycle-check.c (SAME_INODE): Remove definition.
31940         * lib/root-dev-ino.h: Include "same-inode.h".
31941
31942         2006-03-11  Eric Blake  <ebb9@byu.net>
31943
31944         * lib/same.c (same_name): s/base_name/last_component/
31945         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
31946         * lib/filenamecat.c (file_name_concat): Likewise.
31947
31948         2006-03-11  Eric Blake  <ebb9@byu.net>,
31949                     Paul Eggert  <eggert@cs.ucla.edu>
31950
31951         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
31952         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
31953         drive prefix.
31954         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
31955         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
31956         (last_component): New method.
31957         * lib/dirname.c (dir_len): Determine when drive letters need a
31958         subsequent slash.  Preserve // when it is special.
31959         (dir_name): Don't append dot when drive letter is absolute.
31960         [TEST_DIRNAME]: Move into a full-blown gnulib test.
31961         * lib/basename.c (base_name): New semantics - malloc the result.
31962         Preserve // when it is special.  Preserve relative files that look
31963         like drive letters.
31964         (base_len): Preserve // when it is special.
31965         (last_component): New method, similar to old base_name semantics.
31966         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
31967         base_name.  Strip redundant slashes from ///.
31968
31969 2006-07-03  Jim Meyering  <jim@meyering.net>
31970
31971         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
31972         macro is used before the first cycle_check call.
31973
31974 2006-07-03  Eric Blake  <ebb9@byu.net>
31975
31976         * modules/dirname (Depends-on): Add xstrndup.
31977
31978 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
31979
31980         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
31981         test cases, so that config.log is a bit easier to follow.
31982
31983 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
31984
31985         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
31986         both are 64 bits, since this seems to be the tradition, and this
31987         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
31988         we ever run into a host that prefers long long to long in this
31989         case, we'll need another configure-time test.  Problem reported by
31990         Jim Meyering.
31991
31992 2006-07-02  Eric Blake  <ebb9@byu.net>
31993
31994         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
31995
31996 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
31997
31998         * modules/inttypes (Depends-on): No longer depends on stdint.
31999         * modules/stdint (Description): Say more about assumptions.
32000         Say that the fast types might differ.  Say macros are used.
32001         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
32002         (Makefile.am): Revise list of substituted symbols to match
32003         new stdint.m4.
32004         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
32005         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
32006         * tests/test-stdint.c (verify_same_types)
32007         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
32008         the code conforms to C99/C89.
32009         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
32010         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
32011
32012 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
32013
32014         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
32015         but fix a bug, by requiring at least 64 bits.
32016         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
32017         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
32018         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
32019         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
32020
32021         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
32022         changes.  Make 2.59 a prerequisite.  Check and substitute for
32023         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
32024         inttypes.h.  Do not use special include files; just use the
32025         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
32026         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
32027         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
32028         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
32029         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
32030         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
32031         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
32032         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
32033         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
32034         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
32035         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
32036         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
32037         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
32038         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
32039         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
32040         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
32041         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
32042         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
32043         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
32044         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
32045         WINT_MAX.  Check for C99 conformance more strictly, by detecting
32046         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
32047         not check for things that C99 does not require, e.g., int8_t.  If
32048         a test isn't needed unless <stdint.h> isn't working, and is
32049         unlikely to be needed for any other reason, then don't do it
32050         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
32051         size_t, since we assume C89 freestanding at least.  Do not check
32052         for sig_atomic_t, wchar_t, or wint_t, since the code now does
32053         the right thing even if the types are not defined.  Instead use:
32054         (gl_STDINT_TYPE_PROPERTIES): New macro.
32055         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
32056         testing whether <sys/types.h> clashes, as Autoconf does this for
32057         us now.  All uses removed.
32058         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
32059         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
32060         (gl_CHECK_TYPE_SAME):
32061         Remove; no longer needed.
32062         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
32063         exists, since we'll return 0 anyway in that case.
32064         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
32065
32066 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
32067
32068         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
32069         possible collision with system files.
32070         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
32071         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
32072         WCHAR_MIN and WCHAR_MAX in this case.
32073         (<stddef.h>): Do not include; no longer needed.
32074         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
32075         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
32076         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
32077         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
32078         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
32079         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
32080         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
32081         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
32082         !defined(__c99))]: Include in this case too, since it's harmless
32083         now.
32084         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
32085         dangerous to do so.
32086         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
32087         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
32088         (_STDINT_MIN, _STDINT_MAX): New macros.
32089         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
32090         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
32091         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
32092         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
32093         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
32094         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
32095         macros, not typedefs; this simplifies things quite a bit.
32096         Use long int for all types narrower than int64_t.
32097         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
32098         Define in terms of long long int or int64_t or long int,
32099         not int64_t or int32_t.  This saves some compile-time testing.
32100         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
32101         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
32102         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
32103         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
32104         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
32105         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
32106         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
32107         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
32108         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
32109         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
32110         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
32111         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
32112         undef any previous version and define our own version, for
32113         simplicity and consistency with the new macros for types.
32114         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
32115         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
32116         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
32117         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
32118         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
32119         @WINT_T_SUFFIX@ to keep things simple here.
32120         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
32121         Simplify by assuming typical 8/16/32/64 host, since we're
32122         already doing that elsewhere anyway.
32123         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
32124         and assume long long int is 64 bits if available.  This
32125         speeds up 'configure'.
32126
32127 2006-07-01  Eric Blake  <ebb9@byu.net>
32128
32129         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
32130         Reported by Andreas Buening.
32131
32132 2006-07-01  Eric Blake  <ebb9@byu.net>
32133
32134         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
32135
32136 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
32137
32138         * lib/getaddrinfo.c: fixed typo
32139
32140 2006-06-29  Jim Meyering  <jim@meyering.net>
32141
32142         * modules/strftime (Maintainer): Add my name, since with the
32143         FPRINTFTIME changes strftime.c has forked from glibc.
32144
32145 2006-06-29  Eric Blake  <ebb9@byu.net>
32146
32147         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
32148
32149 2006-06-29  Eric Blake  <ebb9@byu.net>
32150
32151         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
32152
32153 2006-06-29  Eric Blake  <ebb9@byu.net>
32154
32155         * lib/stat_.h: New file.
32156
32157 2006-06-29  Eric Blake  <ebb9@byu.net>
32158
32159         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
32160         unused static function.
32161
32162 2006-06-29  Eric Blake  <ebb9@byu.net>
32163
32164         * doc/functions.texi (Function Portability): Document missing lstat
32165         on mingw.
32166
32167 2006-06-29  Eric Blake  <ebb9@byu.net>
32168
32169         * MODULES.html.sh: Add sys_stat.
32170         * modules/sys_stat: New module.
32171         * modules/mkstemp (Depends-on): Add sys_stat.
32172
32173 2006-06-29  Derek R. Price  <derek@ximbiot.com>
32174
32175         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
32176
32177 2006-06-29  Derek R. Price  <derek@ximbiot.com>
32178
32179         * m4/c-bs-a.m4: Removed.
32180
32181 2006-06-29  Derek R. Price  <derek@ximbiot.com>
32182
32183         * lib/strftime.c: Assume strftime() exists.
32184
32185 2006-06-29  Derek Price  <derek@ximbiot.com>
32186
32187         * modules/c-bs-a: Removed - \a is C89.
32188         * MODULES.html.sh: Remove c-bs-a.
32189
32190 2006-06-29  Bruno Haible  <bruno@clisp.org>
32191
32192         * modules/wcwidth (License): Change to LGPL.
32193
32194 2006-06-28  Simon Josefsson  <jas@extundo.com>
32195
32196         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
32197         on _WIN32.
32198
32199         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
32200         getnameinfo.
32201
32202 2006-06-28  Simon Josefsson  <jas@extundo.com>
32203
32204         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
32205
32206 2006-06-28  Simon Josefsson  <jas@extundo.com>
32207
32208         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
32209         functions there.  It will succeed on Windows XP, but on Windows
32210         2000 and (presumably) earlier, it will fail, and use the internal
32211         re-implementation.
32212         (use_win32_p): New function.
32213         (getaddrinfo): Use strtoul on servname, to support numeric ports.
32214         Support AI_NUMERICSERV to disable getservbyname.
32215         (getnameinfo): New function, only supports
32216         NI_NUMERICHOST|NI_NUMERICSERV for now.
32217
32218         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
32219         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
32220         getnameinfo.
32221
32222 2006-06-28  Eric Blake  <ebb9@byu.net>
32223
32224         * modules/wcwidth: New file.
32225         * modules/mbchar (Depends-on): Add wcwidth.
32226         * modules/mbswidth (Depends-on): Add wcwidth.
32227         * MODULES.html.sh: Add wcwidth.
32228
32229 2006-06-28  Eric Blake  <ebb9@byu.net>
32230
32231         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
32232         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
32233
32234 2006-06-28  Eric Blake  <ebb9@byu.net>
32235
32236         * lib/xvasprintf.h: Fix comments.
32237
32238 2006-06-28  Eric Blake  <ebb9@byu.net>
32239
32240         * lib/mbchar.h (wcwidth): Include wcwidth.h.
32241         * lib/mbswidth.c (wcwidth): Move from here...
32242         * lib/wcwidth.h: ...to this new file.
32243
32244 2006-06-28  Derek R. Price  <derek@ximbiot.com>
32245
32246         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
32247
32248         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
32249         it's obsolete.
32250         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
32251
32252 2006-06-28  Derek R. Price  <derek@ximbiot.com>
32253
32254         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
32255         Autoconf 2.60 says this stuff was obsolete.
32256
32257 2006-06-28  Bruno Haible  <bruno@clisp.org>
32258
32259         * modules/wcwidth (Files): Add m4/wchar_t.m4.
32260
32261 2006-06-28  Bruno Haible  <bruno@clisp.org>
32262
32263         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
32264         gt_TYPE_WCHAR_T.
32265
32266 2006-06-28  Bruno Haible  <bruno@clisp.org>
32267
32268         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
32269         declaration for wcwidth.
32270         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
32271
32272 2006-06-28  Bruno Haible  <bruno@clisp.org>
32273
32274         * lib/mkdtemp.c [MINGW]: Include <io.h>.
32275         (mkdir): Define using _mkdir.
32276
32277 2006-06-28  Bruno Haible  <bruno@clisp.org>
32278
32279         * lib/getaddrinfo.h: Fix POSIX URL.
32280         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
32281         _WIN32.
32282         (use_win32_p): Make static.
32283         (getaddrinfo): Reject service name if it is empty or does not consist
32284         solely of decimal digits, or if its value is > 65535.
32285         (getnameinfo): Remove useless casts.
32286
32287 2006-06-27  Simon Josefsson  <jas@extundo.com>
32288
32289         * modules/sys_select: New file, suggested by Bruno Haible, Paul
32290         Eggert and Martin Lambers.
32291
32292 2006-06-27  Simon Josefsson  <jas@extundo.com>
32293
32294         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
32295         Eggert and Martin Lambers.
32296
32297 2006-06-27  Bruno Haible  <bruno@clisp.org>
32298
32299         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
32300         result to 0, not to empty.
32301         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
32302
32303 2006-06-27  Bruno Haible  <bruno@clisp.org>
32304
32305         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
32306
32307 2006-06-26  Simon Josefsson  <jas@extundo.com>
32308
32309         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
32310         present.
32311
32312 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
32313
32314         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
32315         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
32316         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
32317
32318 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
32319
32320         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
32321
32322 2006-06-26  Bruno Haible  <bruno@clisp.org>
32323
32324         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
32325
32326 2006-06-26  Bruno Haible  <bruno@clisp.org>
32327
32328         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
32329
32330 2006-06-26  Bruno Haible  <bruno@clisp.org>
32331
32332         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
32333         SGI C compiler in pre-C99 mode.
32334         Suggested by Mark D. Baushke and Larry Jones.
32335
32336 2006-06-26  Bruno Haible  <bruno@clisp.org>
32337
32338         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
32339         WCHAR_MAX.
32340         Reported by Mark D. Baushke and Larry Jones.
32341
32342 2006-06-26  Bruno Haible  <bruno@clisp.org>
32343
32344         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
32345         in pre-C99 mode.
32346         Suggested by Mark D. Baushke and Larry Jones.
32347
32348 2006-06-23  Simon Josefsson  <jas@extundo.com>
32349             Bruno Haible  <bruno@clisp.org>
32350
32351         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
32352         Emit mostlyclean-local rule.
32353         (func_emit_tests_Makefile_am): Likewise.
32354         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
32355
32356 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
32357
32358         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
32359
32360 2006-06-23  Bruno Haible  <bruno@clisp.org>
32361
32362         * tests/test-stdint.c: Update to match ISO C 99 Technical
32363         Corrigendum 1.
32364
32365 2006-06-23  Bruno Haible  <bruno@clisp.org>
32366
32367         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
32368
32369 2006-06-23  Bruno Haible  <bruno@clisp.org>
32370
32371         * lib/stdint_.h: Treat IRIX like OpenBSD.
32372
32373 2006-06-23  Bruno Haible  <bruno@clisp.org>
32374
32375         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
32376         ISO C 99 Technical Corrigendum 1.
32377
32378 2006-06-22  Simon Josefsson  <jas@extundo.com>
32379
32380         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
32381         MinGW.
32382
32383 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
32384
32385         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
32386         needed.  Some compiler complained about some of them.  Problem reported
32387         by Larry Jones in
32388         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
32389
32390 2006-06-21  Simon Josefsson  <jas@extundo.com>
32391
32392         * tests/test-getaddrinfo.c: New file.
32393
32394         * modules/getaddrinfo-tests: New file.
32395
32396         * MODULES.html.sh: Add inet_pton.
32397
32398         * modules/inet_pton: New file.
32399
32400 2006-06-21  Simon Josefsson  <jas@extundo.com>
32401
32402         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
32403         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
32404         of using the (limited) gnulib implementation on Windows XP.
32405
32406         * m4/inet_pton.m4: New file.
32407
32408 2006-06-21  Simon Josefsson  <jas@extundo.com>
32409
32410         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
32411         variable.
32412
32413         * lib/socket_.h: Don't define WINVER.
32414
32415         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
32416         slightly modified to work in gnulib.
32417
32418 2006-06-21  Simon Josefsson  <jas@extundo.com>
32419
32420         * doc/gnulib.texi (Windows sockets): Add.
32421
32422 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
32423
32424         * lib/read-file.c (fread_file): Start with buffer allocation of
32425         0 bytes rather than 1 byte; this simplifies the code.
32426         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
32427         code to free buffer and save/restore errno.
32428         (internal_read_file): Remove unused local.
32429
32430 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
32431
32432         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
32433         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
32434         Problem reported by Denis Excoffier in
32435         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
32436
32437 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32438
32439         * modules/sys_socket, modules/socklen: Include sys/types since
32440         FreeBSD 4.x's sys/socket.h needs it.
32441
32442 2006-06-19  Simon Josefsson  <jas@extundo.com>
32443
32444         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
32445
32446 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
32447
32448         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
32449
32450 2006-06-19  Bruno Haible  <bruno@clisp.org>
32451
32452         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
32453         and FULL_PATH_INTTYPES_H in angle brackets.
32454         Reported by Mark D. Baushke <mdb@gnu.org>.
32455
32456 2006-06-17  Eric Blake  <ebb9@byu.net>
32457
32458         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
32459         errno.
32460
32461 2006-06-17  Bruno Haible  <bruno@clisp.org>
32462
32463         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
32464         <sys/inttypes.h>.
32465
32466 2006-06-17  Bruno Haible  <bruno@clisp.org>
32467
32468         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
32469         whether errno is declared. Assume <errno.h> declares errno.
32470
32471 2006-06-17  Bruno Haible  <bruno@clisp.org>
32472
32473         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
32474
32475 2006-06-17  Bruno Haible  <bruno@clisp.org>
32476
32477         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
32478         problem on Solaris 2.5.1.
32479
32480 2006-06-16  Eric Blake  <ebb9@byu.net>
32481
32482         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
32483         * lib/unicodeio.c [!defined errno]: Likewise.
32484         * lib/strtol.c [!defined errno]: Likewise.
32485         * lib/strtod.c [!defined errno]: Likewise.
32486
32487 2006-06-15  Eric Blake  <ebb9@byu.net>
32488
32489         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
32490
32491 2006-06-15  Eric Blake  <ebb9@byu.net>
32492
32493         * config/srclist.txt (ssize_t.m4): Lose sync.
32494
32495 2006-06-15  Bruno Haible  <bruno@clisp.org>
32496
32497         * modules/stdint (Files): Include m4/full-header-path.m4,
32498         m4/size_max.m4, m4/wchar_t.m4.
32499         (Makefile.am): Many more substitutions.
32500         * modules/stdint-tests: New file.
32501         * tests/test-stdint.c: New file.
32502
32503 2006-06-15  Bruno Haible  <bruno@clisp.org>
32504
32505         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
32506         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
32507         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
32508         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
32509         gl_CHECK_TYPE_SAME): New macros.
32510
32511 2006-06-15  Bruno Haible  <bruno@clisp.org>
32512
32513         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
32514
32515 2006-06-15  Bruno Haible  <bruno@clisp.org>
32516
32517         * lib/stdint_.h: Rewritten to be fully auto-configured.
32518         Fixes bug on HP-UX/IA64.
32519
32520 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
32521
32522         * lib/getdate.y (__attribute__): Don't define if already defined.
32523         Problem reported by Larry Jones.
32524         * lib/utimens.c (__attribute__): Likewise.
32525
32526 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
32527
32528         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
32529         reported by Andreas Schwab.
32530
32531 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32532             Bruno Haible  <bruno@clisp.org>
32533
32534         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
32535         check for the declaration of strnlen and a run test that exposes the
32536         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
32537         rpl_strndup.
32538
32539 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32540             Bruno Haible  <bruno@clisp.org>
32541
32542         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
32543
32544 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32545
32546         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
32547         compile test, for Tru64 4.0D.
32548
32549 2006-05-28  Karl Berry  <karl@gnu.org>
32550
32551         * config/srclist.txt (printf-args.c): lose sync.
32552
32553 2006-05-26  Martin Lambers  <marlam@marlam.de>
32554
32555         * lib/getpass.c: Updates the test for the native W32 API, and adds
32556         missing includes, thus fixing compilation warnings.
32557
32558 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32559
32560         * lib/exclude.c (exclude_fnmatch): New function.
32561         (excluded_file_name): Call exclude_fnmatch.
32562         * lib/exclude.h (excluded_file_name): New prototype
32563
32564 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
32565
32566         * lib/tempname.c (small_open, large_open): New macros.
32567         (__open, __open64) [!_LIBC]: Remove.
32568         (__gen_tempname): Use small_open and large_open instead of __open
32569         and __open64.  This fixes a portability bug on HP-UX 11.11i
32570         reported by Simon Wing-Tang in
32571         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
32572
32573 2006-05-24  Bruno Haible  <bruno@clisp.org>
32574
32575         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
32576         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
32577         Reported by Thorsten Maerz <torte@netztorte.de> via
32578         Aaron Stone <aaron@serendipity.cx>.
32579
32580 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
32581
32582         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
32583         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
32584         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
32585         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
32586         not really conditional on the cache.
32587         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
32588
32589 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
32590
32591         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
32592         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
32593         (my_usleep): Don't mishandle maximum value.
32594
32595 2006-05-19  Jim Meyering  <jim@meyering.net>
32596
32597         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
32598
32599 2006-05-17  Bruno Haible  <bruno@clisp.org>
32600
32601         Cygwin portability.
32602         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
32603
32604 2006-05-17  Bruno Haible  <bruno@clisp.org>
32605
32606         * lib/stdint_.h: Fix recognition of Cygwin.
32607
32608 2006-05-15  Bruno Haible  <bruno@clisp.org>
32609
32610         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
32611         on libtool patch by Ralf Wildenhues.
32612
32613 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
32614
32615         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
32616         test for C99 conformance; (bool) 0.5 is an integer constant
32617         expression, but (bool) -0.5 is not.  Problem reported by Fedor
32618         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
32619
32620 2006-05-11  Simon Josefsson  <jas@extundo.com>
32621
32622         * m4/xvasprintf.m4: Fix obvious typo.
32623
32624 2006-05-11  Jim Meyering  <jim@meyering.net>
32625
32626         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
32627         James Lemley.
32628
32629 2006-05-10  Simon Josefsson  <jas@extundo.com>
32630
32631         * lib/md4.c: Typo fix, update copyright years.
32632         (K1, K2): Don't use L because it turn computations into 64-bit on
32633         64-bit platforms.
32634
32635 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
32636
32637         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
32638         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
32639         unwanted sign propagation, e.g., on hosts with 64-bit int.
32640         There still are some problems with reeelly weird theoretical hosts
32641         (e.g., 33-bit int) but it's not worth worrying about now.
32642         * lib/sha1.c (rol): Likewise.
32643         (K1, K2, K3, K4): Remove unnecessary L suffix.
32644
32645 2006-05-10  Bruno Haible  <bruno@clisp.org>
32646
32647         * lib/des.c: Cast to avoid warnings.
32648
32649 2006-05-09  Bruno Haible  <bruno@clisp.org>
32650
32651         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
32652         (Depends-on): Depend also on xsize, stdarg.
32653         (configure.ac): Add gl_XVASPRINTF.
32654
32655 2006-05-09  Bruno Haible  <bruno@clisp.org>
32656
32657         * m4/xvasprintf.m4: New file.
32658
32659 2006-05-09  Bruno Haible  <bruno@clisp.org>
32660
32661         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
32662         (EOVERFLOW): Define fallback value.
32663         (xstrcat): New function.
32664         (xvasprintf): Recognize the special case of a string concatenation.
32665
32666 2006-05-08  Eric Blake  <ebb9@byu.net>
32667
32668         * gnulib-tool (func_version): Base copyright year on CVS date.
32669         (func_emit_copyright_notice): New function.
32670         (func_emit_lib_Makefile_am): Use it.
32671         (func_emit_tests_Makefile_am): Likewise.
32672         (func_import): Likewise.
32673
32674 2006-05-08  Bruno Haible  <bruno@clisp.org>
32675
32676         * modules/stdarg: New file.
32677         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
32678
32679 2006-05-08  Bruno Haible  <bruno@clisp.org>
32680
32681         * m4/stdarg.m4: New file, from GNU gettext.
32682
32683 2006-05-08  Bruno Haible  <bruno@clisp.org>
32684
32685         * config/srclist.txt (build-aux/config.rpath): different from latest
32686         release.
32687
32688 2006-05-08  Bruno Haible  <bruno@clisp.org>
32689
32690         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
32691
32692 2006-05-05  Jim Meyering  <jim@meyering.net>
32693
32694         * m4/warning.m4: New file, derived from bison's file by the same name.
32695
32696 2006-05-03  Bruno Haible  <bruno@clisp.org>
32697
32698         * lib/stdint_.h: Shorter URL.
32699         * lib/inttypes.h: Likewise.
32700
32701 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32702
32703         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
32704
32705 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32706
32707         * lib/verify.h: Document the internals better.  Most of this change
32708         was written by Bruno Haible.
32709
32710 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32711
32712         * doc/verify.texi: New file, partly based on a proposal by
32713         Bruno Haible.
32714
32715 2006-05-02  Bruno Haible  <bruno@clisp.org>
32716
32717         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
32718         test from here...
32719         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
32720
32721 2006-04-29  Bruno Haible  <bruno@clisp.org>
32722
32723         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
32724         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
32725
32726 2006-04-29  Bruno Haible  <bruno@clisp.org>
32727
32728         * gnulib-tool: Make --update option actually work.
32729
32730 2006-04-29  Bruno Haible  <bruno@clisp.org>
32731
32732         * doc/gcd.texi: New file.
32733         * doc/gnulib.texi: Include it.
32734
32735 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
32736
32737         * lib/getdate.y (get_date): When adding relative date, start with the
32738         initial time, not with the result of the first mktime call.
32739
32740 2006-04-25  Bruno Haible  <bruno@clisp.org>
32741
32742         * gnulib-tool (func_import): Output the include directives in three
32743         blocks, sorted separately.
32744         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32745
32746 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
32747
32748         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
32749         to define main with arguments, for C++.  Reported by Eric Blake.
32750         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
32751         Prefer 'int main ()' to 'int main (void)', for C++.
32752         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
32753         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
32754         for 'main', for C99 and C++.
32755
32756 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
32757
32758         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
32759         Don't assume that exit status -1 is valid.
32760         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32761         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
32762         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
32763         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
32764         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
32765         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
32766         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
32767         functions can be used without declaring them, or that you can
32768         exit with status -1.
32769         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
32770
32771 2006-04-24  Karl Berry  <karl@gnu.org>
32772
32773         * config/srclist.txt (longdouble.m4): sync lost.
32774
32775 2006-04-24  Eric Blake  <ebb9@byu.net>
32776
32777         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
32778
32779 2006-04-24  Bruno Haible  <bruno@clisp.org>
32780
32781         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
32782         poll() implementation in AIX.
32783         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32784
32785 2006-04-24  Bruno Haible  <bruno@clisp.org>
32786
32787         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
32788         assigned exactly once.
32789
32790 2006-04-23  Claudio Fontana  <claudio@gnu.org>
32791             Bruno Haible  <bruno@clisp.org>
32792
32793         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
32794         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
32795         for AM_CPPFLAGS.
32796
32797 2006-04-23  Bruno Haible  <bruno@clisp.org>
32798
32799         * modules/copy-file: Depend on unistd.
32800         * modules/execute: Likewise.
32801         * modules/fatal-signal: Likewise.
32802         * modules/findprog: Likewise.
32803         * modules/mkdtemp : Likewise.
32804         * modules/pipe: Likewise.
32805         * modules/wait-process: Likewise.
32806
32807 2006-04-23  Bruno Haible  <bruno@clisp.org>
32808
32809         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
32810         condition was already detected.
32811         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32812
32813 2006-04-23  Bruno Haible  <bruno@clisp.org>
32814
32815         * lib/copy-file.c: Include <unistd.h> unconditionally.
32816         * lib/execute.c: Likewise.
32817         * lib/fatal-signal.c: Likewise.
32818         * lib/findprog.c: Likewise.
32819         * lib/mkdtemp.c: Likewise.
32820         * lib/pipe.h: Likewise.
32821         * lib/pipe.c: Likewise.
32822         * lib/wait-process.h: Likewise.
32823
32824 2006-04-23  Bruno Haible  <bruno@clisp.org>
32825
32826         * gnulib-tool (func_usage): Fix --import description. Document
32827         --update.
32828         (func_import): Create temporary file in a temporary directory, if
32829         --dry-run is specified. Silence errors from 'grep' when there are no
32830         m4 files in $m4dir.
32831         (func_create_testdir): Silence errors from 'grep' when there are no
32832         m4 files in $m4dir.
32833         Reported by Karl Berry <karl@freefriends.org>.
32834
32835 2006-04-20  Bruno Haible  <bruno@clisp.org>
32836
32837         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
32838         one argument, so that the code will be portable to Autoconf 2.60.
32839         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
32840         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
32841         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
32842
32843 2006-04-19  Derek Price  <derek@ximbiot.com>
32844             Eric Blake  <ebb9@byu.net>
32845
32846         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
32847         rather than "/full/path.h".  Update comment to match.  Shorten &
32848         generalize m4_translit call via AS_TR_CPP.
32849
32850 2006-04-19  Derek Price  <derek@ximbiot.com>
32851             Eric Blake  <ebb9@byu.net>
32852
32853         * lib/inttypes.h: Correct grammar in comment.
32854
32855 2006-04-18  Derek Price  <derek@ximbiot.com>
32856             Paul Eggert  <eggert@cs.ucla.edu>
32857
32858         * modules/inttypes: New file.
32859         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
32860
32861 2006-04-18  Derek Price  <derek@ximbiot.com>
32862             Paul Eggert  <eggert@cs.ucla.edu>
32863
32864         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
32865         New files.
32866
32867 2006-04-18  Derek Price  <derek@ximbiot.com>
32868             Paul Eggert  <eggert@cs.ucla.edu>
32869
32870         * lib/inttypes.h: New file.
32871         * lib/strtoimax.c: Assume <inttypes.h>.
32872
32873 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
32874
32875         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
32876         isn't mounted.  Problem reported by Kir Kolyshkin.
32877
32878 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
32879
32880         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
32881         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
32882         Derek R. Price.
32883         * lib/regex.h (RE_DUP_MAX): Update comment to match current
32884         implementation.
32885
32886 2006-04-12  Eric Blake  <ebb9@byu.net>
32887
32888         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
32889         is now done automatically by the corresponding Autoconf macro.
32890
32891 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
32892
32893         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
32894         time_r.h.
32895
32896 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32897
32898         Merge regex changes from libc, removing some of our
32899         POSIX-conformance changes that were rejected and redoing them in a
32900         less-intrusive way.
32901
32902         * lib/regcomp.c (re_compile_internal, init_dfa):
32903         Length arg is now size_t, not Idx.  All uses changed.
32904         (peek_token): Forward decl now says internal_function.
32905         (__re_error_msgid, __re_error_msgid_idx):
32906         Now static rather than extern with attribute_hidden.
32907         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
32908         For some reason libc prefers K&R style defns for external functions.
32909         (regerror) [!defined _LIBC]: Likewise.
32910         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
32911         (seek_collating_symbol_entry, lookup_collation_sequence_value):
32912         (build_range_exp, build_collating_symbol):
32913         Use K&R-style defn.
32914         (re_compile_fastmap): Use '\0' to memset, not 0.
32915         (utf8_sb_map): Make the calculations more obvious.
32916         (init_dfa, parse_bracket_exp, build_charclass_op):
32917         Call calloc and cast result, as glibc does.
32918         (init_word_char, fetch_token, peek_token, peek_token_bracket):
32919         (build_range_exp, build_collating_symbol):
32920         Now internal functions.
32921
32922         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
32923
32924         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
32925         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
32926         Don't depend on VMS; depend on __VMS instead, for POSIX
32927         namespace cleanness.
32928         (regoff_t): Define to ssize_t, not long int.
32929
32930         Remove the REG_ macros named below.  Instead, make the old names
32931         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
32932         __USE_GNU_REGEX.
32933         (REG_BACKSLASH_ESCAPE_IN_LISTS):
32934         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
32935         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
32936         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
32937         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
32938         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
32939         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
32940         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
32941         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
32942         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
32943         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
32944         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
32945         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
32946         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
32947         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
32948         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
32949         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
32950         (REG_NREGS):
32951         Remove.  All uses replaced by the old RE_* names.
32952         (RE_BACKSLASH_ESCAPE_IN_LISTS):
32953         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
32954         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
32955         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
32956         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
32957         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
32958         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
32959         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
32960         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
32961         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
32962         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
32963         Don't bother having these macros be independent of each others'
32964         values, since they no longer exist in the POSIX name space.
32965
32966         Rename the following member names back to their old names,
32967         unless !__USE_GNU_REGEX.  All uses changed back.
32968         (buffer): Renamed from re_buffer.
32969         (allocated): Renamed from re_allocated.
32970         (used): Renamed from re_used.
32971         (syntax): Renamed from re_syntax.
32972         (fastmap): Renamed from re_fastmap.
32973         (translate): Renamed from re_translate.
32974         (can_be_null): Renamed from re_can_be_null.
32975         (regs_allocated): Renamed from re_regs_allocated.
32976         (fastmap_accurate): Renamed from re_fastmap_accurate.
32977         (no_sub): Renamed from re_no_sub.
32978         (not_bol): Renamed from re_not_bol.
32979         (not_eol): Renamed from re_not_eol.
32980         (newline_anchor): Renamed from re_newline_anchor.
32981         (num_regs): Renamed from rm_num_regs.
32982         (start): Renamed from rm_start.
32983         (end): Renamed from rm_end.
32984
32985         (free_state): Move up a bit.
32986
32987         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
32988         #define to be empty.
32989         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
32990         when that is what is intended.
32991         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
32992         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
32993         (MAX): New macro.
32994         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
32995         All uses changed back to re_malloc, etc.  It's now the caller's
32996         responsibility to check for overflow; all callers changed.
32997         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
32998         (re_x2nrealloc): Remove.
32999         (free_state): Remove decl.
33000
33001         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
33002         (re_set_registers, re_exec):
33003         Use K&R-style defn.
33004
33005         2006-01-31  Roland McGrath  <roland@redhat.com>
33006
33007         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
33008         Reported by Mike Frysinger <vapier@gentoo.org>.
33009
33010         2006-01-15  Andreas Jaeger  <aj@suse.de>
33011
33012         [BZ #1950]
33013         * lib/regex_internal.c (re_string_reconstruct): Adjust for
33014         build_wcs_upper_buffer change.
33015         (build_wcs_upper_buffer): Change return type.
33016
33017         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
33018
33019         * lib/regex_internal.h: Include <stdint.h> if available.
33020
33021         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
33022
33023         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
33024
33025         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
33026
33027         * lib/regcomp.c: Adjust for changed secondary hash function.
33028
33029         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
33030
33031         * lib/regex.h: Pretty printing.
33032         Clean up namespace a bit.
33033
33034         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
33035
33036         * lib/regexec.c (update_cur_sifted_state, check_arrival,
33037         check_arrival_add_next_nodes): Avoid using uninitialized variable.
33038
33039         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
33040                     Ulrich Drepper  <drepper@redhat.com>
33041
33042         [BZ #1302]
33043         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
33044         changed.
33045         (bitset_word_t): Renamed from bitset_word.  All uses changed.
33046
33047         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
33048
33049         [BZ #281]
33050         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
33051         * lib/regcomp.c: Remove unnecessary uses of
33052         unsigned RE_TRANSLATE_TYPE.
33053         * lib/regex_internal.h: Likewise.
33054         * lib/regex_internal.c: Likewise.
33055         * lib/regexec.c: Likewise.
33056         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
33057
33058         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
33059
33060         * lib/regexec.c (find_recover_state): Remove unnecessary
33061         initialization.
33062         (transit_state_bkref): Make DFA a const pointer.
33063         (get_subexp): Likewise.
33064         (check_arrival): Likewise.
33065         (update_cur_sifted_state): Likewise.
33066         (re_search_internal): Likewise.
33067         (prune_impossible_nodes): Likewise.
33068         (acquire_init_state_context): Likewise.
33069         (proceed_next_node): Likewise.
33070         (set_regs): Likewise.
33071         (free_fail_stack_return): Likewise.
33072         (check_arrival_expand_ecl): Mark DFA parameter as const.
33073         (check_arrival_expand_ecl_sub): Likewise.
33074         (check_subexp_limits): Likewise.
33075         (sub_epsilon_src_nodes):  Likewise.
33076         (add_epsilon_src_nodes):  Likewise.
33077         (merge_state_array): Likewise.
33078         (update_regs): Likewise.
33079         (build_trtable): Likewise.
33080         (sift_states_backward): Mark MCTX parameter as const.
33081         (build_sifted_states): Likewise.
33082         (update_cur_sifted_state): Likewise.
33083         (sift_states_mkref): Likewise.
33084         (check_arrival_expand_ecl): Mark eclosure as const.
33085         (check_dst_limits_calc_pos_1): Likewise.
33086         * lib/regex_internal.h (re_match_context_t): Make dfa a const
33087         pointer.
33088
33089         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
33090
33091         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
33092         (transit_state_sb): Likewise.
33093         (transit_state_mb): Likewise.
33094         (sift_states_iter_mb): Likewise.
33095         (check_arrival_add_next_nodes): Likewise.
33096         (check_node_accept_bytes): Change first parameter to pointer-to-const.
33097         [_LIBC] (re_search_2_stub): Use mempcpy.
33098
33099         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
33100         mbrtowc for very simple UTF-8 case.
33101
33102         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
33103         a pointer-to-const.
33104         (re_acquire_state_context): Likewise.
33105         * lib/regex_internal.h: Adjust prototypes.
33106
33107         * lib/regex.c: Prevent using C++ compilers.
33108
33109         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
33110         (re_acquire_state_context): Likewise.
33111
33112 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
33113
33114         * modules/regex (Depends-on): Add ssize_t.
33115
33116 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
33117
33118         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
33119         translation table.
33120
33121 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
33122
33123         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
33124
33125 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
33126             Bruno Haible  <bruno@clisp.org>
33127
33128         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
33129         <sys/types.h> and <inttypes.h>.
33130
33131 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33132
33133         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
33134         `__error_t_defined', so argp.h will not typedef the former.
33135
33136 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
33137
33138         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
33139         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
33140         glibc names.  Even if glibc is changed to conform to POSIX, the
33141         traditional names will be available anyway, since regex depends on
33142         the extensions module.  Also, fix a longstanding typo in the
33143         implementation of Spencer ERE test #75 from grep 2.3.  Problems
33144         reported by Emanuele Giaquinta.  Also, change sense of cached
33145         variable, so that the message makes sense.
33146
33147 2006-03-24  Simon Josefsson  <jas@extundo.com>
33148
33149         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
33150         including some doc fixes.
33151         (base64_encode_alloc): Fix +1 bug on allocation failures.
33152
33153 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33154
33155         * lib/base64.c (base64_encode): Do not read past end of array with
33156         unsanitized input on systems with CHAR_BIT > 8.
33157
33158 2006-03-24  Eric Blake  <ebb9@byu.net>
33159
33160         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
33161
33162 2006-03-22  Karl Berry  <karl@gnu.org>
33163
33164         * config/srclist.txt (*setenv.[ch]): get from coreutils.
33165         * config/srclistvars.sh (COREUTILS): new var.
33166
33167 2006-03-17  Jim Meyering  <jim@meyering.net>
33168
33169         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
33170         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
33171
33172 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
33173
33174         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
33175         no longer needs it.  Instead, check that regoff_t is as least
33176         as wide as ptrdiff_t.
33177
33178         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
33179         so that our regex.h stays compatible with the installed regex.
33180         This is helpful for installers who configure --without-included-regex.
33181         Problem reported by Emanuele Giaquinta.
33182
33183 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
33184
33185         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
33186         Typedef to long int, not to off_, as POSIX will likely change
33187         in that direction.
33188
33189 2006-03-15  Eric Blake  <ebb9@byu.net>
33190
33191         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
33192
33193 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
33194
33195         * lib/argp-help.c (validate_uparams): Fix typo
33196         * lib/argp-parse.c (argp_default_options): Consistently begin help
33197         messages with a lowercase letter.
33198
33199 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
33200
33201         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
33202         overrun buffers and shouldn't be used (much as gets shouldn't be
33203         used).
33204         * lib/time_r.c (asctime_r, ctime_r): Likewise.
33205
33206 2006-03-08  Simon Josefsson  <jas@extundo.com>
33207
33208         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
33209         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33210
33211 2006-03-08  Simon Josefsson  <jas@extundo.com>
33212
33213         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
33214         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33215
33216 2006-03-08  Simon Josefsson  <jas@extundo.com>
33217
33218         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
33219         signal that configure disabled the device.
33220
33221 2006-03-08  Simon Josefsson  <jas@extundo.com>
33222
33223         * build-aux/maint.mk: Fix refresh-po, to handle no translated
33224         languages.
33225
33226 2006-03-07  Simon Josefsson  <jas@extundo.com>
33227
33228         * modules/getopt (Depends-on): Add unistd.
33229
33230         * modules/unistd: New file.
33231
33232 2006-03-07  Simon Josefsson  <jas@extundo.com>
33233
33234         * modules/gc-random: New file.
33235
33236 2006-03-07  Simon Josefsson  <jas@extundo.com>
33237
33238         * m4/unistd_h.m4: New file.
33239
33240 2006-03-07  Simon Josefsson  <jas@extundo.com>
33241
33242         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
33243         test to be side-effect free by storing the result in the cache
33244         variable gl_cv_lib_readline, and moving the assignment of
33245         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
33246         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33247
33248 2006-03-07  Simon Josefsson  <jas@extundo.com>
33249
33250         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
33251         error on missing devices (the functions will return an error).
33252
33253         * m4/gc.m4: Move random stuff to gc-random.m4
33254
33255 2006-03-07  Simon Josefsson  <jas@extundo.com>
33256
33257         * lib/unistd_.h: New file.
33258
33259 2006-03-07  Simon Josefsson  <jas@extundo.com>
33260
33261         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
33262
33263 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
33264
33265         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
33266         Problem reported by Juan Manuel Guerrero.
33267
33268 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
33269
33270         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
33271         the unistd module.
33272         * lib/getlogin_r.c: Likewise.
33273         * lib/getlogin_r.h: Likewise.
33274         * lib/glob.c: Likewise.
33275         * lib/pagealign_alloc.c: Likewise.
33276         * lib/unistd_.h: Remove; no longer needed.
33277
33278 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
33279
33280         * MODULES.html.sh (Support for systems lacking POSIX:2001):
33281         Add unistd.
33282         * modules/c-stack (Depends-on): Add unistd.
33283         * modules/getlogin_r: Likewise.
33284         * modules/glob: Likewise.
33285         * modules/pagealign_alloc: Likewise.
33286         * modules/unistd (Files): Remove lib/unistd_.h.
33287         (EXTRA_DIST): Remove.
33288         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
33289         need unistd_.h.
33290         (MOSTLYCLEANFILES): Remove unistd.h-t.
33291
33292 2006-03-03  Simon Josefsson  <jas@extundo.com>
33293
33294         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
33295
33296 2006-03-03  Simon Josefsson  <jas@extundo.com>
33297
33298         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
33299         libidn and bison.
33300
33301 2006-03-03  Simon Josefsson  <jas@extundo.com>
33302
33303         * build-aux/maint.mk: Add indent target.
33304
33305 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
33306
33307         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
33308         our replacement poll.h in any case, to avoid a differing
33309         declaration from a system header.  Seen on AIX.
33310
33311 2006-03-01  Simon Josefsson  <jas@extundo.com>
33312
33313         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
33314         <kasal@ucw.cz>.
33315
33316 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33317
33318         * modules/gettime (Depends-on): Add extensions module.
33319         * modules/nanosleep (Depends-on): Likewise.
33320         * modules/settime (Depends-on): Likewise.
33321
33322 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33323
33324         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
33325         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
33326         pedantically.
33327         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33328         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
33329
33330         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
33331         not "==".  Reported by Ralf Wildenhues.
33332
33333 2006-03-01  Karl Berry  <karl@gnu.org>
33334
33335         * doc/Copyright/request-*: new files, synced from gnuorg.
33336
33337 2006-03-01  Karl Berry  <karl@gnu.org>
33338
33339         * config/srclist.txt (Copyright/*): new entries.
33340
33341 2006-02-28  Simon Josefsson  <jas@extundo.com>
33342
33343         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
33344
33345 2006-02-27  Simon Josefsson  <jas@extundo.com>
33346
33347         * lib/base64.h: Indent #define's.  From Jim Meyering
33348         <jim@meyering.net>.
33349
33350 2006-02-27  Jim Meyering  <jim@meyering.net>
33351
33352         Revert the change of 2006-02-24, so these files can continue
33353         to be sync'd from gettext.
33354         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
33355         of `config.h'.
33356
33357 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
33358
33359         * modules/intprops: New file.
33360         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
33361         Add intprops.
33362         * modules/getloadavg (Files): Remove lib/intprops.h.
33363         (Depends-on): Add intprops.
33364         * modules/human: Likewise.
33365         * modules/inttostr: Likewise.
33366         * modules/openat: Likewise.
33367         * modules/sig2str: Likewise.
33368         * modules/userspec: Likewise.
33369         * modules/utimecmp: Likewise.
33370         * modules/xnanosleep: Likewise.
33371         * modules/xstrtol: Likewise.
33372
33373 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
33374
33375         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
33376         * modules/lock-tests (TESTS): Use $(EXEEXT).
33377         * modules/tls-tests: Likewise.
33378         * modules/argp-tests: Likewise.
33379         (check_PROGRAMS): New var, replacing...
33380         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
33381
33382 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33383
33384         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
33385         `config.h'.
33386
33387 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
33388
33389         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
33390
33391 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33392
33393         Sync from coreutils.
33394         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
33395         gl_CHDIR_SAFER.
33396
33397 2006-02-22  Jim Meyering  <jim@meyering.net>
33398
33399         Sync from coreutils.
33400         * m4/chdir-safer.m4: New file.
33401
33402 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
33403
33404         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
33405         AT_FDCWD exceeds INT_MAX.
33406         * lib/openat.h (AT_FDCWD): Likewise.
33407
33408 2006-02-17  Eric Blake  <address@hidden>
33409
33410         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
33411
33412 2006-02-16  Simon Josefsson  <jas@extundo.com>
33413
33414         * modules/getaddrinfo (Depends-on): Add sys_socket.
33415
33416 2006-02-15  Simon Josefsson  <jas@extundo.com>
33417
33418         * build-aux/maint.mk: Add dsyntax-check rule.
33419
33420 2006-02-15  Eric Blake  <ebb9@byu.net>
33421
33422         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
33423         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
33424         'present but cannot compile' warnings on cygwin.
33425         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
33426         use ws2tcpip.h if sys/socket.h works.
33427         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
33428         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
33429
33430 2006-02-14  Simon Josefsson  <jas@extundo.com>
33431
33432         * modules/maintainer-makefile (Files): Rename.
33433
33434         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
33435         and (the local) Makefile.cfg to maint-cfg.mk.
33436
33437         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
33438         to the latter.
33439
33440         * modules/maintainer-makefile: New module.
33441
33442         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
33443         severaly stripped to make it possible to build it up from scratch
33444         with reliable tests.
33445
33446         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
33447         fixes to permit overriding the default actions when configure and
33448         makefile are not available.
33449
33450 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
33451
33452         Sync from coreutils.
33453         * modules/lstat (Depends-on): Don't depend on xalloc.
33454         (License): Change from GPL to LGPL, since this is now simply a
33455         replacement for a libc function.
33456
33457 2006-02-14  Jim Meyering  <jim@meyering.net>
33458
33459         Sync from coreutils.
33460
33461         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
33462         failure on deficient systems, and simplify gnulib lgpl dependencies.
33463         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
33464         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
33465
33466         * lib/xalloc-die.c: Remove unused definition of N_.
33467
33468 2006-02-14  Jim Meyering  <jim@meyering.net>
33469
33470         Sync from coreutils.
33471         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
33472         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
33473         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
33474         double-quote uses of that variable, to accommodate the rare case in
33475         which getmntent is available in none of the libraries checked.  This
33476         happens at least on FreeBSD 5.0.
33477
33478 2006-02-13  Simon Josefsson  <jas@extundo.com>
33479
33480         * gnulib-tool (Usage): Fix --import, from
33481         karl@freefriends.org (Karl Berry).
33482
33483 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
33484
33485         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
33486
33487 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
33488
33489         * lib/argp-namefrob.h: Restore changes accidentally lost during the
33490         "autoupdate" on 2005-12-12.
33491
33492 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
33493
33494         * modules/closeout (Depends-on): Remove atexit.
33495
33496 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
33497
33498         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
33499         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
33500
33501 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
33502
33503         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
33504         __EXTENSIONS__ if this causes compilation to fail.  Problem
33505         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
33506         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
33507
33508 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
33509
33510         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
33511         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
33512         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
33513         All uses changed.
33514
33515 2006-01-26  Simon Josefsson  <jas@extundo.com>
33516
33517         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
33518         prototype is visible on mingw32.
33519
33520         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
33521         for mingw32.
33522
33523         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
33524         mingw32).
33525
33526 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
33527
33528         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
33529         attempt to open for write; this always fails, at least on POSIX
33530         hosts.  This reinstates the 2006-01-09 change, which was
33531         inadvertently removed.
33532
33533 2006-01-26  Bruno Haible  <bruno@clisp.org>
33534
33535         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
33536         Reported by Paul Eggert.
33537
33538 2006-01-26  Bruno Haible  <bruno@clisp.org>
33539             Paul Eggert  <eggert@cs.ucla.edu>
33540
33541         * lib/stdbool_.h (_Bool)
33542         [(! (defined __cplusplus || defined __BEOS__)
33543           && !defined __GNUC__
33544           && !(defined __HP_cc || defined __xlc__
33545                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
33546                || defined __sgi))]:
33547         #define to signed char in these cases too; this simplifies
33548         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
33549         etc., separately) and makes it more conservative.
33550
33551 2006-01-25  Simon Josefsson  <jas@extundo.com>
33552
33553         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
33554         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
33555         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
33556
33557 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33558
33559         * lib/argp-namefrob.h: Bugfix. Remove stray #
33560
33561 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
33562
33563         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
33564         so that we test the test.
33565         Check for yet another HP-UX cc bug involving *bool |= bool.
33566
33567 2006-01-25  Karl Berry  <karl@gnu.org>
33568
33569         * config/srclist.txt (vasnprintf.c): sync lost.
33570
33571 2006-01-25  Jim Meyering  <jim@meyering.net>
33572
33573         Sync from the stable (b5) branch of coreutils:
33574
33575         * lib/fts.c (fts_children): Don't let close() clobber errno from
33576         failed fchdir().
33577
33578         * lib/fts.c (fts_stat): When following a symlink-to-directory,
33579         don't necessarily interpret stat-fails+lstat-succeeds as indicating
33580         a dangling symlink.  That can also happen at least for ELOOP.
33581         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
33582         FYI, this bug predates the inclusion of fts.c in coreutils.
33583
33584         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
33585         in their own block, so pre-c99 compilers don't object.
33586
33587         Avoid the double-free (first in fts_read, second in fts_close) that
33588         would occur when an `active' directory is made inaccessible (e.g.,
33589         via chmod a-x) during a traversal.
33590         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
33591         before returning.  Reproduce this failure by
33592         mkdir -p a/b; cd a; chmod a-x . b
33593         Reported by Stavros Passas.
33594
33595 2006-01-25  Jim Meyering  <jim@meyering.net>
33596
33597         * lib/fileblocks.c: Remove more useless parentheses.
33598         * lib/readutmp.h: Likewise.
33599
33600 2006-01-25  Bruno Haible  <bruno@clisp.org>
33601
33602         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
33603         warnings.
33604         Reported by Paul Eggert.
33605
33606 2006-01-25  Bruno Haible  <bruno@clisp.org>
33607
33608         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
33609         rid of a trap command. For Solaris sh.
33610         Reported by Mark D. Baushke <mdb@gnu.org>.
33611
33612 2006-01-24  Simon Josefsson  <jas@extundo.com>
33613
33614         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
33615         Bruno.
33616
33617 2006-01-24  Karl Berry  <karl@gnu.org>
33618
33619         * config/srclist.txt (argp-namefrob.h): sync lost.
33620
33621 2006-01-24  Jim Meyering  <jim@meyering.net>
33622
33623         * modules/openat (Files): Add lib/intprops.h.
33624         From Mark D. Baushke.
33625
33626 2006-01-24  Jim Meyering  <jim@meyering.net>
33627
33628         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
33629         Reported by Mark D. Baushke.
33630
33631 2006-01-24  Jim Meyering  <jim@meyering.net>
33632
33633         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
33634
33635 2006-01-24  Bruno Haible  <bruno@clisp.org>
33636
33637         * modules/strnlen (Maintainer): Change from glibc to all.
33638
33639 2006-01-24  Bruno Haible  <bruno@clisp.org>
33640
33641         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
33642         Patch by Paul Eggert.
33643
33644 2006-01-24  Bruno Haible  <bruno@clisp.org>
33645
33646         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
33647         already has it.
33648         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
33649         2005-11-26.
33650
33651         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
33652         'signed char' to avoid problems with the built-in _Bool type.
33653         Reported by Paul Eggert on 2005-11-26.
33654
33655 2006-01-24  Bruno Haible  <bruno@clisp.org>
33656
33657         * gnulib-tool (func_import): Avoid constructing complicated sed
33658         expressions inside backquote.
33659         Report and solution by Mark D. Baushke <mdb@gnu.org>.
33660
33661 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
33662
33663         These changes imported from libc.
33664         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
33665         test and two separate function calls.
33666         * lib/strndup.c (__strndup): Add libc_hidden_def.
33667
33668 2006-01-23  Simon Josefsson  <jas@extundo.com>
33669
33670         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
33671         Remove the test_*_SOURCES variable: automake infers it by default.
33672         * modules/tls-tests: Likewise.
33673
33674 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33675
33676         Work around porting bugs reported by Dieter in
33677         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
33678         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
33679         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
33680         Include "getopt.h" first, to check interface.
33681         (getenv): Declare only if defined HAVE_DECL_GETENV &&
33682         !HAVE_DECL_GETENV.
33683         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
33684         (__strndup): Revert to K&R-style function dfns, the glibc style.
33685         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
33686         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
33687         Include strnlen.h first, to get prototype properly.
33688         (strnlen): Renamed from __strnlen.
33689         Remove weak alias.
33690
33691 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33692
33693         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
33694
33695 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33696
33697         * config/srclist.txt: Adjust to reflect glibc reorganization.
33698         This affects only comments.
33699
33700 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
33701
33702          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
33703          Reported by Bruce Korb <bkorb@gnu.org>.
33704
33705 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
33706
33707         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
33708         to pacify gcc -Wswitch-default.
33709
33710 2006-01-22  Bruno Haible  <bruno@clisp.org>
33711
33712         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
33713         temporary buffer for sprintf, take into account the precision also
33714         for 'd', 'i', 'u', 'o', 'x', 'X'.
33715
33716 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
33717
33718         * modules/argp-tests: New module
33719         * tests/test-argp.c: New file
33720         * tests/test-argp-2.sh: New file
33721
33722 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
33723
33724         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
33725         (__argp_base_name): Removed
33726         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
33727         typo.
33728         (__argp_base_name): Provide macro definition or extern declaration
33729         depending on the configuration
33730
33731 2006-01-20  Simon Josefsson  <jas@extundo.com>
33732
33733         * modules/inet_ntop (Depends-on): Depend on sys_socket.
33734
33735 2006-01-20  Simon Josefsson  <jas@extundo.com>
33736
33737         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
33738
33739 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
33740
33741         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
33742         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
33743         Suggested by Bruno Haible.
33744
33745 2006-01-20  Karl Berry  <karl@gnu.org>
33746
33747         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
33748         until changes propagate, I guess.
33749
33750 2006-01-19  Simon Josefsson  <jas@extundo.com>
33751
33752         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
33753
33754 2006-01-19  Simon Josefsson  <jas@extundo.com>
33755
33756         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
33757
33758 2006-01-19  Simon Josefsson  <jas@extundo.com>
33759
33760         * gnulib-tool: Set check_PROGRAMS.
33761
33762         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
33763         modules/des-tests, modules/gc-arcfour-tests,
33764         modules/gc-arctwo-tests, modules/gc-des-tests,
33765         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
33766         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
33767         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
33768         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
33769         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
33770         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
33771         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
33772         test_*_SOURCES.
33773
33774 2006-01-18  Simon Josefsson  <jas@extundo.com>
33775
33776         * modules/socklen (Depends-on): Depend on sys_socket.
33777
33778 2006-01-18  Simon Josefsson  <jas@extundo.com>
33779
33780         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
33781         modules/des-tests, modules/gc-arcfour-tests,
33782         modules/gc-arctwo-tests, modules/gc-des-tests,
33783         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
33784         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
33785         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
33786         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
33787         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
33788         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
33789         $(EXEEXT) to automake TESTS variable, for mingw32.
33790
33791 2006-01-17  Simon Josefsson  <jas@extundo.com>
33792
33793         * modules/socklen (Include): Need sys/socket.h.
33794
33795 2006-01-17  Bruno Haible  <bruno@clisp.org>
33796
33797         * modules/ssize_t (Include): Add <sys/types.h>.
33798
33799 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
33800
33801         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
33802         it's not portable and it doesn't work with cross-compiles.
33803         Problem reported by Bruno Haible.  Fix missing-$ typo in
33804         'test "gl_cv_ignore_unused_libraries" ...' that prevented
33805         -zignore from being used with Sun's C compiler.
33806
33807 2006-01-12  Simon Josefsson  <jas@extundo.com>
33808
33809         * lib/base64.c: Fix warning, reported by Bruno Haible
33810         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
33811
33812 2006-01-12  Bruno Haible  <bruno@clisp.org>
33813
33814         * modules/ldd: New file.
33815         * build-aux/ldd.sh.in: New file.
33816         * MODULES.html.sh (Support for building libraries and executables): Add
33817         ldd.
33818
33819 2006-01-12  Bruno Haible  <bruno@clisp.org>
33820
33821         * m4/ldd.m4: New file.
33822
33823 2006-01-12  Bruno Haible  <bruno@clisp.org>
33824
33825         * gnulib-tool (func_import, func_create_testdir): Don't go into an
33826         endless loop while replacing $auxdir with build-aux.
33827
33828 2006-01-11  Simon Josefsson  <jas@extundo.com>
33829
33830         * lib/stdint_.h (SIZE_MAX): Add missing (.
33831
33832 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
33833
33834         Sync from coreutils.
33835         * lib/md5.c: Fix commentary typos.
33836         (alignof, UNALIGNED_P): No need for a GCC-specific version.
33837         * lib/md5.h (__attribute__): Remove; unused.
33838         * lib/sha1.c: Fix commentary to match md5 better.
33839         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
33840         so that we don't need to worry about alignment.  All uses changed.
33841         This merges the 2005-10-28 md5 change into sha1.
33842
33843 2006-01-11  Jim Meyering  <jim@meyering.net>
33844
33845         Sync from coreutils.
33846         * lib/md5.c (OP): Fix spacing.
33847
33848 2006-01-11  Bruno Haible  <bruno@clisp.org>
33849
33850         Ensure automatic ordering between gl_LOCK and gl_ARGP.
33851         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
33852         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
33853
33854 2006-01-11  Bruno Haible  <bruno@clisp.org>
33855
33856         Ensure automatic ordering between gl_LOCK and gl_ARGP.
33857         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
33858         the "early" section as well.
33859
33860 2006-01-11  Bruno Haible  <bruno@clisp.org>
33861
33862         Avoid "ar: no archive members specified" error on MacOS X.
33863         * gnulib-tool (func_modules_add_dummy): New function.
33864         (func_import, func_create_testdir): Invoke it.
33865
33866 2006-01-11  Bruno Haible  <bruno@clisp.org>
33867
33868         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
33869         with $auxdir in AC_CONFIG_FILES statements.
33870
33871 2006-01-11  Bruno Haible  <bruno@clisp.org>
33872
33873         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33874         Initialize also noinst_HEADERS to empty.
33875
33876 2006-01-11  Bruno Haible  <bruno@clisp.org>
33877
33878         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
33879         variables.
33880         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
33881         autoreconf.
33882
33883 2006-01-11  Bruno Haible  <bruno@clisp.org>
33884
33885         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
33886         overridable by the user.
33887         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33888
33889 2006-01-10  Simon Josefsson  <jas@extundo.com>
33890
33891         * modules/sys_socket: New file.
33892
33893 2006-01-10  Simon Josefsson  <jas@extundo.com>
33894
33895         * m4/sys_socket_h.m4: New file.
33896
33897 2006-01-10  Simon Josefsson  <jas@extundo.com>
33898
33899         * lib/socket_.h: New file.
33900
33901 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
33902
33903         * modules/readutmp (Maintainer): Add myself.
33904
33905 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
33906
33907         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
33908         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
33909         People who are still concerned with buggy memcmp implementations
33910         can invoke gl_FUNC_MEMCMP themselves.
33911
33912 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
33913
33914         * lib/regex_internal.h (BITSET_WORD_BITS):
33915         Work around a bug in 64-bit PGC (before version 6.1-2), where the
33916         preprocessor mishandles large unsigned values as if they were signed.
33917         Problem reported by Claudio Fontana in
33918         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
33919
33920 2006-01-10  Jim Meyering  <jim@meyering.net>
33921
33922         Avoid the double-free (first in fts_read, second in fts_close) that
33923         would occur when an `active' directory is made inaccessible (e.g.,
33924         via chmod a-x) during a traversal.
33925         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
33926         before returning.  Reproduce this failure by
33927         mkdir -p a/b; cd a; chmod a-x . b
33928         Reported by Stavros Passas.
33929
33930         Sync from coreutils.
33931         * lib/sha1.c: Tweak grammar in a comment.
33932
33933 2006-01-10  Jim Meyering  <jim@meyering.net>
33934
33935         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
33936         Patch by Joerg Sonnenberger.
33937
33938 2006-01-10  Bruno Haible  <bruno@clisp.org>
33939
33940         * modules/readutmp: Depend on module free.
33941         * modules/strtok_r: Depend on module restrict.
33942
33943 2006-01-10  Bruno Haible  <bruno@clisp.org>
33944
33945         * modules/gettext (configure.ac): Add an invocation of
33946         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
33947
33948 2006-01-10  Bruno Haible  <bruno@clisp.org>
33949
33950         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
33951         Reported by Werner Lemberg <wl@gnu.org>.
33952
33953 2006-01-10  Bruno Haible  <bruno@clisp.org>
33954
33955         * lib/localcharset.c: Update from GNU gettext.
33956
33957 2006-01-10  Bruno Haible  <bruno@clisp.org>
33958
33959         * lib/argp.h (__const): Remove macro. Use const instead.
33960         * lib/argp-fmtstream.h (__const): Likewise.
33961         * lib/glob_.h (__const): Remove macro.
33962         * lib/glob-libc.h: Use const instead of __const.
33963
33964 2006-01-10  Bruno Haible  <bruno@clisp.org>
33965
33966         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
33967         variable.
33968         Needed to avoid an automake error regarding the 'gettext' module.
33969
33970 2006-01-09  Simon Josefsson  <jas@extundo.com>
33971
33972         * modules/inet_ntop (Depends-on): Add restrict.
33973
33974 2006-01-09  Simon Josefsson  <jas@extundo.com>
33975
33976         * modules/gc-rijndael-tests (License): Put under LGPL.
33977
33978         * modules/gc-des-tests (License): Likewise.
33979
33980         * modules/gc-arcfour-tests (License): Likewise.
33981
33982         * modules/gc-arctwo-tests (License): Likewise.
33983
33984         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
33985
33986         * modules/gc-hmac-sha1-tests (Files): Likewise.
33987
33988         * modules/gc-hmac-md5-tests (License): Likewise.
33989
33990         * modules/gc-sha1-tests (License): Likewise.
33991
33992         * modules/gc-md5-tests (License): Likewise.
33993
33994         * modules/gc-md4-tests (License): Likewise.
33995
33996         * modules/gc-md2-tests (License): Likewise.
33997
33998         * modules/gc-tests (License): Likewise.
33999
34000         * modules/des-tests (License): Likewise.
34001
34002         * modules/md4-tests (License): Likewise.
34003
34004         * modules/md2-tests (License): Likewise.
34005
34006 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34007
34008         Sync from coreutils:
34009
34010         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
34011         * modules/lib-ignore: New file.
34012         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
34013         chdir-safer.m4, lchmod.m4.
34014         * modules/openat: Add mkdirat.c, openat-priv.h.
34015
34016 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34017
34018         Sync from coreutils.
34019         * m4/lib-ignore.m4: New file.
34020         * m4/lchmod.m4: New file.
34021
34022 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34023
34024         Sync from coreutils.
34025         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
34026         for write access: POSIX says that must fail.
34027         * lib/fts.c (diropen): Likewise.
34028         * lib/save-cwd.c (save_cwd): Likewise.
34029         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
34030         well, for minor improvements on hosts that lack O_DIRECTORY.
34031         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
34032         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
34033         Fall back on chown if open failed with EACCES.
34034
34035         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
34036         Report an error at compile-time if only a 1-second nominal clock
34037         resolution is found.
34038
34039         * lib/lchmod.h: New file.
34040         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
34041         (make_dir_parents): Use lchown rather than chown, and
34042         lchmod rather than chmod.
34043
34044         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
34045         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
34046         "proc" reported by n0dalus.
34047
34048         * lib/mountlist.c: Include <limits.h>.
34049         (dev_from_mount_options)
34050         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
34051         New function.  It no longer assumes "dev=" has the System V meaning
34052         on Linux (since it doesn't).  It also parses "dev=" more carefully.
34053         (read_file_system_list)
34054         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
34055         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
34056         dev= in that case.
34057
34058         * lib/posixtm.h (PDS_PRE_2000): New macro.
34059         * lib/posixtm.c (year): Arg is now syntax_bits rather than
34060         allow_century.  All usages changed.  Reject dates outside the range
34061         1969-1999 if PDS_PRE_2000 is used.
34062
34063 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34064
34065         Sync from coreutils.
34066         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
34067         (Time of day items): Mention the possibility of leap seconds.
34068         Problem reported by Dr. David Alan Gilbert.
34069
34070 2006-01-09  Jim Meyering  <jim@meyering.net>
34071
34072         Sync from coreutils.
34073
34074         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
34075
34076         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
34077
34078         * lib/modechange.c (mode_compile): Reject an invalid mode string
34079         that starts with an octal digit.  From Andreas Gruenbacher.
34080
34081         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
34082         and dup to open_safer and dup_safer, respectively.
34083         (openat_permissive): Fix typo in comment.
34084
34085         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
34086         "gettext.h"; either no longer needed or are guaranteed by openat.h.
34087         (_): Remove; no longer needed.
34088         (openat): Renamed from rpl_openat; no need for rpl_openat
34089         since openat.h renames openat for us.
34090         Replace most of the body with a call to openat_permissive,
34091         to avoid duplicate code.
34092         Port to (probably hypothetical) environments were mode_t is
34093         wider than int.
34094         (openat_permissive): Require mode arg, so that we can check
34095         types better.  Put it just after flags.  Change cwd failure
34096         indicator from pointer-to-bool to pointer-to-errno-value.
34097         All callers changed.
34098         Invoke openat_save_fail and/or openat_restore_fail if
34099         cwd_errno is null, so that openat can call us.
34100         (openat_permissive, fdopendir, fstatat, unlinkat):
34101         Simplify errno handling to avoid some duplicate code,
34102         as it's OK to set errno on success.
34103         * lib/openat.h: Revamp code so that function macros depend on
34104         __OPENAT_PREFIX only, not also on AT_FDCWD.
34105         (openat_ro): Remove.  Caller changed to use openat_permissive.
34106         (openat_permissive): Now a macro, if not a function.
34107         (openat_restore_fail, openat_save_fail): Now always functions,
34108         since mkdirat needs them even if __OPENAT_PREFIX is defined.
34109
34110         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
34111         and openat.c.
34112         * lib/mkdirat.c: Include openat-priv.h.
34113         Remove definitions of macros defined therein.
34114         * lib/openat.c: Likewise.
34115
34116         * lib/mkdirat.c (mkdirat): New file and function.
34117         * lib/openat.h (mkdirat): Declare.
34118
34119         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
34120
34121         * lib/openat.h (openat_permissive): Declare.
34122         (openat_ro): Define.
34123
34124         * lib/openat.c (EXPECTED_ERRNO): New macro.
34125         (openat_permissive): New function -- used in remove.c rewrite.
34126         (all functions): Set errno just before returning, only if there
34127         was an actual failure.
34128         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
34129
34130         Emulate openat-family functions using Linux's procfs, if possible.
34131         Idea and some code based on Ulrich Drepper's glibc changes.
34132
34133         * lib/openat.c: (BUILD_PROC_NAME): New macro.
34134         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
34135         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
34136         before falling back on save_cwd and restore_cwd.
34137         (fdopendir, fstatat, unlinkat): Likewise.
34138
34139         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
34140         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
34141
34142         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
34143         as second argument to va_arg.  Otherwise, some versions of gcc
34144         warn that `if this code is reached, the program will abort'.
34145
34146 2006-01-09  Jim Meyering  <jim@meyering.net>
34147
34148         Sync from coreutils.
34149         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
34150         Require openat-priv.h.
34151
34152 2006-01-09  Bruno Haible  <bruno@clisp.org>
34153
34154         * modules/strnlen (Include): Use strnlen.h.
34155
34156 2006-01-09  Bruno Haible  <bruno@clisp.org>
34157
34158         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
34159
34160 2006-01-09  Bruno Haible  <bruno@clisp.org>
34161
34162         * lib/sysexit_.h (EX_OK): New macro.
34163         Suggested by Martin Lambers <marlam@marlam.de>.
34164
34165 2006-01-09  Bruno Haible  <bruno@clisp.org>
34166
34167         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
34168         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
34169
34170 2006-01-09  Bruno Haible  <bruno@clisp.org>
34171
34172         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
34173         numbers.
34174
34175 2006-01-09  Bruno Haible  <bruno@clisp.org>
34176
34177         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
34178         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
34179         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
34180         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
34181
34182 2006-01-09  Bruno Haible  <bruno@clisp.org>
34183
34184         * build-aux/javacomp.sh.in: New file, moved from lib/.
34185         * modules/javacomp-script (Files): Update.
34186         (configure.ac): Add AC_CONFIG_FILES invocation.
34187         (EXTRA_DIST): Remove variable.
34188
34189         * build-aux/javaexec.sh.in: New file, moved from lib/.
34190         * modules/javaexec (Files): Update.
34191         (configure.ac): Add AC_CONFIG_FILES invocation.
34192         (EXTRA_DIST): Remove javaexec.sh.in.
34193
34194         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
34195         * modules/csharpcomp-script (Files): Update.
34196         (configure.ac): Add AC_CONFIG_FILES invocation.
34197         (EXTRA_DIST): Remove variable.
34198
34199         * build-aux/csharpexec.sh.in: New file, moved from lib/.
34200         * modules/csharpexec (Files): Update.
34201         (configure.ac): Add AC_CONFIG_FILES invocation.
34202         (EXTRA_DIST): Remove csharpexec.sh.in.
34203
34204 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
34205
34206         Sync from coreutils.
34207
34208         Add POSIX ACL support
34209         * lib/acl.h (copy_acl, set_acl): Add declarations.
34210         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
34211         systems other than Linux.
34212         (chmod_or_fchmod): New function: use fchmod when possible,
34213         and chmod otherwise.
34214         (file_has_acl): Add a POSIX ACL implementation, with a
34215         Linux-specific subcase.
34216         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
34217         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
34218         acls are unsupported.
34219         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
34220         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
34221         are unsupported.
34222
34223 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
34224
34225         Sync from coreutils.
34226         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
34227
34228 2006-01-07  Bruno Haible  <bruno@clisp.org>
34229
34230         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
34231         gl_EARLY.
34232
34233 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
34234
34235         * lib/strftime.c (tzname): Don't declare if it is already #defined.
34236         Problem reported for Mingw by Mark Junker.
34237
34238 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
34239
34240         * README: Gnulib normally doesn't generate a tarball.
34241
34242 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
34243
34244         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
34245         long int, not int, for nanosecond counts, so that people who are
34246         used to POSIX struct timespec won't be surprised.  Reported by Jim
34247         Meyering.
34248
34249 2005-12-28  Bruno Haible  <bruno@clisp.org>
34250
34251         * build-aux/config.rpath: Update from GNU gettext.
34252
34253 2005-12-16  Jim Meyering  <jim@meyering.net>
34254
34255         * modules/fprintftime: New module.
34256         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
34257
34258 2005-12-16  Jim Meyering  <jim@meyering.net>
34259
34260         * m4/fprintftime.m4: New file.
34261
34262 2005-12-16  Jim Meyering  <jim@meyering.net>
34263
34264         * lib/fprintftime.c, lib/fprintftime.h: New files.
34265
34266 2005-12-15  Simon Josefsson  <jas@extundo.com>
34267
34268         * modules/socklen (configure.ac): Fix M4 macro name, to align with
34269         new m4/socklen.m4.
34270
34271 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
34272
34273         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
34274         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
34275
34276 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
34277
34278         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
34279         * lib/argp-help.c (fill_in_uparams): Check if the constructed
34280         struct uparams is valid. Fall back to the default values if it is
34281         not.
34282
34283 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
34284
34285         * modules/argp (Files): Add argp-pin.c
34286         (Depends-on): dirname
34287         (lib_SOURCES): Add argp-pin.c
34288
34289 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
34290
34291         * m4/argp.m4:  Check if program_invocation_name and
34292         program_invocation_short_name are declared and define appropriate
34293         macros if they are not.
34294
34295 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
34296
34297         * lib/argp-help.c (__argp_base_name): New function
34298         (__argp_short_program_name): Rewrite using __argp_base_name
34299         * lib/argp-namefrob.h: Define program_invocation_name and
34300         program_invocation_short_name if requested
34301         (__argp_base_name): Add prototype
34302         * lib/argp-parse.c (argp_def): Use gettext wrappers
34303         (argp_default_parser): Use __argp_base_name
34304         * lib/argp-pin.c: New file. Defines program_invocation_name and
34305         program_invocation_short_name on systems that lack them.
34306
34307 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
34308
34309         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
34310         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
34311         porting problem reported by Georg Schwarz in
34312         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
34313
34314 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
34315
34316         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
34317         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
34318         porting problem reported by Georg Schwarz in
34319         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
34320
34321 2005-12-05  Bruno Haible  <bruno@clisp.org>
34322
34323         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
34324         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
34325         Reported by Mark Junker <mjscod@gmx.de>.
34326
34327 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
34328
34329         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
34330         Use implementation from Albert Chin, with some
34331         comments/corrections by Stepan Kasal and myself.
34332
34333 2005-12-02  Bruno Haible  <bruno@clisp.org>
34334
34335         * gnulib-tool (func_import): Accept GPLed build tool modules when
34336         --lgpl is given.
34337         * modules/csharpcomp-script: New file.
34338         * modules/csharpcomp: Depend on it.
34339         * modules/javacomp-script: New file.
34340         * modules/javacomp: Depend on it.
34341         Suggested by Simon Josefsson.
34342
34343 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
34344
34345         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
34346         statement, to work around an HP-UX 10.20 compiler bug reported by
34347         Peter O'Gorman.
34348
34349 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
34350
34351         * modules/savedir (Depends-on): Add openat.
34352
34353 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
34354
34355         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
34356         (uintmax_t) [defined uintmax_t]: Do not declare.
34357         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
34358         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
34359         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
34360         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
34361         sake of portability to weird hosts that C allows (though we don't
34362         know of any practical examples).
34363
34364         * lib/savedir.h (fdsavedir): New decl.
34365         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
34366         contains most of the former guts of savedir.
34367         (savedir): Use savedirstream.
34368         Include "openat.h".
34369
34370 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
34371
34372         * modules/obstack (Files): Add m4/ulonglong.m4.
34373         Problem reported by Davide Angelocola.
34374
34375 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
34376
34377         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
34378         coreutils no longer futzes with rounding modes.
34379
34380 2005-11-14  Jim Meyering  <jim@meyering.net>
34381
34382         * lib/mkstemp-safer.c: Include <config.h>, required for possible
34383         replacement of mkstemp.
34384
34385 2005-11-10  Simon Josefsson  <jas@extundo.com>
34386
34387         * lib/readline.c: Remove EOL.
34388
34389 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34390
34391         * modules/gethrxtime (Depends-on): Add gettime.
34392
34393 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34394
34395         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
34396         or gettimeofday; no longer needed.
34397
34398 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34399
34400         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
34401         time business.
34402         (gethrxtime) [! (HAVE_NANOUPTIME
34403         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
34404         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
34405         our own approximation.
34406
34407 2005-11-08  Eric Blake  <ebb9@byu.net>
34408
34409         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
34410
34411 2005-11-08  Eric Blake  <ebb9@byu.net>
34412
34413         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
34414
34415 2005-11-04  Bruno Haible  <bruno@clisp.org>
34416
34417         * gnulib-tool: Implement --update mode.
34418
34419 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34420
34421         Fix porting problem reported by Theodoros V. Kalamatianos.
34422         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
34423         Don't assume that futimes failing means we must fail.
34424
34425 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34426
34427         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
34428         variables to suggest the intended function of the PATH_MAX check.
34429
34430 2005-10-30  Kean Johnston  <jkj@sco.com>
34431
34432         Trivial changes to support SCO systems.
34433         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
34434         as PATH_MAX.
34435         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
34436         where __ptr is null when no I/O is pending.
34437
34438 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
34439
34440         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
34441         leave errno alone.  Problem reported by Dmitry V. Levin.
34442
34443 2005-10-28  Simon Josefsson  <jas@extundo.com>
34444
34445         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
34446         Test more.
34447
34448         * tests/test-gc-md2.c, tests/test-md2.c: New files.
34449
34450         * modules/md2, modules/md2-tests: New files.
34451
34452 2005-10-28  Simon Josefsson  <jas@extundo.com>
34453
34454         * m4/inet_ntop.m4: More tests.
34455
34456         * m4/gc-md2.m4, md2.m4: New file.
34457
34458 2005-10-28  Simon Josefsson  <jas@extundo.com>
34459
34460         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
34461         "restrict" keywords, as per POSIX.  Protect the function
34462         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
34463         Don't use K&R prototypes.  Check the sprintf return values.
34464         Re-define EAFNOSUPPORT if not present.  Indent.
34465
34466         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
34467         suggested by Bruno Haible <bruno@clisp.org>.
34468
34469         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
34470
34471         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
34472
34473         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
34474         libgcrypt).
34475
34476         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
34477
34478         * lib/md2.h, lib/md2.c: New files.
34479
34480 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
34481
34482         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
34483         errno alone.  Problem reported by Frederic Jolliton.
34484
34485 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
34486
34487         * modules/verify (License): Change from GPL to LGPL.  This is a
34488         tiny module and there are apparently near-equivalents that are
34489         under the BSD license.
34490
34491 2005-10-24  Simon Josefsson  <jas@extundo.com>
34492
34493         * modules/sha1: Relicense to LGPL.
34494
34495 2005-10-24  Simon Josefsson  <jas@extundo.com>
34496
34497         * lib/md4.h: Shrink buffer size, now that we changed the type.
34498
34499 2005-10-23  Simon Josefsson  <jas@extundo.com>
34500
34501         * gnulib-tool (func_import): Fix --tests-base.
34502
34503 2005-10-22  Simon Josefsson  <jas@extundo.com>
34504
34505         * modules/arcfour (Depends-on): Need stdint.
34506
34507 2005-10-22  Simon Josefsson  <jas@extundo.com>
34508
34509         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
34510         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
34511
34512 2005-10-22  Simon Josefsson  <jas@extundo.com>
34513
34514         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
34515         suggested by Bruno Haible <bruno@clisp.org>.
34516
34517 2005-10-22  Simon Josefsson  <jas@extundo.com>
34518
34519         * lib/crc.h: Include stddef.h, for size_t.
34520
34521 2005-10-22  Simon Josefsson  <jas@extundo.com>
34522
34523         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
34524         arcfour_context struct (simplify test vector testing in GNU
34525         Shishi).
34526
34527 2005-10-21  Simon Josefsson  <jas@extundo.com>
34528
34529         * modules/des, modules/des-tests: New files.
34530
34531         * modules/gc-des, modules/gc-des-tests: New files.
34532
34533         * tests/test-des.c, tests/test-gc-des.c: New file.
34534
34535 2005-10-21  Simon Josefsson  <jas@extundo.com>
34536
34537         * modules/arctwo, modules/arctwo-tests: New files.
34538
34539         * tests/test-arctwo.c: New file.
34540
34541         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
34542
34543         * tests/test-gc-arctwo.c: New file.
34544
34545 2005-10-21  Simon Josefsson  <jas@extundo.com>
34546
34547         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
34548         Bruno Haible <bruno@clisp.org>.
34549
34550         * m4/gc-des.m4: New file.
34551
34552 2005-10-21  Simon Josefsson  <jas@extundo.com>
34553
34554         * m4/arctwo.m4: New file.
34555
34556         * m4/gc-arctwo.m4: New file.
34557
34558 2005-10-21  Simon Josefsson  <jas@extundo.com>
34559
34560         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
34561         block.
34562
34563 2005-10-21  Simon Josefsson  <jas@extundo.com>
34564
34565         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
34566         <bruno@clisp.org>.
34567
34568         * lib/hmac-sha1.c (hmac_sha1): Likewise.
34569
34570         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
34571         Bruno Haible <bruno@clisp.org>.
34572
34573         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
34574         <bruno@clisp.org>.
34575
34576 2005-10-21  Simon Josefsson  <jas@extundo.com>
34577
34578         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
34579
34580 2005-10-21  Simon Josefsson  <jas@extundo.com>
34581
34582         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
34583
34584 2005-10-21  Simon Josefsson  <jas@extundo.com>
34585
34586         * lib/des.h, lib/des.c: New files.
34587
34588         * lib/gc-gnulib.c: Support DES.c
34589
34590 2005-10-21  Simon Josefsson  <jas@extundo.com>
34591
34592         * lib/arctwo.h, lib/arctwo.c: New files.
34593
34594         * lib/gc-gnulib.c: Support ARCTWO.
34595
34596 2005-10-21  Simon Josefsson  <jas@extundo.com>
34597
34598         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
34599         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34600
34601 2005-10-21  Simon Josefsson  <jas@extundo.com>
34602
34603         * gnulib-tool (func_import, func_create_testdir): Define automake
34604         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
34605         Makefile.am snippet),
34606         suggested by Bruno Haible <bruno@clisp.org>.
34607
34608         * modules/gc (Makefile.am): Use it.
34609
34610 2005-10-21  Bruno Haible  <bruno@clisp.org>
34611
34612         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
34613         patch.
34614
34615 2005-10-19  Simon Josefsson  <jas@extundo.com>
34616
34617         * tests/test-gc-rijndael.c: New file.
34618
34619         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
34620
34621 2005-10-19  Simon Josefsson  <jas@extundo.com>
34622
34623         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
34624         interface too.
34625
34626 2005-10-19  Simon Josefsson  <jas@extundo.com>
34627
34628         * tests/test-gc-arcfour.c: New file.
34629
34630         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
34631
34632 2005-10-19  Simon Josefsson  <jas@extundo.com>
34633
34634         * modules/gc-md4, modules/gc-md4-tests: New file.
34635
34636         * tests/test-gc-md4.c: New file.
34637
34638 2005-10-19  Simon Josefsson  <jas@extundo.com>
34639
34640         * m4/gc-md4.m4: New file.
34641
34642 2005-10-19  Simon Josefsson  <jas@extundo.com>
34643
34644         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
34645         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
34646         <kasal@ucw.cz>.
34647
34648 2005-10-19  Simon Josefsson  <jas@extundo.com>
34649
34650         * m4/gc-arcfour.m4: New file.
34651
34652         * m4/gc-rijndael.m4: New file.
34653
34654 2005-10-19  Simon Josefsson  <jas@extundo.com>
34655
34656         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
34657
34658 2005-10-19  Simon Josefsson  <jas@extundo.com>
34659
34660         * lib/gc-gnulib.c: Support ARCFOUR.
34661
34662 2005-10-19  Simon Josefsson  <jas@extundo.com>
34663
34664         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
34665         support.
34666
34667         * lib/gc.h: Add ECB enum type.
34668
34669         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
34670
34671 2005-10-18  Simon Josefsson  <jas@extundo.com>
34672
34673         * tests/test-md5.c: New file.
34674
34675         * modules/md5-tests: New file.
34676
34677 2005-10-18  Simon Josefsson  <jas@extundo.com>
34678
34679         * tests/test-md4.c: New file.
34680
34681         * modules/md4, modules/md4-tests: New files.
34682
34683 2005-10-18  Simon Josefsson  <jas@extundo.com>
34684
34685         * m4/md4.m4: New file.
34686
34687 2005-10-18  Simon Josefsson  <jas@extundo.com>
34688
34689         * lib/md4.h, lib/md4.c: New files, based on md5.?.
34690
34691 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
34692
34693         * gnulib-tool (func_create_testdir): Omit the second check whether
34694         BUILT_SOURCES in nonempty.
34695
34696 2005-10-17  Simon Josefsson  <jas@extundo.com>
34697
34698         * tests/test-rijndael.c: New file.
34699
34700 2005-10-17  Simon Josefsson  <jas@extundo.com>
34701
34702         * modules/sha1: Depend on stdint instead of md5.
34703
34704         * modules/md5: Depend on stdint, remove uint32_t.
34705
34706 2005-10-17  Simon Josefsson  <jas@extundo.com>
34707
34708         * modules/gc-sha1-tests: New file.
34709
34710         * tests/test-gc-sha1.c: New file.
34711
34712 2005-10-17  Simon Josefsson  <jas@extundo.com>
34713
34714         * m4/md5.m4: Remove call to uint32_t.m4.
34715
34716 2005-10-17  Simon Josefsson  <jas@extundo.com>
34717
34718         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
34719
34720         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
34721         md5.h.
34722
34723         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
34724
34725         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
34726
34727 2005-10-17  Simon Josefsson  <jas@extundo.com>
34728
34729         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
34730
34731 2005-10-17  Simon Josefsson  <jas@extundo.com>
34732
34733         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
34734
34735 2005-10-17  Simon Josefsson  <jas@extundo.com>
34736
34737         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
34738
34739         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
34740
34741 2005-10-17  Bruno Haible  <bruno@clisp.org>
34742
34743         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
34744         that it can also be used in a test.
34745
34746 2005-10-16  Bruno Haible  <bruno@clisp.org>
34747
34748         * gnulib-tool (func_emit_tests_Makefile_am): Also define
34749         TESTS_ENVIRONMENT, so that individual tests can augment it.
34750
34751         * gnulib-tool (func_create_testdir): Use an intermediate target for
34752         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
34753         macros, like $(ALLOCA_H), which cannot be passed through the command
34754         line.
34755
34756 2005-10-15  Simon Josefsson  <jas@extundo.com>
34757
34758         * modules/rijndael-tests: New file.
34759
34760         * modules/rijndael: New file.
34761
34762 2005-10-15  Simon Josefsson  <jas@extundo.com>
34763
34764         * m4/rijndael.m4: New file.
34765
34766 2005-10-15  Simon Josefsson  <jas@extundo.com>
34767
34768         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
34769
34770         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
34771
34772 2005-10-14  Simon Josefsson  <jas@extundo.com>
34773
34774         * tests/test-arcfour.c: New file.
34775
34776         * modules/arcfour, modules/arcfour-tests: New files.
34777
34778 2005-10-14  Simon Josefsson  <jas@extundo.com>
34779
34780         * m4/arcfour.m4: New file.
34781
34782 2005-10-14  Simon Josefsson  <jas@extundo.com>
34783
34784         * lib/arcfour.h, lib/arcfour.c: New files.
34785
34786 2005-10-14  Roland McGrath  <roland@redhat.com>
34787
34788         Import from libc.  [BZ #1331]
34789         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
34790         macro argument.
34791         Reported by Matej Vela <vela@debian.org>.
34792
34793 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
34794
34795         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
34796         include <wchar.h>; no longer needed.
34797
34798 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
34799
34800         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
34801
34802 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
34803         and  Ulrich Drepper  <drepper@redhat.com>
34804
34805         Import from libc.
34806         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
34807         instead of inline stream orientation test and two separate
34808         function calls.  Pay no attention to USE_IN_LIBIO.
34809
34810 2005-10-13  Simon Josefsson  <jas@extundo.com>
34811
34812         * modules/gc-hmac-md5-tests: New file.
34813
34814         * tests/test-gc-hmac-sha1.c: New file.
34815
34816         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
34817
34818         * modules/gc-hmac-md5-tests: New file.
34819
34820         * tests/test-gc-md5.c: New file.
34821
34822         * modules/gc-md5-tests: New file.
34823
34824 2005-10-13  Simon Josefsson  <jas@extundo.com>
34825
34826         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
34827         Move memory allocation outside of loop.
34828
34829 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
34830
34831         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
34832         intermediate directory is in a read-only file system.  Problem
34833         reported by Eric Blake.
34834
34835 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
34836
34837         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
34838
34839 2005-10-12  Simon Josefsson  <jas@extundo.com>
34840
34841         * tests/test-hmac-sha1.c: New file.
34842
34843         * modules/hmac-sha1-tests: New file.
34844
34845         * modules/hmac-sha1: New file.
34846
34847 2005-10-12  Simon Josefsson  <jas@extundo.com>
34848
34849         * modules/gc-sha1: New file.
34850
34851 2005-10-12  Simon Josefsson  <jas@extundo.com>
34852
34853         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
34854
34855         * tests/test-gc-pbkdf2-sha1.c: New file.
34856
34857 2005-10-12  Simon Josefsson  <jas@extundo.com>
34858
34859         * modules/gc-md5, modules/gc-hmac-md5: New files.
34860
34861         * modules/gc (Files): Remove md5, memxor and hmac files.
34862
34863 2005-10-12  Simon Josefsson  <jas@extundo.com>
34864
34865         * m4/gc-pbkdf2-sha1.m4: New file.
34866
34867         * m4/gc-hmac-sha1.m4: New file.
34868
34869         * m4/gc-sha1: New file.
34870
34871         * m4/hmac-sha1.m4: New file.
34872
34873 2005-10-12  Simon Josefsson  <jas@extundo.com>
34874
34875         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
34876
34877         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
34878
34879 2005-10-12  Simon Josefsson  <jas@extundo.com>
34880
34881         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
34882         suggested by Bruno Haible <bruno@clisp.org>.
34883
34884 2005-10-12  Simon Josefsson  <jas@extundo.com>
34885
34886         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
34887
34888 2005-10-12  Simon Josefsson  <jas@extundo.com>
34889
34890         * lib/gc-pbkdf2-sha1.c: New file.
34891
34892         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
34893
34894 2005-10-12  Simon Josefsson  <jas@extundo.com>
34895
34896         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
34897
34898         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
34899
34900 2005-10-12  Simon Josefsson  <jas@extundo.com>
34901
34902         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
34903         GC_USE_HMAC_MD5, respectively.
34904
34905         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
34906         (gc_md5): Fix typo.
34907
34908         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
34909
34910         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
34911
34912         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
34913
34914 2005-10-12  Bruno Haible  <bruno@clisp.org>
34915
34916         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
34917         Reported by Stepan Kasal <kasal@ucw.cz>.
34918
34919 2005-10-11  Simon Josefsson  <jas@extundo.com>
34920
34921         * tests/test-crc.c: New file.
34922
34923         * modules/crc, modules/crc-tests: New files.
34924
34925 2005-10-11  Simon Josefsson  <jas@extundo.com>
34926
34927         * m4/crc.m4: New file.
34928
34929 2005-10-11  Simon Josefsson  <jas@extundo.com>
34930
34931         * lib/gc.h: Add gc_hash and gc_hash_buffer.
34932
34933         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
34934
34935         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
34936
34937 2005-10-11  Simon Josefsson  <jas@extundo.com>
34938
34939         * lib/crc.h, lib/crc.c: New files.
34940
34941         * lib/gc.h (gc_hash_buffer): Add doc.
34942
34943 2005-10-11  Bruno Haible  <bruno@clisp.org>
34944
34945         * modules/c-strcasestr: New file.
34946         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
34947
34948 2005-10-11  Bruno Haible  <bruno@clisp.org>
34949
34950         * modules/c-strcase: New file.
34951         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
34952
34953 2005-10-11  Bruno Haible  <bruno@clisp.org>
34954
34955         * lib/strcasecmp.c: Include limits.h.
34956         (strcasecmp): Avoid integer overflow on exotic platforms.
34957         * lib/strncasecmp.c: Include limits.h.
34958         (strncasecmp): Avoid integer overflow on exotic platforms.
34959         Reported by Paul Eggert.
34960
34961 2005-10-11  Bruno Haible  <bruno@clisp.org>
34962
34963         * lib/c-strcasestr.h: New file, from GNU gettext.
34964         * lib/c-strcasestr.c: New file, from GNU gettext.
34965
34966 2005-10-11  Bruno Haible  <bruno@clisp.org>
34967
34968         * lib/c-strcase.h: New file, from GNU gettext.
34969         * lib/c-strcasecmp.c: New file, from GNU gettext.
34970         * lib/c-strncasecmp.c: New file, from GNU gettext.
34971
34972 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
34973
34974         * modules/mempcpy (License): GPL -> LGPL.
34975         * modules/strchrnul (License): Likewise.
34976         * modules/sysexits (License): Likewise.
34977
34978 2005-10-08  Simon Josefsson  <jas@extundo.com>
34979
34980         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
34981
34982 2005-10-07  Simon Josefsson  <jas@extundo.com>
34983
34984         * m4/memxor.m4: Remove gl_C_RESTRICT call.
34985
34986 2005-10-06  Simon Josefsson  <jas@extundo.com>
34987
34988         * tests/test-hmac-md5.c: New file.
34989
34990         * modules/hmac-md5-tests: New file.
34991
34992         * modules/hmac-md5: New file.
34993
34994 2005-10-06  Simon Josefsson  <jas@extundo.com>
34995
34996         * m4/hmac-md5.m4: New file.
34997
34998         * m4/memxor.m4: Require gl_C_RESTRICT.
34999
35000 2005-10-06  Simon Josefsson  <jas@extundo.com>
35001
35002         * lib/memxor.c (memxor): Avoid casts and warnings.
35003
35004 2005-10-06  Simon Josefsson  <jas@extundo.com>
35005
35006         * lib/hmac-md5.c: New file.
35007
35008         * lib/hmac.h: New file.
35009
35010 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
35011
35012         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
35013         promotes to int, not unsigned int, to catch the AIX 5.3
35014         compiler bug.
35015
35016 2005-10-05  Simon Josefsson  <jas@extundo.com>
35017
35018         * modules/memxor: New file.
35019
35020         * modules/iconv (Files): Move config.rpath to havelib, it is used
35021         there.
35022
35023         * modules/havelib (Files): Add config.rpath.
35024
35025 2005-10-05  Simon Josefsson  <jas@extundo.com>
35026
35027         * m4/memxor.m4: New file.
35028
35029 2005-10-05  Simon Josefsson  <jas@extundo.com>
35030
35031         * lib/memxor.c (memxor): Fix compiler error.
35032
35033         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
35034         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
35035
35036         * lib/memxor.h, lib/memxor.c: New files.
35037
35038         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
35039         we assume all systems have it, suggested by Jim Meyering
35040         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
35041         any systems lack sys/socket.h; mingw32 is known to lack it, but we
35042         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
35043         same reasons.
35044
35045 2005-10-05  Simon Josefsson  <jas@extundo.com>
35046
35047         * config/srclist.txt: Add glibc bug 1423 for md5.h.
35048
35049 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
35050
35051         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
35052         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
35053         needed, since the source code now assumes these .h files.
35054
35055 2005-10-05  Derek Price  <derek@ximbiot.com>
35056
35057         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
35058
35059 2005-10-05  Bruno Haible  <bruno@clisp.org>
35060
35061         * modules/stdint (License): Change to LGPL.
35062
35063 2005-10-04  Simon Josefsson  <jas@extundo.com>
35064
35065         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
35066         D. Baushke" <mdb@gnu.org>.
35067
35068 2005-10-04  Bruno Haible  <bruno@clisp.org>
35069
35070         * lib/verify.h (verify_true): Provide alternative definition for C++.
35071
35072 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
35073
35074         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
35075         (SSIZE_MAX): New macro, if not already defined.
35076         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
35077         than 2 GiB.
35078
35079 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
35080
35081         Sync from coreutils.
35082         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
35083         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
35084         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
35085         ULLONG_MAX doesn't work with 2.7.2.1.
35086
35087 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
35088
35089         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
35090         From Ben Pfaff.
35091
35092         * modules/exclude (Depends-on): Depend on verify.
35093         * modules/strtoimax (Depends-on): Likewise.
35094         * modules/utimecmp (Depends-on): Likewise.
35095
35096 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
35097
35098         * lib/exclude.c: Include verify.h.
35099         (verify): Remove.  All callers changed to use verify.h's version.
35100         * lib/strtoimax.c: Likewise.
35101         * lib/utimecmp.c: Likewis.e
35102
35103         Sync from coreutils.
35104         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
35105         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
35106         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
35107         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
35108         bother returning ENOSYS if settimeofday or stime fails; just let
35109         them return whatever errno they want to return.
35110         * lib/utimens.c: Include unistd.h, for dup2.
35111         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
35112         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
35113
35114 2005-10-02  Jim Meyering  <jim@meyering.net>
35115
35116         Sync from coreutils.
35117         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
35118         from glibc-2.2.5 that fails for read-only files.
35119
35120 2005-10-02  Jim Meyering  <jim@meyering.net>
35121
35122         Sync from coreutils.
35123         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
35124         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
35125         `#if HAVE_CONFIG_H'.
35126         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
35127         Remove AT_FDCWD test.
35128         Do not consume the fd unless successful.
35129         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
35130         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
35131         block, so that we don't even try to compile it if settimeofday is
35132         available.  This works around a compilation failure on OSF1 V5.1,
35133         due to stime requiring a `long int*' while tv_sec is `int'.
35134
35135 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
35136
35137         Sync from coreutils.
35138         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
35139         against `yes', rather than just testing for nonempty.
35140
35141 2005-10-01  Simon Josefsson  <jas@extundo.com>
35142
35143         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
35144         and Darwin.
35145
35146         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
35147         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
35148         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
35149         freeaddrinfo and gai_strerror are declared by the POSIX headers.
35150         Check if struct addrinfo is declared.
35151
35152 2005-10-01  Simon Josefsson  <jas@extundo.com>
35153
35154         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
35155         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
35156         AI_* and EAI_* definitions.  Protect function declarations.
35157
35158 2005-10-01  Jim Meyering  <jim@meyering.net>
35159
35160         Sync from coreutils.
35161
35162         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
35163         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
35164         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
35165         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
35166         in the inet and nsl libraries.  Required on Solaris 5.7.
35167
35168 2005-10-01  Jim Meyering  <jim@meyering.net>
35169
35170         Sync from coreutils.
35171         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
35172         in the inet and nsl libraries.  Required on Solaris 5.7.
35173
35174 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
35175
35176         * lib/getdelim.c (getdelim): Remove unused variables.
35177
35178 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
35179
35180         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
35181         so that the code works even with ancient cpp.  Portability problem
35182         with GCC 2.7.2.1 reported by Thomas M.Ott.
35183
35184 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
35185
35186         * modules/regex (Depends-on): Add strcase.
35187
35188         * modules/gethostname (Licence): Change from GPL to LGPL, since
35189         gethostname.c is a trivial implementation of a standard library
35190         function.
35191         * modules/poll (License): Change from GPL to LGPL, since it's
35192         derived from LGPL code.
35193
35194 2005-09-27  Jim Meyering  <jim@meyering.net>
35195
35196         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
35197         HAVE_CONFIG_H.
35198
35199         * lib/intprops.h (signed_type_or_expr__): Define.
35200         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
35201         for unsigned types.
35202
35203 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
35204
35205         * lib/verify.h (verify_expr): Remove, replacing with:
35206         (verify_true): New macro that returns true instead of void.
35207         (verify_type__): Remove.
35208         (verify): Use verify_true rather than verify_type__.
35209
35210 2005-09-26  Bruno Haible  <bruno@clisp.org>
35211
35212         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
35213         is necessary.
35214         (lib_SOURCES): Remove mbchar.c.
35215         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
35216         (Files): Add m4/mbrtowc.m4.
35217         * modules/mbiter: Likewise.
35218         * modules/mbuiter: Likewise.
35219
35220 2005-09-26  Bruno Haible  <bruno@clisp.org>
35221
35222         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
35223         compile mbchar.c if they are not both present.
35224         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
35225         * m4/mbiter.m4 (gl_MBITER): Likewise.
35226         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
35227         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
35228         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
35229
35230 2005-09-25  Jim Meyering  <jim@meyering.net>
35231
35232         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
35233         also uses socklen_t.
35234
35235 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
35236
35237         * lib/utimens.c (ENOSYS): Define if not already defined.
35238         (futimens): Support having a null PATH if the file descriptor
35239         is nonnegative.
35240
35241         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
35242         Remove.
35243         (__attribute): Define to empty unless GCC 3.1 or later.
35244         This works around a core dump on OpenBSD 3.4, which has GCC
35245         2.95.3, which dumps core when given __attribute__(()).  It also
35246         simplifies other tests, since we really don't want to bother with
35247         worrying about which ancient version of GCC supported what.
35248         Original problem reported by Yoann Vandoorselaere, with part of
35249         the fix suggested by Derek Price.
35250
35251 2005-09-24  Jim Meyering  <jim@meyering.net>
35252
35253         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
35254         so we can once again use a positive bitfield width of 1 -- now we
35255         don't have to explain why we were using a bitfield width of 2.
35256
35257 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
35258
35259         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
35260         and similarly for the other external symbols.  Problem reported
35261         by James Gallager.
35262
35263         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
35264         bug reported by Jim Meyering.
35265
35266         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
35267         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
35268         not needed, since socklen is a prerequisite module.
35269
35270 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
35271
35272         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
35273         Problem reported by Eric Blake.
35274         (getaddrinfo): Initialize se so that it's not garbage.
35275         Redo internal storage allocation so that it doesn't make unportable
35276         assumptions about alignment.
35277         Fix a memory leak.
35278
35279         * lib/utimens.c (futimens): Use futimesat if available.
35280         Prefer it to futimes since it doesn't have the futimes bug.
35281
35282         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
35283         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
35284         Instead, declare a function that returns a pointer to an array,
35285         and use verify_type__ to declare the size of the array.
35286         Problem and germ of a solution reported by Bruno Haible.
35287         (verify_type__): Use 2, not 1, for bitfield size, to avoid
35288         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
35289
35290 2005-09-23  Jim Meyering  <jim@meyering.net>
35291
35292         Sync from coreutils.
35293         Correct build failure (socklen_t not defined) on at least
35294         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
35295         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
35296
35297 2005-09-23  Jim Meyering  <jim@meyering.net>
35298
35299         * modules/getaddrinfo (Depends-on): Add socklen.
35300
35301 2005-09-23  Bruno Haible  <bruno@clisp.org>
35302
35303         * tests/test-verify.c: New file.
35304
35305 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35306
35307         Sync from coreutils.
35308
35309         * modules/argmatch (Depends-on): Add verify.
35310         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
35311         unistd-safer.
35312         * modules/save-cwd (Depends-on): Likewise.
35313
35314         * modules/openat (Files): Add lib/openat-die.c.
35315         (Depends-on): Remove error, exitfail.
35316         Add dirname.
35317
35318         * modules/verify: New file.
35319         * MODULES.html.sh (Diagnostics <assert.h>): New section,
35320         with "verify" module.
35321
35322 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35323
35324         Sync from coreutils.
35325
35326         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
35327         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
35328         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
35329         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
35330         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
35331         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
35332         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
35333         Don't bother checking for string.h, stdlib.h, unistd.h.
35334         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
35335         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
35336         module's job.
35337         * m4/jm-macros.m4 (gl_MACROS): Likewise.
35338         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
35339
35340         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
35341         (gl_GETDATE): Use it.
35342
35343         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
35344
35345 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35346
35347         Sync from coreutils.
35348
35349         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
35350         stat-time.h.
35351         * lib/argmatch.h: Include verify.h
35352         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
35353         (ARGMATCH_ASSERT): Remove; unused.
35354         * lib/canonicalize.c: Assume STDC_HEADERS.
35355         * lib/exclude.c: Include "strcase.h".
35356         * lib/regex_internal.h [!defined _LIBC]: Likewise.
35357         * lib/getusershell.c: Include stdio--.h rather than stdio.h
35358         and stdio-safer.h.
35359         (getusershell): Call fopen, not fopen_safer.
35360         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
35361         Do not include unistd-safer.h.
35362         (save_cwd): Don't call fd_safer; no longer needed
35363         now that we include fcntl--.h.
35364
35365         * lib/getdate.y (relative_time): New type.
35366         (RELATIVE_TIME_0): New constant.
35367         (parser_control): Use relative_time instead of doing it ourselves.
35368         (%union): Add new relative_time rel member.
35369         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
35370         Now typeless.
35371         (relunit, relunit_snumber): Now of type rel.
35372         (zone, rel, relunit, get_date): Adjust to above changes.
35373
35374         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
35375         Do not include unistd-safer.h.
35376         (getloadavg): Don't call fd_safer; no longer needed
35377         now that we include fcntl--.h.
35378
35379         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
35380         (make_dir_parents): Treat ENOSYS like EEXIST.
35381
35382         Improve quality of diagnostics on restore_cwd failure.
35383         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
35384         (make_dir_parents): Last arg is now int * (for errno), not bool *.
35385         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
35386         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
35387         each time through the loop.  Do not diagnose restore_cwd failure;
35388         that is the caller's job (and perhaps the caller does not care).
35389
35390         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
35391         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
35392         If the file already exists but is not a directory, don't bother
35393         to try to make its parents.
35394         Close potential file descriptor leak if we can't chdir("/") (!).
35395         Don't always return true if chdir($PWD) fails; return true only
35396         if the requested action was done successfully (except for the
35397         chdir($PWD)).
35398         Don't log final directory unless we actually made it.
35399         Refactor to avoid duplicate code to fix up permissions.
35400         Don't attempt to fix up parent permissions if chdir($PWD) fails.
35401
35402         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
35403         to make it a bit faster and (I hope) clearer.
35404         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
35405         Fix bug in formats like %2N.
35406
35407         * lib/verify.h: New file.
35408
35409 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35410
35411         Sync from coreutils.
35412         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
35413
35414 2005-09-22  Jim Meyering  <jim@meyering.net>
35415
35416         Sync from coreutils.
35417
35418         * m4/lstat.m4 (gl_FUNC_LSTAT):
35419         Use AC_LIBSOURCES to require lstat.c and lstat.h.
35420         Remove obsolete comment.
35421         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
35422         * m4/xstrtod.m4: Likewise.
35423
35424         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
35425
35426 2005-09-22  Jim Meyering  <jim@meyering.net>
35427
35428         Sync from coreutils.
35429
35430         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
35431
35432         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
35433         the .tm_year member, since otherwise gcc-4.0 would now warn about
35434         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
35435
35436         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
35437         order to avoid an unsuppressible warning from gcc on 64-bit systems.
35438
35439         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
35440         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
35441         when run in a time zone for which daylight savings time is in effect
35442         for the starting date.
35443
35444         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
35445         stop us from restricting permissions of just-created absolute-named
35446         directories.
35447         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
35448         to restore initial working directory.
35449         * lib/mkdir-p.c (make_dir_parents): New parameter:
35450         different_working_dir, to tell caller if/when we change the working
35451         directory and are unable to return to the initial one.
35452         * lib/mkdir-p.h (make_dir_parents): Update prototype.
35453         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
35454         `return false'.  This fixes a bug introduced on 2004-07-30.
35455
35456         * lib/openat.c (fdopendir): Be sure to close the supplied
35457         file descriptor before returning.  This makes our replacement
35458         implementation a little closer to Solaris's, where fdopendir
35459         ties the file descriptor to the returned DIR* pointer.
35460         * lib/openat.c (unlinkat): New function.
35461         * lib/openat.h (unlinkat): Add prototype.
35462         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
35463         (openat_restore_fail): Rename from openat_restore_die.
35464         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
35465
35466         Provide an alternative to exiting immediately upon save_cwd or
35467         restore_cwd failure.  Now, an application can arrange e.g.,
35468         to perform a longjump in that case.
35469         * lib/openat.c: Include dirname.h.
35470         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
35471         (rpl_openat, fdopendir, fstatat): Call openat_save_die
35472         and openat_restore_die rather than calling error directly.
35473         Don't include "error.h" or "exitfail.h"; they're no longer needed.
35474
35475         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
35476         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
35477         define.
35478
35479         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
35480         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
35481                             int utc, int nanoseconds);
35482         Background:
35483         date should not have to allocate a megabyte of virtual memory to
35484         handle a format argument like +%1048575T.  When implemented with
35485         strftime, it must allocate such a buffer, use strftime to fill it
35486         in, print it, then free it.
35487         With fprintftime, it simply prints everything and exits.
35488         With no need for memory allocation, that's one fewer way to fail.
35489         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
35490         optional field width, not before, so we accept %9:z, not %:9z.
35491         (my_strftime): Be sure to use L_('x') for literals.
35492
35493         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
35494         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
35495         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
35496         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
35497         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
35498         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
35499         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
35500         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
35501         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
35502         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
35503         * lib/xgethostname.c, lib/xreadlink.c:
35504         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
35505
35506         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
35507         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
35508         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
35509         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
35510         and don't include <sys/file.h>).
35511
35512 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
35513
35514         Sync from coreutils.
35515
35516         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
35517         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
35518         [!LDAV_DONE]: Avoid unused variable warning.
35519
35520 2005-09-21  Bruno Haible  <bruno@clisp.org>
35521
35522         * lib/unicodeio.h (unicode_to_mb): New declaration.
35523
35524 2005-09-20  Derek Price  <derek@ximbiot.com>
35525
35526         * lib/getaddrinfo.c: Don't include <netdb.h> included from
35527         getaddrinfo.h.
35528
35529 2005-09-20  Bruno Haible  <bruno@clisp.org>
35530
35531         * gnulib-tool: Remove trailing slashes from the values specified for
35532         --source-base, --m4-base, --tests-base, --aux-dir.
35533         Suggested by Simon Josefsson <jas@extundo.com>.
35534
35535 2005-09-20  Bruno Haible  <bruno@clisp.org>
35536
35537         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
35538         func_modules_to_filelist, func_import, func_create_testdir): Make all
35539         sorting results locale-independent, so that gnulib-cache.m4 doesn't
35540         change when gnulib-tool is invoked in a different locale.
35541
35542 2005-09-19  Simon Josefsson  <jas@extundo.com>
35543
35544         * m4/socklen.m4: Fix typo.
35545
35546 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35547
35548         Use a consistent style for including <config.h>.
35549         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
35550         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
35551         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
35552         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
35553         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
35554         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
35555         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
35556         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
35557         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
35558         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
35559         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
35560         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
35561         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
35562         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
35563         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
35564         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
35565         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
35566         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
35567         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
35568         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
35569         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
35570         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
35571         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
35572         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
35573         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
35574         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
35575         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
35576         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
35577         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
35578         lib/xstrtoumax.c, lib/yesno.c:
35579         Standardize inclusion of config.h.
35580         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
35581         lib/inttostr.h:  Removed inclusion of config.h from header files.
35582         * lib/inttostr.c:  Adjusted in-tree users.
35583         * lib/timespec.h: Remove superfluous warning to include config.h.
35584         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
35585         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
35586         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
35587         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
35588         config.h with HAVE_CONFIG_H.
35589
35590 2005-09-19  Jim Meyering  <jim@meyering.net>
35591
35592         * modules/pathmax (License): Change to LGPL.
35593
35594 2005-09-19  Derek Price  <derek@ximbiot.com>
35595
35596         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
35597
35598 2005-09-19  Bruno Haible  <bruno@clisp.org>
35599
35600         * gnulib-tool (import): Provide default for --tests-base.
35601
35602 2005-09-19  Bruno Haible  <bruno@clisp.org>
35603
35604         * doc/quote.texi: New file, extracted from gnulib.texi.
35605         * doc/ctime.texi: New file, extracted from gnulib.texi.
35606         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
35607         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
35608         * doc/gnulib.texi: Include them.
35609
35610 2005-09-18  Bruno Haible  <bruno@clisp.org>
35611
35612         Portability fix.
35613         * gnulib-tool (func_readlink): New function.
35614         (func_ln_if_changed): Use it.
35615
35616 2005-09-18  Bruno Haible  <bruno@clisp.org>
35617
35618         * gnulib-tool: Support --with-tests also with --import.
35619         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
35620         (func_import): Use variables $testsbase and $inctests. Emit a
35621         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
35622         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
35623         SUBDIRS += $testsdir.
35624         (func_create_testdir): Update.
35625
35626 2005-09-18  Bruno Haible  <bruno@clisp.org>
35627
35628         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
35629         instead of $dry_run.
35630         (func_cp_if_changed, func_mv_if_changed): Remove functions.
35631         (func_ln_if_changed): Don't handle dry-run here.
35632         (func_import): In dry-run mode, detect more precisely which actions
35633         would be performed, and don't use "...ing" verbs.
35634
35635 2005-09-18  Bruno Haible  <bruno@clisp.org>
35636
35637         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
35638         (func_import): Use join on two temporary files instead of three nested
35639         loops, in order to determine which files are new or old.
35640
35641 2005-09-18  Bruno Haible  <bruno@clisp.org>
35642
35643         * gnulib-tool (func_import): Comment out code that spits out the
35644         new files with --dry-run.
35645
35646 2005-09-18  Bruno Haible  <bruno@clisp.org>
35647
35648         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
35649
35650 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
35651
35652         * lib/stat-time.h: New file.
35653         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
35654         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
35655         in a different way.
35656         (timespec_cmp): New function.
35657         * lib/utimecmp.c: Include stat-time.h.
35658         (SYSCALL_RESOLUTION): Depend on whether various struct stat
35659         members exist, not on the obsolescent ST_MTIM_NSEC.
35660         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
35661
35662 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
35663
35664         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
35665
35666 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
35667
35668         * MODULES.html.sh (File system functions): Add stat-time.
35669         * modules/stat-time: New file.
35670         * modules/timespec (Files): Remove m4/st_mtim.m4; this
35671         is now done in a different way, by the stat-time module.
35672         * modules/utimecmp (Depends-on): Add stat-time.
35673
35674 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
35675
35676         * m4/st_mtim.m4: Remove.  Superseded by...
35677         * m4/stat-time.m4: New file.
35678         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
35679         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
35680
35681 2005-09-15  Derek Price  <derek@ximbiot.com>
35682
35683         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
35684
35685 2005-09-15  Derek Price  <derek@ximbiot.com>
35686
35687         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
35688         * lib/regex_internal.c: Ditto, using this...
35689         (__GNUC_PREREQ): ...new macro.
35690         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
35691         using...
35692         (__GNUC_PREREQ): ...this new macro.
35693
35694         * lib/strstr.h: Include string.h. Define strstr as a macro here.
35695
35696 2005-09-15  Derek Price  <derek@ximbiot.com>
35697             Paul Eggert  <eggert@cs.ucla.edu>
35698
35699         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
35700         changes, consolidating in...
35701         * lib/regex_internal.h: ...this file.
35702
35703 2005-09-13  Jim Meyering  <jim@meyering.net>
35704
35705         * lib/canon-host.c: Filter through gnu indent and reword comments
35706         slightly.
35707         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
35708
35709 2005-09-13  Derek Price  <derek@ximbiot.com>
35710
35711         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
35712         failure.
35713         Reported by Jim Meyering  <jim@meyering.net>.
35714
35715 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
35716
35717         * lib/base64.c: Typo.
35718         (base64_encode): Put b64str in initialized data section.
35719
35720 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
35721
35722         Merge glibc and coreutils changes into gnulib, plus a few
35723         extra fixes.
35724         * lib/md5.c: Use #error rather than a string.
35725         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
35726         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
35727         (__attribute__): Define to empty for non recent-GCC.
35728         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
35729         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
35730         Renamed from their non-__ counterparts, with new macros replacing
35731         them if not _LIBC.  Add __THROW attribute.
35732         (rol): Remove.
35733         (struct md5_ctx): Align buffer if using GCC.
35734         * lib/sha1.h (struct sha1_ctx): Likewise.
35735         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
35736         The old name was backwards.
35737         (NOTSWAP): Remove; not used.
35738         (rol): New macro, moved here from md5.h.
35739         (sha1_process_block): Remove a FIXME that doesn't make sense.
35740
35741 2005-09-12  Derek Price  <derek@ximbiot.com>
35742
35743         Return usable errors from canon-host.
35744         * lib/canon-host.h: New file.
35745         * lib/canon-host.c (canon_host): Wrap...
35746         (canon_host_r): ...this new function, which now relies exclusively on
35747         getaddrinfo.
35748         (ch_strerror): New function.
35749         (last_cherror): New global.
35750         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
35751         interface.
35752         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
35753         void *.
35754         (freeaddrinfo): Free ai->ai_canonname when set.
35755
35756 2005-09-12  Derek Price  <derek@ximbiot.com>
35757
35758         Make canon-host require getaddrinfo.
35759         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
35760         AC_LIBSOURCE canon-host.h.  Call...
35761         (gl_PREREQ_CANON_HOST): ...this new function, which requires
35762         gl_GETADDRINFO.
35763         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
35764
35765 2005-09-12  Derek Price  <derek@ximbiot.com>
35766
35767         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
35768         LGPL.
35769         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
35770
35771 2005-09-12  Derek Price  <derek@ximbiot.com>
35772
35773         * lib/gai_strerror.c: Include config.h when available.  Include
35774         getaddrinfo.h before other headers to test interface.
35775         Reported by Larry Jones <lawrence.jones@ugs.com>.
35776
35777 2005-09-12  Derek Price  <derek@ximbiot.com>
35778             Paul Eggert  <eggert@cs.ucla.edu>
35779
35780         * modules/glob (Files): Add glob-libc.h.
35781
35782 2005-09-12  Derek Price  <derek@ximbiot.com>
35783             Paul Eggert  <eggert@cs.ucla.edu>
35784
35785         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
35786         glob_.h, glob-libc.h.
35787         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
35788
35789 2005-09-12  Derek Price  <derek@ximbiot.com>
35790             Paul Eggert  <eggert@cs.ucla.edu>
35791
35792         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
35793         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
35794         protecting things that should be done only in gnulib contexts.
35795         * lib/glob_.h: New file, containing only the glob things needed for
35796         gnulib.
35797         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
35798         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
35799         (glob, globfree, glob_pattern_p): Now defined simply in terms of
35800         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
35801         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
35802         and to respect the namespace rules better.
35803
35804 2005-09-08  Simon Josefsson  <jas@extundo.com>
35805
35806         * modules/socklen: New file.
35807
35808 2005-09-08  Simon Josefsson  <jas@extundo.com>
35809
35810         * m4/socklen.m4: New file.
35811
35812 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
35813
35814         * modules/utimens (Files): Add m4/utimbuf.m4, since
35815         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
35816         Reported by Sergey Poznyakoff.
35817
35818 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
35819
35820         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
35821         definitions, since that's the preferred style in glibc.
35822         Fix a minor spacing issue, and update copyright notice to match
35823         glibc's.
35824
35825 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
35826
35827         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
35828
35829 2005-09-06  Simon Josefsson  <jas@extundo.com>
35830
35831         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
35832         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
35833
35834 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
35835
35836         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
35837         warning.
35838
35839 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
35840
35841         * config/srclist.txt: Add glibc bug 1302.
35842
35843 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
35844
35845         Change bitset word type from unsigned int to unsigned long int,
35846         as this has better performance on typical 64-bit hosts.
35847         Port bitset code to hosts with unusual word sizes.
35848         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
35849         (build_collating_symbol):
35850         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
35851         argument is a bitset.  This is merely a style issue, but it makes
35852         it clearer that an entire array is expected.
35853         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
35854         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
35855         Port to the case where bitset_word is not the same as unsigned int.
35856         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
35857         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
35858         Likewise.
35859         * lib/regexec.c (check_dst_limits_calc_pos_1,
35860         check_subexp_matching_top):
35861         (build_trtable, group_nodes_into_DFAstates):
35862         Likewise.
35863         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
35864         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
35865         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
35866         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
35867         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
35868         * lib/regcomp.c (optimize_subexps, lower_subexp):
35869         Work even if bitset_word has holes in its bitwise representation.
35870         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
35871         * lib/regexec.c (check_dst_limits_calc_pos_1,
35872         check_subexp_matching_top):
35873         Likewise.
35874         * lib/regex_internal.c (re_string_reconstruct):
35875         Don't assume UCHAR_MAX == 255.
35876         * lib/regex_internal.h (bitset_set_all): Likewise.
35877         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
35878         All uses changed.
35879         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
35880         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
35881         All uses changed.
35882         (BITSET_WORD_MAX): New macro.
35883         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
35884         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
35885         (bitset_empty, bitset_copy):
35886         Prefer sizeof (bitset) to multiplying it out ourselves.
35887         (bitset_not_merge): Remove; unused.
35888         (bitset_contain): Return bool, not unsigned int with one bit on.
35889         All callers changed.
35890         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
35891         alignment than re_node_set; do this by defining a new internal
35892         type struct dests_alloc and using it to allocate memory.
35893
35894 2005-09-05  Bruno Haible  <bruno@clisp.org>
35895
35896         * gnulib-tool (func_import): Fix comparison in handling of symbolic
35897         links.
35898
35899 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
35900
35901         * modules/size_max (Makefile.am): Add size_max.h
35902
35903 2005-09-04  Derek Price  <derek@ximbiot.com>
35904
35905         * gnulib-tool (func_import): Fix reversed $symbolic logic.
35906
35907 2005-09-03  Simon Josefsson  <jas@extundo.com>
35908
35909         * gnulib-tool: Fix typo.
35910
35911 2005-09-03  Simon Josefsson  <jas@extundo.com>
35912
35913         * config/srclist.txt: Add glibc bug 1293.
35914
35915 2005-09-03  Derek Price  <derek@ximbiot.com>
35916
35917         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
35918         From Larry Jones <lawrence.jones@ugs.com>.
35919
35920 2005-09-02  Simon Josefsson  <jas@extundo.com>
35921
35922         * modules/socklen: New file.
35923
35924 2005-09-02  Simon Josefsson  <jas@extundo.com>
35925
35926         * modules/havelib: New module.
35927
35928         * modules/gettext, modules/iconv, modules/lock, modules/readline:
35929         Use havelib.
35930
35931 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
35932
35933         Check for arithmetic overflow when calculating sizes, to prevent
35934         some buffer-overflow issues.  These patches are conservative, in the
35935         sense that when I couldn't determine whether an overflow was possible,
35936         I inserted a run-time check.
35937         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
35938         macros.
35939         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
35940         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
35941         (re_xnrealloc, re_x2nrealloc): New inline functions.
35942         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
35943         parse_bracket_exp):
35944         (build_equiv_class, build_charclass): Check for arithmetic overflow
35945         in size expression calculations.
35946         * lib/regex_internal.c (re_string_realloc_buffers):
35947         (build_wcs_upper_buffer, re_node_set_add_intersect):
35948         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
35949         (re_dfa_add_node, register_state): Likewise.
35950         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
35951         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
35952         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
35953         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
35954
35955 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
35956
35957         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
35958         m4/ulonglong.m4.  Problem reported by Martin Lambers.
35959
35960 2005-09-02  Bruno Haible  <bruno@clisp.org>
35961
35962         Support for lib vs. lib64 distinction on biarch platforms.
35963         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
35964         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
35965         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
35966
35967 2005-09-02  Bruno Haible  <bruno@clisp.org>
35968
35969         * gnulib-tool (import): In the other first-use case, provide defaults
35970         as well.
35971
35972 2005-09-02  Bruno Haible  <bruno@clisp.org>
35973
35974         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
35975         patches not yet found in the latest gettext release.
35976
35977 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
35978
35979         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
35980         to avoid a collision with bits/local_lim.h in glibc.
35981         All uses changed.  Problem reported by Dmitry V. Levin in
35982         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
35983
35984         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
35985         bugs in int versus size_t comparisons.
35986         (re_string_context_at): Fix bug where the code assumed that
35987         Idx is signed.
35988
35989         Use bool where appropriate.
35990         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
35991         All callers changed.
35992         (calc_eclosure_iter): Likewise, for ROOT arg.
35993         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
35994         (build_charclass_op): Likewise, for NON_MATCH arg.
35995         * lib/regex_internal.c (re_string_allocate, re_string_construct):
35996         (re_string_construct_common): Likewise, for ICASE arg.
35997         * lib/regexec.c (re_search_2_stub, re_search_stub):
35998         Likewise, for RET_LEN arg.
35999         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
36000         (set_regs): Likewise, for FL_BACKTRACK arg.
36001         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
36002         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
36003         (calc_eclosure_iter, parse_bracket_exp):
36004         Use bool for internal variables that are booleans.
36005         * lib/regexec.c (re_search_internal, check_matching,
36006         proceed_next_node):
36007         (set_regs, build_sifted_states, sift_states_bkref):
36008         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
36009         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
36010         (find_collation_sequence_value):
36011         Likewise.
36012         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
36013         (re_node_set_compare):
36014         Return bool, not int. All callers changed.
36015         * lib/regexec.c (check_halt_node_context, check_dst_limits):
36016         (build_trtable, check_node_accept): Likewise.
36017         * lib/regex_internal.h: Include stdbool.h.
36018
36019         Fix bugs uncovered when converting to bool.
36020         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
36021         failure instead of charging ahead blindly.
36022         * lib/regex_internal.c (register_state): Likewise.
36023         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
36024         for freeing internal storage.
36025         (group_nodes_into_DFA_states): Use unsigned int, not int, for
36026         bitset pieces used as boolean, to avoid undefined behavior
36027         on hosts that do int overflow checking.
36028
36029 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
36030
36031         * config/srclist.txt: Add glibc bugs 1285-1287.
36032
36033 2005-09-01  Jim Meyering  <jim@meyering.net>
36034
36035         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
36036         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
36037         Require gl_STAT_MACROS, too.
36038
36039 2005-09-01  Bruno Haible  <bruno@clisp.org>
36040
36041         * gnulib-tool (import): In the first-use case, provide defaults.
36042
36043 2005-09-01  Bruno Haible  <bruno@clisp.org>
36044
36045         * gnulib-tool (func_import): Remove the .tmp files.
36046
36047 2005-09-01  Bruno Haible  <bruno@clisp.org>
36048
36049         * gnulib-tool (func_import): Fix handling of symbolic links.
36050
36051 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
36052
36053         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
36054         old glibc regex code mishandles strings longer than 2**31 bytes.
36055         This patch fixes this when the regex code is used in gnulib
36056         (i.e., outside glibc).
36057
36058         This patch should not affect the use of the regex code inside
36059         glibc.  No doubt this problem also needs to be handled for glibc
36060         as well, but the result will be an incompatible change to the
36061         glibc ABI, and the old ABI will have to be supported too.  That
36062         can be the the subject for another patch.
36063
36064         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
36065         governing whether the rest of this patch is active.  By default,
36066         the macro is disabled and the patch has no effect.
36067         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
36068         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
36069         (struct re_pattern_buffer, re_search, re_search_2, re_match):
36070         (re_match_2, re_set_registers): Use the new types.
36071         * lib/regex_internal.h (Idx, re_hashval_t): New types.
36072         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
36073         New macros.
36074         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
36075         (re_string_context_at, bin_tree_t, re_dfastate_t):
36076         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
36077         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
36078         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
36079         (re_string_char_size_at, re_string_wchar_at):
36080         (re_string_elem_size_at):
36081         Use the new types and macros to port to 64-bit hosts.
36082         Use unsigned types for internal values, so that the code
36083         mostly works even for arrays larger than SSIZE_MAX.
36084         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
36085         (search_duplicated_node, calc_eclosure_iter, fetch_number):
36086         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
36087         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
36088         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
36089         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
36090         (calc_inveclosure, parse_dup_op, build_range_exp):
36091         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
36092         (fetch_number, create_token_tree, mark_opt_subexp):
36093         Likewise.
36094         * lib/regex_internal.c (re_string_construct_common,
36095         create_ci_newstate):
36096         (create_cd_newstate, re_string_allocate, re_string_construct):
36097         (re_string_realloc_buffers, build_wcs_upper_buffer):
36098         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
36099         (re_string_reconstruct, re_string_peek_byte_case):
36100         (re_string_fetch_byte_case, re_string_context_at):
36101         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
36102         (re_node_set_init_copy, re_node_set_add_intersect):
36103         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
36104         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
36105         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
36106         (re_acquire_state, re_acquire_state_context, register_state):
36107         Likewise.
36108         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
36109         search_cur_bkref_entry):
36110         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
36111         (re_search_internal, re_search_2_stub, re_search_stub)
36112         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
36113         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
36114         (update_cur_sifted_state, check_dst_limits):
36115         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
36116         (check_subexp_limits, sift_states_bkref, merge_state_array):
36117         (check_subexp_matching_top, get_subexp, get_subexp_sub):
36118         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
36119         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
36120         (expand_bkref_cache, check_node_accept_bytes):
36121         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
36122         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
36123         (acquire_init_state_context, check_halt_node_context):
36124         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
36125         (sift_states_backward, clean_state_log_if_needed):
36126         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
36127         (find_recover_state, transit_state_sb, transit_state_mb):
36128         (transit_state_bkref, build_trtable, match_ctx_clean):
36129         Likewise.
36130         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
36131         to work around an assumption that REG_MISSING is negative.
36132
36133         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
36134         (seek_collating_symbol_entry) [defined _LIBC]:
36135         (lookup_collation_sequence_value) [defined _LIBC]:
36136         (build_range_exp, build_collating_symbol) [defined _LIBC]:
36137         Use prototypes rather than old-style function definitions.
36138         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
36139         (transit_state_sb) [0]:
36140         (find_collation_sequence_value) [defined _LIBC]: Likewise.
36141
36142         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
36143         rm_eo.
36144
36145         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
36146         (optimize_subexps, lower_subexp):
36147         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
36148         since the signed shift might overflow.  Use 1u<<31 instead.
36149         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
36150         Likewise.
36151         * lib/regexec.c (check_dst_limits_calc_pos_1,
36152         check_subexp_matching_top): Likewise.
36153
36154         * lib/regcomp.c (optimize_subexps, lower_subexp):
36155         Use CHAR_BIT rather than 8, for clarity.
36156         * lib/regexec.c (check_dst_limits_calc_pos_1):
36157         (check_subexp_matching_top): Likewise.
36158         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
36159         have to worry about portability issues when shifting it left.
36160         Remove no-longer-needed test for table_size > 0.
36161         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
36162         in a word, as the resulting behavior is undefined.
36163         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
36164         in one case, a <= should have been an <, and in another case the
36165         whole test was missing.
36166         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
36167         the standard name CHAR_BIT.
36168         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
36169         this is not true on one's complement and signed-magnitude hosts.
36170
36171         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
36172         next_last_offset.
36173         (struct re_dfa_t): Remove unused member states_alloc.
36174         * lib/regcomp.c (init_dfa): Don't initialize unused members.
36175
36176 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
36177
36178         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
36179         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
36180         and large-file glibc and in 32-bit large-file Solaris.
36181
36182 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
36183
36184         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
36185         lengths fit in regoff_t; this isn't true if regoff_t is the same
36186         width as size_t.
36187         * lib/regex.c (re_search_internal): 5th arg is LAST_START
36188         (= START + RANGE) instead of RANGE.  This avoids overflow
36189         problems when regoff_t is the same width as size_t.
36190         All callers changed.
36191         (re_search_2_stub): Check for overflow when adding the
36192         sizes of the two strings.
36193         (re_search_stub): Check for overflow when adding START
36194         to RANGE; if it occurs, substitute the extreme value.
36195
36196 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
36197
36198         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
36199
36200 2005-08-31  Jim Meyering  <jim@meyering.net>
36201
36202         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
36203         a pointer-to-const.
36204         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
36205         (register_state): Likewise.
36206         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
36207         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
36208         (group_nodes_into_DFAstates): Likewise.
36209
36210 2005-08-31  Jim Meyering  <jim@meyering.net>
36211
36212         * check-module: Add a FIXME comment.
36213
36214 2005-08-31  Eric Blake  <ebb9@byu.net>
36215
36216         * modules/unistd-safer (Files): Add unistd--.h.
36217         * modules/stdio-safer (Files): Add stdio--.h.
36218
36219 2005-08-31  Derek Price  <derek@ximbiot.com>
36220
36221         * lib/getdelim.c (getdelim): Return EOF on EOF.
36222         Reported by Larry Jones <lawrence.jones@ugs.com>.
36223
36224 2005-08-31  Bruno Haible  <bruno@clisp.org>
36225
36226         Avoid unnecessary diffs in the generated lib/Makefile.am.
36227         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
36228         the generated files.
36229         (func_import): Don't set cmd.
36230
36231 2005-08-31  Bruno Haible  <bruno@clisp.org>
36232
36233         * lib/strstr.c: Include <stddef.h>, for NULL.
36234         * lib/strcasestr.c: Likewise.
36235         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36236
36237 2005-08-31  Bruno Haible  <bruno@clisp.org>
36238
36239         * gnulib-tool: New option --macro-prefix.
36240         (func_import): Use macro_prefix.
36241         (import): Handle option --macro-prefix.
36242
36243 2005-08-31  Bruno Haible  <bruno@clisp.org>
36244
36245         * gnulib-tool (import): Rename most ac_* variables to cached_*.
36246         Also use new variables cached_lgpl, cached_libtool.
36247
36248 2005-08-31  Bruno Haible  <bruno@clisp.org>
36249
36250         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
36251         always instantiating them.
36252
36253 2005-08-31  Bruno Haible  <bruno@clisp.org>
36254
36255         * gnulib-tool (func_import): Read the previous cached settings
36256         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
36257         earlier added by gnulib but are now dropped. Warn when a gnulib file
36258         overwrites a non-gnulib file.
36259
36260 2005-08-31  Bruno Haible  <bruno@clisp.org>
36261
36262         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
36263         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
36264         projects that don't keep autogenerated files in CVS. Put into
36265         actioncmd only the specified modules, not the transitive closure.
36266
36267 2005-08-31  Bruno Haible  <bruno@clisp.org>
36268
36269         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
36270         Create directories that shall be filled.
36271         (import): Don't look for gl_* macros in configure.ac. Recurse across
36272         all directories containing a gnulib-cache.m4 files, if meaningful.
36273
36274 2005-08-31  Bruno Haible  <bruno@clisp.org>
36275
36276         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
36277         (import): Set seen_libtool when we see gl_LIBTOOL.
36278
36279 2005-08-31  Bruno Haible  <bruno@clisp.org>
36280
36281         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
36282         declaration macro definitions from generated gnulib.m4.
36283
36284 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
36285
36286         * lib/iconvme.h: Add prototype for iconv_alloc.
36287
36288 2005-08-29  Simon Josefsson  <jas@extundo.com>
36289
36290         * lib/iconvme.c: Fix errno.
36291
36292 2005-08-29  Bruno Haible  <bruno@clisp.org>
36293
36294         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
36295         that it works when the directory contains spaces.
36296
36297 2005-08-29  Bruno Haible  <bruno@clisp.org>
36298
36299         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
36300
36301 2005-08-29  Bruno Haible  <bruno@clisp.org>
36302
36303         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
36304         Emit more advice.
36305
36306 2005-08-29  Bruno Haible  <bruno@clisp.org>
36307         and Stepan Kasal  <kasal@ucw.cz>
36308
36309         * check-module: If more parameters are given, check each of them
36310         separately; add more exceptions, as noted by Jim Meyering.
36311         (check_module): New procedure.
36312         (%exempt_header): Now contains all exceptions.
36313
36314 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
36315
36316         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
36317
36318 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
36319
36320         * lib/iconvme.c: Split iconv_string into iconv_alloc.
36321
36322 2005-08-28  Bruno Haible  <bruno@clisp.org>
36323
36324         * m4/gnulib-tool.m4: New file.
36325
36326 2005-08-27  Jim Meyering  <jim@meyering.net>
36327
36328         * modules/unistd-safer (Files): Add pipe-safer.c.
36329         * modules/fcntl-safer (Files): Add creat-safer.c.
36330
36331 2005-08-27  Jim Meyering  <jim@meyering.net>
36332
36333         * m4/stdlib-safer.m4: New file.  From coreutils.
36334         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
36335         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
36336         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
36337         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
36338         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
36339
36340 2005-08-27  Jim Meyering  <jim@meyering.net>
36341
36342         * lib/fopen-safer.c: Merge minor changes from coreutils.
36343         * lib/dup-safer.c: Likewise.
36344         * lib/fd-safer.c: Likewise.
36345
36346         Merge from coreutils.
36347         * lib/stdio--.h: New file.
36348         * lib/stdlib--.h: New file.
36349         * lib/mkstemp-safer.c: New file.
36350
36351         GNU tar needs these.
36352         * lib/pipe-safer.c: New file.
36353         * lib/creat-safer.c: New file.
36354         * lib/fcntl--.h (creat): Define to creat_safer.
36355         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
36356         * lib/unistd--.h (pipe): Define to pipe_safer.
36357         * lib/unistd-safer.h: Declare pipe_safer.
36358
36359 2005-08-26  Simon Josefsson  <jas@extundo.com>
36360
36361         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
36362         Haible <bruno@clisp.org>.
36363
36364 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
36365
36366         * lib/regex_internal.h: Remove all references to
36367         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
36368         or better.
36369         (bitset_not, bitset_merge, bitset_not_merge):
36370         (bitset_mask, re_string_allocate, re_string_construct):
36371         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
36372         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
36373         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
36374         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
36375         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
36376         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
36377         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
36378         (re_acquire_state_context):
36379         Remove unnecessary forward decls.
36380         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
36381         Put __attribute at function definition,
36382         now that the function decl has been removed.
36383         * lib/regex_internal.c (re_string_peek_byte_case):
36384         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
36385         Likewise.
36386
36387 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
36388
36389         * m4/regex.m4: Add AC_PREREQ(2.50).
36390         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
36391
36392 2005-08-25  Simon Josefsson  <jas@extundo.com>
36393
36394         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
36395         __fsetlocking.
36396
36397 2005-08-25  Simon Josefsson  <jas@extundo.com>
36398
36399         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
36400         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
36401         GLIBC specific code.
36402
36403 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36404
36405         Make regex safe for g++.  This fixes one real bug (an "err"
36406         that should have been "*err").  g++ problem reported by
36407         Sam Steingold.
36408         * lib/regex_internal.h (re_calloc): New macro, consistent with
36409         re_malloc etc.  All callers of calloc changed to use re_calloc.
36410         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
36411         not int.  All callers changed.
36412         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
36413         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
36414         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
36415         (find_recover_state): Change "err" to "*err"; this fixes what
36416         appears to be a real bug.
36417         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
36418         versus int.
36419
36420 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36421
36422         * modules/regex (Depends-on): Add malloc, since the code
36423         assumes that !malloc(0) means failure.
36424
36425 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36426
36427         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
36428
36429         alloca modernization/simplification for regex.
36430         * lib/regex.c: Remove portability cruft for alloca.  This no longer
36431         needs to be at the start of the file, and can be moved into
36432         regex_internal.h and simplified.
36433         * lib/regex_internal.h: Include <alloca.h>.
36434         (__libc_use_alloca) [!defined _LIBC]: New macro.
36435         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
36436         now works outside glibc.
36437
36438 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36439
36440         * config/srclist.txt: Add glibc bugs 1241, 1245.
36441
36442 2005-08-25  Jim Meyering  <jim@meyering.net>
36443
36444         * lib/open-safer.c: Include <config.h>.
36445         Otherwise, we'd lose LARGEFILE support in any file using
36446         e.g. "fcntl--.h"
36447
36448 2005-08-25  Bruno Haible  <bruno@clisp.org>
36449
36450         * m4/minmax.m4: Require autoconf 2.52.
36451         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
36452         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
36453         alternatives of translit over the alphabet.
36454         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
36455
36456 2005-08-24  Simon Josefsson  <jas@extundo.com>
36457
36458         * tests/test-getpass.c: New file.
36459
36460 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36461
36462         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
36463         for GNU regex features.
36464
36465 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36466
36467         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
36468         * lib/regex.h (regerror): Likewise.
36469
36470         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
36471         requires this.  (The code never needed it.)
36472
36473         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
36474         All uses of recently-renamed identifiers changed to use the new,
36475         POSIX-compliant names.  The code will build and run just fine
36476         without these changes, but it's better to eat our own dog food
36477         and use the standard-conforming names.
36478
36479         * lib/regex.h: Fix a multitude of POSIX name space violations.
36480         These changes have an effect only for programs that define
36481         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
36482         do not change anything for programs compiled in the normal way.
36483         Also, there is no effect on the ABI.
36484
36485         (_REGEX_SOURCE): New macro.
36486         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
36487         defined and _GNU_SOURCE is not; this fixes a name space violation.
36488
36489         Rename the following macros to obey POSIX requirements.
36490         The old names are still visible as macros if _REGEX_SOURCE is defined.
36491         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
36492         RE_BACKSLASH_ESCAPE_IN_LISTS.
36493         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
36494         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
36495         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
36496         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
36497         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
36498         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
36499         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
36500         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
36501         (REG_INTERVALS): renamed from RE_INTERVALS.
36502         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
36503         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
36504         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
36505         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
36506         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
36507         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
36508         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
36509         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
36510         RE_UNMATCHED_RIGHT_PAREN_ORD.
36511         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
36512         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
36513         (REG_DEBUG): renamed from RE_DEBUG.
36514         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
36515         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
36516         unusual, since we can't clash with the POSIX REG_ICASE.
36517         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
36518         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
36519         (REG_NO_SUB): renamed from RE_NO_SUB.
36520         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
36521         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
36522         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
36523         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
36524         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
36525         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
36526         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
36527         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
36528         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
36529         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
36530         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
36531         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
36532         RE_SYNTAX_POSIX_MINIMAL_BASIC.
36533         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
36534         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
36535         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
36536         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
36537         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
36538         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
36539         (REG_FIXED): Renamed from REGS_FIXED.
36540         (REG_NREGS): Renamed from RE_NREGS.
36541
36542         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
36543         of other REG_* macros, since POSIX says the user is allowed to
36544         #undef these macros selectively.
36545
36546         (reg_errcode_t): Update comment stating what other tables need
36547         to be consistent.
36548
36549         Rename the following enum values to obey POSIX requirements.
36550         The old names are still visible as macros.
36551         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
36552         is not defined, since GNU is supposed to be a superset of POSIX as
36553         much as possible, and since we want reg_errcode_t to be a signed
36554         type for implementation consistency.
36555         (_REG_NOERROR): Renamed from REG_NOERROR.
36556         (_REG_NOMATCH): Renamed from REG_NOMATCH.
36557         (_REG_BADPAT): Renamed from REG_BADPAT.
36558         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
36559         (_REG_ECTYPE): Renamed from REG_ECTYPE.
36560         (_REG_EESCAPE): Renamed from REG_EESCAPE.
36561         (_REG_ESUBREG): Renamed from REG_ESUBREG.
36562         (_REG_EBRACK): Renamed from REG_EBRACK.
36563         (_REG_EPAREN): Renamed from REG_EPAREN.
36564         (_REG_EBRACE): Renamed from REG_EBRACE.
36565         (_REG_BADBR): Renamed from REG_BADBR.
36566         (_REG_ERANGE): Renamed from REG_ERANGE.
36567         (_REG_ESPACE): Renamed from REG_ESPACE.
36568         (_REG_BADRPT): Renamed from REG_BADRPT.
36569         (_REG_EEND): Renamed from REG_EEND.
36570         (_REG_ESIZE): Renamed from REG_ESIZE.
36571         (_REG_ERPAREN): Renamed from REG_ERPAREN.
36572         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
36573         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
36574         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
36575         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
36576
36577         (_REG_RE_NAME, _REG_RM_NAME): New macros.
36578         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
36579         changed.  But support the old name if the new one is not defined
36580         and if _REGEX_SOURCE.
36581
36582         Change the following member names in struct re_pattern_buffer.
36583         The old names are still supported if !_REGEX_SOURCE.
36584         The new names are always supported, regardless of _REGEX_SOURCE.
36585         (re_buffer): Renamed from buffer.
36586         (re_allocated): Renamed from allocated.
36587         (re_used): Renamed from used.
36588         (re_syntax): Renamed from syntax.
36589         (re_fastmap): Renamed from fastmap.
36590         (re_translate): Renamed from translate.
36591         (re_can_be_null): Renamed from can_be_null.
36592         (re_regs_allocated): Renamed from regs_allocated.
36593         (re_fastmap_accurate): Renamed from fastmap_accurate.
36594         (re_no_sub): Renamed from no_sub.
36595         (re_not_bol): Renamed from not_bol.
36596         (re_not_eol): Renamed from not_eol.
36597         (re_newline_anchor): Renamed from newline_anchor.
36598
36599         Change the following member names in struct re_registers.
36600         The old names are still supported if !_REGEX_SOURCE.
36601         The new names are always supported, regardless of _REGEX_SOURCE.
36602         (rm_num_regs): Renamed from num_regs.
36603         (rm_start): Renamed from start.
36604         (rm_end): Renamed from end.
36605
36606         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
36607         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
36608         Prepend __ to parameter names.
36609
36610         Undo yesterday's changes.
36611
36612 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36613
36614         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
36615         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
36616         lib/regex.c.
36617
36618 2005-08-24  Jim Meyering  <jim@meyering.net>
36619
36620         Sync from coreutils.
36621         * m4/fcntl-safer.m4: New file.
36622
36623         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
36624         and object files for this module.
36625
36626 2005-08-24  Jim Meyering  <jim@meyering.net>
36627
36628         Sync from coreutils.
36629         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
36630
36631 2005-08-24  Jim Meyering  <jim@meyering.net>
36632
36633         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
36634         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
36635
36636 2005-08-24  Jim Meyering  <jim@meyering.net>
36637
36638         * modules/fcntl-safer: New module.
36639         * modules/fts (Depends-on): Add fcntl-safer.
36640         * MODULES.html.sh (File descriptor based Input/Output):
36641         Add fcntl-safer.
36642
36643 2005-08-24  Bruno Haible  <bruno@clisp.org>
36644
36645         Support for unit test modules.
36646         * modules/README: Mention tests modules.
36647         * modules/TEMPLATE-TESTS: New file.
36648         * gnulib-tool: New options --extract-tests-module, --with-tests and
36649         --tests-base (unused for the moment).
36650         (testsbase, inctests): New variables.
36651         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
36652         (func_verify_module): Exclude TEMPLATE-TESTS.
36653         (func_verify_nontests_module, func_verify_tests_module): New functions.
36654         (func_get_dependencies): Add implicit dependency for tests modules.
36655         (func_get_tests_module): New function.
36656         (func_modules_transitive_closure): When --with-tests was specified,
36657         include the unit tests as well, unless explicitly avoided.
36658         (func_emit_lib_Makefile_am): Ignore the tests modules here.
36659         (func_emit_tests_Makefile_am): New function.
36660         (func_create_testdir): When --with-tests was specified, emit a
36661         tests/ directory.
36662         * MODULES.html.sh (Future developments): Update.
36663
36664 2005-08-24  Bruno Haible  <bruno@clisp.org>
36665
36666         * modules/tls-tests: New file.
36667         * tests/test-tls.c: New file, from GNU gettext.
36668
36669 2005-08-24  Bruno Haible  <bruno@clisp.org>
36670
36671         * modules/lock-tests: New file.
36672         * tests/test-lock.c: New file, from GNU gettext.
36673
36674 2005-08-24  Bruno Haible  <bruno@clisp.org>
36675
36676         * lib/lock.h: Add multiple inclusion guard.
36677         * lib/tls.h: Add multiple inclusion guard.
36678
36679 2005-08-24  Bruno Haible  <bruno@clisp.org>
36680
36681         * gnulib-tool: Add support for the --aux-dir option to
36682         --create-testdir, --create-megatestdir, --test, --megatest.
36683         (func_create_testdir, func_create_megatestdir): Optionally emit a
36684         AC_CONFIG_AUX_DIR directive.
36685         (create-testdir, create-megatestdir, test, megatest): Provide a
36686         default value for $auxdir.
36687
36688 2005-08-24  Bruno Haible  <bruno@clisp.org>
36689
36690         * gnulib-tool (import): Use compound statement instead of subshell
36691         where possible.
36692
36693 2005-08-24  Bruno Haible  <bruno@clisp.org>
36694
36695         * gnulib-tool (import): Change --aux-dir default to "build-aux".
36696
36697 2005-08-24  Bruno Haible  <bruno@clisp.org>
36698
36699         * gnulib-tool (func_version): Update.
36700
36701 2005-08-24  Bruno Haible  <bruno@clisp.org>
36702
36703         * gnulib-tool (func_import, func_create_testdir,
36704         func_create_megatestdir): Quote all autoconf macro arguments.
36705
36706 2005-08-24  Bruno Haible  <bruno@clisp.org>
36707
36708         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
36709         option --force, because --force causes the aclocal.m4 of each
36710         subdirectory to be newer than the corresponding config.h.in.
36711
36712 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36713
36714         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
36715         All contents moved to gl_REGEX.
36716         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
36717         assume that it does.
36718
36719 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36720
36721         * lib/regex.h (REG_NOSYS)
36722         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
36723         Define, since POSIX requires it as of 2001.
36724         (_REG_ENOSYS)
36725         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
36726         New private symbol, used to keep the enum signed in all cases.
36727         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
36728         Youngman in
36729         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
36730
36731         * lib/regex_internal.c (re_string_skip_chars, register_state):
36732         (calc_state_hash):
36733         Remove forward decls; no longer needed now that we use prototypes.
36734         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
36735         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
36736         (clean_state_log_if_needed): Likewise.
36737
36738 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36739
36740         * config/srclist.txt: Add glibc bugs 1231-1233.
36741
36742 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
36743
36744         Fix problems reported by Sam Steingold in
36745         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
36746         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
36747         assumed that reg_errcode_t is a signed type, which is not
36748         necessarily true if _XOPEN_SOURCE is not defined.
36749         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
36750         since some compilers warn about it otherwise.
36751
36752 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
36753
36754         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
36755         (init_word_char, create_initial_state, duplicate_node_closure):
36756         (fetch_token, peek_token_bracket, build_range_exp):
36757         (build_collating_symbol): Remove forward decls; no longer needed
36758         now that we use prototypes.
36759
36760         * lib/regcomp.c:
36761         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
36762         (re_compile_fastmap_iter, regcomp, regerror, regfree):
36763         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
36764         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
36765         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
36766         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
36767         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
36768         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
36769         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
36770         (build_range_exp, build_collating_symbol, parse_bracket_exp):
36771         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
36772         (build_charclass, build_charclass_op, fetch_number, create_tree):
36773         (create_token_tree, mark_opt_subexp, duplicate_tree):
36774         Use prototypes rather than old-style definitions.
36775
36776         * lib/regex_internal.c:
36777         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
36778         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
36779         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
36780         (re_string_reconstruct, re_string_peek_byte_case):
36781         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
36782         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
36783         (re_node_set_init_copy, re_node_set_add_intersect):
36784         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
36785         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
36786         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
36787         (re_acquire_state, re_acquire_state_context, register_state):
36788         (create_ci_newstate, create_cd_newstate, free_state):
36789         Likewise.
36790         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
36791         re_search_2):
36792         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
36793         (re_search_internal, prune_impossible_nodes):
36794         (acquire_init_state_context, check_matching, static):
36795         (check_halt_node_context, check_halt_state_context, proceed_next_node):
36796         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
36797         (update_regs, sift_states_backward, build_sifted_states):
36798         (clean_state_log_if_needed, merge_state_array):
36799         (update_cur_sifted_state, add_epsilon_src_nodes):
36800         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
36801         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
36802         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
36803         (find_recover_state, check_subexp_matching_top, transit_state_mb):
36804         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
36805         (check_arrival, check_arrival_add_next_nodes):
36806         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
36807         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
36808         (check_node_accept_bytes, check_node_accept, extend_buffers):
36809         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
36810         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
36811         (sift_ctx_init):
36812         Likewise.
36813
36814         * lib/regex_internal.h:
36815         (re_string_allocate, re_string_construct, re_string_reconstruct):
36816         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
36817         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
36818         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
36819         (re_string_context_at, re_string_peek_byte_case):
36820         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
36821         is defined, since we now use prototypes always.
36822
36823         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
36824         C89 or better.  All uses removed.
36825
36826 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
36827
36828         * config/srclist.txt: Add glibc bugs 1220-1227.
36829
36830 2005-08-20  Jim Meyering  <jim@meyering.net>
36831
36832         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
36833         of unused local, dfa.
36834
36835 2005-08-20  Bruno Haible  <bruno@clisp.org>
36836
36837         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
36838
36839 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
36840
36841         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
36842         (re_node_set_insert_last, re_dfa_add_node):
36843         Rename local variables to avoid GCC shadowing warnings.
36844
36845 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
36846
36847         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
36848         [defined lint]: Suppress bogus uninitialized-variable warnings.
36849
36850         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
36851         and let the caller return REG_ESPACE if out of space.  This
36852         removes an uninitialied-variable warning with GCC 4.0.1, and also
36853         avoids taking the address of a local variable.  All callers
36854         changed.
36855
36856 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
36857
36858         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
36859         $LIBCSRC/posix/regexec.c.
36860         Add glibc bug 1217 for regcomp.c.
36861
36862 2005-08-19  Jim Meyering  <jim@meyering.net>
36863
36864         * lib/regexec.c (proceed_next_node): Redo local variables to
36865         avoid GCC shadowing warnings.
36866
36867 2005-08-18  Bruno Haible  <bruno@clisp.org>
36868
36869         * lib/strstr.c (strstr): Fix return value in multibyte case.
36870         * lib/strcasestr.c (strcasestr): Likewise.
36871
36872 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
36873
36874         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
36875
36876 2005-08-17  Jim Meyering  <jim@meyering.net>
36877
36878         Make the %s format (seconds since the epoch) work for a negative
36879         number and when used with a zero-padded field width, e.g. %015s.
36880
36881         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
36882         label so that it precedes the code to set `digits'.  Otherwise,
36883         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
36884         print `00-22'.  Now, it prints `-0022', as it should.
36885
36886 2005-08-17  Bruno Haible  <bruno@clisp.org>
36887
36888         * modules/strstr (Files): Add m4/mbrtowc.m4.
36889         (Depends-on): Add mbuiter.
36890
36891 2005-08-17  Bruno Haible  <bruno@clisp.org>
36892
36893         * modules/strcasestr: New file.
36894         * MODULES.html.sh (String handling, based on ANSI C 89): Add
36895         strcasestr.
36896
36897 2005-08-17  Bruno Haible  <bruno@clisp.org>
36898
36899         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
36900
36901 2005-08-17  Bruno Haible  <bruno@clisp.org>
36902
36903         * modules/mbuiter: New file.
36904         * MODULES.html.sh (Extended multibyte and wide character utilities):
36905         Add mbuiter.
36906
36907 2005-08-17  Bruno Haible  <bruno@clisp.org>
36908
36909         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
36910         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
36911
36912 2005-08-17  Bruno Haible  <bruno@clisp.org>
36913
36914         * m4/strcasestr.m4: New file.
36915
36916 2005-08-17  Bruno Haible  <bruno@clisp.org>
36917
36918         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
36919         * lib/strstr.c: Completely rewritten, with multibyte locale support.
36920
36921 2005-08-17  Bruno Haible  <bruno@clisp.org>
36922
36923         * lib/strcasestr.h: New file.
36924         * lib/strcasestr.c: New file.
36925
36926 2005-08-17  Bruno Haible  <bruno@clisp.org>
36927
36928         * lib/strcasecmp.c: Use mbuiter.h.
36929
36930 2005-08-17  Bruno Haible  <bruno@clisp.org>
36931
36932         * lib/mbuiter.h: New file.
36933
36934 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
36935
36936         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
36937         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
36938         and gl_GETOPT are both invoked via different paths (as happens
36939         with GNU tar CVS because it uses both argp and getopt), the former
36940         wins.
36941
36942 2005-08-16  Bruno Haible  <bruno@clisp.org>
36943
36944         * modules/tls: New file.
36945         * MODULES.html.sh (Multithreading): Add tls.
36946
36947 2005-08-16  Bruno Haible  <bruno@clisp.org>
36948
36949         * modules/strnlen1: New file.
36950         * MODULES.html.sh (String handling): Add strnlen1.
36951
36952 2005-08-16  Bruno Haible  <bruno@clisp.org>
36953
36954         * modules/strcase (Files): Add m4/mbrtowc.m4.
36955         (Depends-on): Add strnlen1, mbchar.
36956
36957 2005-08-16  Bruno Haible  <bruno@clisp.org>
36958
36959         * modules/mbiter: New file.
36960         * MODULES.html.sh (Extended multibyte and wide character utilities):
36961         Add mbiter.
36962
36963 2005-08-16  Bruno Haible  <bruno@clisp.org>
36964
36965         * modules/mbfile: New file.
36966         * MODULES.html.sh (Extended multibyte and wide character utilities):
36967         Add mbfile.
36968
36969 2005-08-16  Bruno Haible  <bruno@clisp.org>
36970
36971         * modules/mbchar: New file.
36972         * MODULES.html.sh (Extended multibyte and wide character utilities):
36973         New section.
36974
36975 2005-08-16  Bruno Haible  <bruno@clisp.org>
36976
36977         * m4/tls.m4: New file, from GNU gettext.
36978
36979 2005-08-16  Bruno Haible  <bruno@clisp.org>
36980
36981         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
36982         always.
36983         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
36984
36985 2005-08-16  Bruno Haible  <bruno@clisp.org>
36986
36987         * m4/mbiter.m4: New file.
36988
36989 2005-08-16  Bruno Haible  <bruno@clisp.org>
36990
36991         * m4/mbfile.m4: New file.
36992
36993 2005-08-16  Bruno Haible  <bruno@clisp.org>
36994
36995         * m4/mbchar.m4: New file.
36996
36997 2005-08-16  Bruno Haible  <bruno@clisp.org>
36998
36999         * lib/tls.h: New file, from GNU gettext.
37000         * lib/tls.c: New file, from GNU gettext.
37001
37002 2005-08-16  Bruno Haible  <bruno@clisp.org>
37003
37004         * lib/strnlen1.h: New file.
37005         * lib/strnlen1.c: New file.
37006
37007 2005-08-16  Bruno Haible  <bruno@clisp.org>
37008
37009         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
37010         (mbi_init): Update.
37011         (mbi_avail, mbi_advance): Let the iteration end before the terminating
37012         NUL byte, not after it.
37013
37014 2005-08-16  Bruno Haible  <bruno@clisp.org>
37015
37016         * lib/strcase.h (strcasecmp): Add note in comments.
37017         * lib/strncasecmp.c: Use code from strcasecmp.c.
37018         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
37019         (strcasecmp): Work correctly in multibyte locales.
37020
37021 2005-08-16  Bruno Haible  <bruno@clisp.org>
37022
37023         * lib/mbiter.h: New file.
37024
37025 2005-08-16  Bruno Haible  <bruno@clisp.org>
37026
37027         * lib/mbfile.h: New file.
37028
37029 2005-08-16  Bruno Haible  <bruno@clisp.org>
37030
37031         * lib/mbchar.h: New file.
37032         * lib/mbchar.c: New file.
37033
37034 2005-08-16  Bruno Haible  <bruno@clisp.org>
37035
37036         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
37037         the valid ones. Makes the comparison operations transitive:
37038         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
37039         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
37040
37041 2005-08-15  Simon Josefsson  <jas@extundo.com>
37042
37043         * modules/ssize_t (License): Change to 'unlimited'.
37044
37045         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
37046
37047 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
37048
37049         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
37050         Add comments for each pending glibc patch.
37051
37052 2005-08-15  Bruno Haible  <bruno@clisp.org>
37053
37054         * lib/regex.h (__restrict_arr): Don't define to __restrict if
37055         __cplusplus is defined.
37056
37057 2005-08-14  Jim Meyering  <jim@meyering.net>
37058
37059         Sync from coreutils.
37060
37061         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
37062         Use the hash-table-based cycle-detection code not just when
37063         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
37064         Reported by James Youngman in
37065         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
37066         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
37067         FTS_TIGHT_CYCLE_CHECK.
37068         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
37069         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
37070         once again.
37071         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
37072         * lib/fts.c (fd_safer): Remove decl.
37073         Include fcntl--.h rather than unistd-safer.h
37074         (fts_safe_changedir): Don't call fd_safer; no longer needed
37075         now that we include fcntl--.h.
37076
37077 2005-08-12  Simon Josefsson  <jas@extundo.com>
37078
37079         * modules/getndelim2: Use ssize_t module.
37080         * modules/getnline: Likewise.
37081         * modules/safe-read: Likewise.
37082         * modules/xreadlink: Likewise.
37083
37084         * modules/ssize_t: New file.
37085
37086 2005-08-12  Simon Josefsson  <jas@extundo.com>
37087
37088         * m4/readline.m4: Look for termcap, curses or ncurses if required.
37089
37090 2005-08-12  Simon Josefsson  <jas@extundo.com>
37091
37092         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37093         ssize_t.
37094
37095 2005-08-12  Simon Josefsson  <jas@extundo.com>
37096
37097         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
37098         readline, getdelim and check_version.
37099         (Support for systems lacking ISO C 99: Sizes of integer types):
37100         Add size_max.
37101
37102 2005-08-12  Bruno Haible  <bruno@clisp.org>
37103
37104         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
37105
37106 2005-08-11  Simon Josefsson  <jas@extundo.com>
37107
37108         * modules/readline: New file.
37109
37110         * modules/strnlen (Files): Add strnlen.h.
37111
37112 2005-08-11  Simon Josefsson  <jas@extundo.com>
37113
37114         * m4/readline.m4: New file.
37115
37116 2005-08-11  Simon Josefsson  <jas@extundo.com>
37117
37118         * lib/readline.h, readline.c: New file.
37119
37120 2005-08-11  Simon Josefsson  <jas@extundo.com>
37121
37122         * doc/gnulib.texi (Initial import, Finishing touches): Mention
37123         gl_AVOID.
37124
37125 2005-08-11  Bruno Haible  <bruno@clisp.org>
37126
37127         * lib/strnlen.h (strnlen): Change parameter name to match comment.
37128
37129 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
37130
37131         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
37132
37133 2005-08-10  Simon Josefsson  <jas@extundo.com>
37134
37135         * tests/test-iconvme.c: New file.
37136
37137 2005-08-10  Simon Josefsson  <jas@extundo.com>
37138
37139         * m4/strnlen.m4: New file.
37140
37141         * m4/strndup.m4: Don't check for strnlen declaration, done in
37142         strnlen.m4.
37143
37144 2005-08-10  Simon Josefsson  <jas@extundo.com>
37145
37146         * lib/strndup.c: Use strnlen.h.
37147
37148         * lib/strnlen.h: New file.
37149
37150 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
37151
37152         * README: Typos.
37153
37154 2005-08-02  Simon Josefsson  <jas@extundo.com>
37155
37156         * modules/readline: New file.
37157
37158 2005-08-02  Simon Josefsson  <jas@extundo.com>
37159
37160         * modules/getdelim: New file.
37161
37162         * modules/getline: Rewrite, don't use getndelim2.
37163
37164 2005-08-02  Simon Josefsson  <jas@extundo.com>
37165
37166         * m4/getline.m4: Separate out getdelim stuff into separate module.
37167
37168         * m4/getdelim.m4: New file.
37169
37170 2005-08-02  Simon Josefsson  <jas@extundo.com>
37171
37172         * lib/getline.h, getline.c: Rewrite.
37173
37174         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
37175
37176 2005-07-31  Bruno Haible  <bruno@clisp.org>
37177
37178         * lib/lock.h (gl_lock_initializer): New macro.
37179         (gl_lock_define_initialized): Use it.
37180         (gl_rwlock_initializer): New macro.
37181         (gl_rwlock_define_initialized): Use it.
37182         (gl_recursive_lock_initializer): New macro.
37183         (gl_recursive_lock_define_initialized): Use it.
37184
37185 2005-07-30  Karl Berry  <karl@gnu.org>
37186
37187         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
37188         Report from Ben Pfaff, regarding getopt.
37189
37190 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
37191
37192         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
37193         normal way.
37194         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
37195         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
37196         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
37197         (gl_GETOPT): Use the new macros.  Most of the implementation
37198         is moved to the new macros.  This is for programs like Emacs
37199         that don't want all the functionality of gl_GETOPT.
37200
37201 2005-07-26  Bruno Haible  <bruno@clisp.org>
37202
37203         * m4/lock.m4: Update from GNU gettext.
37204
37205 2005-07-26  Bruno Haible  <bruno@clisp.org>
37206
37207         * lib/lock.h: Update from GNU gettext.
37208         * lib/lock.c: Update from GNU gettext.
37209
37210 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
37211
37212         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
37213         obsolescent AC_TRY_RUN.  Include the default includes files, for
37214         'exit'.
37215
37216 2005-07-24  Bruno Haible  <bruno@clisp.org>
37217
37218         * modules/visibility: New file.
37219         * MODULES.html.sh (Misc): Add visibility.
37220
37221 2005-07-24  Bruno Haible  <bruno@clisp.org>
37222
37223         * m4/visibility.m4: New file.
37224
37225 2005-07-24  Bruno Haible  <bruno@clisp.org>
37226
37227         * doc/visibility.texi: New file.
37228
37229 2005-07-22  Bruno Haible  <bruno@clisp.org>
37230
37231         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
37232         $(ALLOCA_H), redundant through BUILT_SOURCES.
37233         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
37234         redundant through BUILT_SOURCES.
37235         * modules/byteswap (Makefile.am): Remove explicit dependency on
37236         $(BYTESWAP_H), redundant through BUILT_SOURCES.
37237         * modules/fnmatch (Makefile.am): Remove explicit dependency on
37238         $(FNMATCH_H), redundant through BUILT_SOURCES.
37239         * modules/getopt (Makefile.am): Remove explicit dependency on
37240         $(GETOPT_H), redundant through BUILT_SOURCES.
37241         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
37242         redundant through BUILT_SOURCES.
37243         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
37244         redundant through BUILT_SOURCES.
37245         * modules/stdbool (Makefile.am): Remove explicit dependency on
37246         $(STDBOOL_H), redundant through BUILT_SOURCES.
37247         * modules/stdint (Makefile.am): Remove explicit dependency on
37248         $(STDINT_H), redundant through BUILT_SOURCES.
37249         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
37250         Remove explicit dependency on $(SYSEXITS_H).
37251         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
37252
37253 2005-07-18  Simon Josefsson  <jas@extundo.com>
37254
37255         * lib/check-version.c (check_version): Accept identical versions too.
37256
37257 2005-07-18  Bruno Haible  <bruno@clisp.org>
37258
37259         * modules/lock: New file.
37260         * MODULES.html.sh (Multithreading): New section.
37261
37262 2005-07-18  Bruno Haible  <bruno@clisp.org>
37263
37264         * m4/lock.m4: New file, from GNU gettext.
37265
37266 2005-07-18  Bruno Haible  <bruno@clisp.org>
37267
37268         * lib/lock.h: New file, from GNU gettext.
37269         * lib/lock.c: New file, from GNU gettext.
37270
37271 2005-07-18  Bruno Haible  <bruno@clisp.org>
37272
37273         * lib/lock.h (gl_once_t): New type.
37274         (gl_once_define, gl_once): New macros.
37275         * lib/lock.c (fresh_once): New variable.
37276         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
37277         functions.
37278
37279 2005-07-16  Simon Josefsson  <jas@extundo.com>
37280
37281         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
37282         workaround, suggested by Bruno.
37283
37284 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
37285
37286         * modules/xalloc (Depends-on): Add xalloc-die.
37287         * modules/xvasprintf (Depends-on): Add xalloc-die.
37288
37289 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
37290
37291         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
37292         with a minor change.
37293
37294 2005-07-15  Bruno Haible  <bruno@clisp.org>
37295
37296         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
37297         When using lib/poll.c, define poll as rpl_poll.
37298
37299 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
37300
37301         * modules/argp (Depends-on): Remove unlocked-io.
37302
37303 2005-07-14  Derek Price  <derek@ximbiot.com>
37304
37305         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
37306         for glob symlink bug.
37307
37308 2005-07-14  Bruno Haible  <bruno@clisp.org>
37309
37310         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
37311         Instead, test for *_unlocked function declarations directly.
37312
37313 2005-07-11  Simon Josefsson  <jas@extundo.com>
37314
37315         * modules/size_max: New file.
37316
37317         * modules/xsize: Depend on size_max module for size_max.m4.
37318
37319 2005-07-11  Simon Josefsson  <jas@extundo.com>
37320
37321         * lib/size_max.h: New file.
37322
37323 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
37324
37325         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
37326         copyright symbol and the year.
37327         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
37328         (version_etc_va): Use parameterized copyright notice.
37329         Reword to conform to the current GNU coding standards.
37330
37331 2005-07-11  Karl Berry  <karl@gnu.org>
37332
37333         * doc/gnulib.texi (Quoting): new node.
37334         (Initial import): more info, from Patrice.
37335
37336 2005-07-11  Bruno Haible  <bruno@clisp.org>
37337
37338         * gnulib-tool (func_usage): Document option --avoid.
37339         (Command line options): Handle --avoid.
37340         (func_acceptable): New function.
37341         (func_modules_transitive_closure): Use it.
37342
37343 2005-07-11  Bruno Haible  <bruno@clisp.org>
37344
37345         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
37346         Reported by Jim Meyering.
37347
37348 2005-07-10  Bruno Haible  <bruno@clisp.org>
37349
37350         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
37351         Needed when size_t is smaller than 'unsigned int'.
37352         Reported by Paul Eggert.
37353
37354 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
37355
37356         * modules/argp (Depends-on): Add unlocked-io
37357
37358 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
37359
37360         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
37361         block of defines.
37362
37363 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
37364
37365         * config/srclist.txt: Comment out regcomp.c, since we have a porting
37366         fix now.
37367
37368 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
37369         and Paul Eggert  <eggert@cs.ucla.edu>
37370
37371         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
37372         in wint_t, not wchar_t.  Remove now-unnecessary cast.
37373
37374 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
37375
37376         * modules/regex (Files): Add lib/regex_internal.c,
37377         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
37378         (Depends-on): Add extensions.
37379         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
37380
37381 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
37382
37383         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
37384         pathconf.
37385         * m4/same.m4 (gl_SAME): Likewise.
37386         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
37387
37388         * m4/regex.m4: Adjust to new libc regex implementation.
37389         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
37390         all the .c and .h parts of (the new) regex.
37391         Quote the m4 stuff better.
37392         Check for RE_ICASE bug of old gnulib.
37393         Check for REG_STARTEND of recent libc.
37394         Rename local variables from jm_* to gl_*.
37395         Quote operand of "test -f".
37396         Say "recent enough" version of libc, not "version 2".
37397         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
37398         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
37399         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
37400         Remove check for btowc, isascii.
37401         Require AM_LANGINFO_CODESET.
37402
37403 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
37404
37405         * lib/regex.c, regex.h: Sync from libc.
37406         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
37407         * lib/regexec.c:
37408         New files, synced from libc, except that regex_internal.h
37409         currently has a small porting fix.
37410
37411 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
37412
37413         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
37414         regex_internal.c, regexec.c.
37415         Add regex_internal.h too, but as a comment, since the libc version
37416         is currently broken in gnulib mode.
37417
37418 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
37419
37420         Support programs like Emacs that use gnulib but not gettext.
37421         * MODULES.html.sh (Internationalization functions): Add gettext-h.
37422         * modules/gettext-h: New file.
37423         * modules/gettext (Files): Remove lib/gettext.h.
37424         (Depends-on): Add gettext-h.
37425         (Makefile.am): Remove lib_SOURCES.
37426         * modules/argmatch, modules/c-stack, modules/closeout:
37427         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
37428         * modules/execute, modules/file-type, modules/getaddrinfo:
37429         * modules/getopt, modules/human, modules/javacomp:
37430         * modules/javaexec, modules/mkdir-p, modules/obstack:
37431         * modules/openat, modules/pagealign_alloc, modules/pipe:
37432         * modules/quotearg, modules/regex, modules/rpmatch:
37433         * modules/unicodeio, modules/userspec, modules/version-etc:
37434         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
37435         * modules/xsetenv:
37436         Depend on gettext-h, not gettext.
37437
37438 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
37439
37440         * gnulib-tool (func_import): Add support for 'public domain' license.
37441         * modules/alloca, modules/atexit, modules/memmove:
37442         Now public domain, not GPL.
37443         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
37444         * modules/realloc, modules/strerror, modules/strtod:
37445         Now LGPL, not GPL.
37446
37447 2005-07-05  Bruno Haible  <bruno@clisp.org>
37448
37449         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
37450         autoconf CVS. Needed for mingw.
37451
37452 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37453
37454         Remove the dependency of the strftime module on the tzset module.
37455         * modules/strftime (Depends-on): Remove dependency on tzset.
37456
37457 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37458
37459         Remove the dependency of the strftime module on the tzset module.
37460         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
37461         gl_FUNC_TZSET_CLOBBER.
37462
37463 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37464
37465         Remove the dependency of the strftime module on the tzset module.
37466         * lib/strftime.c (my_strftime)
37467         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
37468         Copy the input structure, to work around some of the bug with
37469         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
37470         Solaris releases, you should also use the tzset module, but we won't
37471         require it as a dependency any more since we don't want LGPLed code
37472         to depend on GPLed code.
37473
37474 2005-07-02  Jim Meyering  <jim@meyering.net>
37475
37476         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
37477         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
37478         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
37479         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
37480
37481 2005-07-02  Jim Meyering  <jim@meyering.net>
37482
37483         * lib/backupfile.c (backup_args): Change a `0' to NULL.
37484
37485 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
37486
37487         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
37488         declares only 'struct timespec;' (!).
37489
37490 2005-07-01  Jim Meyering  <jim@meyering.net>
37491
37492         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
37493         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
37494         * lib/save-cwd.c, tempname.c:
37495         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
37496         and don't include <sys/file.h>).
37497
37498 2005-06-29  Jim Meyering  <jim@meyering.net>
37499
37500         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
37501         type name.  Use the variable name instead.
37502         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
37503         Likewise.
37504
37505 2005-06-28  Simon Josefsson  <jas@extundo.com>
37506
37507         * modules/check-version (Files): Add check-version.m4.
37508
37509 2005-06-28  Simon Josefsson  <jas@extundo.com>
37510
37511         * m4/check-version.m4: New file, suggested by Jim Meyering
37512         <jim@meyering.net>.
37513
37514 2005-06-28  Simon Josefsson  <jas@extundo.com>
37515
37516         * lib/check-version.h, lib/check-version.c: New files.
37517
37518 2005-06-28  Simon Josefsson  <jas@extundo.com>
37519
37520         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
37521         collision with global variable.  Better indentation.  Don't
37522         increment buffer pointer beyond buffer end.  Based on comments
37523         from Paul Eggert <eggert@cs.ucla.edu>.
37524
37525         * lib/base64.h: Indent.
37526
37527 2005-06-28  Simon Josefsson  <jas@extundo.com>
37528
37529         * doc/gnulib.texi (Library version handling): New section.
37530
37531 2005-06-28  Jim Meyering  <jim@meyering.net>
37532
37533         * check-module (find_included_lib_files): Hard-code another
37534         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
37535         but modules/fts-lgpl (correctly) does not list those files.
37536
37537         * modules/canonicalize (Files): Add lib/pathmax.h.
37538
37539 2005-06-25  Simon Josefsson  <jas@extundo.com>
37540
37541         * modules/check-version: New file.
37542
37543 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
37544
37545         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
37546         initializer of struct addrinfo, as an indication that we don't
37547         care how many members the structure has.
37548
37549 2005-06-24  Derek Price  <derek@ximbiot.com>
37550         and Bruno Haible  <bruno@clisp.org>
37551
37552         Remove stat module & update lstat.
37553         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
37554         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37555         * m4/stat.m4: Remove this file.
37556
37557 2005-06-24  Derek Price  <derek@ximbiot.com>
37558         and Bruno Haible  <bruno@clisp.org>
37559
37560         Remove stat module & update lstat.
37561         * lib/stat.c: Remove this file...
37562         (slash_aware_lstat): ...moving this content and its support...
37563         * lib/lstat.c (rpl_lstat): ...into here.
37564         * lib/lstat.h: New file.
37565
37566 2005-06-24  Derek Price  <derek@ximbiot.com>
37567         and Bruno Haible  <bruno@clisp.org>
37568
37569         Remove stat module & update lstat.
37570         * config/srclist.txt (libc sources): Remove stat.
37571
37572 2005-06-24  Derek Price  <derek@ximbiot.com>
37573         and Bruno Haible  <bruno@clisp.org>
37574
37575         Remove stat module & update lstat.
37576         * MODULES.html.sh (stat): Remove.
37577         * MODULES.html: Regenerated.
37578         * modules/lstat (Description): Correct function name.
37579         (Files): Add "lstat.h".
37580         (Depends-on): Remove stat, add xalloc, stat-macros.
37581         * modules/stat: Remove this file.
37582         (Include): Add "lstat.h", remove <sys/stat.h>.
37583
37584 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37585
37586         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
37587         (ranged_convert): Don't save conversion in a temporary struct.
37588         This causes a warning with GCC 4.0.0, and anyway in the typical
37589         case it's not worth the extra 100 bytes or so of code.
37590         (ranged_convert, __mktime_internal): When calling a function via a
37591         pointer P, use P () rather than (*P) (), as we now assume C89 or
37592         better.
37593
37594 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
37595
37596         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
37597         "who -r" failed to give output.  Problem reported by Tim Waugh.
37598
37599         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
37600         (xcalloc): Use it to avoid needless tests.
37601         Problem reported by Jim Meyering.
37602
37603 2005-06-20  Derek Price  <derek@ximbiot.com>
37604
37605         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
37606         unnecessary for Autoconfs > 2.59c.
37607
37608 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
37609
37610         * lib/argp.h (__option_is_short): Check upper limit of
37611         __key. Isprint() requires its argument to have the value
37612         of an unsigned char or EOF.
37613
37614 2005-06-16  Jim Meyering  <jim@meyering.net>
37615
37616         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
37617         when either N or S is zero.
37618
37619 2005-06-16  Derek Price  <derek@ximbiot.com>
37620
37621         * m4/bison.m4: Declare YACC & YFLAGS precious.
37622
37623 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
37624
37625         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
37626         multibyte string or pattern, fall back on unibyte matching.
37627         Problem reported by James Youngman.
37628
37629 2005-06-08  Bruno Haible  <bruno@clisp.org>
37630
37631         * modules/csharpcomp: New file.
37632         * MODULES.html.sh (C#): Add csharpcomp.
37633
37634 2005-06-08  Bruno Haible  <bruno@clisp.org>
37635
37636         * m4/csharpcomp.m4: New file, from GNU gettext.
37637
37638 2005-06-08  Bruno Haible  <bruno@clisp.org>
37639
37640         * lib/csharpcomp.h: New file, from GNU gettext.
37641         * lib/csharpcomp.c: New file, from GNU gettext.
37642         * lib/csharpcomp.sh.in: New file, from GNU gettext.
37643
37644 2005-06-08  Bruno Haible  <bruno@clisp.org>
37645
37646         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
37647         warning on mingw.
37648
37649 2005-06-07  Derek Price  <derek@ximbiot.com>
37650
37651         Sync from CVS.
37652         * lib/glob_.h: Indent nested #ifdef.
37653
37654 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
37655
37656         Sync from coreutils.
37657         Use "file name" when talking about file names, instead of "filename"
37658         or "path", as per the GNU coding standards.
37659         * lib/mkdir-p.c: Renamed from makepath.c.
37660         (make_dir_parents): Renamed from make_path.  All callers changed.
37661         * lib/mkdir-p.h: Likewise.  All includers changed.
37662         * lib/filenamecat.c: Renamed from path-concat.c.
37663         (file_name_concat): Renamed from path_concat.  All callers changed.
37664         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
37665         * lib/filenamecat.h: Likewise.  All includers changed.
37666         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
37667         in comments or local variable names.
37668         * lib/basename.c: Likewise.
37669         * lib/canonicalize.c, canonicalize.h: Likewise.
37670         * lib/dirname.c, dirname.h: Likewise.
37671         * lib/euidaccess.c: Likewise.
37672         * lib/exclude.c: Likewise
37673         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
37674         * lib/fsusage.c, fsuage.h: Likewise.
37675         * lib/fts.c, fts_.h: Likewise.
37676         * lib/getcwd.c: Likewise.
37677         * lib/getloadavg.c: Likewise.
37678         * lib/mkstemp.c: Likewise.
37679         * lib/mountlist.c, mountlist.h: Likewise.
37680         * lib/openat.c, openat.h: Likewise.
37681         * lib/readlink-stub.c: Likewise.
37682         * lib/readutmp.c, readutmp.h: Likewise.
37683         * lib/rename.c: Likewise.
37684         * lib/rmdir.c: Likewise.
37685         * lib/same.c: Likewise.
37686         * lib/savedir.c: Likewise.
37687         * lib/stripslash.c: Likewise.
37688         * lib/tempname.c: Likewise.
37689         * lib/xreadlink.c: Likewise.
37690         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
37691         All uses changed.
37692         * lib/exclude.h: Likewise.
37693
37694         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
37695         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
37696         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
37697         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
37698         * lib/pathmax.h: Include <limits.h> unconditionally, since other
37699         files have been getting away with it for years (MORE/BSD 4.3
37700         is extinct now).
37701         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
37702         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
37703
37704         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
37705         Define to 256, not 255, as per modern POSIX.
37706
37707 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
37708
37709         Sync from coreutils.
37710         Use "file name" when talking about file names, instead of "filename"
37711         or "path", as per the GNU coding standards.
37712         * MODULES.html.sh: mkdir-p renamed from makepath.
37713         filenamecat renamed from path-concat.
37714         * modules/filenamecat: Renamed from modules/path-concat.
37715         (Files): filenamecat.h and filenamecat.c renamed from
37716         path-concat.h and path-concat.c.
37717         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
37718         (Include): filenamecat.h, not path-concat.h.
37719         * modules/mkdir-p: Renamed from modules/makepath.
37720         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
37721         makepath.c.
37722         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
37723         (Include): mkdir-p.h, not makepath.h.
37724
37725 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
37726
37727         Sync from coreutils.
37728         * m4/mkdir-p.m4: Renamed from makepath.m4.
37729         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
37730         Rename files from makepath.c to mkdir-p.c, and from
37731         makepath.h to mkdir-p.h.
37732         * m4/filenamecat.m4: Renamed from path-concat.m4.
37733         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
37734         Rename files from path-concat.c to filenamecat.c,
37735         and from path-concat.h to filenamecat.h.
37736         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
37737         "file name" in local variables or comments.
37738         * m4/rename.m4: Likewise.
37739
37740 2005-06-01  Bruno Haible  <bruno@clisp.org>
37741
37742         * modules/csharpexec: New file.
37743         * MODULES.html.sh (C#): New section.
37744
37745 2005-06-01  Bruno Haible  <bruno@clisp.org>
37746
37747         * m4/csharp.m4: New file, from GNU gettext.
37748         * m4/csharpexec.m4: New file, from GNU gettext.
37749
37750 2005-06-01  Bruno Haible  <bruno@clisp.org>
37751
37752         * lib/csharpexec.h: New file, from GNU gettext.
37753         * lib/csharpexec.c: New file, from GNU gettext.
37754         * lib/csharpexec.sh.in: New file, from GNU gettext.
37755
37756 2005-05-31  Derek Price  <derek@ximbiot.com>
37757             Paul Eggert  <eggert@cs.ucla.edu>
37758
37759         Sync from cvs.
37760         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
37761
37762 2005-05-31  Derek Price  <derek@ximbiot.com>
37763             Paul Eggert  <eggert@cs.ucla.edu>
37764
37765         Sync from cvs.
37766         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
37767
37768 2005-05-29  Derek Price  <derek@ximbiot.com>
37769
37770         * config/srclist.txt (glob_.h, glob.c): Add these files.
37771
37772 2005-05-29  Derek Price  <derek@ximbiot.com>
37773
37774         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
37775         * modules/glob: New file.
37776         * modules/getlogin_r: Add link to POSIX spec in description.
37777
37778 2005-05-29  Derek Price  <derek@ximbiot.com>
37779             Paul Eggert  <eggert@cs.ucla.edu>
37780
37781         * m4/glob.m4: New file.
37782
37783 2005-05-29  Derek Price  <derek@ximbiot.com>
37784             Paul Eggert  <eggert@cs.ucla.edu>
37785
37786         * lib/glob_.h, lib/glob.c: New files.
37787
37788 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
37789
37790         * modules/fts (Files): Remove m4/inttypes-pri.m4.
37791         * modules/fts-lgpl (Depends-on): Remove gettext.
37792
37793 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
37794
37795         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
37796         and don't require gt_INTTYPES_PRI.
37797
37798 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
37799
37800         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
37801
37802         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
37803         the configuration hassle isn't worth it.
37804         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
37805         (LONGEST_MODIFIER, PRIuMAX): Remove.
37806
37807 2005-05-27  Bruno Haible  <bruno@clisp.org>
37808
37809         * lib/getlogin_r.h: Remove second include of <stddef.h>.
37810
37811 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
37812
37813         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
37814         _POSIX_PTHREAD_SEMANTICS for Solaris.
37815
37816 2005-05-25  Derek Price  <derek@ximbiot.com>
37817
37818         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
37819
37820 2005-05-25  Derek Price  <derek@ximbiot.com>
37821             Paul Eggert  <eggert@cs.ucla.edu>
37822
37823         * modules/getlogin_r, m4/getlogin_r.m4: New files.
37824         * lib/getlogin_r.c, getlogin_r.h: New files.
37825
37826 2005-05-25  Bruno Haible  <bruno@clisp.org>
37827             Derek Price  <derek@ximbiot.com>
37828
37829         * lib/getlogin_r.h: Simplify API documentation.
37830
37831 2005-05-23  Derek Price  <derek@ximbiot.com>
37832
37833         * modules/minmax (Files): Add m4/minmax.m4.
37834         (configure.ac): Add gl_MINMAX.
37835
37836 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
37837
37838         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
37839         so that unistd-safer.h (GPL'ed code) need not be included.
37840
37841 2005-05-22  Bruno Haible  <bruno@clisp.org>
37842
37843         * m4/minmax.m4: New file.
37844         Based on a patch by Derek Price <derek@ximbiot.com>.
37845
37846 2005-05-22  Bruno Haible  <bruno@clisp.org>
37847
37848         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
37849         (INT64_MIN): Fix definition.
37850         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
37851
37852         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
37853         NEED_SIGNED_INT_TYPES.
37854
37855         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
37856         HAVE_SYSTEM_INTTYPES.
37857
37858 2005-05-22  Bruno Haible  <bruno@clisp.org>
37859
37860         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
37861         Also include <sys/param.h> if it defines MIN, MAX.
37862         Based on a patch by Derek Price <derek@ximbiot.com>.
37863
37864 2005-05-21  Jim Meyering  <jim@meyering.net>
37865
37866         * modules/fts (Files): Add m4/inttypes-pri.m4.
37867         (Depends-on): Add lstat and remove gettext.  Alphabetize.
37868
37869 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
37870
37871         New fts module.
37872         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
37873         (setup_dir, free_dir): New functions.
37874         (enter_dir, leave_dir): Define trivial
37875         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
37876         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
37877         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
37878         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
37879         Move to fts-cycle.c.
37880         (fts_open): Use setup_dir.
37881         (fts_close): Use free_dir.
37882         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
37883         This adds a label and some gotos, but the alternatives were messier.
37884         Check for memory allocation failure when entering a dir.
37885         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
37886         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
37887         (FTS): New member fts_cycle, that is a union that contains the
37888         old active_dir_ht and cycle_state.  All uses changed to mention
37889         fts_cycle.ht and fts_cycle.state.
37890         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
37891         fts.c, with the following changes:
37892         (setup_dir, free_dir): New functions.
37893         (enter_dir): Now returns bool.  Return true if successful, false
37894         if memory exhausted.  All callers changed.
37895         Do not bother partly cleaning up on
37896         memory allocation failure; that is free_dir's job.
37897         However, free ad if hash_insert fails, to avoid memory leak.
37898         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
37899         fts->fts_options to see which union member to use.
37900
37901 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
37902
37903         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
37904         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
37905
37906 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
37907
37908         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
37909
37910 2005-05-20  Jim Meyering  <jim@meyering.net>
37911
37912         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
37913         Now a macro, to pacify GCC.
37914
37915 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
37916
37917         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
37918         of -1.
37919
37920 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
37921
37922         * lib/chown.c (rpl_chown): Return -1 on failure.
37923
37924 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
37925
37926         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
37927         Don't check for stddef.h.
37928         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
37929         don't use its results.
37930         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
37931         since we include them unconditionally.  Don't require
37932         AM_STDBOOL_H, since stdbool is a prerequisite.
37933         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
37934         since we assume C89 or better.
37935         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
37936         as we don't use their results.
37937         Don't check for fchdir, memmove, memset, strrchr, as we use
37938         them unconditionally.
37939         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
37940         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
37941
37942 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
37943
37944         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
37945         Include <stddef.h> unconditionally, since we assume C89 now.
37946         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
37947         * lib/fts.c: Include fts_.h first, to check interface.
37948         Do not include intprops.h; no longer needed.
37949         Include cycle-check.h and hash.h, since fts_.h no longer does.
37950         Remove unnecessary casts of closedir to void.
37951         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
37952         decide whether to decrement nlinks.
37953         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
37954         (FTS): Use struct hash_table * instead of Hash_table, so that
37955         we no longer need to include hash.h here.
37956
37957 2005-05-18  Jim Meyering  <jim@meyering.net>
37958
37959         * modules/dirfd (License): Change to LGPL.  Most of the code
37960         is already in the public domain.
37961
37962 2005-05-18  Jim Meyering  <jim@meyering.net>
37963
37964         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
37965         Reported by Yoann Vandoorselaere.
37966
37967 2005-05-17  Jim Meyering  <jim@meyering.net>
37968
37969         * m4/fts.m4: New file, from coreutils.
37970
37971 2005-05-17  Jim Meyering  <jim@meyering.net>
37972
37973         * lib/fts.c, lib/fts_.h: New files, from coreutils.
37974
37975 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
37976
37977         Sync from coreutils.
37978         * m4/unlinkdir.m4: New file.
37979
37980 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
37981
37982         Sync from coreutils.
37983         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
37984         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
37985         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
37986         White space changes only.
37987         * lib/makepath.c (make_path): Port to hosts where leading "//" is
37988         special.
37989         * lib/yesno.c: Include getline.h, not ctype.h.
37990         (yesno): Don't remove leading white space; POSIX doesn't allow it.
37991         Use getline to remove arbitrary restriction on response length.
37992
37993 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
37994
37995         * config/srclist-update: Spell out "Street" in FSF postal
37996         mail address; this is the style the FSF seems to prefer.
37997
37998         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
37999         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
38000         this updates FSF postal mail address.
38001
38002         Sync from coreutils.
38003         * modules/unlinkdir: New file.
38004         * modules/yesno (Depends-on): Add getline.
38005         * MODULES.html.sh (File system functions): Add unlinkdir.
38006
38007 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
38008
38009         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
38010         lib/strsep.h:
38011         Change the initial comment to refer to GPL, not LGPL.
38012         gnulib-tool will change it to LGPL as needed.
38013
38014         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
38015         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
38016         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
38017         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
38018         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
38019         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
38020         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
38021         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
38022         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
38023         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
38024         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
38025         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
38026         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
38027         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
38028         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
38029         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
38030         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
38031         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
38032         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
38033         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
38034         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
38035         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
38036         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
38037         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
38038         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
38039         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
38040         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
38041         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
38042         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
38043         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
38044         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
38045         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
38046         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
38047         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
38048         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
38049         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
38050         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
38051         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
38052         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
38053         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
38054         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
38055         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
38056         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
38057         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
38058         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
38059         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
38060         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
38061         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
38062         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
38063         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
38064         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
38065         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
38066         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
38067         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
38068         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
38069         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
38070         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
38071         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
38072         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
38073         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
38074         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
38075         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
38076         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
38077         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
38078         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
38079         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
38080         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
38081         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
38082         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
38083         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
38084         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
38085         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
38086         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
38087         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
38088         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
38089         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
38090         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
38091         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
38092         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
38093         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
38094         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
38095         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
38096         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
38097         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
38098         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
38099         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
38100         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
38101         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
38102         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
38103         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
38104         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
38105         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
38106         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
38107         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
38108         lib/yesno.c, lib/yesno.h:
38109         Update FSF postal mail address.
38110
38111 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
38112
38113         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
38114         tests/test-memmem.c, tests/test-stpncpy.c:
38115         Update FSF postal mail address.
38116
38117 2005-05-13  Bruno Haible  <bruno@clisp.org>
38118
38119         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
38120         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
38121         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
38122         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
38123         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
38124         Add support for 64-bit integers in the MSVC compiler.
38125
38126 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38127
38128         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
38129
38130 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
38131
38132         * gnulib-tool (func_import): Sort and uniquify recommended includes.
38133
38134 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
38135
38136         * doc/getdate.texi (General date syntax): Don't say that date
38137         date --iso-8601=ns generates acceptable dates; it doesn't yet.
38138         Problem reported by Nic Ferrier.
38139
38140 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38141
38142         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
38143         specified in ai_socktype. Fix invalid ai_protocol
38144         check. ai_protocol is usually set to 0 or depending on
38145         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
38146         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
38147         ai_socktype / ai_protocol in the returned addrinfo structure.
38148
38149 2005-05-10  Simon Josefsson  <jas@extundo.com>
38150
38151         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
38152         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38153
38154 2005-05-10  Karl Berry  <karl@gnu.org>
38155
38156         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
38157         (from http://www.gnu.org/licenses).
38158         * doc/COPYING.LIB: also rename to COPYING.LESSER.
38159         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
38160         fdl.texi suffices.
38161
38162 2005-05-10  Karl Berry  <karl@gnu.org>
38163
38164         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
38165         (COPYING.DOC): remove.
38166
38167         * config/srclist-update: new FSF address.
38168
38169 2005-05-10  Derek Price  <derek@ximbiot.com>
38170
38171         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
38172         possible.
38173
38174 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38175             Bruno Haible  <bruno@clisp.org>
38176
38177         * modules/inet_ntop: New file.
38178         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38179         inet_ntop.
38180
38181 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38182             Bruno Haible  <bruno@clisp.org>
38183
38184         * m4/inet_ntop.m4: New file.
38185
38186 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38187             Bruno Haible  <bruno@clisp.org>
38188
38189         * lib/inet_ntop.h: New file.
38190         * lib/inet_ntop.c: New file, from glibc with modifications.
38191
38192 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
38193
38194         * modules/time_r (License): Change to LGPL.
38195         * modules/extensions (License): Change to LGPL.  Actually,
38196         the license is more permissive than that, but currently gnulib-tool
38197         doesn't know how to handle more-permissive licenses.
38198
38199         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
38200         Problem reported by Dave Love.
38201
38202 2005-05-08  Jim Meyering  <jim@meyering.net>
38203
38204         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
38205         blank.
38206
38207 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
38208
38209         * modules/argmatch (Depends-on): Add stdbool.
38210         * modules/backupfile (Depends-on): Likewise.
38211         * modules/chdir-long (Depends-on): Likewise.
38212         * modules/closeout (Depends-on): Likewise.
38213         * modules/cycle-check (Depends-on): Likewise.
38214         * modules/dirname (Depends-on): Likewise.
38215         * modules/fnmatch (Depends-on): Likewise.
38216         * modules/fsusage (Depends-on): Likewise.
38217         * modules/fwriteerror (Depends-on): Likewise.
38218         * modules/getcwd (Depends-on): Likewise.
38219         * modules/getloadavg (Depends-on): Likewise.
38220         * modules/hard-locale (Depends-on): Likewise.
38221         * modules/makepath (Depends-on): Likewise.
38222         * modules/mountlist (Depends-on): Likewise.
38223         * modules/nanosleep (Depends-on): Likewise.
38224         * modules/posixtm (Depends-on): Likewise.
38225         * modules/quotearg (Depends-on): Likewise.
38226         * modules/readtokens (Depends-on): Likewise.
38227         * modules/readtokens0 (Depends-on): Likewise.
38228         * modules/readutmp (Depends-on): Likewise.
38229         * modules/save-cwd (Depends-on): Likewise.
38230         * modules/strftime (Depends-on): Likewise.
38231         * modules/userspec (Depends-on): Likewise.
38232         * modules/utimecmp (Depends-on): Likewise.
38233         * modules/xgetcwd (Depends-on): Likewise.
38234         * modules/xnanosleep (Depends-on): Likewise.
38235         * modules/xstrtod (Depends-on): Likewise.
38236         * modules/yesno (Depends-on): Likewise.
38237
38238 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
38239
38240         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
38241         needless checks.
38242
38243 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
38244
38245         Merge from coreutils.  Among other things,
38246         add bulletproofing for cases where stdin, stdout, or stderr are closed.
38247         * lib/fd-safer.c: New file.
38248         * lib/fcntl-safer.h, open-safer.c: Remove.
38249         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
38250         * lib/dup-safer.c: Include unistd-safer.h first.
38251         Don't include errno.h.
38252         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
38253         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
38254         * lib/file-type.c: Rely on file-type.h change.
38255         * lib/getloadavg.c: Include unistd-safer.h.
38256         (getloadavg): Use safer open.
38257         * lib/getusershell.c: Include "stdio-safer.h".
38258         (getusershell): Use safer fopen.
38259         * lib/long-options.c (long_options): Use NULL rather than 0.
38260         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
38261         'free'.
38262         * lib/modechange.c: Likewise.
38263         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
38264         (MODE_DONE): New constant.
38265         (struct mode_change): Remove 'next' member.
38266         (make_node_op_equals): New function; like the old one of the
38267         same name, except it allocates an array.
38268         (mode_compile, mode_create_from_ref): Use it.
38269         (mode_compile): Allocate result as an array, not a linked list.
38270         Parse octal string ourself, so that we catch mistakes like "+0".
38271         (mode_adjust): Arg is an array, not a linked list.
38272         * lib/modechange.c: Include stat-macros.h, xalloc.h.
38273         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
38274         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
38275         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
38276         Remove.  This is now stat-macros.h's job.
38277         (talloc): Remove.  All callers replaced by xalloc, so that
38278         our invokers don't have to worry about reporting memory failures.
38279         (make_node_op_equals): Remove.
38280         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
38281         New constants.
38282         (struct mode_change): Moved here from modechange.h.
38283         (mode_append_entry): Remove.
38284         (mode_compile): Remove MASKED_OPS arg, since it encouraged
38285         apps to have incorrect behavior.  Use simpler algorithm for head
38286         and tail.  Don't futz with umask; that's now the job of mode_adjust.
38287         Detect more invalid usages rather than having somewhat-random behavior.
38288         Don't insert an "a=" action, as that leads to incorrect behavior.
38289         (mode_compile, mode_create_from_ref): Return NULL on error instead
38290         of an enum, since now there's only one way to have an error.  All
38291         callers changed.
38292         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
38293         at the correct time.  Simplify calculation of "+u" and its ilk.
38294         Don't mishandle "+X".
38295         (mode_free): Remove "register" and localize decls.
38296         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
38297         (struct mode_change): Move to modechange.c; callers don't
38298         need to see this stuff.
38299         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
38300         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
38301         (mode_change, mode_adjust): Reflect the new signatures noted above.
38302         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
38303         that might redefine system include files.
38304         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
38305         (my_usleep): Use NULL rather than (void *) 0.
38306         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
38307         Use siginterrupt to specify that system calls should be interrupted.
38308         (rpl_nanosleep): Move initialization of suspended closer to call of
38309         my_usleep.
38310         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
38311         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
38312         (desirable_utmp_entry): New function.
38313         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
38314         using x2nrealloc, to simplify logic.
38315         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
38316         size calculation.  Do not assume utmp file is a regular file.
38317         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
38318         (READ_UTMP_CHECK_PIDS): New constant.
38319         * lib/save-cwd.c: Include unistd-safer.h.
38320         (save_cwd): Use fd_safer.
38321         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
38322         [!_LIBC] Include "stat-macros.h" instead.
38323         * lib/unistd-safer.h (fd_safer): New decl.
38324
38325 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
38326
38327         * modules/getloadavg (Depends-on): Add unistd-safer.
38328         * modules/getusershell (Depends-on): Add stdio-safer.
38329         * modules/lstat (Depends-on): Remove xalloc.
38330         * modules/mkstemp (Depends-on): Add stat-macros.
38331         * modules/modechange (Depends-on): Remove xstrtol.
38332         Add stat-macros, xalloc.
38333         * modules/save-cwd (Depends-on): Add unistd-safer.
38334         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
38335         * modules/unistd-safer (Files): Add lib/fd-safer.c
38336         (Makefile.am): Remove lib_SOURCES.
38337
38338         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
38339         Remove fcntl-safer; unistd-safer supersedes it.
38340
38341 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
38342
38343         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
38344         AC_HEADER_STAT.
38345         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
38346         (gl_PREREQ_CHOWN): Remove.
38347         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
38348         it.  Don't require AC_HEADER_STAT.
38349         (gl_PREREQ_LSTAT): Remove.
38350         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
38351         Don't require AC_HEADER_STAT.
38352         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
38353         (gl_PREREQ_RMDIR): Remove.
38354         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
38355         mention stat-macros.h or AC_HEADER_STAT, since we'll make
38356         the stat-macros module a prerequisite.
38357         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
38358         * m4/filemode.m4 (gl_FILEMODE): Likewise.
38359         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
38360         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
38361         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
38362         variable names.
38363         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
38364         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
38365         variable prefixes.
38366         * m4/fcntl-safer.m4: Remove.
38367         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
38368         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
38369         Invoke gl_PREREQ_FD_SAFER.
38370         (gl_PREREQ_FD_SAFER): New macro.
38371         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
38372         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
38373         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
38374         Remove duplicate call to AC_LIBOBJ(readutmp).
38375         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
38376
38377         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
38378         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
38379
38380 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
38381
38382         * MODULES.html.sh (Misc): Add byteswap.
38383
38384 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
38385
38386         * modules/getcwd (Depends-on): Add extensions.
38387         * modules/openat (Depends-on): Likewise.
38388
38389 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
38390
38391         * modules/byteswap: New file.
38392
38393 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
38394
38395         * m4/byteswap.m4: New file.
38396
38397 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
38398
38399         * lib/byteswap_.h: New file.
38400
38401 2005-04-25  Karl Berry  <karl@gnu.org>
38402
38403         * m4/gettext.m4: Update from GNU gettext 0.14.4.
38404
38405 2005-04-25  Albert Chin  <china@thewrittenword.com>
38406
38407         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
38408         Toolkit C bug.
38409
38410 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
38411
38412         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
38413         (func_ln_if_changed) Remove forcibly for no error message
38414         in case file does not exist.
38415
38416 2005-04-19  Simon Josefsson  <jas@extundo.com>
38417
38418         * gnulib-tool (Options): Make --symlink mean --symbolic.
38419
38420 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
38421
38422         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
38423
38424 2005-04-16  Simon Josefsson  <jas@extundo.com>
38425
38426         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
38427
38428 2005-04-15  Simon Josefsson  <jas@extundo.com>
38429
38430         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
38431
38432 2005-04-15  Simon Josefsson  <jas@extundo.com>
38433
38434         * gnulib-tool: Rename --symlink to --symbolic.
38435
38436 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
38437
38438         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
38439         symbolic links to files instead of copying/moving.  Add --aux-dir,
38440         specifying directory relative --dir where auxiliary build tools
38441         are placed.
38442
38443 2005-04-14  Bruno Haible  <bruno@clisp.org>
38444
38445         * modules/allocsa (License): Change to LGPL.
38446         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38447
38448 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
38449
38450         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
38451         that "UTC +1 second" continues to work.  Problem reported
38452         by Dmitry V. Levin.
38453         (relunit_snumber): New rule.
38454         (relunit): Use it.
38455
38456 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
38457
38458         * lib/getdate.y (universal_time_zone_table): New constant.
38459         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
38460         universal_time_zone_table.
38461         (lookup_zone): Prefer universal_time_zone_table to
38462         local_time_zone_table, so that "GMT" time stamps are allowed in
38463         London during the summer.  Problem reported by Ian Abbott.
38464
38465 2005-04-12  Jim Meyering  <jim@meyering.net>
38466
38467         * lib/human.c (humblock): Set *options even when returning due to
38468         xstrtoumax conversion failure.  Thanks to a used-uninitialized
38469         warning from gcc-4.
38470
38471 2005-04-09  Jim Meyering  <jim@meyering.net>
38472
38473         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
38474         -Wuninitialized: initialize tm0.tm_year.
38475
38476 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
38477
38478         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
38479         count, since there's no maximum.  All uses changed.
38480         Add member dsts_seen.
38481         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
38482         not being INT_MAX.
38483         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
38484         Use pc_rels_seen to decide whther a date is absolute.
38485
38486         * lib/getdate.y (number): Don't overwrite year.
38487         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
38488         check.
38489
38490 2005-04-02  Simon Josefsson  <jas@extundo.com>
38491
38492         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
38493         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
38494
38495 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
38496
38497         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
38498         where no absolute path name can be longer than PATH_MAX.
38499
38500 2005-03-27  Jim Meyering  <jim@meyering.net>
38501
38502         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
38503
38504 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
38505
38506         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
38507         "one's complement" -> "ones' complement" in comment, as per Knuth.
38508         "value of type" -> "type or expression" in comment.
38509         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
38510
38511 2005-03-26  Jim Meyering  <jim@meyering.net>
38512
38513         Comment nits.
38514         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
38515         Correct typos: s/or/of/.
38516
38517 2005-03-26  Jim Meyering  <jim@meyering.net>
38518
38519         * modules/check-include-files: Move to ../ and rename to...
38520         * check-module: ...this.
38521
38522 2005-03-25  Jim Meyering  <jim@meyering.net>
38523
38524         * modules/xvasprintf (Files): Add xalloc.h.
38525
38526 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
38527
38528         * modules/gettext (Files): config/config.rpath ->
38529         build-aux/config.rpath
38530         * modules/iconv (Files): Likewise.
38531         Problem reported by Oskar Liljeblad.
38532
38533 2005-03-23  Jim Meyering  <jim@meyering.net>
38534
38535         * modules/check-include-files: New script to check for
38536         missing dependencies, multiple includes, etc.
38537
38538         * modules/c-strtold (Depends-on): Add xalloc.
38539         * modules/c-strtod (Depends-on): Add xalloc.
38540         * modules/hash (Depends-on): Add xalloc.
38541         (Files): Remove lib/xalloc.h.
38542
38543         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
38544         * modules/userspec (Files): Add lib/inttostr.h.
38545
38546 2005-03-23  Jim Meyering  <jim@meyering.net>
38547
38548         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
38549
38550 2005-03-22  Jim Meyering  <jim@meyering.net>
38551
38552         * modules/stat-macros: New module.
38553         * modules/canonicalize, modules/euidaccess, modules/file-type,
38554         * modules/filemode, modules/lchown, modules/makepath,
38555         * modules/rmdir, modules/stat: Depend on new stat-macros module
38556         rather than listing lib/stat-macros.h manually.
38557         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
38558
38559 2005-03-22  Jim Meyering  <jim@meyering.net>
38560
38561         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
38562
38563 2005-03-22  Bruno Haible  <bruno@clisp.org>
38564
38565         * config/srclist.txt: Replace target directory 'config' with
38566         'build-aux'.
38567         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
38568         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
38569         ../build-aux/.
38570
38571 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
38572
38573         * modules/chdir-long (Depends-on): Add mempcpy.
38574
38575         * modules/acl, modules/backupfile, modules/c-strtod,
38576         modules/c-strtold, modules/canon-host, modules/canonicalize,
38577         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
38578         modules/exclude, modules/exitfail, modules/file-type,
38579         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
38580         modules/getdate, modules/getline, modules/getpagesize,
38581         modules/getpass, modules/getugroups, modules/group-member,
38582         modules/hard-locale, modules/hash, modules/human, modules/idcache,
38583         modules/inttostr, modules/long-options, modules/makepath,
38584         modules/md5, modules/memcasecmp, modules/memcoll,
38585         modules/modechange, modules/mountlist, modules/path-concat,
38586         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
38587         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
38588         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
38589         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
38590         modules/strftime, modules/strndup, modules/strverscmp,
38591         modules/timespec, modules/unlocked-io, modules/userspec,
38592         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
38593         modules/yesno:
38594         Remove lib_SOURCES line from Makefile.am section, as this is now
38595         done automatically by the corresponding Autoconf macro.
38596
38597 2005-03-21  Jim Meyering  <jim@meyering.net>
38598
38599         Changes imported from coreutils.
38600
38601         * lib/cycle-check.c: Don't include xalloc.h.
38602
38603         * lib/path-concat.c: Don't include assert.h.
38604         (path_concat): Remove assertion that would have triggered
38605         for ABASE starting with more than one slash.
38606         Reported by Andreas Schwab.
38607
38608         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
38609         properly when ABASE is an absolute file name.
38610         Correct the description of this function.
38611         Include <assert.h>.
38612         Add an assertion and a test driver.
38613         This fixes a bug introduced on 2004-07-02.
38614         Andreas Schwab reported the resulting failure of cp --parents:
38615         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
38616
38617 2005-03-21  Jim Meyering  <jim@meyering.net>
38618
38619         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
38620         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
38621
38622 2005-03-21  Jim Meyering  <jim@meyering.net>
38623         and  Paul Eggert  <eggert@cs.ucla.edu>
38624
38625         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
38626         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
38627         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
38628         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
38629         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
38630         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
38631         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
38632         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
38633         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
38634         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
38635         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
38636         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
38637         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
38638         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
38639         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
38640         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
38641         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
38642         for these modules.
38643
38644 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
38645
38646         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
38647         (which shouldn't happen), generate nothing instead of returning 0
38648         immediately, so that nstrftime (NULL, ...) doesn't return 0.
38649
38650 2005-03-16  Bruno Haible  <bruno@clisp.org>
38651
38652         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
38653         HAVE_LONGLONG_64BIT.
38654
38655 2005-03-16  Bruno Haible  <bruno@clisp.org>
38656
38657         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
38658         HAVE_LONGLONG_64BIT.
38659
38660 2005-03-16  Bruno Haible  <bruno@clisp.org>
38661
38662         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
38663         HAVE_LONGLONG_64BIT.
38664
38665 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
38666
38667         * lib/strftime.c (my_strftime): Prepend space to format so that we can
38668         reliably distinguish strftime failure from empty output on POSIX
38669         hosts.
38670
38671 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
38672
38673         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
38674         (iconv_string): Don't guess a size-zero buffer, as that might cause
38675         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
38676         result would be 'too large', where 'too large' is (heuristically)
38677         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
38678         overflow concerns.  This will prevent some unwanted malloc failures
38679         when the inputs are very large.
38680
38681 2005-03-15  Karl Berry  <karl@gnu.org>
38682
38683         * config/srclist.txt (config.rpath): from gettext.
38684         * config/config.rpath: update.
38685
38686 2005-03-15  Bruno Haible  <bruno@clisp.org>
38687
38688         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
38689         to 'negate'.
38690
38691         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
38692         variable.
38693
38694         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
38695         results.
38696
38697 2005-03-14  Simon Josefsson  <jas@extundo.com>
38698
38699         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
38700         <fx@gnu.org>.
38701
38702 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
38703
38704         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
38705         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
38706         intprops.h.
38707         * lib/strtol.c: Likewise.
38708
38709 2005-03-14  Jim Meyering  <jim@meyering.net>
38710
38711         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
38712         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
38713         to be nonzero so that we (and caller) can detect the difference
38714         between a valid zero-length expansion and an error return, even
38715         when the underlying strftime fails before writing anything into
38716         that location.
38717
38718 2005-03-14  Bruno Haible  <bruno@clisp.org>
38719
38720         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
38721         Update from GNU gettext 0.14.3.
38722
38723 2005-03-10  Jim Meyering  <jim@meyering.net>
38724
38725         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
38726
38727 2005-03-10  Jim Meyering  <jim@meyering.net>
38728
38729         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
38730         so that this module works on systems without fchdir.
38731
38732 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
38733
38734         Factor int-properties macros into a single file, except for
38735         glibc-related files.
38736         * lib/intprops.h: New file.
38737         * lib/getloadavg.c: Include it instead of limits.h.
38738         (INT_STRLEN_BOUND): Remove.
38739         * lib/human.c: Include intprops.h.
38740         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
38741         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
38742         302/1000.
38743         * lib/inttostr.h: Include intprops.h instead of limits.h.
38744         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
38745         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
38746         for consistency with intprops.h.
38747         (time_t_is_integer, twos_complement_arithmetic): Use them.
38748         * lib/sig2str.h: Include <signal.h>, intprops.h.
38749         (INT_STRLEN_BOUND): Remove.
38750         * lib/strftime.c (TYPE_SIGNED): Remove.
38751         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
38752         * lib/strtol.c: Adjust comments to match intprops.h.
38753         * lib/userspec.c: Include intprops.h.
38754         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
38755         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
38756         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
38757         instead of rolling our own expressions.
38758         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
38759
38760         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
38761         instead of int.
38762         (my_strftime): Do not mishandle years close to INT_MAX, by doing
38763         the right thing even if adding 1900 would overflow.  Similarly
38764         for tm_mon + 1 and tm_yday + 1.
38765         Make %Y always equivalent to %C%y, and similarly for %G and %g.
38766         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
38767         (DO_SIGNED_NUMBER): New macro.
38768         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
38769
38770 2005-03-07  Bruno Haible  <bruno@clisp.org>
38771
38772         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
38773
38774 2005-03-07  Bruno Haible  <bruno@clisp.org>
38775
38776         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
38777
38778 2005-03-04  Derek R. Price  <derek@ximbiot.com>
38779
38780         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
38781         (func_import): Only replace files via --import when they have actually
38782         changed.
38783
38784 2005-03-03  Derek R. Price  <derek@ximbiot.com>
38785
38786         * m4/mmap-anon.m4: New file.
38787         * m4/pagealign_alloc.m4: New file.
38788
38789 2005-03-03  Derek R. Price  <derek@ximbiot.com>
38790             Bruno Haible  <bruno@clisp.org>
38791
38792         * modules/pagealign_alloc: New file.
38793         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
38794
38795 2005-03-03  Derek R. Price  <derek@ximbiot.com>
38796             Bruno Haible  <bruno@clisp.org>
38797
38798         * lib/pagealign_alloc.h: New file.
38799         * lib/pagealign_alloc.c: New file.
38800
38801 2005-03-03  Bruno Haible  <bruno@clisp.org>
38802
38803         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
38804         Use an all-permissive copyright notice, recommended by RMS.
38805
38806 2005-03-02  Bruno Haible  <bruno@clisp.org>
38807
38808         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
38809         of AIX, the replacement has to be done only after <string.h> is
38810         included, therefore not in config.h. stpncpy.h does the replacement,
38811         and stpncpy.c uses it.
38812
38813 2005-03-02  Bruno Haible  <bruno@clisp.org>
38814
38815         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
38816         stpncpy.c uses it.
38817
38818 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38819
38820         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
38821         The workaround isn't strictly needed for POSIX conformance, and
38822         it's too much of a pain to configure and maintain.  We'll ask
38823         people to fix their kernels instead.
38824         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
38825         (NANOSLEEP_BUG_WORKAROUND): Remove.
38826         (xnanosleep): Remove the workaround.
38827
38828 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38829
38830         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
38831         Reported by Derek Price.
38832         (Include): Add "timespec.h".
38833
38834         * modules/xnanosleep (Depends-on): Remove gethrxtime.
38835
38836 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38837
38838         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
38839         to detect nanosleep bug.
38840
38841 2005-03-01  Bruno Haible  <bruno@clisp.org>
38842
38843         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
38844
38845 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
38846
38847         * modules/gethrxtime: New file.
38848         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
38849         (Depends-on): Add gethrxtime.
38850         (configure.ac): Add gl_XNANOSLEEP.
38851         (Makefile.am): Remove lib_SOURCES line.
38852
38853 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38854
38855         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
38856         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
38857
38858 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38859
38860         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
38861         * lib/timespec.h (gettime): Return void, since it always
38862         succeeds now.  All uses changed.
38863         * lib/gettime.c (gettime) Likewise.
38864         [HAVE_NANOTIME]: Prefer nanotime.
38865         Assume gettimeofday succeeds, as POSIX requires.
38866         Assime time () succeeds, since other code already does.
38867         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
38868         (timespec_subtract): Remove.
38869         (NANOSLEEP_BUG_WORKAROUND): New constant.
38870         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
38871         things considerably.  Use it only on GNU/Linux hosts, since the
38872         workaround shouldn't be needed elsewhere.
38873
38874 2005-02-24  Bruno Haible  <bruno@clisp.org>
38875
38876         * modules/gettext (Files): Add m4/glibc2.m4.
38877
38878 2005-02-24  Bruno Haible  <bruno@clisp.org>
38879
38880         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
38881         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
38882         * m4/progtest.m4:
38883         Update from GNU gettext 0.14.2.
38884         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
38885
38886 2005-02-24  Bruno Haible  <bruno@clisp.org>
38887
38888         * lib/localcharset.c: Update from GNU gettext 0.14.2.
38889         * lib/config.charset: Update from GNU gettext 0.14.2.
38890
38891 2005-02-24  Bruno Haible  <bruno@clisp.org>
38892
38893         * lib/gettext.h: Update from GNU gettext 0.14.2.
38894
38895 2005-02-23  Simon Josefsson  <jas@extundo.com>
38896
38897         * m4/iconvme.m4: New file.
38898
38899 2005-02-23  Jim Meyering  <jim@meyering.net>
38900
38901         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
38902         change.
38903         Thanks to Bruno Haible for catching it.
38904
38905 2005-02-22  Simon Josefsson  <jas@extundo.com>
38906
38907         * modules/iconvme: New file.
38908
38909         * MODULES.html.sh: Add iconvme.
38910
38911 2005-02-22  Simon Josefsson  <jas@extundo.com>
38912
38913         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
38914
38915 2005-02-22  Simon Josefsson  <jas@extundo.com>
38916
38917         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
38918
38919 2005-02-22  Jim Meyering  <jim@meyering.net>
38920
38921         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
38922         s/ifndef/ifdef/.
38923
38924 2005-02-20  Neil Conway  <neilc@samurai.com>
38925
38926         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
38927         returned by OSX/Darwin if the specified buffer is not large
38928         enough for the hostname.
38929
38930 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38931
38932         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
38933         pass it to _help, otherwise the latter coredumps trying to
38934         dereference state.root_argp.
38935
38936 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38937
38938         * modules/chdir-long (Depends-on): Add memrchr.
38939         * modules/memrchr (Files): Add lib/memrchr.h.
38940         (Include): "memrchr.h".
38941
38942 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38943
38944         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
38945
38946 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38947
38948         * lib/memrchr.h: New file.
38949         * lib/chdir-long.c: Include it.
38950         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
38951         Don't bother including stddef.h.
38952
38953 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
38954
38955         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
38956         inclusion.
38957         Include <sys/types.h>, for dev_t.
38958         (ME_DUMMY, ME_REMOTE): Move from here....
38959         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
38960         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
38961         Dmitry V. Levin.
38962         Include mountlist.h first, to test the interface.
38963
38964 2005-01-29  Bruno Haible  <bruno@clisp.org>
38965
38966         * lib/progname.c (program_name): Initialize.
38967         Needed when linking statically on MacOS X.
38968
38969 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38970
38971         Sync from coreutils.
38972         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
38973         (Depends-on): Add c-strtod.
38974         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
38975
38976 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38977
38978         Sync from coreutils.
38979         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
38980
38981         Remove files that are specific to coreutils.
38982         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
38983
38984 2005-01-28  Bruno Haible  <bruno@clisp.org>
38985
38986         * modules/javacomp: New file.
38987         * MODULES.html.sh (Java): Add javacomp.
38988
38989 2005-01-28  Bruno Haible  <bruno@clisp.org>
38990
38991         * m4/javacomp.m4: New file, from GNU gettext.
38992
38993 2005-01-28  Bruno Haible  <bruno@clisp.org>
38994
38995         * lib/javacomp.sh.in: New file, from GNU gettext.
38996         * lib/javacomp.h: New file, from GNU gettext.
38997         * lib/javacomp.c: New file, from GNU gettext.
38998
38999 2005-01-26  Simon Josefsson  <jas@extundo.com>
39000
39001         * lib/gai_strerror.c: Use GPL in header.
39002
39003 2005-01-26  Bruno Haible  <bruno@clisp.org>
39004
39005         * modules/javaexec: New file.
39006         * MODULES.html.sh (Java): Add javaexec.
39007
39008 2005-01-26  Bruno Haible  <bruno@clisp.org>
39009
39010         * m4/javaexec.m4: New file, from GNU gettext.
39011
39012 2005-01-26  Bruno Haible  <bruno@clisp.org>
39013
39014         * lib/javaexec.sh.in: New file, from GNU gettext.
39015         * lib/javaexec.h: New file, from GNU gettext.
39016         * lib/javaexec.c: New file, from GNU gettext.
39017
39018 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39019
39020         * modules/lchown (Depends-on): Remove lchown.h
39021
39022 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39023
39024         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
39025         must be defined if the header file was not found, in order
39026         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
39027
39028 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39029
39030         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
39031         initializers for struct pentry_state.
39032         (__argp_error): Check return value of __asprintf
39033         (__argp_failure): Translate error message
39034
39035         * lib/argp-parse.c: Removed braces around the expansion of N_()
39036
39037 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39038
39039         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
39040         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
39041         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
39042         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
39043         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
39044         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
39045         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
39046         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
39047         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
39048         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
39049         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
39050         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
39051         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
39052         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
39053         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
39054         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
39055         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
39056         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
39057         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
39058         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
39059         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
39060         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
39061         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
39062         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
39063         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
39064         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
39065         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
39066         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
39067         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
39068         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
39069         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
39070         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
39071         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
39072         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
39073         xstrtol.m4, xstrtoumax.m4, yesno.m4:
39074         Use an all-permissive copyright notice, recommended by RMS.
39075
39076 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
39077
39078         * modules/chdir-long (Depends-on): Remove mempcpy.
39079
39080 2005-01-21  Jim Meyering  <jim@meyering.net>
39081
39082         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
39083         same value as for Solaris 9.
39084
39085         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
39086         component length.  This included changing the parameter to be
39087         of type `char *' rather than `char const *'.
39088         * lib/chdir-long.h (chdir_long): Update prototype.
39089
39090         * lib/openat.c (fdopendir, fstatat): New functions.
39091         * lib/openat.h: Include headers required for use of DIR and struct
39092         stat.
39093         [AT_SYMLINK_NOFOLLOW]: Define.
39094         (fdopendir, fstatat): Add prototypes.
39095
39096 2005-01-21  Bruno Haible  <bruno@clisp.org>
39097
39098         * modules/classpath: New file.
39099         * MODULES.html.sh (Java): Add classpath.
39100
39101 2005-01-21  Bruno Haible  <bruno@clisp.org>
39102
39103         * lib/classpath.h: New file, from GNU gettext.
39104         * lib/classpath.c: New file, from GNU gettext.
39105
39106 2005-01-20  Simon Josefsson  <jas@extundo.com>
39107
39108         * modules/version-etc-fsf: New file.
39109
39110 2005-01-20  Simon Josefsson  <jas@extundo.com>
39111
39112         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
39113         * lib/version-etc.c: Remove version_etc_copyright.
39114         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
39115         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
39116
39117 2005-01-20  Simon Josefsson  <jas@extundo.com>
39118
39119         * lib/base64.h (isbase64): Add.
39120
39121         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
39122         using a unsigned prototype, don't inline.
39123         (base64_decode): Use it.
39124
39125 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
39126
39127         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
39128         it.
39129
39130 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
39131
39132         * lib/save-cwd.c (save_cwd): Remove code to support the case
39133         where fchdir is missing or flaky.
39134
39135 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
39136
39137         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
39138
39139 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
39140
39141         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
39142         AC_LIBSOURCES now does this.
39143         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
39144         with new ullong_max module.
39145
39146 2005-01-19  Bruno Haible  <bruno@clisp.org>
39147
39148         * modules/sh-quote: New file.
39149         * MODULES.html.sh (Executing programs): Add sh-quote.
39150
39151 2005-01-19  Bruno Haible  <bruno@clisp.org>
39152
39153         * lib/sh-quote.h: New file, from GNU gettext.
39154         * lib/sh-quote.c: New file, from GNU gettext.
39155
39156 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
39157
39158         Merge from coreutils.
39159         * m4/ullong_max.m4: New file.
39160         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
39161         (gl_MACROS): Assume localeconv exists.
39162
39163 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
39164
39165         Merge changes from coreutils, as described below in several
39166         changelogs dated today.
39167
39168         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
39169         (O_DIRECTORY): Remove; not needed here, since "." must be
39170         a directory.  All uses removed.
39171         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
39172         universal on Suns, and we also need to test for IRIX.
39173         Revamp code to use 'if' rather than '#if'.
39174         Avoid unnecessary comparison of cwd->desc to 0.
39175
39176         * lib/utimens.c (futimens): Robustify the previous patch, by checking
39177         for known valid error numbers rather than observed invalid ones.
39178
39179 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
39180
39181         * modules/ullong_max: New file.
39182
39183         * modules/chdir-long, modules/openat: New files.
39184         * modules/save-cwd (Depends-on): Depend on chdir-long.
39185         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
39186
39187 2005-01-18  Jim Meyering  <jim@meyering.net>
39188
39189         Merge from coreutils.
39190         * m4/chdir-long.m4, m4/openat.m4: New files.
39191         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
39192         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
39193         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
39194         is sane and DOES follow symlinks.  Besides, testing 20 different
39195         systems found no broken chown implementations.
39196         Prompted by a change in rsync's copy of this macro.
39197         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
39198
39199         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
39200
39201         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
39202         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
39203         NULL-means-set-to-current-time semantics.
39204         Remove temporary file immediately, rather than waiting
39205         for configure's at-exit trap code to do it.
39206
39207 2005-01-18  Jim Meyering  <jim@meyering.net>
39208
39209         * lib/version-etc.c (version_etc_copyright): Update copyright date.
39210
39211         * lib/utimens.c (futimens): Account for the fact that futimes
39212         can also fail with errno == ENOSYS or errno == ENOENT.
39213         Patch from Dmitry V. Levin.
39214
39215         Change the name of the robust chdir function from chdir to chdir_long.
39216         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
39217         (restore_cwd): Use chdir_long, not chdir.
39218         * lib/chdir-long.c: Renamed from chdir.c.
39219         * lib/chdir-long.h: Renamed from chdir.h.
39220         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
39221         Hurd.
39222
39223 2005-01-18  Bruno Haible  <bruno@clisp.org>
39224
39225         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
39226         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
39227         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
39228         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
39229         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
39230         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
39231         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
39232         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
39233         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
39234         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
39235         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
39236         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
39237         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
39238         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
39239         Use an all-permissive copyright notice, recommended by RMS.
39240
39241 2005-01-18  Bob Proulx  <bob@proulx.com>
39242
39243         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
39244         simplify offsetof() macro construct to avoid compile failure with
39245         native HP-UX 11.0 ANSI C compiler.
39246
39247 2005-01-17  Bruno Haible  <bruno@clisp.org>
39248
39249         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
39250         redundant because stpncpy.m4 takes care of it.
39251
39252 2005-01-17  Bruno Haible  <bruno@clisp.org>
39253
39254         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
39255
39256 2005-01-17  Bruno Haible  <bruno@clisp.org>
39257
39258         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
39259         used.
39260
39261 2005-01-17  Bruno Haible  <bruno@clisp.org>
39262
39263         * lib/fwriteerror.h (fwriteerror): Change specification to include
39264         fclose.
39265         * lib/fwriteerror.c: Include <stdbool.h>.
39266         (fwriteerror): At the end, close the file stream. Record whether
39267         stdout was already closed.
39268
39269 2005-01-17  Bruno Haible  <bruno@clisp.org>
39270
39271         * lib/execute.c (environ): Declare if needed.
39272         * lib/pipe.c (environ): Likewise.
39273         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
39274
39275 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39276
39277         * modules/argp: Depend on vsnprintf
39278
39279 2005-01-10  Jim Meyering  <jim@meyering.net>
39280
39281         * modules/closeout (Depends-on): Add atexit.
39282
39283 2005-01-06  Bruno Haible  <bruno@clisp.org>
39284
39285         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
39286
39287 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
39288
39289         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
39290         definitions to be after all include files, to avoid collisions.
39291         Problem reported by Bob Proulx.
39292
39293 2005-01-04  Jim Meyering  <jim@meyering.net>
39294
39295         Changes imported from coreutils.
39296         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
39297         as the mkstemp template, use a temporary directory and an
39298         8.3-friendly template to avoid trouble on systems like DJGPP.
39299         Reported by Juan M. Guerrero via Stepan Kasal.
39300         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
39301         close. Remove the temporary directory right away, rather than waiting
39302         for configure's at-exit trap code to do it.
39303         Suggestion from Stepan Kasal.
39304
39305 2005-01-01  Simon Josefsson  <jas@extundo.com>
39306
39307         * gnulib-tool: Print #include directives when --import'ing.
39308
39309 2004-12-28  Simon Josefsson  <jas@extundo.com>
39310
39311         * tests/test-base64.c: Include required header files.  Remove
39312         unused variables.
39313
39314 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
39315
39316         * modules/error (Depends-on): Remove gettext.
39317
39318 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
39319
39320         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
39321         not needed.  This removes a dependency on the gettext module.
39322         [defined _LIBC]: Do not include <libintl.h>; not needed.
39323
39324 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
39325
39326         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
39327         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
39328
39329 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
39330
39331         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
39332         HAVE_DECL_STRTOLD.
39333
39334 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39335
39336         * modules/getdate (Depends-on): Remove alloca-opt.
39337
39338 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39339
39340         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
39341
39342 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39343
39344         * lib/argp-parse.c: Include <stddef.h>.
39345         (alignof, alignto): New macros.
39346         (parser_init): Don't assume that void * is aligned sufficiently
39347         for struct option.
39348
39349         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
39350         need to extend the stack.
39351         (YYINITDEPTH): New macro, so that the initial stack isn't overly
39352         large.
39353
39354 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39355
39356         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
39357
39358 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
39359
39360         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
39361         (2004-10-24) change.  Apparently this was a false alarm.
39362
39363         * modules/getdate: Depend on alloca-opt, not alloca.
39364
39365 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
39366
39367         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
39368         Remove now-obsolete comment about AIX.
39369         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
39370         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
39371         (YYMAXDEPTH): New macro.
39372
39373 2004-12-18  Simon Josefsson  <jas@extundo.com>
39374
39375         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
39376
39377 2004-12-18  Bruno Haible  <bruno@clisp.org>
39378
39379         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
39380
39381 2004-12-18  Bruno Haible  <bruno@clisp.org>
39382
39383         * lib/fatal-signal.c (fatal_signals): Make non-const.
39384         (init_fatal_signals): New function.
39385         (uninstall_handlers, install_handlers): Ignore signals that were set to
39386         SIG_IGN.
39387         (at_fatal_signal): Call init_fatal_signals.
39388         (init_fatal_signal_set): Likewise. Ignore signals that were set to
39389         SIG_IGN.
39390         Reported by Paul Eggert.
39391
39392 2004-12-18  Bruno Haible  <bruno@clisp.org>
39393
39394         * doc/alloca.texi: New file.
39395         * doc/alloca-opt.texi: New file.
39396
39397 2004-12-17  Jim Meyering  <jim@meyering.net>
39398
39399         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
39400         Otherwise, install-sh could exit with improper exit status when
39401         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
39402
39403 2004-12-16  Simon Josefsson  <jas@extundo.com>
39404
39405         * tests/test-base64.c: Add license.
39406
39407 2004-12-15  Stepan Kasal  <address@hidden>
39408
39409         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
39410
39411 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
39412
39413         * modules/getcwd (Files): Add m4/d-ino.m4.
39414         Suggested by Mark D. Baushke.
39415
39416 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
39417
39418         * lib/getdate.y (textint): New member "negative".
39419         (time_zone_hhmm): New function.
39420         Expect 14 shift-reduce conflicts, not 13.
39421         (o_colon_minutes): New rule.
39422         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
39423         (yylex): Set the "negative" member of signed numbers.
39424
39425 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
39426
39427         * doc/getdate.texi (Time of day items, Time zone items):
39428         Describe new formats +00:00, UTC+00:00.
39429
39430 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
39431
39432         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
39433         spurious "-l"s.  Problem reported by Stepan Kasal.
39434
39435 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
39436
39437         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
39438         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
39439
39440 2004-12-04  Simon Josefsson  <jas@extundo.com>
39441
39442         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
39443         Vandoorselaere <yoann@prelude-ids.org>.
39444
39445 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
39446
39447         Changes imported from coreutils.
39448         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
39449         exist.
39450         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
39451
39452 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
39453
39454         Changes imported from coreutils.
39455         * lib/hard-locale.c: Assume <locale.h> exists.
39456         Include "strdup.h".
39457         (GLIBC_VERSION): New macro.
39458         (hard_locale): Assume setlocale exists.
39459         Rewrite to avoid #ifdef.
39460         Use strdup rather than malloc + strcpy.
39461         * lib/human.c: Assume <locale.h> exists.
39462         (human_readable): Assume localeconv exists.
39463
39464 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
39465
39466         * modules/hard-locale (Depends-on): Add strdup.
39467
39468 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
39469
39470         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
39471         convert T2, not T.  (Imported from libc.)
39472
39473 2004-11-30  Simon Josefsson  <jas@extundo.com>
39474
39475         * modules/restrict (License): Change to LGPL.
39476
39477 2004-11-30  Simon Josefsson  <jas@extundo.com>
39478
39479         * m4/restrict.m4: Add copyright and copying conditions.
39480
39481 2004-11-30  Simon Josefsson  <jas@extundo.com>
39482
39483         * m4/base64.m4: New file.
39484
39485 2004-11-30  Simon Josefsson  <jas@extundo.com>
39486
39487         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
39488         base64.
39489
39490         * tests/test-base64.c: New file.
39491
39492         * modules/base64: New file.
39493
39494 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
39495
39496         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
39497         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
39498
39499         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
39500
39501 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
39502
39503         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
39504         (__getcwd.c): Don't restore errno; glibc doesn't.
39505         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
39506         first, falling back to our code only if its results look suspicious.
39507         Ensure that the resulting buffer is only as large as necessary.
39508
39509         * lib/readutmp.c: Include readutmp.h first.
39510         Include <errno.h>, since readutmp.h no longer does that.
39511         * lib/readutmp.h: Don't include <errno.h>,
39512         <sys/param.h>, <time.h>; not needed to establish interface.
39513         (errno): Remove decl.
39514         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
39515         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
39516         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
39517
39518 2004-11-28  Simon Josefsson  <jas@extundo.com>
39519
39520         * lib/base64.h, base64.c: New file.
39521
39522 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
39523
39524         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
39525
39526 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
39527
39528         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
39529         (Depends-on): Remove pathmax, same.  Add mempcpy.
39530         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
39531         (Makefile.am): Append getcwd.h to lib_SOURCES.
39532         (Include): Add getcwd.h.
39533         (Maintainer): Change from Jim Meyering to "all, glibc",
39534         since getdate now uses intended-for-glibc code.
39535         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
39536         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
39537
39538 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
39539
39540         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
39541         HP's ANSI C compiler.
39542         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
39543         Declaring int functions causes warnings on some modern systems and
39544         shouldn't be needed to compile on ancient ones.
39545         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
39546         defined.
39547
39548         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
39549         with the following changes.
39550         (__set_errno): Parenthesize properly.
39551         Include <stdbool.h>.
39552         (MIN, MAX, MATCHING_INO): New macros.
39553         (__getcwd): Define with prototype, not K&R form.
39554         Use heuristics to allocate default buffer on stack if possible.
39555         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
39556         behavior, and to avoid the PATH_MAX limit when computing
39557         ../../../../...
39558         Use MATCHING_INO to compare inode number to file.
39559         Check for arithmetic overflow in size calculations.
39560         Fix bug in reallocation of dot array that caused getcwd to fail
39561         on directories nested deeper than 75.
39562         Be more careful about saving errno on error.
39563         Do not use realloc; use only free+malloc, as this is a bit
39564         more flexible and avoids a needless copy operation.
39565         Do not inspect st_dev and st_ino for symbolic links; POSIX
39566         doesn't specify the latter.
39567         Check for closedir errors.
39568         Avoid needless casts.
39569         Use "#ifdef weak_alias" around weak_alias, to be like other
39570         glibc code.
39571         The following changes to getcwd.c have effect only when used in
39572         gnulib; they have no effect inside glibc proper.
39573         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
39574         as alloca isn't used.
39575         (alloca, __alloca): Likewise.
39576         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
39577         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
39578         unconditionally, as gnulib assumes C89 or better.
39579         Do not include <sys/param.h>.
39580         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
39581         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
39582         better.
39583         (NULL) [!defined NULL]: Remove; we assume C89 or better.
39584         Include <dirent.h> in a way that is compatible with modern Autoconf.
39585         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
39586         New macros, if not already defined.
39587         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
39588         Use "_LIBC", not "defined _LIBC", for consistency.
39589         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
39590         a mempcpy module.
39591         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
39592         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
39593         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
39594         credit only to Jim Meyering and adjust the copyright dates.
39595         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
39596         <stdlib.h>, <unistd.h>, "pathmax.h".
39597         Instead, include "xgetcwd.h" (first) and "getcwd.h".
39598         (INITIAL_BUFFER_SIZE): Remove.
39599         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
39600
39601 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
39602
39603         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
39604         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
39605         Use the _ONCE methods, for efficiency.
39606         Check for fcntl.h.  In test program, include <errno.h>
39607         and <fcntl.h> if available.  Remove old K&R cruft from
39608         test program.  Check for common errors in GNU/Linux,
39609         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
39610         don't do AC_LIBOBJ, as that's getcwd.m4's job.
39611         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
39612         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
39613         name accordingly.
39614         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
39615         accommodate new getcwd.c.
39616         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
39617         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
39618         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
39619         that's all we need now.
39620
39621 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39622
39623         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
39624         argp-parse.c depends on getopt internals, that means we should
39625         always use our getopt, to be on the safe side.
39626         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
39627         order not to spoil the result of an eventual previous invocation
39628         of gl_GETOPT_SUBSTITUTE.
39629
39630 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39631
39632         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
39633         redefinition warnings. To avoid them, include the defines
39634         in `#if !defined __need_getopt ... #endif'. The only place
39635         where __getopt_argv_const is used is in definitions
39636         of getopt_long and getopt_long_only below, which are as well
39637         protected by `#ifndef __need_getopt'.
39638         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
39639         __need_getopt after including <stdio.h> and <unistd.h> These
39640         headers might have defined it.
39641
39642 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
39643
39644         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
39645
39646 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
39647
39648         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
39649         (futimens): New function, which uses futimes if available.
39650         (futimens, utimens): Support timespec==NULL, with same semantics
39651         as utime and utimens.
39652         * lib/utimens.h (futimens): New decl.
39653
39654 2004-11-23  Jim Meyering  <jim@meyering.net>
39655
39656         * lib/getopt_.h: Remove trailing blanks.
39657
39658 2004-11-23  Jim Meyering  <jim@meyering.net>
39659
39660         * lib/__fpending.c: Add comment.
39661
39662 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
39663
39664         * modules/canonicalize (Depends-on): Add xreadlink.
39665         Problem reported by James Youngman.
39666
39667 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
39668
39669         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
39670         New macros.
39671         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
39672         optopt): Use them instead of invoking ## directly; otherwise, the
39673         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
39674
39675 2004-11-19  Bruno Haible  <bruno@clisp.org>
39676
39677         * lib/strtok_r.c: Move comments from here...
39678         * lib/strtok_r.h: ... to here.
39679
39680 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
39681
39682         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
39683         implementations that mishandle size_t overflow.
39684
39685 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
39686
39687         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
39688         might fail.  Problem reported by Yoann Vandoorselaere.
39689         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
39690         implementations that mishandle size_t overflow.
39691
39692 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39693
39694         * modules/canon-host (Depends-on): Add strdup.
39695
39696 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39697
39698         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
39699
39700 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39701
39702         * lib/canon-host.c: Include "strdup.h".
39703         (canon_host): Use getaddrinfo if available, so that IPv6 works.
39704         Use strdup instead of malloc/strcpy to duplicate strings.
39705
39706         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
39707         (human_space_before_unit): New constant.
39708         * lib/human.c (human_readable): Support it.
39709
39710         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
39711         (xgetcwd): Set errno correctly when failing.
39712         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
39713         the failure is actually due to a PATH_MAX problem.
39714
39715         Further getopt changes to make it more likely that glibc will
39716         buy the changes back.
39717         * lib/getopt.c (POSIXLY_CORRECT): New constant.
39718         (getopt): Use it, so to preserve glibc semantic
39719         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
39720         when compiling for libc.
39721         * lib/getopt_.h (__getopt_argv_const): Bring it back.
39722         (getopt_long, getopt_long_only): Use it.
39723
39724         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
39725         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
39726         (getopt): Argv is now char * const *, as per standard.
39727         (_getopt_internal_r, _getopt_internal): Argv is now char **,
39728         not char *__getopt_argv_const *.
39729         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
39730         _getopt_long_only_r): Likewise.
39731         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
39732         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
39733         _getopt_long_r, _getopt_long_only_r): Likewise.
39734         * lib/getopt_.h (__getopt_argv_const): Remove.
39735         (getopt): Argv is now char * const *, as per standard.
39736
39737         * lib/getdate.y (tORDINAL): New token.
39738         (day, relunit): Allow it for relative times.
39739         (relative_time_table): Use tORDINAL for ordinals.
39740
39741 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39742
39743         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
39744         Document that "second" isn't allowed as an ordinal number.
39745
39746 2004-11-16  Jim Meyering  <jim@meyering.net>
39747
39748         * modules/closeout (Depends-on): Add fpending.
39749
39750 2004-11-15  Jim Meyering  <jim@meyering.net>
39751
39752         * lib/closeout.c: Include "__fpending.h" once again.
39753         Include <stdbool.h>.
39754         (close_stdout): Don't fail just because stdout was closed initially,
39755         since some programs don't write to stdout in the normal course of
39756         operation (other than --version and --help), and we don't want this
39757         function to make e.g. `touch file >&-' fail.
39758         But do fail if it was closed and someone has tried to write to it.
39759         E.g., `printf foo >&-' must fail.
39760
39761 2004-11-13  Jim Meyering  <jim@meyering.net>
39762
39763         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
39764
39765 2004-11-12  Simon Josefsson  <jas@extundo.com>
39766
39767         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
39768         small doc fix is still pending.
39769
39770 2004-11-11  Simon Josefsson  <jas@extundo.com>
39771
39772         * modules/strtok_r: New file.
39773
39774         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39775         strtok_r.
39776
39777 2004-11-11  Simon Josefsson  <jas@extundo.com>
39778
39779         * m4/strtok_r.m4: New file.
39780
39781         * m4/getopt.m4: Replace opterr.
39782
39783 2004-11-11  Simon Josefsson  <jas@extundo.com>
39784
39785         * lib/strtok_r.h, strtok_r.c: New file.
39786
39787 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
39788
39789         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
39790         of replacing opterr, getopt, etc.  This should handle the
39791         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
39792
39793 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
39794
39795         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
39796         we can stop lying to compilers about the constness of argv when we
39797         are compiled outside glibc.
39798         (getopt, getopt_long, getopt_long_only): Use it.
39799         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
39800         _getopt_internal, getopt): Likewise.
39801         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
39802         _getopt_long_only_r): Likewise.
39803         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
39804         _getopt_long_r, _getopt_long_only_r): Likewise.
39805
39806         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
39807         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
39808         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
39809         the other external symbols.
39810         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
39811         declaration, since the above renaming now works around collisions.
39812
39813 2004-11-11  Jim Meyering  <jim@meyering.net>
39814
39815         * lib/linebreak.c: Remove trailing blanks.
39816         * lib/alloca_.h: Likewise.
39817         * lib/acosl.c: Likewise.
39818         * lib/euidaccess.c: Likewise.
39819         * lib/allocsa.h: Likewise.
39820
39821 2004-11-10  Simon Josefsson  <jas@extundo.com>
39822
39823         * m4/getaddrinfo.m4: New file.
39824
39825 2004-11-10  Simon Josefsson  <jas@extundo.com>
39826
39827         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
39828
39829 2004-11-10  Simon Josefsson  <jas@extundo.com>
39830
39831         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39832         getaddrinfo.
39833
39834         * modules/getaddrinfo: New file.
39835
39836 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
39837
39838         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
39839
39840 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
39841
39842         * lib/mktime.c (SHR): New macro, which is a portable
39843         substitute for >> that should work even on Crays.
39844         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
39845         Problem reported by Mark D. Baushke in
39846         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
39847         * lib/getdate.y (SHR): Likewise.
39848         (tm_diff): Use it.
39849         * lib/strftime.c (SHR): Likewise.
39850         (tm_diff): Use it.
39851         * lib/quotearg.c (struct quoting_options): Use unsigned int for
39852         quote_these_too, so that right shifts are well defined.  All uses
39853         changed.
39854
39855 2004-11-10  Jim Meyering  <jim@meyering.net>
39856
39857         Ensure that no close failure goes unreported.
39858         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
39859         return early when it seems there's nothing to flush.
39860         Don't include __fpending.h.
39861
39862 2004-11-10  Jim Meyering  <jim@meyering.net>
39863
39864         * modules/closeout (Depends-on): Remove fpending.
39865
39866 2004-11-10  Jim Meyering  <jim@meyering.net>
39867
39868         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
39869
39870 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39871
39872         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
39873         gl_FUNC_STRFTIME.
39874         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
39875         and AC_REQUIRE when possible, to avoid duplicate checks.
39876         Check for <wchar.h>.
39877
39878 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39879
39880         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
39881
39882 2004-11-09  Bruno Haible  <bruno@clisp.org>
39883
39884         * m4/sockpfaf.m4: New file.
39885
39886 2004-11-05  Bruno Haible  <bruno@clisp.org>
39887
39888         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
39889         Reported by Mark D. Baushke <mdb@cvshome.org>.
39890
39891 2004-11-04  Bruno Haible  <bruno@clisp.org>
39892
39893         2004-09-11  Bruno Haible  <bruno@clisp.org>
39894                 * allocsa.valgrind: New file.
39895         2004-02-06  Bruno Haible  <bruno@clisp.org>
39896                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
39897                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
39898                 Reported by Christopher Seip <chris.seip@hp.com>.
39899
39900 2004-11-04  Bruno Haible  <bruno@clisp.org>
39901
39902         * modules/allocsa (Files): Add lib/allocsa.valgrind.
39903         (Makefile.am): Distribute it.
39904
39905 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
39906
39907         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
39908         with errno == ERANGE if the buffer is too small.
39909         Problem reported by Mark D. Baushke.
39910
39911 2004-11-03  Albert Chin  <china@thewrittenword.com>
39912             Paul Eggert  <eggert@cs.ucla.edu>
39913
39914         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
39915         equivalent, substitute $ac_type for equivalent type rather than
39916         blindly using uint32_t *always* which won't work if uint32_t is not
39917         available.  Define _UINT32_T to work around typedef of uint32_t if
39918         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
39919         2.5.1.
39920
39921 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39922
39923         * m4/jm-macros.m4: Sync from coreutils.
39924         (gl_MACROS): Check for mbrlen, for pathchk.
39925         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
39926
39927 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39928
39929         * lib/xreadlink.c (MAXSIZE): New macro.
39930         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
39931         size does not exceed MAXSIZE.  Avoid cast.
39932         As suggested by Mark D. Baushke in
39933         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
39934         if readlink fails with buffer size just under MAXSIZE, try again
39935         with MAXSIZE.
39936
39937 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39938
39939         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
39940
39941 2004-11-02  Derek R. Price  <derek@ximbiot.com>
39942         and  Paul Eggert  <eggert@cs.ucla.edu>
39943
39944         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
39945         (get_date): Overparenthesize to avoid GCC warning.
39946
39947 2004-11-02  Bruno Haible  <bruno@clisp.org>
39948
39949         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
39950         returns void.
39951
39952 2004-11-02  Bruno Haible  <bruno@clisp.org>
39953
39954         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
39955         function returns void.
39956
39957 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
39958
39959         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
39960         fflush_unlocked, flockfile, funlockfile, funlockfile,
39961         fputs_unlocked, putc_unlocked.
39962
39963 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
39964
39965         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
39966         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
39967         already declared.
39968
39969 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
39970
39971         * modules/getdate (Files): Add doc/getdate.texi.
39972         (Depends-on): Add setenv, xalloc.
39973
39974 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
39975
39976         * lib/getdate.y: Add support for TZ="foo" within a date string.
39977         Fix some bugs near time_t boundaries.  Reject dates with
39978         out-of-range components, e.g., "Sept 31".
39979         Include <stdlib.h>, "setenv.h", "xalloc.h".
39980         (ISDIGIT_LOCALE): Remove; unused.
39981         Note that the TZ and time functions used here are not reentrant.
39982         (mktime_ok, get_tz): New functions.
39983         (TZBUFSIZE): New constant.
39984         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
39985         This requires that we sometimes generate our own TZ="XXX..." setting.
39986
39987 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
39988
39989         * doc/getdate.texi: New file, from coreutils with modifications for
39990         the new TZ parsing.
39991
39992 2004-10-27  Derek R. Price  <derek@ximbiot.com>
39993
39994         * lib/mktime.c (not_equal_tm): Remove redundant check.
39995
39996 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39997
39998         * modules/regex (lib_SOURCES): Add regex.c.
39999         Reported by James Youngman in
40000         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
40001
40002 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40003
40004         * lib/getdate.y: Use Bison 1.875 features, and some minor
40005         code cleanups.  This change does not affect semantics.
40006         Don't include <stdlib.h>; no longer needed.
40007         Don't include unlocked-io.h; only the "#if TEST" code uses
40008         stdio, and performance isn't crucial there.
40009         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
40010         Bison 1.875 features as described below.
40011         All uses of "PC." replaced by "pc->".
40012         (YYSTYPE): Add a forward declaration.
40013         (yylex, yyerror): Use full prototypes in forward decls.
40014         Use "%pure-parser" rather than obsolescent "%pure_parser".
40015         Use %parse-param and %lex-param instead of obsolescent
40016         YYPARSE_PARAM and YYLEX_PARAM.
40017         (meridian_table, month_and_day_table, time_units_table,
40018         relative_time_table, time_zone_table, military_table,
40019         lookup_zone, lookup_word, get_date):
40020         Use NULL instead of 0 where appropriate.
40021         (to_hour): Avoid abort (), to avoid a dependency on
40022         stdlib.h.
40023         (yyerror, yylex): Now accepts parser_control * arg.
40024         (main) [TEST]: Use '\0' rather than 0 for char.
40025
40026 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
40027
40028         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
40029
40030 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
40031
40032         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
40033         It's now the caller's responsibility to handle the case where
40034         !HAVE_GETPAGESIZE && !defined getpagesize.
40035
40036         * lib/mktime.c (leapyear): Arg is long int, not int.
40037
40038 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
40039
40040         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
40041
40042 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
40043
40044         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
40045         missing.  Problem reported by James Youngman.
40046
40047 2004-10-16  Simon Josefsson  <jas@extundo.com>
40048
40049         * gnulib-tool: Fix comments.  Fix parse problem.
40050         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
40051
40052 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
40053
40054         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
40055         implementation of getopt_long.  Problem reported by Alexander Taler in:
40056         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
40057
40058 2004-10-15  Bruno Haible  <bruno@clisp.org>
40059
40060         * gnulib-tool: Untabify. Initialize supplied_libname.
40061         (func_usage): More homogenous output.
40062         (func_modules_transitive_closure, func_modules_to_filelist,
40063         func_emit_lib_Makefile_am): New functions.
40064         (func_import): New function, extracted from big case statement. Use
40065         func_get_license, func_modules_transitive_closure,
40066         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
40067         opt_lgpl. Don't use test -a, as it's not portable.
40068         (func_create_testdir): Use func_modules_transitive_closure,
40069         func_modules_to_filelist, func_emit_lib_Makefile_am.
40070
40071 2004-10-15  Bruno Haible  <bruno@clisp.org>
40072
40073         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
40074
40075 2004-10-15  Bruno Haible  <bruno@clisp.org>
40076
40077         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
40078         the portions belonging to each module.
40079         Suggested by Derek Robert Price <derek@ximbiot.com>.
40080
40081 2004-10-12  Simon Josefsson  <jas@extundo.com>
40082
40083         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
40084         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
40085         to real functions.
40086
40087 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40088
40089         * modules/vsnprintf: New file.
40090
40091 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40092
40093         * m4/vsnprintf.m4: New file.
40094
40095 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40096
40097         * lib/vsnprintf.h: New file.
40098         * lib/vsnprintf.c: New file.
40099
40100 2004-10-11  Bruno Haible  <bruno@clisp.org>
40101
40102         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
40103         vsnprintf.
40104
40105 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
40106
40107         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
40108
40109 2004-10-07  Bruno Haible  <bruno@clisp.org>
40110
40111         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
40112         fits into the provided buffer.
40113
40114 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
40115
40116         * lib/diacrit.c, diacrit.h: Add GPL notice.
40117
40118         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
40119         notice.
40120         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
40121         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
40122         This avoids a potential constant-folding bug.
40123
40124 2004-10-05  Bruno Haible  <bruno@clisp.org>
40125
40126         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
40127         for the declaration of strsep.
40128
40129 2004-10-05  Bruno Haible  <bruno@clisp.org>
40130
40131         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
40132
40133 2004-10-04  Simon Josefsson  <jas@extundo.com>
40134
40135         * modules/memmem: New file.
40136         * tests/test-memmem.c: New file.
40137         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
40138
40139 2004-10-04  Simon Josefsson  <jas@extundo.com>
40140
40141         * m4/memmem.m4: New file.
40142
40143 2004-10-04  Simon Josefsson  <jas@extundo.com>
40144
40145         * lib/memmem.h: New file.
40146         * lib/memmem.c: New file, taken from glibc.
40147
40148 2004-10-04  Simon Josefsson  <jas@extundo.com>
40149
40150         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
40151         '#ifdef USE_UNLOCKED_IO'.
40152
40153 2004-10-04  Simon Josefsson  <jas@extundo.com>
40154
40155         * config/srclist.txt: Add memmem from glibc.
40156
40157 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
40158
40159         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
40160
40161         * modules/argmatch, modules/argp, modules/closeout, modules/error,
40162         modules/exclude, modules/getdate, modules/getline,
40163         modules/getndelim2, modules/getpass, modules/getpass-gnu,
40164         modules/getusershell, modules/linebuffer, modules/md5,
40165         modules/mountlist, modules/posixtm, modules/readtokens,
40166         modules/readutmp, modules/regex, modules/sha1,
40167         modules/version-etc, modules/yesno:
40168         Remove dependency on unlocked-io.
40169
40170 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
40171
40172         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
40173
40174         * m4/unlocked-io.m4: Add copyright notice.
40175         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
40176
40177 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
40178
40179         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
40180         * lib/xmalloc.c (xmemdup): Likewise.
40181         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
40182         XFREE): Remove these long-obsolescent macros.
40183         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
40184         * lib/xstrdup.c: Remove.
40185
40186         * lib/regex.c (re_comp): Cast gettext return value to char *,
40187         Problem reported by Martin Neitzel via Mark D. Baushke.
40188
40189 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
40190
40191         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
40192         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
40193         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
40194         regex.c, sha1.c, version-etc.c, yesno.c:
40195         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
40196         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
40197         the includer's responsibility.
40198
40199         Sync from coreutils.
40200
40201         * lib/modechange.c (mode_compile): Don't decrement a pointer that
40202         points to the start of a string, as the C Standard says the
40203         resulting behavior is undefined.
40204
40205         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
40206         simple -> simple_backups, numbered_existing ->
40207         numbered_existing_backups, numbered -> numbered_backups
40208         to avoid shadowing problems.  All uses changed.
40209         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
40210         * lib/backupfile.c (check_extension, numbered_backup):
40211         Rename locals to avoid shadowing 'basename'.
40212         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
40213         once.
40214
40215         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
40216         * lib/.cvsignore: Add getopt.h.
40217
40218 2004-10-04  Bruno Haible  <bruno@clisp.org>
40219
40220         * modules/README: New file.
40221         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
40222         not a module.
40223
40224 2004-10-02  Jim Meyering  <jim@meyering.net>
40225
40226         * lib/dirfd.h, getpagesize.h: Add copyright notice.
40227
40228 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40229
40230         * modules/strsep: New file.
40231
40232 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40233
40234         * m4/strsep.m4: New file.
40235
40236 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
40237
40238         * lib/strsep.h: New file.
40239         * lib/strsep.c: New file.
40240
40241 2004-10-01  Simon Josefsson  <jas@extundo.com>
40242
40243         * lib/snprintf.c (snprintf): Handle size==0.
40244
40245 2004-10-01  Simon Josefsson  <jas@extundo.com>
40246             Bruno Haible  <bruno@clisp.org>
40247
40248         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
40249         (snprintf): Declare 'args'.
40250
40251 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
40252
40253         * lib/snprintf.c: Remove comments as to why each header is needed.
40254
40255 2004-10-01  Bruno Haible  <bruno@clisp.org>
40256
40257         * MODULES.html.sh: Add strsep.
40258
40259 2004-09-30  Simon Josefsson  <jas@extundo.com>
40260
40261         * modules/snprintf: New file.
40262
40263 2004-09-30  Simon Josefsson  <jas@extundo.com>
40264
40265         * m4/snprintf.m4: New file.
40266
40267 2004-09-30  Simon Josefsson  <jas@extundo.com>
40268
40269         * lib/snprintf.h, lib/snprintf.c: New files.
40270
40271 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
40272
40273         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
40274         (hol_entry_help): Never translate an empty string.
40275         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
40276         * lib/argp.h (OPTION_NO_TRANS): New option.
40277
40278 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
40279
40280         * modules/argp (Maintainer): Replace Simon Josefsson
40281         by Sergey Poznyakoff.
40282
40283 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
40284
40285         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
40286         changes merged back into glibc.
40287
40288 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
40289
40290         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
40291
40292 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
40293
40294         * lib/xvasprintf.c: Include xalloc.h.
40295         (xvasprintf): Use xalloc_die, not xmalloc_die.
40296
40297 2004-09-29  Bruno Haible  <bruno@clisp.org>
40298
40299         * modules/alloca-opt: New file, derived from modules/alloca.
40300         * modules/allocsa: Depend on alloca-opt instead of alloca.
40301         * modules/setenv: Likewise.
40302         * modules/vasnprintf: Likewise.
40303         * MODULES.html.sh: Add alloca-opt.
40304
40305 2004-09-28  Simon Josefsson  <jas@extundo.com>
40306
40307         * gnulib-tool: New parameter --lgpl, to asseert that modules are
40308         LGPL, and to replace license template from GPL to LGPL.
40309
40310 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
40311
40312         * modules/dummy: Change license to LGPL.
40313
40314 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
40315
40316         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
40317
40318 2004-09-24  Simon Josefsson  <jas@extundo.com>
40319
40320         * modules/minmax (License): Change from GPL to LGPL.
40321
40322 2004-09-23  Simon Josefsson  <jas@extundo.com>
40323
40324         * gnulib-tool (--import): Typo.
40325
40326 2004-09-23  Simon Josefsson  <jas@extundo.com>
40327
40328         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
40329
40330 2004-09-22  Bruno Haible  <bruno@clisp.org>
40331
40332         * modules/*: Add 'License' field.
40333         * gnulib-tool: Accept --extract-license option.
40334         (func_get_license): New function.
40335
40336 2004-09-21  Bruno Haible  <bruno@clisp.org>
40337
40338         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
40339         Reported by Simon Josefsson.
40340
40341 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
40342
40343         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
40344         gl_AC_TYPE_LONG_LONG.
40345
40346 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
40347
40348         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
40349
40350 2004-09-18  Simon Josefsson  <jas@extundo.com>
40351         and  Paul Eggert  <eggert@cs.ucla.edu>
40352
40353         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
40354         calls with autoreconf.  Define GL_LIB.
40355
40356 2004-09-14  Karl Berry  <karl@gnu.org>
40357
40358         * config/srclist.txt: unsync setenv.c, sigh.
40359
40360 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
40361
40362         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
40363         Problem reported by Bruno Haible in:
40364         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
40365
40366 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
40367
40368         * config/srclist.txt: Comment out argp-pvh.c.
40369
40370 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
40371
40372         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
40373         in case some system header has #define'd it.  Problem reported by
40374         Soeren D. Schulze in
40375         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
40376
40377 2004-09-09  Karl Berry  <karl@gnu.org>
40378
40379         * regex.[ch]: delete from the root.  These were supposed to be
40380                 synced with emacs cvs, but this has not happened for about
40381                 a year, and anyway nothing else uses emacs regex.[ch].
40382                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
40383                 lib/regex[.ch] is untouched.
40384
40385 2004-09-09  Bruno Haible  <bruno@clisp.org>
40386
40387         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
40388
40389 2004-09-09  Bruno Haible  <bruno@clisp.org>
40390
40391         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
40392         modifications.
40393         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
40394
40395 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
40396
40397         * modules/xvasprintf: New file.
40398         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
40399
40400 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
40401
40402         * lib/xvasprintf.h: New file.
40403         * lib/xvasprintf.c: New file.
40404         * lib/xasprintf.c: New file.
40405
40406 2004-09-08  Bruno Haible  <bruno@clisp.org>
40407
40408         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
40409
40410 2004-09-08  Bruno Haible  <bruno@clisp.org>
40411
40412         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
40413         length is > INT_MAX.
40414         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
40415         more.
40416
40417 2004-09-08  Bruno Haible  <bruno@clisp.org>
40418
40419         * lib/stdint_.h: New file, taken from GNU clisp.
40420
40421 2004-09-08  Bruno Haible  <bruno@clisp.org>
40422             Oskar Liljeblad  <oskar@osk.mine.nu>
40423
40424         * modules/stdint: New file.
40425         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
40426
40427 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40428
40429         Import from coreutils.
40430         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
40431         strings on unbounded length.  alloca's performance benefits aren't
40432         that important here.
40433         (V_STRDUP): Remove.
40434         (parse_with_separator): New function, with most of the internals
40435         of the old parse_user_spec.  Allow user to omit both user and group,
40436         for compatibility with FreeBSD.
40437         Clone only the user name, not the entire spec.
40438         Do not set *uid, *gid unless entirely successful.
40439         Avoid memory leak in some failing cases.
40440         Fix regression for USER.GROUP reported by Dmitry V. Levin in
40441         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
40442         (parse_user_spec): Rewrite to use parse_with_separator.
40443
40444 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40445
40446         * modules/userspec: Don't depend on alloca.
40447
40448 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40449
40450         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
40451
40452 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
40453
40454         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
40455         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
40456         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
40457
40458 2004-08-16  Simon Josefsson  <jas@extundo.com>
40459
40460         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
40461         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
40462         Add --dry-run for --import.
40463         Let user provided command line parameters override configure.ac
40464         settings.
40465
40466 2004-08-12  Simon Josefsson  <jas@extundo.com>
40467
40468         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
40469         as discussed with Paul Eggert in threads rooted at
40470         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
40471         and
40472         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
40473         Before, the test was empty, and relied on ELIDE_CODE in source
40474         code.)
40475         (gl_PREREQ_GETOPT): New macro.
40476         (gl_GETOPT): Use them.
40477
40478 2004-08-12  Simon Josefsson  <jas@extundo.com>
40479
40480         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
40481         * lib/getopt_.h: Renamed from getopt.h.
40482
40483 2004-08-12  Simon Josefsson  <jas@extundo.com>
40484
40485         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
40486         Change default library name from libfoo to libgnu.
40487         Now, if you have a configure.ac that says:
40488                 gl_SOURCE_BASE(gl)
40489                 gl_M4_BASE(gl/m4)
40490                 gl_MODULES(error getopt etcetera)
40491                 gl_INIT
40492         you can import all you need by running:
40493                 ../gnulib/gnulib-tool --import
40494
40495         * modules/getopt (Files): Rename getopt.h to getopt_.h.
40496         (Makefile.am): Rewrite, use logic from argz.
40497         (Include): Use <getopt.h> instead of "getopt.h".
40498
40499 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40500
40501         * modules/argp (Files): Add m4/unlocked-io.m4.
40502         (Depends-on): Add extensions.
40503
40504 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40505
40506         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
40507         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
40508         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
40509         Check for program_invocation_name, program_invocation_short_name,
40510         flockfile, funlockfile, features.h, _getopt_long_only_r.
40511
40512 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40513
40514         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
40515         its complicated substitute.
40516         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
40517         and program_invocation_name.
40518         (__argp_basename) [!_LIBC]: Remove; the only use was
40519         replaced by its body.
40520         (__argp_short_program_name): Change condition from
40521         !defined __argp_short_program_name to
40522         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
40523         to match argp-namefrob.h.
40524         (__argp_failure): Don't assume strerror_r returns char *.
40525         * lib/argp-parse.c (N_): Define unconditionally.
40526         (argp_default_options): Fill out initializers with 0 to avoid
40527         gcc warnings.
40528
40529 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40530
40531         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
40532         getopt1.c.
40533
40534 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
40535
40536         Merge from coreutils.
40537
40538         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
40539
40540         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
40541         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
40542
40543 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
40544
40545         Merge from coreutils.
40546
40547         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
40548         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
40549         for Reliant Unix 5.43.
40550
40551         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
40552         (union fooround): Use uintmax_t, not long int.
40553         The rest is a merge from libc:
40554         [defined _LIBC]: Include <shlib-compat.h>.
40555         (_obstack) [defined _LIBC]: Remove after 2.3.4.
40556
40557         * lib/settime.c (settime): Recode to avoid warning with
40558         Sun Forte C 6U2.
40559
40560         * lib/strverscmp.c: Convert to UTF-8.
40561
40562 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
40563
40564         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
40565         m4/uintmax_t.m4.
40566
40567 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
40568
40569         * modules/xalloc-die: New file.
40570         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
40571
40572         * modules/md5 (Files): Add m4/uint32_t.m4.
40573         * modules/sha1: Renamed from modules/sha.
40574         (Files):
40575         Rename lib/sha.h to lib/sha1.h.
40576         Rename lib/sha.c to lib/sha1.c.
40577         Rename m4/sha.m4 to m4/sha1.m4.
40578         (lib_SOURCES): Likewise.
40579         (configure.ac): Rename gl_SHA to gl_SHA1.
40580         (Include): sha.h -> sha1.h.
40581
40582 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
40583
40584         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
40585         * m4/sha1.m4: Renamed from sha.m4.
40586         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
40587
40588 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
40589
40590         * lib/obstack.h (obstack_empty_p):
40591         Don't assume that chunk->contents is suitably aligned.
40592         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
40593         Likewise. Problem reported by Benno in
40594         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
40595
40596         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
40597         readable.  This could be improved further but it'd take some work.
40598
40599 2004-08-08  Simon Josefsson  <jas@extundo.com>
40600
40601         * modules/xgethostname (Depends-on): Remove exit and error (not
40602         used).
40603
40604         * modules/getpass-gnu: Add getpass.h.
40605         (Depends-on): Add stdbool.
40606         * modules/getpass: Add getpass.h.
40607
40608 2004-08-08  Simon Josefsson  <jas@extundo.com>
40609
40610         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
40611         Check getpass declaration.
40612
40613 2004-08-08  Simon Josefsson  <jas@extundo.com>
40614
40615         * lib/xgethostname.c: Don't include error.h (not used).
40616
40617         * lib/getpass.h: Add.
40618         * lib/getpass.c: Include getpass.h first.
40619
40620 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
40621
40622         * lib/xalloc-die.c: New file.
40623         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
40624         All uses removed.
40625         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
40626         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
40627         xalloc-die.c.
40628         (_, N_, xalloc_die): Move to xalloc-die.c.
40629         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
40630         so that we needn't mess with xalloc_msg_memory_exhausted.
40631
40632         * lib/sha1.h: Renamed from sha.h.
40633         (SHA1_H): Renamed from _SHA_H.
40634         (sha1_ctx): Renamed from sha_ctx.
40635         (sha1_init_ctx): Renamed from sha_init_ctx.
40636         (sha1_process_block): Renamed from sha_process_block.
40637         (sha1_process_bytes): Renamed from sha_process_bytes.
40638         (sha1_finish_ctx): Renamed from sha_finish_ctx.
40639         (sha1_read_ctx): Renamed from sha_read_ctx.
40640         (sha1_stream): Renamed from sha_stream.
40641         (sha1_buffer): Renamed from sha_buffer.
40642         * lib/sha1.c: Likewise; renamed from sha.c.
40643         Do not include <sys/types.h>.
40644         Include <stddef.h> rather than <stdlib.h>.
40645
40646 2004-08-08  Bruno Haible  <bruno@clisp.org>
40647
40648         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
40649         FILESYSTEM_PREFIX_LEN.
40650         * lib/progreloc.c: Likewise.
40651         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
40652
40653 2004-08-06  Simon Josefsson  <jas@extundo.com>
40654
40655         * modules/progname (Depends-on): Don't depend on stdbool.
40656
40657 2004-08-06  Simon Josefsson  <jas@extundo.com>
40658
40659         * modules/getsubopt: New file.
40660         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40661         getsubopt.
40662
40663 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40664
40665         More merge from coreutils.
40666
40667         * m4/utimens.m4, m4/utimecmp.m4: New files.
40668         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
40669         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
40670         prereq.m4, sha.m4: Import changes from coreutils.
40671
40672 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40673
40674         More merge from coreutils.
40675         * modules/raise, modules/readtokens0, modules/utimens:
40676         * modules/utimecmp, module/xnanosleep: New files.
40677         * modules/strftime: Add lib/strftime.h.
40678         Change include from <time.h> to "strftime.h".
40679         * modules/yesno: Add lib/yesno.h.
40680         * modules/backupfile: Remove lib/addext.c.
40681         * modules/euidaccess: Add stat-macros.h.
40682         * modules/canonicalize, modules/euidaccess,
40683         modules/filemode, modules/lchown, modules/makepath,
40684         modules/rmdir, modules/stat: Likewise.
40685
40686 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40687
40688         Merge from tar.
40689         * lib/argp-help.c (make_hol, hol_append): Don't assume that
40690         SIZE_MAX is a valid preprocessor constant.
40691         (__argp_basename): Change from "#ifndef _LIBC"
40692         to "#ifndef __argp_short_program_name", so that
40693         we don't compile these functions for tar.
40694
40695         More merges from coreutils.
40696         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
40697         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
40698         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
40699         * lib/addext.c: Remove; no longer needed.
40700         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
40701         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
40702         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
40703         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
40704         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
40705         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
40706         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
40707         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
40708         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
40709         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
40710         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
40711         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
40712         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
40713         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
40714         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
40715         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
40716         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
40717         Import changes from coreutils.
40718
40719 2004-08-05  Simon Josefsson  <jas@extundo.com>
40720
40721         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
40722
40723 2004-08-05  Simon Josefsson  <jas@extundo.com>
40724
40725         * m4/getsubopt.m4: New file.
40726
40727 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
40728
40729         Merge from coreutils.
40730
40731         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
40732         * m4/getcwd-path-max.m4: New files.
40733
40734         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
40735         FILESYSTEM_PREFIX_LEN ->
40736         FILE_SYSTEM_PREFIX_LEN.
40737         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
40738         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
40739         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
40740         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
40741
40742         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
40743         prerequisite modules now handle the DOS stuff.
40744         Don't check for unistd.h.
40745
40746 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
40747
40748         Merge from coreutils.
40749
40750         * lib/.gdb-history: Remove; this doesn't belong here.
40751
40752         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
40753         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
40754         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
40755         * lib/getcwd.c: New files.
40756
40757         * lib/dirname.h: Include <stdbool.h>.
40758         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
40759         for consistency with POSIX terminology.  All uses changed.
40760         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
40761         (strip_trailing_slashes): Use bool for booleans.
40762         * lib/stripslash.c (strip_trailing_slashes): Likewise.
40763
40764         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
40765         sometimes returns a positive errno value even when it succeeds.
40766         (print_errno_message) [!LIBC]: Fall back on strerror if
40767         __strerror_r fails.
40768
40769         * lib/path-concat.c (mempcpy): Don't define if a system header defines
40770         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
40771         (longest_relative_suffix): New function.
40772         (path_concat): Use it.  Assume first argument is not NULL.
40773         Port to DOS.  Omit redundant separators.
40774         Report an error instead of returning NULL.
40775         Use mempcpy instead of memcpy.
40776         (xpath_concat): Remove: not declared or used.
40777
40778         * lib/same.h: Include <stdbool.h>
40779         (same_name): Return bool, not int.
40780         * lib/same.c (same_name): Likewise.
40781         (errno): Don't declare; we assume C89 or better now.
40782
40783         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
40784         if not already defined.
40785
40786         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
40787         * lib/dup-safer.c (errno): Likewise.
40788
40789 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
40790
40791         Merge from coreutils.
40792         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
40793         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
40794         * modules/path-concat: Don't depend on strdup.
40795
40796 2004-08-03  Simon Josefsson  <jas@extundo.com>
40797
40798         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
40799         * lib/progname.h: Don't include stdbool.h.
40800
40801 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
40802
40803         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
40804         * MODULES.html.sh (func_all_modules): Remove fatal.
40805
40806 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
40807
40808         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
40809
40810 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
40811
40812         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
40813         working.
40814
40815 2004-08-02  Simon Josefsson  <jas@extundo.com>
40816
40817         * lib/getsubopt.h: New file, with comments from Bruno Haible.
40818         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
40819         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
40820
40821 2004-08-01  Simon Josefsson  <jas@extundo.com>
40822
40823         * lib/xgetdomainname.c: Include stdlib.h, for free().
40824
40825 2004-07-19  Bruno Haible  <bruno@clisp.org>
40826
40827         * MODULES.html.sh (func_all_modules): Add dummy.
40828
40829 2004-07-16  Simon Josefsson  <jas@extundo.com>
40830
40831         * modules/dummy: New file.
40832
40833 2004-07-16  Simon Josefsson  <jas@extundo.com>
40834
40835         * lib/dummy.c: New file.
40836
40837 2004-07-16  Bruno Haible  <bruno@clisp.org>
40838
40839         * lib/backupfile.h: Add extern "C" for C++.
40840         * lib/closeout.h: Likewise.
40841         * lib/copy-file.h: Likewise.
40842         * lib/findprog.h: Likewise.
40843         * lib/full-write.h: Likewise.
40844         * lib/pathname.h: Likewise.
40845         * lib/progname.h: Likewise.
40846         * lib/stpcpy.h: Likewise.
40847         * lib/stpncpy.h: Likewise.
40848         * lib/strcase.h: Likewise.
40849         * lib/strstr.h: Likewise.
40850         * lib/xalloc.h: Likewise.
40851
40852         * lib/mbswidth.h: Add extern "C" for C++.
40853         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
40854
40855 2004-07-13  Robert Millan  <robertmh@gnu.org>
40856
40857         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
40858
40859 2004-07-09  Simon Josefsson  <jas@extundo.com>
40860
40861         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
40862         failed without this.)
40863
40864 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
40865
40866         * modules/chown (Files): Add lib/fchown-stub.c, since
40867         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
40868
40869 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
40870
40871         * lib/fchown-stub.c: New file.
40872
40873 2004-06-24  Jim Meyering  <jim@meyering.net>
40874
40875         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
40876
40877 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40878
40879         * modules/argz: Omit "#include".
40880
40881         * MODULES.html.sh (func_all_modules): Add calloc, to match
40882         2004-06-01 addition of calloc module.
40883
40884 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40885
40886         * m4/argz.m4: New file, which is autoupdated from libtool.
40887
40888 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40889
40890         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
40891         libtool.
40892
40893 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40894
40895         * config/srclist-update: Don't insist on "USA." before the
40896         close-comment, as libtool omits the period and puts the */ on a
40897         separate line.
40898         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
40899         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
40900
40901 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
40902
40903         * modules/argz: New file.
40904         * MODULES.html.sh (func_all_modules): Add argz.
40905
40906 2004-06-12  Jim Meyering  <jim@meyering.net>
40907         and  Paul Eggert  <eggert@cs.ucla.edu>
40908
40909         * modules/hash (Files): Add lib/xalloc.h.
40910         * modules/pipe (Depends-on): Add wait-process.
40911         * modules/stat (Depends-on): Add xalloc.
40912         * modules/userspec (Files): Add lib/userspec.h.
40913         * modules/xstrto
40914
40915         Upgrade from gettext-0.13.
40916         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
40917         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
40918         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
40919
40920 2004-06-10  Jim Meyering  <jim@meyering.net>
40921
40922         * lib/calloc.c: New file.
40923
40924 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
40925
40926         * lib/getdate.y (yylex): Allow space between sign and number.
40927         Problem reported by Dan Jacobson.
40928
40929 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
40930
40931         Merge from coreutils CVS.
40932
40933         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
40934         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
40935         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
40936         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
40937         xstrtol.m4: Fix copyright date and/or serial number.
40938
40939         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
40940         See if we need an fchown replacement.
40941         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
40942         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
40943         and use the replacement function if we detect either defect.
40944
40945         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
40946         gl_UTIMECMP.
40947
40948 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
40949         and  Jim Meyering  <jim@meyering.net>
40950
40951         Merge from coreutils CVS.
40952
40953         * lib/stat-macros.h: New file, with contents from file-type.h
40954         and coreutils' system.h.
40955         * lib/file-type.c: Include "stat-macros.h".
40956         * lib/file-type.h (file_type): Move all macro definitions to new file,
40957         stat-macros.h.
40958
40959         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
40960         Wrap old code with this conditional.
40961         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
40962         function that does not dereference symlinks.
40963         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
40964
40965         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
40966         dependency problems.
40967         (xreadlink): Accept new arg SIZE, for efficiency.
40968         All decls and uses changed.
40969         * lib/xreadlink.h: Include <stddef.h>, for size_t.
40970
40971         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
40972         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
40973
40974         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
40975         sysexits.h.
40976
40977 2004-06-01  Jim Meyering  <jim@meyering.net>
40978
40979         * m4/calloc.m4: New file.
40980
40981 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
40982
40983         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
40984         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
40985         Also, fix a typo in a diagnostic.
40986
40987 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
40988
40989         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
40990         or AC_FUNC_REALLOC.
40991
40992 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
40993
40994         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
40995         macros to be defined.
40996         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
40997         the allocator returns NULL because the requested size is zero.
40998
40999 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
41000
41001         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
41002         var.  Add comment explaining why libc still defines it.  This
41003         merges the following patch from glibc:
41004         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
41005
41006 2004-05-20  Andreas Schwab  <schwab@suse.de>
41007
41008         * m4/free.m4: Replace free if it not known to work, not the other
41009         way round.
41010
41011 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
41012
41013         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
41014         present in glibc since revision 1.1 of this file.
41015         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
41016         obstack_alignment_mask, obstack_alloc, obstack_base,
41017         obstack_blank, obstack_blank_fast, obstack_chunk_size,
41018         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
41019         obstack_grow0, obstack_init, obstack_int_grow,
41020         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
41021         obstack_next_free, obstack_object_size, obstack_ptr_grow,
41022         obstack_ptr_grow_fast, obstack_room): Remove declarations of
41023         nonexistent functions.
41024
41025 2004-05-18  Karl Berry  <karl@gnu.org>
41026
41027         * config/srclist.txt: break link for vasnprintf.c.
41028
41029 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
41030
41031         Port obstack to the AS/400, where pointers are 16 bytes wide and
41032         you cannot cast an integer to a valid pointer.  This patch is
41033         currently waiting to be integrated into glibc; see
41034         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
41035
41036         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
41037         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
41038         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
41039         (struct obstack): temp member is now a union of a pointer and
41040         an integer, instead of an integer.  All integer uses changed.
41041         This does not affect the physical layout of struct obstack,
41042         except on hosts (like the AS/400) where the size or alignment of
41043         void * is greater than that of ptrdiff_t.
41044         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
41045         __STDC__)]: Store temporary in pointer member of union, not
41046         integer member.
41047         * lib/obstack.c: Include <stddef.h>, for offsetof.
41048         (struct fooalign): Remove; it doesn't need a name.
41049         (union fooround): Change double to long double, and add void *.
41050         (DEFAULT_ALIGNMENT): Use offsetof to compute.
41051         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
41052         not a macro.  Hence the values are always int; so remove all
41053         casts-to-int in uses.
41054
41055 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
41056
41057         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
41058         we can get this patch merged into glibc.
41059
41060 2004-05-17  Derek R. Price  <derek@ximbiot.com>
41061             Paul Eggert  <eggert@cs.ucla.edu>
41062
41063         * m4/argp: Depend on alloca.
41064
41065 2004-05-17  Derek R. Price  <derek@ximbiot.com>
41066             Paul Eggert  <eggert@cs.ucla.edu>
41067
41068         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
41069         freecoding.
41070
41071 2004-05-17  Bruno Haible  <bruno@clisp.org>
41072
41073         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
41074         precision that consists of a '.' followed by an empty digit string.
41075         Patch by Tor Lillqvist <tml@iki.fi>.
41076
41077 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
41078
41079         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
41080         for backward compatibility with older code.  We need our own
41081         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
41082         it under some other name, and our alloca.h will define it.
41083
41084 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
41085             Derek Price  <derek@ximbiot.com>
41086
41087         * lib/alloca.c: Include <alloca.h>, to get our interface.
41088         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
41089         include <alloca.h> first.  Use C89 prototype for alloca; this
41090         requires including <stddef.h> for size_t.  Use extern "C" if C++.
41091         Use #elif for simplicity, since we can assume C89 now.
41092         Don't try to source the system alloca.h since it will not be found
41093         and to prevent recursively including its replacement.
41094         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
41095         * lib/regex.c: Likewise.
41096
41097 2004-05-16  Derek Price  <derek@ximbiot.com>
41098             Paul Eggert  <eggert@cs.ucla.edu>
41099
41100         getline cleanup.  This changes the getndelim2 API: both order of
41101         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
41102         no delimiter).
41103
41104         * lib/getline.c: Don't include stddef.h or stdio.h, since our
41105         interface does that.
41106         (getline): Always use getdelim, so that we don't have two
41107         copies of this code.
41108         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
41109         if available.
41110         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
41111         (GETNDELIM2_MAXIMUM): New macro.
41112         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
41113         instead of the old practice of delim2==0.  All callers changed.
41114         Return -1 on overflow, instead of returning junk.
41115         Do not set *linesize unless allocation succeeds.
41116         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
41117         that we include sys/types.h.
41118         * lib/getnline.h: Likewise.
41119         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
41120         (getndelim2): Reorder arguments.
41121         * lib/getnline.c (getnline, getndelim):
41122         Don't discard the NMAX argument.
41123         (getnline): Invoke getndelim, to avoid code duplication.
41124         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
41125         of (size_t) -1 by callers of the getnline family.
41126
41127 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
41128
41129         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
41130         Check for gettimeofday.
41131         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
41132         Check for settimeofday, stime.
41133
41134 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
41135
41136         * lib/nanosleep.c (suspended): Change its type from int to
41137         sig_atomic_t volatile.
41138         (first_call): Make it private to rpl_nanosleep, and have it
41139         be zero initially as that's a bit faster.
41140         (my_usleep): Round up fractional times instead of truncating them,
41141         as this is the usual meaning for 'sleep'.
41142
41143         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
41144         doesn't work.
41145         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
41146         (ENOSYS): Define if not defined.
41147         (settime): Fall back on stime if it exists and settimeofday fails.
41148         But don't bother with fallbacks if a method fails with errno == EPERM.
41149
41150 2004-05-11  Jim Meyering  <jim@meyering.net>
41151
41152         Prior to this change, the save_cwd caller required read access to the
41153         current directory on most systems (ones with the fchdir function).
41154
41155         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
41156         fails, try write-only, and finally, resort to using xgetcwd.
41157
41158 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
41159
41160         * lib/obstack.c, obstack.h: Import changes from libc.
41161
41162 2004-04-28  Bruno Haible  <bruno@clisp.org>
41163
41164         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
41165         also implicitly appends .exe to executables.
41166         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
41167         accepts Windows pathnames.
41168         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
41169         Treat Cygwin like Windows, since it now accepts Windows pathnames.
41170         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
41171         Treat Cygwin like Windows, since it now accepts Windows pathnames.
41172         Reported by Derek Robert Price <derek@ximbiot.com>.
41173
41174 2004-04-21  Karl Berry  <karl@gnu.org>
41175
41176         * config/srclist.txt (localcharset.c): break sync.
41177
41178 2004-04-20  Paul Eggert  <eggert@twinsun.com>
41179
41180         * m4/host-os.m4: Add a copyright notice.
41181
41182 2004-04-20  Jim Meyering  <jim@meyering.net>
41183
41184         Change UTILS_ to gl_ in AC_DEFINE'd names.
41185         Change utils_- and jm_-prefixed variables, too.
41186         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
41187         UTILS_FUNC_MKDIR_TRAILING_SLASH.
41188         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
41189
41190         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
41191         Don't emit trailing blanks.
41192         Also rename jm_-prefixed variables to have gl_ prefix.
41193
41194         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
41195         Also rename jm_-prefixed variables to have gl_ prefix.
41196
41197         * m4/jm-macros.m4: Reflect the renamings.
41198         * m4/prereq.m4: Likewise.
41199
41200 2004-04-20  Jim Meyering  <jim@meyering.net>
41201
41202         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
41203         memory.
41204
41205 2004-04-20  Jim Meyering  <jim@meyering.net>
41206             Bruno Haible  <bruno@clisp.org>
41207
41208         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
41209         memory when realloc fails.
41210
41211 2004-04-19  Jim Meyering  <jim@meyering.net>
41212
41213         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
41214         now that readutmp.c may call `free (0)'.
41215
41216 2004-04-19  Bruno Haible  <bruno@clisp.org>
41217
41218         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
41219         * m4/inttypes_h.m4: Likewise.
41220         * m4/stdint_h.m4: Likewise.
41221         * m4/intmax_t.m4: Likewise.
41222         * m4/uintmax_t.m4: Likewise.
41223
41224 2004-04-18  Jim Meyering  <jim@meyering.net>
41225
41226         * m4/prereq.m4: Don't forbid jm_ prefix.
41227
41228         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
41229         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
41230         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
41231         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
41232         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
41233         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
41234         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
41235         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
41236         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
41237         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
41238         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
41239         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
41240         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
41241         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
41242         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
41243         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
41244         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
41245         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
41246         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
41247
41248 2004-04-18  Jim Meyering  <jim@meyering.net>
41249
41250         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
41251         failure, don't leak memory and do call END_UTMP_ENT.
41252
41253 2004-04-16  Jim Meyering  <jim@meyering.net>
41254
41255         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
41256         coreutils' stat program.
41257         (gl_PREREQ): Don't require jm_PREREQ_STAT.
41258
41259 2004-04-11  Paul Eggert  <eggert@twinsun.com>
41260
41261         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
41262         C89.
41263         (CHAR_BIT): Remove, since we assume C89.
41264         Include <stdint.h> if available, as per current Autoconf CVS advice.
41265
41266 2004-03-31  Jim Meyering  <jim@meyering.net>
41267
41268         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
41269         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
41270         * m4/xalloc.m4: Likewise.
41271
41272 2004-03-30  Paul Eggert  <eggert@twinsun.com>
41273
41274         Merge from coreutils.
41275
41276         * m4/inttostr.m4: New file.
41277         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
41278         Require AM_STDBOOL_H and gl_TIMESPEC instead.
41279         Require gl_CLOCK_TIME.
41280         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
41281
41282 2004-03-30  Paul Eggert  <eggert@twinsun.com>
41283
41284         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
41285         not bool, to be more consistent with Unix conventions.
41286         Suggested by Bruno Haible.
41287
41288         Merge from coreutils.
41289
41290         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
41291         * lib/umaxtostr.c: New files.
41292
41293         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
41294         the usual <time.h> dance.
41295         (get_date): Change signature to support fractional time stamps.
41296         All callers changed.
41297         * lib/getdate.y: Include "getdate.h" first, as we can now
41298         assume C89 and don't need to worry about 'const'.
41299         Similarly, include "unlocked-io.h" near start, not in middle.
41300         Include <limits.h>.
41301         (textint.value): Use long int rather than int.
41302         (textint.digits): Use size_t rather than int.
41303         (BILLION, LOG10_BILLION): New constants.
41304         (parser_control): New member rel_ns.  Members day_ordinal,
41305         time_zone, month, day, hour, minutes, rel_year, rel_month,
41306         rel_day, rel_hour, rel_minutes, rel_seconds
41307         are now long int, not int.  Member seconds is now struct timespec,
41308         not int.  New member timespec_seen.  Members dates_seen, days_seen,
41309         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
41310         not int.
41311         (%union.intval): Now long int, not int.
41312         New member timespec.
41313         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
41314         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
41315         (spec): Now is a timespec or an item list.
41316         (timespec, items): New nonterminals.
41317         (time, rel, relunit, number, get_date):
41318         Add support for fractional seconds.
41319         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
41320         (gmtime, localtime, mktime): Remove decls; not needed with C89.
41321         (to_hour): First arg is now long int, not int.
41322         (to_year): Returns long int, not int.
41323         Don't treat year -70 like 70.
41324         (tm_diff): Returns long int, not int.
41325         (lookup_word): Use bool instead of int when appropriate.
41326         (yylex): Use size_t for count, not int.
41327         Detect overflow when parsing large integer constants.
41328         Add support for fractions.
41329         (get_date): Make pointers 'const' if possible.
41330         Use more-portable code to detect integer overflow.
41331         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
41332         Don't use ctime; it's not reliable if the year has >4 digits.
41333
41334         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
41335         This is for compatibility with BSD.
41336
41337         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
41338         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
41339         From coreutils' system.h.
41340
41341         * lib/userspec.c: Don't include "posixver.h".
41342         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
41343         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
41344         compatible extension.  Simplify code by removing a boolean int
41345         that was always nonzero if a string was nonnull.
41346
41347 2004-03-30  Jim Meyering  <jim@meyering.net>
41348
41349         Merge from coreutils.
41350
41351         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
41352         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
41353         on some systems one must include <grp.h> before it.
41354         Reported by Christian Krackowizer.
41355
41356 2004-03-30  Jim Meyering  <jim@meyering.net>
41357
41358         Merge from coreutils.
41359
41360         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
41361
41362         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
41363         an empty input stream.
41364
41365         * lib/readtokens.c: Include <stdbool.h>.
41366         (readtoken): Use `size_t' rather than int/long.
41367         All callers adjusted.
41368         Use `bool' rather than `int' where appropriate.
41369         Use memset rather than an explicit loop.
41370         Use x2nrealloc rather than xrealloc.
41371         Allow the use of `\0' as a delimiter.
41372         (readtokens): Likewise.
41373         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
41374
41375 2004-03-30  Jim Meyering  <jim@meyering.net>
41376
41377         * m4/realloc.m4: Remove file, since now it does no more than
41378         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
41379         the `configure.ac' section of module/realloc.
41380         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
41381
41382 2004-03-30  Bruno Haible  <bruno@clisp.org>
41383
41384         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
41385         nonnull.
41386
41387 2004-03-29  Paul Eggert  <eggert@twinsun.com>
41388
41389         Merge changes to getloadavg.c from coreutils and Emacs.
41390
41391         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
41392         Define to an expression, not to the empty string.
41393         Include cloexec.h and xalloc.h.
41394         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
41395         Use set_cloexec_flag rather than rolling our own.
41396         * lib/cloexec.c, lib/cloexec.h: New files.
41397
41398 2004-03-29  Paul Eggert  <eggert@twinsun.com>
41399
41400         * m4/cloexec.m4: New file.
41401
41402 2004-03-18  Paul Eggert  <eggert@twinsun.com>
41403
41404         * lib/getopt.h: Sync with libc CVS.
41405
41406 2004-03-18  Paul Eggert  <eggert@twinsun.com>
41407             Bruno Haible  <bruno@clisp.org>
41408
41409         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
41410         mbswidth.
41411
41412 2004-03-18  Paul Eggert  <eggert@twinsun.com>
41413             Bruno Haible  <bruno@clisp.org>
41414
41415         * lib/mbswidth.h: Include <wchar.h> only if
41416         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
41417         <wchar.h>.
41418         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
41419
41420 2004-03-09  Paul Eggert  <eggert@twinsun.com>
41421
41422         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
41423         Sync with libc CVS.
41424         * lib/getopt_int.h: New file, also synced from libc.
41425
41426 2004-03-09  Paul Eggert  <eggert@twinsun.com>
41427
41428         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
41429         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
41430         Bring back getopt.c, getopt.h, getopt1.c.
41431
41432 2004-03-07  Paul Eggert  <eggert@twinsun.com>
41433
41434         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
41435         All uses changed.  Check for sa_sigaction member; this fixes
41436         a bug first reported by Jason Andrade in
41437         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
41438
41439 2004-03-07  Paul Eggert  <eggert@twinsun.com>
41440
41441         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
41442         '#if' expressions.  Unlike the code it replaces, it does not
41443         depend on (defined _SC_PAGESIZE).  However, it does depend on
41444         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
41445         first reported by Jason Andrade in
41446         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
41447
41448 2004-02-25  Simon Josefsson  <jas@extundo.com>
41449
41450         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
41451
41452 2004-02-25  Simon Josefsson  <jas@extundo.com>
41453
41454         * lib/strdup.h: New file.
41455         * lib/strdup.c: Include it.
41456         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
41457         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
41458
41459 2004-02-23  Karl Berry  <karl@gnu.org>
41460
41461         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
41462         (from fencepost.gnu.org:/gd/gnuorg).
41463
41464 2004-02-23  Karl Berry  <karl@gnu.org>
41465
41466         * config/srclistvars.sh (GNUORG) [karl]: redefine.
41467         * config/srclist.txt: add maintain/standards documents.
41468
41469 2004-02-18  Bruno Haible  <bruno@clisp.org>
41470
41471         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
41472         Reported by Derek Robert Price <derek@ximbiot.com>.
41473
41474 2004-02-16  Karl Berry  <karl@gnu.org>
41475
41476         * config/mkinstalldirs, install-sh: update from automake.
41477
41478 2004-02-06  Karl Berry  <karl@gnu.org>
41479
41480         * m4/po.m4: update from gettext 0.14.1.
41481
41482 2004-02-06  Karl Berry  <karl@gnu.org>
41483
41484         * lib/config.charset: update from gettext 0.14.1.
41485
41486 2004-02-05  Paul Eggert  <eggert@twinsun.com>
41487
41488         Add comments and code, prompted by suggestions from Bruno Haible
41489         for sh-quote.
41490         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
41491         describing the enum quoting_style values.
41492         * lib/quotearg.c (quotearg_alloc): New function.
41493         (quotearg_buffer_restyled): Treat lone { and } as special.
41494         Treat = as special.  Work around bug with older shells
41495         that "see" a '\' that is really the 2nd byte of a multibyte char.
41496         Quote empty string with shell_quoting_style.
41497
41498 2004-02-03  Bruno Haible  <bruno@clisp.org>
41499
41500         * m4/pipe.m4: New file, from GNU gettext.
41501
41502 2004-02-03  Bruno Haible  <bruno@clisp.org>
41503
41504         * lib/pipe.h: New file, from GNU gettext.
41505         * lib/pipe.c: New file, from GNU gettext.
41506
41507 2004-01-27  Bruno Haible  <bruno@clisp.org>
41508
41509         * m4/execute.m4: New file, from GNU gettext.
41510
41511 2004-01-27  Bruno Haible  <bruno@clisp.org>
41512
41513         * lib/execute.h: New file, from GNU gettext.
41514         * lib/execute.c: New file, from GNU gettext.
41515         * lib/w32spawn.h: New file, from GNU gettext.
41516
41517 2004-01-24  Paul Eggert  <eggert@twinsun.com>
41518
41519         Merge from diffutils.
41520
41521         * lib/file-type.c (file_type): Add typed memory objects.
41522         * lib/file-type.h (S_TYPEISTMO): New macro.
41523
41524         * lib/c-stack.h (c_stack_action): Remove argv argument.
41525         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
41526         (die): Don't calculate message unless segv_action returns.
41527         (get_stack_location, min_address_from_argv, max_address_from_argv,
41528         volatile stack_base, volatile_stack_size): Remove.
41529         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
41530         that every segmentation violation is a stack overflow.  (Ouch!)
41531         See Debian bug 136249 (still outstanding) for more info about why
41532         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
41533
41534 2004-01-24  Paul Eggert  <eggert@twinsun.com>
41535
41536         Exit-status fix from coreutils.
41537
41538         Use exit_failure consistently in place of EXIT_FAILURE,
41539         so that program exit statuses are consistent on failure.
41540
41541         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
41542         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
41543         * lib/argmatch.h: Comment fix to match the above.
41544         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
41545         Now a macro referring to exit_failure, instead of a separate
41546         variable.  Include "exitfail.h" to get it.
41547         * lib/xstrtol.h: Include "exitfail.h".
41548         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
41549
41550         * lib/long-options.c (parse_long_options): Use prototype
41551         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
41552         for clarity.
41553
41554 2004-01-21  Jim Meyering  <jim@meyering.net>
41555
41556         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
41557         so as not to conflict with a different-sized __mktime_internal
41558         function in GNU libc.
41559         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
41560         Problem building statically-linked `ls' reported by Michael Brunnbauer.
41561
41562 2004-01-20  Karl Berry  <karl@gnu.org>
41563
41564         * config/config.guess: update from config.
41565
41566         * config/srclistvars.sh: GNUWWWLICENSES for karl.
41567
41568 2004-01-20  Bruno Haible  <bruno@clisp.org>
41569
41570         Safer stack allocation.
41571         * lib/setenv.c: Include allocsa.h.
41572         (alloca): Remove fallback definition.
41573         (freea): Remove macro.
41574         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
41575         instead of freea.
41576
41577 2004-01-20  Bruno Haible  <bruno@clisp.org>
41578
41579         * m4/eealloc.m4: New file, from GNU gettext.
41580
41581 2004-01-20  Bruno Haible  <bruno@clisp.org>
41582
41583         * m4/allocsa.m4: New file, from GNU gettext.
41584
41585 2004-01-20  Bruno Haible  <bruno@clisp.org>
41586
41587         * lib/xallocsa.h: New file, from GNU gettext.
41588         * lib/xallocsa.c: New file, from GNU gettext.
41589
41590 2004-01-20  Bruno Haible  <bruno@clisp.org>
41591
41592         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
41593
41594 2004-01-20  Bruno Haible  <bruno@clisp.org>
41595
41596         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
41597         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
41598         specially.
41599
41600 2004-01-20  Bruno Haible  <bruno@clisp.org>
41601
41602         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
41603         patch.
41604
41605 2004-01-20  Bruno Haible  <bruno@clisp.org>
41606
41607         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
41608
41609 2004-01-20  Bruno Haible  <bruno@clisp.org>
41610
41611         * lib/eealloc.h: New file.
41612
41613 2004-01-20  Bruno Haible  <bruno@clisp.org>
41614
41615         * lib/binary-io.h: Avoid warnings on Cygwin.
41616
41617 2004-01-20  Bruno Haible  <bruno@clisp.org>
41618
41619         * lib/allocsa.h: New file, from GNU gettext.
41620         * lib/allocsa.c: New file, from GNU gettext.
41621
41622 2004-01-18  Karl Berry  <karl@gnu.org>
41623
41624         * doc/gpl.texi, doc/lgpl.texi: new files.
41625
41626 2004-01-18  Karl Berry  <karl@gnu.org>
41627
41628         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
41629         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
41630
41631 2004-01-15  Paul Eggert  <eggert@twinsun.com>
41632
41633         Merge from coreutils.
41634
41635         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
41636         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
41637         (gl_DEFAULT_POSIX2_VERSION): Move
41638         the documentation from 'configure' into 'config.hin',
41639         so that 'configure --help' isn't burdened by it and
41640         we don't have to worry about its formatting there.
41641         Reword the documentation so that it's more succinct
41642         and can be run together into a single paragraph.
41643         * m4/same.m4 (gl_SAME): Check for pathconf.
41644
41645 2004-01-15  Paul Eggert  <eggert@twinsun.com>
41646
41647         Merge from coreutils.
41648
41649         * lib/posixver.c: Include posixver.h.
41650
41651         * lib/same.c: Include <stdbool.h>, <limits.h>.
41652         (_POSIX_NAME_MAX): Define if not defined.
41653         (MIN): New macro.
41654         (same_name): If file names are silently truncated, report
41655         that the file names are the same if they are the same after
41656         the silent truncation.
41657
41658         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
41659         conversion function.
41660         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
41661         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
41662         longer needed.
41663
41664 2004-01-15  Jim Meyering  <jim@meyering.net>
41665
41666         Merge from coreutils.
41667
41668         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
41669         if no library is required.
41670         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
41671         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
41672         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
41673         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
41674         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
41675         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
41676         value, $ac_cv_search_crypt, if it's "none required".
41677         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
41678         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
41679         not gl_FUNC_GETLOADAVG.
41680         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
41681         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
41682
41683 2004-01-15  Jim Meyering  <jim@meyering.net>
41684
41685         Merge from coreutils.
41686
41687         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
41688         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
41689         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
41690
41691         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
41692         optional configure-time default.
41693
41694         * lib/version-etc.c (version_etc_copyright): Update copyright date.
41695
41696         * lib/xreadlink.c (xreadlink): Correct outdated comment.
41697
41698 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
41699
41700         Merge from coreutils.
41701
41702         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
41703         value, $ac_cv_search_nanosleep, if it's "none required".
41704
41705 2004-01-14  Paul Eggert  <eggert@twinsun.com>
41706
41707         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
41708         with like-named macro in fnmatch.c.
41709         (EXT): Use an internal constant instead.
41710
41711         Merge fnmatch patches from glibc.
41712         * lib/fnmatch.c (mbsinit): Remove define.
41713         Add libc_hidden_ver (__fnmatch, fnmatch).
41714         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
41715         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
41716
41717 2004-01-14  Karl Berry  <karl@gnu.org>
41718
41719         * config/install-sh: update from automake.
41720
41721 2004-01-13  Karl Berry  <karl@gnu.org>
41722
41723         * config/install-sh: update from automake.
41724
41725 2004-01-09  Karl Berry  <karl@gnu.org>
41726
41727         * config/install-sh: update from automake.
41728
41729 2004-01-05  Karl Berry  <karl@gnu.org>
41730
41731         * config/config.{sub,guess}: update from config.
41732
41733 2003-12-31  Karl Berry  <karl@gnu.org>
41734
41735         * config/depcomp: update from automake.
41736
41737 2003-12-14  Karl Berry  <karl@gnu.org>
41738
41739         * lib/config.charset: update from gettext-runtime.
41740
41741 2003-12-03  Paul Eggert  <eggert@twinsun.com>
41742
41743         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
41744         Bug reported by Alfred M. Szmidt.
41745
41746 2003-12-03  Bruno Haible  <bruno@clisp.org>
41747
41748         * m4/gettext.m4: Upgrade from gettext-0.13.
41749         * m4/po.m4: Upgrade from gettext-0.13.
41750         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
41751         * m4/intmax.m4: New file, from gettext-0.13.
41752         * m4/printf-posix.m4: New file, from gettext-0.13.
41753
41754 2003-11-29  Karl Berry  <karl@gnu.org>
41755
41756         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
41757
41758 2003-11-25  Paul Eggert  <eggert@twinsun.com>
41759             Bruno Haible  <bruno@clisp.org>
41760
41761         * lib/printf-parse.h: Don't include sys/types.h.
41762         (ARG_NONE): New macro.
41763         (char_directive): Change type of *arg_index fields to size_t.
41764         * lib/printf-parse.c: Don't include sys/types.h.
41765         (SSIZE_MAX): Remove macro.
41766         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
41767         Remove unnecessary overflow check.
41768         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
41769         fields.
41770
41771 2003-11-25  Bruno Haible  <bruno@clisp.org>
41772
41773         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
41774
41775 2003-11-25  Bruno Haible  <bruno@clisp.org>
41776
41777         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
41778         gt_TYPE_SSIZE_T.
41779
41780 2003-11-24  Paul Eggert  <eggert@twinsun.com>
41781
41782         * modules/alloca: Remove dependency on xalloc.
41783
41784 2003-11-24  Paul Eggert  <eggert@twinsun.com>
41785
41786         * lib/alloca.c: Remove dependency on xalloc module.
41787         (xalloc_die): Remove.
41788         (memory_full) [!defined emacs]: New macro.
41789         [!defined emacs]: Don't include xalloc.h.
41790         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
41791         address arithmetic overflows.  Change datatypes a bit to avoid
41792         unnecessary casts.
41793
41794 2003-11-22  Jim Meyering  <jim@meyering.net>
41795
41796         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
41797         s/size/size_t/.
41798
41799 2003-11-21  Karl Berry  <karl@gnu.org>
41800
41801         * config/config.{sub,guess}: update from config.
41802
41803 2003-11-18  Karl Berry  <karl@gnu.org>
41804
41805         * config/config.{sub,guess}: update from config.
41806
41807         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
41808
41809 2003-11-17  Paul Eggert  <eggert@twinsun.com>
41810
41811         * README: Mention that S+T cannot overflow if S is the size of
41812         an existing object and T is sufficiently small.
41813
41814 2003-11-17  Jim Meyering  <jim@meyering.net>
41815
41816         On systems without utime and without a utimes function capable of
41817         dealing with a NULL struct utimbuf* argument, this utime replacement
41818         could -- in unusual circumstances -- leak a file descriptor.
41819         * lib/utime.c: Include <unistd.h> and <errno.h>.
41820         (utime_null): Be sure to close `fd' and to preserve errno.
41821         Reported by Geoff Collyer via Arnold Robbins.
41822
41823 2003-11-17  Bruno Haible  <bruno@clisp.org>
41824
41825         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
41826         (Depends-on): Add xsize.
41827
41828 2003-11-17  Bruno Haible  <bruno@clisp.org>
41829
41830         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
41831
41832 2003-11-17  Bruno Haible  <bruno@clisp.org>
41833
41834         * lib/vasnprintf.c (alloca): Remove fallback definition.
41835         (freea): Remove definition.
41836         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
41837         Reported by Paul Eggert.
41838
41839 2003-11-16  Paul Eggert  <eggert@twinsun.com>
41840             Bruno Haible  <bruno@clisp.org>
41841
41842         Protect against address arithmetic overflow.
41843         * lib/printf-args.h: Include stddef.h.
41844         (arguments): Change type of field 'count' to size_t.
41845         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
41846         'unsigned int' where appropriate.
41847         * lib/printf-parse.h: Include sys/types.h.
41848         (char_directive): Change type of *arg_index fields to ssize_t.
41849         (char_directives): Change type of fields 'count', max_*_length to
41850         size_t.
41851         * lib/printf-parse.c: Include sys/types.h and xsize.h.
41852         (SSIZE_MAX): Define fallback value.
41853         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
41854         instead of 'int' where appropriate. Check a_allocated, d_allocated
41855         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
41856         * lib/vasnprintf.c: Include xsize.h.
41857         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
41858         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
41859         overflow. Avoid wraparound when converting a width or precision from
41860         decimal to binary.
41861
41862 2003-11-16  Bruno Haible  <bruno@clisp.org>
41863
41864         Update from GNU gettext.
41865         * lib/printf-parse.c: Generalize to it can be compiled for wide
41866         strings.
41867         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
41868         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
41869         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
41870         SNPRINTF): New macros.
41871         Don't include <alloca.h> if the file is used inside libintl.
41872         (local_wcslen): New function, for Solaris 2.5.1.
41873         (VASNPRINTF): Use it instead of wcslen.
41874
41875 2003-11-16  Bruno Haible  <bruno@clisp.org>
41876
41877         * lib/xsize.h (xmax): New function.
41878         (xsum, xsum3, xsum4): Declare as "pure" functions.
41879
41880 2003-11-12  Paul Eggert  <eggert@twinsun.com>
41881
41882         * modules/xalloc (Files): Undo latest change, since xalloc.h
41883         no longer needs SIZE_MAX or PTRDIFF_MAX.
41884
41885 2003-11-12  Paul Eggert  <eggert@twinsun.com>
41886
41887         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
41888         gl_PTRDIFF_MAX.
41889
41890 2003-11-12  Paul Eggert  <eggert@twinsun.com>
41891
41892         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
41893         "return", to pacify some unknown compiler.  Problem reported
41894         by Joerg Schilling.
41895
41896 2003-11-12  Paul Eggert  <eggert@twinsun.com>
41897
41898         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
41899         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
41900         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
41901         heuristic is just as accurate as far as we know, and it removes a
41902         dependency on size_max.m4 and ptrdiff_max.m4.
41903
41904 2003-11-11  Bruno Haible  <bruno@clisp.org>
41905
41906         * modules/xsize (Files): Add m4/size_max.m4.
41907         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
41908
41909 2003-11-11  Bruno Haible  <bruno@clisp.org>
41910
41911         * m4/size_max.m4: New file.
41912         * m4/ptrdiff_max.m4: New file.
41913         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
41914         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
41915         (gl_XALLOC): Invoke it.
41916
41917 2003-11-11  Bruno Haible  <bruno@clisp.org>
41918
41919         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
41920         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
41921         defined.
41922
41923 2003-11-10  Paul Eggert  <eggert@twinsun.com>
41924
41925         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
41926         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
41927         rejected some allocations of exactly SIZE_MAX - 2 bytes.
41928         From Bruno Haible.
41929         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
41930         not (size_t) -1, since it's defined here.
41931
41932 2003-11-09  Karl Berry  <karl@gnu.org>
41933
41934         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
41935
41936 2003-11-06  Paul Eggert  <eggert@twinsun.com>
41937
41938         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
41939         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
41940         Reject sizes of exactly SIZE_MAX bytes.
41941         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
41942         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
41943
41944 2003-11-05  Bruno Haible  <bruno@clisp.org>
41945
41946         * lib/xsize.h: Include limits.h, to avoid a possible collision with
41947         SIZE_MAX defined in <limits.h> on Solaris.
41948
41949 2003-11-04  Jim Meyering  <jim@meyering.net>
41950
41951         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
41952         variable names, rather than @VAR@.
41953         * modules/poll: Likewise.
41954
41955 2003-11-04  Bruno Haible  <bruno@clisp.org>
41956
41957         * modules/xsize: New file.
41958         * modules/linebreak: Depend on xsize.
41959         * MODULES.html.sh (func_all_modules): Add xsize.
41960
41961 2003-11-04  Bruno Haible  <bruno@clisp.org>
41962
41963         * m4/xsize.m4: New file.
41964
41965 2003-11-04  Bruno Haible  <bruno@clisp.org>
41966
41967         * lib/xsize.h: New file.
41968         * lib/linebreak.c: Include xsize.h.
41969         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
41970         argument for overflow.
41971         Suggested by Paul Eggert.
41972
41973 2003-11-03  Karl Berry  <karl@gnu.org>
41974
41975         * config/config.{guess,sub}: update from config.
41976
41977 2003-11-03  Jim Meyering  <jim@meyering.net>
41978
41979         * modules/userspec (lib_SOURCES): Add userspec.h.
41980         (Include): Add "userspec.h".
41981         Improve description.
41982
41983 2003-11-03  Jim Meyering  <jim@meyering.net>
41984
41985         * lib/userspec.c: Include "userspec.h".
41986         * lib/userspec.h: New file.
41987
41988 2003-11-03  Bruno Haible  <bruno@clisp.org>
41989
41990         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
41991
41992 2003-11-03  Bruno Haible  <bruno@clisp.org>
41993
41994         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
41995         available, to avoid (extremely rare) race condition.
41996         Suggested by Paul Eggert.
41997
41998 2003-11-02  Karl Berry  <karl@gnu.org>
41999
42000         * config/srclist.txt (vasprintf.c): sync broken, sigh.
42001
42002 2003-10-31  Paul Eggert  <eggert@twinsun.com>
42003
42004         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
42005         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
42006         (read_filesystem_list): Set and use me_type_malloced.
42007         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
42008         whatever the type happens to be), for brevity and consistency.
42009         Check for size calculation overflow on Alphas running OSF/1.
42010
42011 2003-10-31  Jim Meyering  <jim@meyering.net>
42012
42013         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
42014
42015         * lib/linebuffer.c: Include <string.h> for declaration of memset.
42016
42017 2003-10-30  Paul Eggert  <eggert@twinsun.com>
42018             Bruno Haible  <bruno@clisp.org>
42019
42020         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
42021         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
42022
42023 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
42024
42025         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
42026         netbsd*-gnu*.  Suggested by Robert Millan.
42027
42028 2003-10-29  Paul Eggert  <eggert@twinsun.com>
42029
42030         * modules/group-member: Depend on stdbool.
42031
42032 2003-10-29  Paul Eggert  <eggert@twinsun.com>
42033
42034         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
42035
42036 2003-10-29  Paul Eggert  <eggert@twinsun.com>
42037
42038         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
42039         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
42040         after the 'gnu' in these cases.  This fixes some bugs in the
42041         previous change, and is based on suggestions by Robert Millan.
42042
42043 2003-10-29  Paul Eggert  <eggert@twinsun.com>
42044
42045         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
42046         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
42047         no longer needed.
42048         * lib/quotearg.c (quotearg_n_options): Use it.
42049         * lib/group-member.c: Include <stdbool.h>.
42050         (free_group_info): Arg is now const *; don't free arg.
42051         (get_group_info): Now returns bool and accepts struct group_info *,
42052         rather than returning a malloc'ed struct group_info *.
42053         All uses changed.  Check for overflow in internal size calculation.
42054
42055         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
42056         rather than xmalloc/xrealloc.
42057         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
42058         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
42059         conformance bug: the old code used a pointer after freeing the
42060         storage that it addressed.
42061         * lib/hash.c (hash_initialize): Simplify the code by using
42062         xalloc_oversized rather than doing it by hand.
42063         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
42064         the buffer preserved.  Use free and xmalloc instead.
42065         * lib/quotearg.c (quotearg_n_options): Likewise.
42066         Use a simpler test for size overflow.  Don't use xalloc_oversized
42067         because unsigned int might be wider than size_t (!); this suggests
42068         that we should switch from unsigned int to size_t for slot numbers.
42069
42070 2003-10-28  Paul Eggert  <eggert@twinsun.com>
42071
42072         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
42073         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
42074         NetBSD kernels.  Requested by Richard Stallman.
42075
42076 2003-10-27  Paul Eggert  <eggert@twinsun.com>
42077
42078         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
42079         to allocate the returned structure.  Do not allocate a subarray,
42080         as x2nrealloc will do that.
42081         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
42082         instead of xnrealloc.
42083         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
42084
42085 2003-10-27  Bruno Haible  <bruno@clisp.org>
42086
42087         * lib/stdbool_.h: Better support for BeOS.
42088
42089 2003-10-26  Paul Eggert  <eggert@twinsun.com>
42090
42091         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
42092         now uses inline.
42093
42094 2003-10-26  Paul Eggert  <eggert@twinsun.com>
42095
42096         * lib/xalloc.h (xalloc_oversized): New static inline function, for
42097         callers that want to do their own size-overflow checking.  Include
42098         <stdbool.h>, since xalloc_oversized returns bool.
42099         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
42100         to use xalloc_oversized.
42101
42102         Add two functions x2realloc, x2nrealloc, for programs that grow
42103         arrays dynamically by doubling their sizes.
42104         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
42105         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
42106         New functions.
42107
42108         Port to C99 semantics for 'inline' of external functions.
42109         Bug reported by Bruno Haible.
42110         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
42111         with the old contents of xnmalloc.
42112         (xnmalloc, xmalloc): Use it.
42113         (xnrealloc_inline): New static inline function,
42114         with the old contents of xnrealloc.
42115         (xnrealloc, xrealloc): Use it.
42116
42117         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
42118         that.
42119
42120 2003-10-26  Karl Berry  <karl@gnu.org>
42121
42122         * config/srclist.txt (COPYING.DOC): no longer available from
42123         /gd/gnuorg; don't know where the ultimate source is.
42124
42125 2003-10-25  Paul Eggert  <eggert@twinsun.com>
42126
42127         Fix several address-calculation bugs in the hash modules,
42128         plus some minor code cleanup.
42129
42130         * lib/hash.h: Include <stdbool.h>, for bool.
42131         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
42132         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
42133         hash_get_n_entries, hash_get_max_bucket_length,
42134         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
42135         hash_rehash): Use size_t rather than unsigned.
42136         * lib/hash.c (struct hash_table, hash_get_n_buckets,
42137         hash_get_n_buckets_used, hash_get_n_entries,
42138         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
42139         hash_get_entries, hash_do_for_each, hash_string, is_prime,
42140         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
42141         Likewise.
42142         (SIZE_MAX): Define if not defined.
42143         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
42144         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
42145         hash_print):
42146         Use const * when possible.
42147         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
42148         (check_tuning): Fix bug: if tuning parameters were very close to
42149         0 or 1, rounding errors could have caused subscript violations.
42150         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
42151         (hash_initialize): Add 'fail:' label
42152         to free table and return NULL, and use it to simplify code.
42153         Use calloc rather than clearing the storage ourself.
42154         (hash_initialize, hash_rehash): Check for arithmetic overflow in
42155         buffer size calculations.
42156         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
42157         Include <stddef.h>, for size_t.
42158         * lib/hash-pjw.c (hash_pjw): Likewise.
42159         Switch to method described by Bruno Haible.
42160         Include <limits.h>, for CHAR_BIT.
42161         (SIZE_BITS): New macro.
42162
42163 2003-10-23  Paul Eggert  <eggert@twinsun.com>
42164
42165         * m4/getline.m4 (AM_FUNC_GETLINE):
42166         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
42167         hosts.  Problem reported by Derek Robert Price in
42168         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
42169         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
42170         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
42171
42172 2003-10-21  Paul Eggert  <eggert@twinsun.com>
42173
42174         * lib/getndelim2.c (getndelim2): When size calculation overflows,
42175         ceiling the allocation at NMAX bytes rather than silently
42176         discarding input bytes before NMAX is reached.  This makes
42177         a difference only if NMAX exceeds SIZE_MAX / 2.
42178
42179         * lib/obstack.c: Merge from glibc.
42180         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
42181         Add libc_hidden_def (_obstack_newchunk).
42182         (_obstack_free) [! defined _LIBC]: Remove.
42183         [defined _LIBC]: Make a strong alias from obstack_free, rather than
42184         a clone of the function body.
42185         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
42186         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
42187
42188         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
42189         glibc.
42190         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
42191         arg to memcpy.
42192
42193         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
42194         (obstack_ptr_grow_fast, obstack_int_grow_fast):
42195         Don't use lvalue casts, as GCC plans to remove support for them
42196         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
42197         was also present in the non-GCC version, indicating that this
42198         code had always been buggy and had never been widely used.
42199         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
42200         Use the fast variant of each macro, rather than copying the
42201         definiens of the fast variant; that way, we'll be more likely to
42202         catch future bugs in the fast variants.
42203
42204 2003-10-20  Bruno Haible  <bruno@clisp.org>
42205
42206         * modules/wait-process: New file.
42207         * MODULES.html.sh (func_all_modules): Add wait-process.
42208
42209 2003-10-20  Bruno Haible  <bruno@clisp.org>
42210
42211         * m4/wait-process.m4: New file.
42212
42213 2003-10-20  Bruno Haible  <bruno@clisp.org>
42214
42215         * lib/wait-process.h: New file, from GNU gettext.
42216         * lib/wait-process.c: New file, from GNU gettext.
42217
42218 2003-10-19  Jim Meyering  <jim@meyering.net>
42219
42220         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
42221         HPUX 10.20.
42222
42223 2003-10-18  Karl Berry  <karl@gnu.org>
42224
42225         * config/config.guess: update from config.
42226
42227 2003-10-16  Paul Eggert  <eggert@twinsun.com>
42228
42229         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
42230         (getgroups): First arg is int, not size_t.
42231         Don't let 'free' mangle errno.
42232
42233 2003-10-16  Paul Eggert  <eggert@twinsun.com>
42234
42235         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
42236
42237 2003-10-16  Karl Berry  <karl@gnu.org>
42238
42239         * config/config.{guess,sub}: update from config.
42240
42241 2003-10-16  Jim Meyering  <jim@meyering.net>
42242
42243         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
42244         memcpy.
42245
42246 2003-10-15  Paul Eggert  <eggert@twinsun.com>
42247
42248         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
42249         (SIZE_MAX): Remove.
42250         (new_exclude, add_exclude_file): Initial size no longer needs to
42251         be a power of 2.
42252         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
42253         our own address arithmetic overflow checking.
42254
42255         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
42256         (fnmatch): Do not alloca more than 2000 wide characters;
42257         instead, use malloc for large buffers.
42258         Check for address arithmetic overflow, and return -1
42259         with errno set to ENOMEM in that case.
42260         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
42261         (NEW_PATTERN): Do not alloca more than 8000 bytes;
42262         instead, return -1.  Check for address arithmetic overflow.
42263
42264 2003-10-14  Paul Eggert  <eggert@twinsun.com>
42265
42266         Handle invalid suffixes and overflow independently, so that
42267         callers can treat them independently as needed.  Fix some bugs in
42268         suffix handling, e.g., "100k@" was not diagnosed as an invalid
42269         suffix for a human-readable blocksize.  The major caller-visible
42270         change is the addition of a new
42271         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
42272         that both overflow and suffix chars were found.
42273
42274         * lib/human.c (humblock): Don't check separately for invalid suffix
42275         char; that is xstrtoumax's job (now that its bug is fixed).
42276         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
42277         INTMAX_MAX]: New macros.
42278         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
42279         TYPE_MAXIMUM): New macros.
42280         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
42281         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
42282         if overflow occurs, as it's what __strtol does and it's more useful
42283         in practice.
42284         (__xstrtol): If __strtol reports some error other than ERANGE,
42285         reflect it to the caller as LONGINT_INVALID.  If it reports
42286         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
42287         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
42288         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
42289         value.
42290         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
42291         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
42292         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
42293         [defined UINTMAX_MAX]: New macros.
42294
42295 2003-10-14  Bruno Haible  <bruno@clisp.org>
42296
42297         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
42298
42299 2003-10-14  Bruno Haible  <bruno@clisp.org>
42300
42301         * m4/sig_atomic_t: New file, from GNU gettext.
42302         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
42303
42304 2003-10-14  Bruno Haible  <bruno@clisp.org>
42305
42306         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
42307         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
42308         Also use volatile where needed.
42309
42310 2003-10-12  Paul Eggert  <eggert@twinsun.com>
42311
42312         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
42313         Change maintainer from Bruno Haible to 'all'.
42314
42315 2003-10-12  Paul Eggert  <eggert@twinsun.com>
42316
42317         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
42318
42319 2003-10-12  Paul Eggert  <eggert@twinsun.com>
42320
42321         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
42322         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
42323         and define in terms of the other primitives.
42324         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
42325         (SIZE_MAX): Define if not already defined.
42326         (array_size_overflow): New function.
42327         (xalloc_die): Abort instead of exiting if 'error' returns.
42328         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
42329         (xmalloc, xrealloc): Use them.
42330         (xcalloc): Check for address arithmetic overflow.
42331         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
42332         a bit faster than strcpy.
42333
42334 2003-10-10  Simon Josefsson  <jas@extundo.com>
42335
42336         * modules/argp (Depends-on): Add restrict and strcase.
42337
42338 2003-10-10  Simon Josefsson  <jas@extundo.com>
42339
42340         * m4/argp.m4: Add AC_C_INLINE.
42341
42342 2003-10-08  Paul Eggert  <eggert@twinsun.com>
42343
42344         Merge getpass from libc, plus a few fixes.
42345
42346         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
42347         Include <stdbool.h>.
42348         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
42349         __fsetlocking to empty.
42350         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
42351         do include <bits/libc-lock.h>.
42352         Do not include <fcntl.h>; not needed.
42353         [_LIBC]: Include <wchar.h>.
42354         (NOTCANCEL_MODE): New macro.
42355         (flockfile, funlockfile) [_LIBC]: New macros.
42356         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
42357         [!_LIBC]: New macros.
42358         (call_fclose): New function.
42359         (getpass): Use it.  Save tty stream separately; this simplifies the
42360         code and makes it more reliable if stdin happens to equal stdout.
42361         Invoke __fsetlocking on tty.
42362         Handle thread cancellation if needed.
42363         Namespace cleanup (use __tcgetattr, __getline).
42364         Use bool for Booleans.
42365         [USE_IN_LIBIO]: Handle wide streams.
42366         [!_LIBC]: Unconditionally do the fseek, since we don't know what
42367         stream might go where.
42368
42369         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
42370         doesn't have to include <stdio.h> before us.
42371         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
42372         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
42373         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
42374         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
42375         if not declared, so that we can use getpass.c code from libc without
42376         rewriting it.
42377         (flockfile, ftrylockfile, funlockfile): New macros.
42378
42379 2003-10-08  Paul Eggert  <eggert@twinsun.com>
42380
42381         * modules/getpass: Depend on stdbool.
42382
42383 2003-10-08  Paul Eggert  <eggert@twinsun.com>
42384
42385         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
42386
42387 2003-10-07  Karl Berry  <karl@gnu.org>
42388
42389         * config/config.{guess,sub}: update from config.
42390
42391 2003-10-06  Jim Meyering  <jim@meyering.net>
42392             Bruno Haible  <bruno@clisp.org>
42393
42394         This lets translators provide better translations for the
42395         "Written by ..." part of --version output.
42396         * lib/version-etc.h: Include stdarg.h.
42397         (version_etc_copyright): Declare as readonly.
42398         (version_etc): Make this function variadic with a NULL-terminated list
42399         of author name strings.
42400         (version_etc_va): New declaration.
42401         * lib/version-etc.c: Include stdarg.h, stdlib.h.
42402         (version_etc_copyright): Declare as readonly.
42403         (version_etc_va): New function. Provide a different translatable string
42404         for each possible number of authors < 10. Abbreviate when there are 10
42405         authors or more.
42406         (version_etc): Make this function variadic. Call version_etc_va.
42407         Suggestion from Gary V. Vaughan.
42408
42409         * lib/long-options.h (parse_long_options): Change prototype: the
42410         authors string is moved to the end and becomes variadic.
42411         * lib/long-options.c: Include stdarg.h.
42412         (parse_long_options): Make this function variadic, too.
42413         Call version_etc_va, not version_etc.
42414
42415 2003-10-06  Bruno Haible  <bruno@clisp.org>
42416
42417         * modules/version-etc-2: Remove file.
42418         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
42419
42420 2003-10-06  Bruno Haible  <bruno@clisp.org>
42421
42422         * modules/fatal-signal: New file.
42423         * MODULES.html.sh (func_all_modules): Add fatal-signal.
42424
42425 2003-10-06  Bruno Haible  <bruno@clisp.org>
42426
42427         * m4/fatal-signal.m4: New file.
42428         * m4/signalblocking.m4: New file, from GNU gettext.
42429
42430 2003-10-06  Bruno Haible  <bruno@clisp.org>
42431
42432         * lib/version-etc-2.h: Remove file.
42433         * lib/version-etc-2.c: Remove file.
42434
42435 2003-10-06  Bruno Haible  <bruno@clisp.org>
42436
42437         * lib/fatal-signal.h: New file, from GNU gettext.
42438         * lib/fatal-signal.c: New file, from GNU gettext.
42439
42440 2003-10-05  Paul Eggert  <eggert@twinsun.com>
42441
42442         * README: Rework advice for preventing empty .o files.
42443         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
42444         not <sys/types.h>.
42445
42446 2003-10-04  Karl Berry  <karl@gnu.org>
42447
42448         * lib/argp*: update from libc.
42449
42450 2003-10-04  Karl Berry  <karl@gnu.org>
42451
42452         * config/config.{guess,sub}: update from config.
42453
42454 2003-10-02  Bruno Haible  <bruno@clisp.org>
42455
42456         * modules/lchown (Include): Add lchown.h.
42457         * modules/time_r (Include): Use "..." syntax.
42458         * modules/xgetdomainname (Include): Add xgetdomainname.h.
42459
42460 2003-10-01  Simon Josefsson  <jas@extundo.com>
42461
42462         * MODULES.html.sh (func_all_modules): Move gethostname from section
42463         'based on' to section 'lacking' POSIX:2001.
42464
42465 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
42466
42467         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
42468         to output mode on the same stream.
42469
42470 2003-09-29  Paul Eggert  <eggert@twinsun.com>
42471
42472         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
42473         Fix arg typo in previous patch.
42474
42475 2003-09-28  Jim Meyering  <jim@meyering.net>
42476
42477         * lib/error.c: Correct cpp indentation.
42478
42479 2003-09-27  Paul Eggert  <eggert@twinsun.com>
42480
42481         * modules/free: New file.
42482
42483 2003-09-27  Paul Eggert  <eggert@twinsun.com>
42484
42485         * m4/free.m4: New file.
42486
42487 2003-09-27  Paul Eggert  <eggert@twinsun.com>
42488
42489         * lib/minmax.h (MIN, MAX)
42490         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
42491         Omit the special code that used __typeof__, since we worry that
42492         it could be more trouble than it's worth.  See:
42493         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
42494         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
42495
42496         * lib/free.c: New file.
42497
42498 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
42499
42500         Trivial fixes to Makefile.am parts of module listings.
42501         * modules/strstr: Append strstr.h to lib_SOURCES.
42502         * modules/strcase: Likewise, for strcase.h.
42503
42504 2003-09-27  Karl Berry  <karl@gnu.org>
42505
42506         * config/mkinstalldirs: update from automake.
42507
42508 2003-09-26  Paul Eggert  <eggert@twinsun.com>
42509
42510         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
42511         (error_tail): Do not loop, reallocating temporary buffer, since
42512         the output cannot contain more wide characters than the input
42513         contains bytes, the size must be big enough already.  This avoids
42514         one potential size overflow calculation.  Check for size overflow
42515         when calculating temporary buffer size.  Free temporary buffer
42516         when done, if it was allocated with malloc; this plugs a memory
42517         leak.  Remove casts from void * to pointers, that are no longer
42518         needed now that we're assuming C89 or better.
42519
42520         Merge error changes from glibc.
42521
42522         * lib/error.c, error.h: Update copyright notice header to match glibc.
42523         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
42524         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
42525         Disable cancellation while printing error.
42526         * lib/error.h: Prepend __ to parameter names.
42527
42528 2003-09-26  Jim Meyering  <jim@meyering.net>
42529
42530         * lib/error.c (error_tail): Move some declarations
42531         into inner scope where the local variables are used.
42532
42533 2003-09-26  Bruno Haible  <bruno@clisp.org>
42534
42535         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
42536         stpncpy().
42537         Don't define stpncpy through config.h; it's now done through stpncpy.h.
42538
42539 2003-09-26  Bruno Haible  <bruno@clisp.org>
42540
42541         * lib/stpncpy.h (gnu_stpncpy): New declaration.
42542         (stpncpy): Define as alias for gnu_stpncpy.
42543         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
42544
42545 2003-09-25  Simon Josefsson  <jas@extundo.com>
42546
42547         * lib/xgetdomainname.h: New file.
42548         * lib/xgetdomainname.c: New file.
42549
42550 2003-09-25  Simon Josefsson  <jas@extundo.com>
42551             Bruno Haible  <bruno@clisp.org>
42552
42553         * modules/getdomainname: New file.
42554         * modules/xgetdomainname: New file.
42555         * MODULES.html.sh (func_all_modules): Add getdomainname,
42556         xgetdomainname.
42557
42558 2003-09-25  Simon Josefsson  <jas@extundo.com>
42559             Bruno Haible  <bruno@clisp.org>
42560
42561         * m4/getdomainname.m4: New file.
42562
42563 2003-09-25  Simon Josefsson  <jas@extundo.com>
42564             Bruno Haible  <bruno@clisp.org>
42565
42566         * lib/getdomainname.h: New file.
42567         * lib/getdomainname.c: New file.
42568
42569 2003-09-25  Karl Berry  <karl@gnu.org>
42570
42571         * lib/argp-fmtstream.c, argp-help.c: update from libc.
42572
42573 2003-09-25  Karl Berry  <karl@gnu.org>
42574
42575         * config/install-sh: update from automake.
42576
42577 2003-09-25  Bruno Haible  <bruno@clisp.org>
42578
42579         * modules/version-etc-2: New file, from modules/version-etc with
42580         modifications.
42581         * MODULES.html.sh (func_all_modules): Add version-etc-2.
42582
42583 2003-09-25  Bruno Haible  <bruno@clisp.org>
42584
42585         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
42586         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
42587
42588 2003-09-24  Simon Josefsson  <jas@extundo.com>
42589
42590         * modules/xgethostname: Add xgethostname.h.
42591
42592 2003-09-24  Paul Eggert  <eggert@twinsun.com>
42593
42594         * lib/linebuffer.c (freebuffer): Don't free the argument, just
42595         the buffer associated with the argument.  Bug reported by
42596         Simon Josefsson.
42597
42598 2003-09-24  Paul Eggert  <eggert@twinsun.com>
42599
42600         * README: Document assumptions that 'int' is at least 32 bits
42601         wide, that integer arithmetic is 2's complement without overflow,
42602         that there are no holes in integer values, that adding sizes of
42603         two nonoverlapping objects can't overflow, and that all-bits-zero
42604         yields scalar zero.  Fix spelling and capitalization typos.
42605
42606 2003-09-19  Karl Berry  <karl@gnu.org>
42607
42608         * lib/argp.h: update from libc.
42609
42610 2003-09-17  Paul Eggert  <eggert@twinsun.com>
42611
42612         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
42613         to avoid spurious warnings like "AC_RUN_IFELSE was called before
42614         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
42615
42616 2003-09-17  Paul Eggert  <eggert@twinsun.com>
42617
42618         * gnulib-tool: Use "test -h", not "test -L", for portability
42619         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
42620         (tags_regexp): Remove, since \| doesn't conform to POSIX.
42621         (sed_extract_prog): Issue s commands one-by-one, rather than
42622         using \| in one s command.
42623
42624 2003-09-16  Paul Eggert  <eggert@twinsun.com>
42625
42626         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
42627         input error, instead of returning NULL the next time we are called
42628         (and therefore losing track of errno).
42629
42630 2003-09-16  Bruno Haible  <bruno@clisp.org>
42631
42632         * gnulib-tool (func_create_testdir): Warn about duplicated
42633         dependencies.
42634
42635 2003-09-15  Paul Eggert  <eggert@twinsun.com>
42636
42637         * modules/argmatch, modules/fatal, modules/obstack,
42638         modules/xalloc, modules/xgethostname: Sort dependencies by
42639         importance, not alphabetically.
42640
42641 2003-09-15  Paul Eggert  <eggert@twinsun.com>
42642
42643         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
42644         fails, so that the caller gets the proper errno.
42645
42646         * lib/readutmp.c (read_utmp): Likewise.
42647         Check for fstat error.  Close stream and free storage
42648         when failing.
42649
42650 2003-09-14  Karl Berry  <karl@gnu.org>
42651
42652         * config/srclist.txt (strdup.c): disable for c89 changes.
42653
42654 2003-09-14  Jim Meyering  <jim@meyering.net>
42655
42656         * lib/getloadavg.c: Correct cpp indentation.
42657         * lib/strdup.c: Likewise.
42658         * lib/vasnprintf.c: Likewise.
42659
42660 2003-09-14  Bruno Haible  <bruno@clisp.org>
42661
42662         * modules/fwriteerror: New file.
42663         * MODULES.html.sh (func_all_modules): Add fwriteerror.
42664
42665 2003-09-14  Bruno Haible  <bruno@clisp.org>
42666
42667         * lib/fwriteerror.h: New file.
42668         * lib/fwriteerror.c: New file.
42669
42670 2003-09-12  Paul Eggert  <eggert@twinsun.com>
42671
42672         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
42673         modules/xgethostname, modules/xalloc: Depend on exit.
42674
42675 2003-09-12  Paul Eggert  <eggert@twinsun.com>
42676
42677         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
42678
42679         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
42680         and AC_MINIX, too, so that their extensions are available.
42681
42682         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
42683         This macro has been superseded by gl_BACKUPFILE.
42684
42685         More patches to assume C89 or better.
42686
42687         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
42688
42689         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
42690         unconditionally.
42691         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
42692         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
42693         Include <string.h>, <stdlib.h> unconditionally.
42694         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
42695         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
42696         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
42697         headers or for string.h.
42698         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
42699         or strtoul.
42700
42701         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
42702         headers.
42703         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
42704         * m4/userspec.m4 (gl_USERSPEC): Likewise.
42705         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
42706         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
42707         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42708         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
42709         memcpy, memset.
42710         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
42711         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
42712         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
42713         strtol.
42714         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
42715         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
42716         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
42717         strtoul.
42718
42719 2003-09-12  Paul Eggert  <eggert@twinsun.com>
42720
42721         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
42722         * lib/obstack.c [!defined _LIBC]: Likewise.
42723         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
42724         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
42725         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
42726
42727         More changes to assume C89 or better.
42728
42729         * lib/error.c (error_tail): Assume vprintf.
42730
42731         * lib/argmatch.c (getenv): Remove decl.
42732         * lib/progreloc.c (get_full_program_name): Define via prototype.
42733         * lib/setenv.c (clearenv): Likewise.
42734         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
42735         needed.
42736         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
42737         (malloc, memcpy): Remove decls.
42738         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
42739         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
42740         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
42741         (memcpy): Remove macro.
42742         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
42743         (__P): Remove.  All uses removed.
42744         (PTR): Remove.  All uses changed to void *.
42745         (CHAR_BIT, NULL): Remove.
42746         (spaces, zeros, memset_space, memset_zero)
42747         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
42748         Remove.
42749         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
42750         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
42751         Define with prototype.
42752         Remove now-unnecessary prototype decl.
42753         (extra_args_spec): Assume ANSI C.  All uses changed.
42754         (extra_args_spec_iso): Remove.
42755         (my_strftime, emacs_strftimeu): Define via prototype.
42756         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
42757         unconditionally.
42758         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
42759         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
42760         (strtoul, strtol): Remove decls.
42761         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
42762         LONG_MAX): Remove.
42763         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
42764         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
42765         (LOCALE_PARAM_PROTO): New macro.
42766         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
42767         (INTERNAL (strtol), strtol): Define with a prototype.
42768         (PARAMS): Remove.  All uses removed.
42769         * lib/tempname.c: Include <string.h> unconditionally.
42770         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
42771         * lib/xgethostname.c (main): Define with a prototype.
42772         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
42773         Include <stdlib.h> unconditionally.
42774         (calloc, malloc, realloc, free): Remove decls.
42775         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
42776         Include <stdlib.h> unconditionally.  Sort include file names.
42777         (strtod): Remove.
42778         (xstrtod): Define with a prototype.
42779         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
42780         (strtol, strtoul): Remove decls.
42781
42782 2003-09-11  Paul Eggert  <eggert@twinsun.com>
42783
42784         More patches to assume C89 or better.
42785         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
42786         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
42787         string.h, memchr, STDC_HEADERS.
42788
42789 2003-09-11  Paul Eggert  <eggert@twinsun.com>
42790
42791         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
42792         Include <stdlib.h>, <string.h> unconditionally.
42793         Remove now-unnecessary cast to char *.
42794         * lib/strnlen.c: Include <string.h> unconditionally.
42795         * lib/yesno.c (yesno): Define with a prototype.
42796
42797 2003-09-11  Bruno Haible  <bruno@clisp.org>
42798
42799         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
42800
42801 2003-09-10  Jim Meyering  <jim@meyering.net>
42802
42803         * lib/error.c: Correct indentation of cpp directives.
42804
42805 2003-09-10  Bruno Haible  <bruno@clisp.org>
42806
42807         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
42808         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
42809         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
42810         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
42811         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
42812         <stdlib.h> and <string.h> checks.
42813         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
42814         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
42815
42816 2003-09-10  Bruno Haible  <bruno@clisp.org>
42817
42818         * lib/strcspn.c: Include <string.h> unconditionally.
42819         * lib/strpbrk.c: Include <string.h> unconditionally.
42820         * lib/strstr.c: Include <string.h> unconditionally.
42821         * lib/unicodeio.c: Include <string.h> unconditionally.
42822         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
42823         * lib/unsetenv.c: Likewise.
42824         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
42825         * lib/yesno.c: Include <stdlib.h> unconditionally.
42826         (rpmatch): Add prototype.
42827
42828 2003-09-09  Paul Eggert  <eggert@twinsun.com>
42829
42830         More patches to assume C89 or better.
42831         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
42832         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
42833         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
42834         or for string.h.
42835         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
42836         stdlib.h.
42837         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
42838         C headers.
42839         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
42840         string.h.
42841         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
42842         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
42843         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
42844         or for string.h.
42845         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
42846         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
42847         C headers.
42848         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
42849         memcpy.
42850         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
42851         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
42852         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
42853         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
42854         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
42855         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
42856         string.h, free.
42857         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
42858         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
42859         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
42860         C headers, or for string.h.
42861         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
42862         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
42863         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
42864         headers, memory.h, stdlib.h, string.h, strings.h.
42865         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
42866         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
42867         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
42868         strchr.
42869         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
42870         headers, memory.h, string.h.
42871         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
42872         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
42873         free.
42874         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
42875         headers.
42876         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
42877         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
42878         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
42879         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
42880         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
42881
42882 2003-09-09  Paul Eggert  <eggert@twinsun.com>
42883
42884         More K&R removal.
42885
42886         * lib/acosl.c (main): Use a prototype.
42887         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
42888         tanl.c: Likewise.
42889
42890         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
42891
42892         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
42893         (getopt, etopt_long, getopt_long_only, _getopt_internal)
42894         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
42895         with a prototype.
42896         * lib/getopt.c (const): Remove macro.
42897         Include <string.h> unconditionally.
42898         (my_index): Remove; all uses changed to strchr.
42899         (strlen): Remove decl.
42900         (exchange): Remove forward decl; no longer needed.
42901         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
42902         Define with prototype.
42903         * lib/getopt1.c (const): Remove macro.
42904         (getopt_long, getopt_long_only, main): Define with prototype.
42905
42906         * lib/getugroups.c: Include <string.h> unconditionally.
42907
42908         * lib/getusershell.c: Include <stdlib.h> unconditionally.
42909         (getusershell, setusershell, endusershell, readname, main):
42910         Define with prototypes.
42911
42912         * lib/group-member.c: Include group-member.h first.
42913         Include <stdlib.h> unconditionally.
42914
42915         * lib/hard-locale.c: Include hard-locale.h first.
42916         Include <stdlib.h>, <string.h> unconditionally.
42917
42918         * lib/hash.c (free, malloc): Remove decls.
42919         Include <stdlib.h> unconditionally.
42920
42921         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
42922         (getenv): Do not declare.
42923
42924         * lib/idcache.c: Include <string.h> unconditionally.
42925
42926         * lib/long-options.c: Include long-options.h first, to test interface.
42927         Include <stdlib.h> unconditionally.
42928
42929         * lib/makepath.c: Include makepath.h first, to test interface.
42930         Include <stdlib.h> and <string.h> unconditionally.
42931
42932         * lib/linebuffer.c: Include <stdlib.h>.
42933         (free): Remove decl.
42934
42935         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
42936         stddef.h. rpl_malloc returns void *, not char *.
42937         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
42938         prototype.
42939
42940         * lib/md5.h: Include <limits.h> unconditionally.
42941         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
42942         (__P): Remove; all uses removed.
42943         * lib/md5.c: Include "md5.h" first.
42944         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
42945         md5_buffer, md5_process_bytes, md5_process_block):
42946         Define with prototypes.
42947         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
42948         * lib/sha.c: Include "sha.h" first.
42949         Include <stdlib.h>, <string.h> unconditionally.
42950
42951         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
42952         * lib/memcmp.c (__ptr_t): Likewise.
42953         * lib/memrchr.c (__ptr_t): Likewise.
42954         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
42955         Include <string.h> unconditionally.
42956         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
42957         * lib/memchr.c: Include <stdlib.h> unconditionally.
42958         * lib/memchr.c (LONG_MAX): Remove.
42959         * lib/memrchr.c (LONG_MAX): Likewise.
42960         * lib/memchr.c (__memchr): Define via a prototype.
42961         * lib/memrchr.c (__memrchr): Likewise.
42962         * lib/memcmp.c (__P): Remove, and remove all uses.
42963         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
42964         Remove forward decls; no longer needed.
42965         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
42966         Use types required by C89 in prototype.
42967
42968         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
42969         * lib/savedir.c: Likewise.
42970         * lib/mkdir.c (free): Remove decl.
42971         * lib/rmdir.c (rmdir): Define with a prototype.
42972         * lib/savedir.c: Include savedir.h first, to test interface.
42973
42974         * lib/mktime.c (STDC_HEADERS): Remove.
42975         Include <stdlib.h>, <string.h> unconditionally.
42976
42977         * lib/modechange.c: Include <stdlib.h> unconditionally.
42978         (malloc): Remove decl.
42979
42980         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
42981         (free): Remove decl.
42982
42983         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
42984         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
42985         (This type really should be intptr_t, but that's a C99ism.)
42986         (_obstack_memcpy): Remove: all uses changed to memcpy.
42987         Include <string.h> unconditionally.
42988         (struct obstack): Assume __STDC__ for types of members
42989         chunkfun, freefun, extra_arg.
42990         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
42991         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
42992         obstack_begin, obstack_specify_allocation,
42993         obstack_specify_allocation_with_arg, obstack_chunkfun,
42994         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
42995         Remove unprototyped decls and the macros that use them.
42996         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
42997         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
42998         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
42999         (defined __STDC__ && __STDC__)]:
43000         Remove nonprototyped code.
43001         Include <stdlib.h> unconditionally.
43002         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
43003         _obstack_allocated_p, _obstack_free, obstack_free,
43004         _obstack_memory_used, print_and_abort):
43005         Define using prototypes.
43006         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
43007         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
43008         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
43009         obstack_next_free, obstack_object_size, obstack_room) [0]:
43010         Remove unused, unprototyped code.
43011
43012         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
43013
43014         * lib/physmem.c (physmem_total, physmem_available, main): Define
43015         with prototypes.
43016
43017         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
43018         (main): Define with a prototype.
43019
43020         * lib/posixver.c (getenv): Remove decl.
43021
43022         * lib/putenv.c (malloc): Returns void *, not char *.
43023         Include <string.h> unconditionally.
43024         (strchr, memcpy, NULL): Do not define.
43025
43026         * lib/readtokens.c: Include readtokens.h first, to test interface.
43027         Include <stdlib.h>, <string.h> unconditionally.
43028         (init_tokenbuffer): Define with a prototype.
43029
43030         * lib/regex.c (PARAMS): Remove.  All uses removed.
43031         All uses of _RE_ARGS removed, too.
43032         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
43033         unconditionally.
43034         (bzero): Assume memset exists.
43035         (memcmp, memcpy, NULL): Remove.
43036         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
43037         char, or assignments to local vars of type signed char.
43038         (init_syntax_once, PREFIX(extract_number_and_incr),
43039         PREFIX(print_partial_compiled_pattern),
43040         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
43041         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
43042         PREFIX(regex_grow_registers), PREFIX(regex_compile),
43043         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
43044         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
43045         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
43046         wcs_compile_range, byte_compile_range, truncate_wchar,
43047         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
43048         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
43049         count_mbs_length, wcs_re_match_2_internal,
43050         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
43051         PREFIX(alt_match_null_string_p),
43052         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
43053         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
43054         regfree, PREFIX(extract_number)): Define with prototype.  Remove
43055         now-unnecessary declaration, if any.
43056         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
43057         regcomp, regexec):
43058         Remove now-unnecessary casts among pointer types.
43059         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
43060
43061         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
43062         (free): Remove decl.
43063
43064         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
43065
43066         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
43067         (free): Remove decl.
43068
43069         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
43070         * lib/xgetcwd.c: Likewise.
43071
43072         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
43073         (free): Remove decl.
43074
43075         * lib/strchrnul.c (strchrnul): Define with a prototype.
43076         Fix bug: c_in was not converted to char before searching.
43077
43078         The following changes are not K&R related:
43079
43080         * lib/group-member.h: Include <sys/types.h>, so that this file is
43081         self-contained.
43082         * lib/makepath.h: Likewise.
43083
43084         * lib/getusershell.c (readname, default_index, line_size, readname):
43085         Use size_t, not int, for sizes.
43086         (readname): If the size overflows, report an error instead of
43087         looping forever.
43088
43089 2003-09-09  Paul Eggert  <eggert@twinsun.com>
43090
43091         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
43092         libc.
43093
43094 2003-09-09  Paul Eggert  <eggert@twinsun.com>
43095
43096         * README: New section: portability guidelines.
43097
43098 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
43099
43100         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
43101         C89 spec.
43102
43103 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
43104
43105         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
43106
43107 2003-09-08  Paul Eggert  <eggert@twinsun.com>
43108
43109         Assume C89 or better; remove K&R cruft.
43110         A few of these changes were first proposed by Derek Robert Price
43111         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
43112
43113         * lib/addext.c: Include <string.h> unconditionally.
43114         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
43115         Don't declare getenv or malloc.
43116
43117         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
43118         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
43119         (NULL): Remove.
43120         (find_stack_direction, alloca): Use prototypes.
43121
43122         * lib/atexit.c (atexit): Define using a prototype.
43123
43124         * lib/basename.c, dirname.c, stripslash.c:
43125         Include <string.h> unconditionally.
43126
43127         * lib/bcopy.c: Include <stddef.h>.
43128         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
43129
43130         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
43131
43132         * lib/error.h (error, error_at_line, error_print_progname)
43133         [! (defined (__STDC__) && __STDC__)]: Remove decls.
43134         * lib/error.c: Include error.h first, to check interface.
43135         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
43136         (VA_START): Remove; all uses changeed to va_start.
43137         (exit, strerror): Remove decls.
43138         (error_print_progname): Prototype uncondionally.
43139         Don't include <errno.h>; no longer needed.
43140         (private_strerror): Remove.
43141         (error_tail): Always define.
43142         (error, error_at_line): Assume C89 or better; always use prototypes.
43143         * lib/fatal.c: Include "fatal.h" first, to test interface.
43144         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
43145         (VA_START): Remove; all uses changed to va_start.
43146         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
43147         this case.
43148         (exit): Remove decl.
43149         (fatal): Prototype unconditionally.  Assume va_start works.
43150         Abort at end, to pacify gcc.
43151
43152         * lib/euidaccess.c (main): Define with a prototype.
43153
43154         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
43155
43156         * lib/exitfail.c: Include <stdlib.h> unconditionally.
43157
43158         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
43159         prototypes.
43160         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
43161         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
43162         (getenv): Remove decl.
43163         (fnmatch): Define using a prototype.
43164         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
43165         (FCT): Define using a prototype.
43166
43167         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
43168
43169         * lib/gethostname.c: Include <stddef.h>.
43170         (gethostname): Define with prototype.  Length is size_t, not int.
43171
43172 2003-09-08  Paul Eggert  <eggert@twinsun.com>
43173
43174         Assume C89 or better; remove K&R cruft.
43175         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
43176         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
43177         string.h, getenv, malloc.
43178         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
43179         headers.
43180         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
43181         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
43182         do not check for strerror.
43183         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
43184         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
43185         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
43186         do not check for doprnt or vprintf.
43187         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
43188         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
43189
43190 2003-09-08  Paul Eggert  <eggert@twinsun.com>
43191
43192         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
43193         getversion.c should have been removed then, but was accidentally
43194         preserved.
43195
43196         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
43197         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
43198
43199 2003-09-08  Karl Berry  <karl@gnu.org>
43200
43201         * config/config.sub, config.guess, srclistvars.sh: update from savannah
43202                 config, forget about prep.
43203
43204         * config/depcomp, missing: update from automake.
43205
43206 2003-09-07  Paul Eggert  <eggert@twinsun.com>
43207
43208         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
43209         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
43210
43211 2003-09-07  Paul Eggert  <eggert@twinsun.com>
43212
43213         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
43214         copy_tm_result.  Bug reported by Simon Josefsson in
43215         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
43216
43217 2003-09-06  Paul Eggert  <eggert@twinsun.com>
43218
43219         * m4/time_r.m4: New file.
43220         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
43221         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
43222         is. Check for timegm declaration.
43223         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
43224         Do not check for gmtime_r.
43225         Replace mktime if __mktime_internal does not exist and if mktime
43226         hasn't been replaced already.
43227
43228 2003-09-06  Paul Eggert  <eggert@twinsun.com>
43229
43230         * lib/time_r.c, lib/time_r.h: New files.
43231
43232         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
43233         __localtime_r.
43234         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
43235         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
43236
43237         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
43238         __gmtime_r.
43239         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
43240         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
43241         Include <time_r.h>.
43242
43243         * lib/timegm.c: Switch to glibc implementation, with the following
43244         changes:
43245         [defined HAVE_CONFIG_H]: Include <config.h>.
43246         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
43247         (__mktime_internal) [!defined _LIBC]: New decl.
43248         (__gmtime_r) [!defined _LIBC]: New macro and function.
43249         (timegm): Use a prototype, since gnulib assumes C89.
43250         Do not bother declaring tmp to be const, as it's not really usefu.
43251         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
43252         (timegm): Declare only if HAVE_DECL_TIMEGM.
43253
43254 2003-09-06  Paul Eggert  <eggert@twinsun.com>
43255
43256         * MODULES.html.sh (func_all_modules): Add time_r.
43257         * modules/time_r: New file.
43258         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
43259         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
43260
43261 2003-09-03  Paul Eggert  <eggert@twinsun.com>
43262
43263         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
43264         Bug reported by Lute Kamstra in
43265         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
43266
43267         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
43268         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
43269         course with correspondingly smaller numbers for tomorrow and
43270         yesterday.  From Tadayoshi Funaba.  Originally installed into
43271         sh-utils on 1999-08-07, but the patch got lost (I guess during the
43272         coreutils merge?).
43273
43274 2003-08-31  Simon Josefsson  <jas@extundo.com>
43275
43276         * modules/timegm: New file.
43277         * MODULES.html.sh (func_all_modules): Add timegm.
43278
43279 2003-08-31  Simon Josefsson  <jas@extundo.com>
43280
43281         * m4/timegm.m4: New file.
43282
43283 2003-08-31  Simon Josefsson  <jas@extundo.com>
43284
43285         * lib/timegm.h: New file.
43286         * lib/timegm.c: New file.  Based on
43287         wget-1.8.2/src/http.c:mktime_from_utc.
43288
43289 2003-08-31  Karl Berry  <karl@gnu.org>
43290
43291         * lib/argp.h: update from libc.
43292
43293 2003-08-28  Bruno Haible  <bruno@clisp.org>
43294
43295         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
43296         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
43297         followed by '#define fnmatch fnmatch_posix' gives an error.
43298
43299 2003-08-28  Bruno Haible  <bruno@clisp.org>
43300
43301         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
43302         warning on QNX, which defines O_BINARY to 000000.
43303
43304 2003-08-27  Jim Meyering  <jim@meyering.net>
43305
43306         * m4/mkstemp.m4: Require that the system mkstemp be able to create
43307         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
43308         would fail after 32.  Reported by Danny Levinson.  Details here:
43309         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
43310
43311 2003-08-24  Bruno Haible  <bruno@clisp.org>
43312
43313         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
43314         MSVC7 <stdio.h> is included later.
43315
43316 2003-08-22  Simon Josefsson  <jas@extundo.com>
43317
43318         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
43319
43320 2003-08-20  Karl Berry  <karl@gnu.org>
43321
43322         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
43323
43324 2003-08-20  Bruno Haible  <bruno@clisp.org>
43325
43326         * modules/progname: New file.
43327         * MODULES.html.sh (func_all_modules): Add progname.
43328
43329 2003-08-20  Bruno Haible  <bruno@clisp.org>
43330
43331         * lib/progname.h: New file, from GNU gettext.
43332         * lib/progname.c: New file, from GNU gettext.
43333         * lib/progreloc.c: New file, from GNU gettext.
43334
43335 2003-08-19  Jim Meyering  <jim@meyering.net>
43336
43337         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
43338         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
43339
43340 2003-08-19  Bruno Haible  <bruno@clisp.org>
43341
43342         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
43343         more.
43344
43345 2003-08-19  Bruno Haible  <bruno@clisp.org>
43346
43347         * lib/xstrdup.c: Assume <string.h> exists.
43348
43349 2003-08-18  Paul Eggert  <eggert@twinsun.com>
43350
43351         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
43352         in makefile rules.
43353
43354 2003-08-18  Jim Meyering  <jim@meyering.net>
43355
43356         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
43357         * m4/lib-ld.m4: Likewise.
43358
43359 2003-08-18  Jim Meyering  <jim@meyering.net>
43360
43361         * lib/setenv.h: Indent nested cpp directive.
43362         * lib/vasnprintf.c: Remove trailing blanks.
43363
43364 2003-08-17  Simon Josefsson  <jas@extundo.com>
43365
43366         * modules/xstrndup: New file.
43367         * MODULES.html.sh (func_all_modules): Add xstrndup.
43368
43369 2003-08-17  Simon Josefsson  <jas@extundo.com>
43370
43371         * modules/argp: Fix autoconf macro name. Add more dependencies.
43372
43373 2003-08-17  Simon Josefsson  <jas@extundo.com>
43374
43375         * m4/xstrndup.m4: New file.
43376
43377 2003-08-17  Simon Josefsson  <jas@extundo.com>
43378
43379         * m4/argp.m4: New file.
43380
43381 2003-08-17  Simon Josefsson  <jas@extundo.com>
43382             Bruno Haible  <bruno@clisp.org>
43383
43384         * lib/xstrndup.h: New file.
43385         * lib/xstrndup.c: New file.
43386
43387 2003-08-17  Bruno Haible  <bruno@clisp.org>
43388
43389         * modules/strndup (Files, Include): Add lib/strndup.h.
43390
43391 2003-08-17  Bruno Haible  <bruno@clisp.org>
43392
43393         * modules/euidaccess (Files): Add lib/euidaccess.h.
43394
43395 2003-08-17  Bruno Haible  <bruno@clisp.org>
43396
43397         * lib/strndup.h: New file.
43398
43399 2003-08-17  Bruno Haible  <bruno@clisp.org>
43400
43401         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
43402         like AC_GNU_SOURCE.
43403         * modules/extensions (configure.ac): Comment out the invocation of
43404         gl_USE_SYSTEM_EXTENSIONS.
43405
43406 2003-08-16  Paul Eggert  <eggert@twinsun.com>
43407
43408         Merges from coreutils, etc.
43409         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
43410         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
43411         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
43412         fixing a typo.
43413         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
43414         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
43415
43416 2003-08-16  Paul Eggert  <eggert@twinsun.com>
43417
43418         Document merge from coreutils.
43419         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
43420         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
43421         * modules/utime: Add m4/utimes-null.m4.
43422
43423 2003-08-16  Paul Eggert  <eggert@twinsun.com>
43424
43425         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
43426         space, undoing this 2003-08-12 change:
43427         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
43428
43429 2003-08-16  Paul Eggert  <eggert@twinsun.com>
43430
43431         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
43432         strtoul.c from libc, undoing this 2003-08-12 change:
43433         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
43434
43435 2003-08-16  Jim Meyering  <jim@meyering.net>
43436
43437         Merges from coreutils.
43438         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
43439         prefix.  Adjust cache variables similarly.  Create 500 rather than
43440         just 300 files, to exercise bug on Darwin6.5, too.
43441         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
43442         $missing_dir.
43443         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
43444         AM_SYS_POSIX_TERMIOS.
43445         Reported by mkc@mathdogs.com.
43446         Also change use of $am_cv_sys_posix_termios
43447         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
43448         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
43449         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
43450         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
43451         in /proc/mounts until it finds one with matching device number.  This
43452         is unnecessary when the FILE argument *is* a mount point.  No stat call
43453         is necessary in that case.  So, disable the statvfs-testing code on
43454         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
43455         as RedHat bug# 84846.
43456         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
43457         to 1MB, so as not to render systems with no stack size limit (e.g.,
43458         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
43459         Include <unistd.h>.  On some systems,
43460         it is required for the definition of _SC_PAGESIZE.
43461
43462 2003-08-16  Jim Meyering  <jim@meyering.net>
43463
43464         Merge from coreutils.
43465         * lib/xstrtoimax.c: #else #if -> #elif.
43466         * lib/xstrtoumax.c: Likewise.
43467
43468 2003-08-16  Jim Meyering  <jim@meyering.net>
43469
43470         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
43471         * m4/utimes.m4: Removed.
43472         * m4/utimes-null.m4: Renamed from utimes.m4.
43473
43474         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
43475         to 1MB, so as not to render systems with no stack size limit (e.g.,
43476         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
43477         Include <unistd.h>.  On some systems,
43478         it is required for the definition of _SC_PAGESIZE.
43479
43480 2003-08-16  Jim Meyering  <jim@meyering.net>
43481         and Paul Eggert  <eggert@cs.ucla.edu>
43482
43483         Merges from coreutils, etc.
43484
43485         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
43486         using the latest version from cvs.  This avoids problems with #line
43487         directives using a vendor (Sun) compiler.
43488         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
43489         Don't set GETGROUPS_LIB here; now it's
43490         done via getgroups.m4's wrapper function.
43491         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
43492         rather than just in sh-util/configure.in, so that the
43493         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
43494         same.
43495         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
43496         AC_FUNC_GETLOADAVG where to find getloadavg.c.
43497         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
43498         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
43499         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
43500         Remove code that is now done by the newly-required macros.
43501         Append $(EXEEXT) to DF_PROG.
43502         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
43503         Do not invoke or require the following here,
43504         since prereq.m4 or some gnulib .m4 now does this for us:
43505         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
43506         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
43507         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
43508         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
43509         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
43510         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
43511         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
43512         AC_FUNC_OBSTACK.
43513         Do not replace the following functions, as this is now the job
43514         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
43515         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
43516         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
43517         atexit getpass, strdup, getpagesize.
43518         Replace 'raise'.
43519         Do not check for the following functions, as this is now the job
43520         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
43521         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
43522         setregid.
43523         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
43524         Check for sys/sysctl.h.
43525         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
43526         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
43527         of checking for ssize_t ourselves.
43528
43529         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
43530         Require every macro that gnulib/modules/* suggests for us.
43531         (jm_PREREQ_ADDEXT): New macro.
43532         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
43533         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
43534
43535         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
43536         (gl_PHYSMEM): Use it.
43537         Also check for `table' function.
43538         Check for new headers and functions.
43539         Add check for sys/sysmp.h.
43540         With suggestions from Kaveh Ghazi.
43541         Ignore headers that are present but cannot be compiled.  This
43542         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
43543         C 5.4.
43544
43545 2003-08-15  Paul Eggert  <eggert@twinsun.com>
43546
43547         Document merge from coreutils.
43548         * modules/userspec: Depend on posixver.
43549         * modules/strftime: Depend on tzset.
43550
43551 2003-08-15  Paul Eggert  <eggert@twinsun.com>
43552
43553         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
43554         rather than tab, after '#' in shell-script copyright notices.
43555         Suggested by Bruno Haible.
43556
43557 2003-08-15  Paul Eggert  <eggert@twinsun.com>
43558
43559         * config/srclist-update: Use three spaces, rather than tab, after '#'
43560         in shell-script copyright notices.  Suggested by Bruno Haible.
43561         Remove unnecessary parenthesization in regular expression.
43562
43563 2003-08-15  Jim Meyering  <jim@meyering.net>
43564
43565         Merge from coreutils.
43566         * lib/xgethostname.c: Include <stdlib.h>.
43567         (xghostname): Don't exit for anything other than memory-related
43568         failure; just return NULL.
43569         * lib/userspec.c: Include "posixver.h".
43570         (parse_user_spec): Accept `.' as a separator only
43571         in pre-POSIX-200112 mode.
43572         * lib/strtoimax.c: Use #elif rather than #else #if.
43573         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
43574         Remove function, now that we can rely on a working tzset function.
43575         [!_LIBC]: Ensure that the required autoconf test has been run.
43576         [!defined _NL_CURRENT && HAVE_STRFTIME]:
43577         Use underlying_strftime for %r.
43578         * lib/sha.c: Merge in some clean-up and optimization changes from
43579         glibc.
43580         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
43581         Ensure that it is a multiple of 64.
43582         Rearrange loop exit tests so as to avoid performing an
43583         additional fread after encountering an error or EOF.
43584         * lib/realloc.c: Update copyright date.
43585
43586 2003-08-15  Jim Meyering  <jim@meyering.net>
43587         and Paul Eggert  <eggert@twinsun.com>
43588
43589         Merge from coreutils.
43590         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
43591         member but strut utmpx does not.  Needed for AIX 4.3.3.
43592         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
43593
43594 2003-08-15  Jim Meyering  <jim@meyering.net>
43595         and Paul Eggert  <eggert@cs.ucla.edu>
43596
43597         Merges from coreutils, etc.
43598         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
43599         Require gl_FUNC_TZSET_CLOBBER.
43600         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
43601         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
43602         members.
43603
43604 2003-08-14  Paul Eggert  <eggert@twinsun.com>
43605
43606         Help the merge from coreutils.
43607         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
43608         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
43609         * m4/tzset.m4: Use it too.
43610
43611 2003-08-14  Paul Eggert  <eggert@twinsun.com>
43612
43613         * modules/tzset: New file.
43614
43615 2003-08-14  Jim Meyering  <jim@meyering.net>
43616
43617         Merges from coreutils.
43618         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
43619         variable names, rather than @FNMATCH_H@.
43620         * modules/alloca: Likewise for $(ALLOCA_H).
43621
43622         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
43623         the three copies of the literal target, `fnmatch.h'.
43624         * modules/alloca (alloca.h): Likewise.
43625
43626 2003-08-14  Jim Meyering  <jim@meyering.net>
43627
43628         Merge from coreutils.
43629         * m4/tzset.m4: New file.
43630         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
43631         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
43632         otherwise, AIX 5.1 systems would end up using the latter.
43633         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
43634         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
43635         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
43636         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
43637
43638 2003-08-14  Jim Meyering  <jim@meyering.net>
43639
43640         Merge from coreutils.
43641         * lib/obstack.h: Whitespace changes.
43642         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
43643         and xcalloc return values.
43644         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
43645         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
43646         hang on OSF/1 5.1 for DIR on both local and remote file systems.
43647         Reported by (and fix confirmed by) Nelson H. F. Beebe.
43648         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
43649         error from mntctl.
43650         Use mntctl's return value to drive the entry-processing loop, since
43651         we can't rely on the value of the vmt_length member in the last
43652         entry.  On some systems doing so could result in exhausting
43653         virtual memory.  Based in part on a patch from Mike Jetzer.
43654
43655 2003-08-14  Jim Meyering  <jim@meyering.net>
43656         and Paul Eggert  <eggert@twinsun.com>
43657
43658         Merges from coreutils, plus other fixes.
43659         * lib/physmem.c: Merge in portability changes from gcc/libiberty
43660         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
43661         for credits and details.  Thanks to Kaveh Ghazi for helping
43662         to keep these files in sync.
43663         (ARRAY_SIZE): Define it.
43664         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
43665         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
43666         (memcasecmp): Don't assume size_t fits in unsigned int.
43667         Remove casts and duplicate code.
43668         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
43669         (memcpy): Remove definition.
43670         Merge in some clean-up and optimization changes from glibc.
43671         [BLOCKSIZE]: Move definition to top of file.
43672         Ensure that it is a multiple of 64.
43673         Rearrange loop exit tests so as to avoid performing an
43674         additional fread after encountering an error or EOF.
43675         * lib/md5.h (md5_uintptr): Define.
43676         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
43677         return to the initial working directory.  Preserve errno
43678         for caller.
43679         * lib/idcache.c: Include "xalloc.h".
43680         (xmalloc, xrealloc): Remove decls.
43681         (getuser): Remove casts no longer required in C89.
43682         * lib/human.c: Include stdio.h, for sprintf.
43683         * lib/group-member.c: Include "xalloc.h".
43684         (xmalloc, xrealloc): Remove decls.
43685         (get_group_info): Remove casts no longer required in C89.
43686         * lib/getusershell.c (readname): Remove casts no longer required in
43687         C89.
43688         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
43689         * lib/getline.c: Whitespace fix, from coreutils.
43690
43691 2003-08-13  Paul Eggert  <eggert@twinsun.com>
43692
43693         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
43694         Check for isascii.
43695
43696         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
43697         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
43698         Undo previous (whitespace-only) change.
43699
43700 2003-08-13  Paul Eggert  <eggert@twinsun.com>
43701
43702         * lib/exclude.c: Include <ctype.h>
43703         (IN_CTYPE_DOMAIN): New macro.
43704         (is_space): New fn.
43705         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
43706         and empty lines.
43707
43708         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
43709         Undo previous (whitespace-only) change.
43710
43711 2003-08-13  Paul Eggert  <eggert@twinsun.com>
43712
43713         * config/srclist-update: Change update back to the old behavior,
43714         leaving whitespace alone.  Use one 'sed' command rather than a
43715         pipeline.
43716         (fixlicense): Now a variable, not a function.
43717         (remove_trailing_blanks): Remove.
43718         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
43719         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
43720         Undo previous (whitespace-only) change.
43721
43722 2003-08-12  Paul Eggert  <eggert@twinsun.com>
43723
43724         Merge from coreutils.
43725         * modules/euidaccess: Add lib_SOURCES, include for new
43726         file euidaccess.h
43727
43728 2003-08-12  Paul Eggert  <eggert@twinsun.com>
43729
43730         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
43731         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
43732         Normalize leading white space and remove trailing white space.
43733
43734         Merge from coreutils
43735         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
43736
43737         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
43738         0.12.1.  These files are now being upgraded automatically by
43739         ../config/srclist-update.
43740
43741 2003-08-12  Paul Eggert  <eggert@twinsun.com>
43742
43743         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
43744         Normalize leading white space and remove trailing white space.
43745         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
43746         notice, as per ../config/srclist-update.
43747
43748         Merge from coreutils.
43749         * lib/euidaccess.h: New file.
43750         * lib/euidaccess.c: Include it.
43751         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
43752         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
43753         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
43754
43755 2003-08-12  Paul Eggert  <eggert@twinsun.com>
43756
43757         * config/srclist-update: Add copyright notice.
43758         (remove_id_lines, remove_trailing_blanks): New constants.
43759         (fixfile): Use them to normalize spacing a bit in copied files.
43760         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
43761         Normalize leading white space and remove trailing white space.
43762
43763         * config/texinfo.tex: Sync with texinfo.
43764
43765         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
43766         strtoul.c from libc, to merge coreutils whitespace changes.
43767
43768         * config/srclist.txt: Get the following m4 files from gettext:
43769         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
43770         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
43771         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
43772         wint_t.m4.
43773
43774 2003-08-12  Karl Berry  <karl@gnu.org>
43775
43776         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
43777         been made.
43778
43779 2003-08-11  Paul Eggert  <eggert@twinsun.com>
43780
43781         * modules/gnu-source, m4/gnu-source.m4:
43782         Remove; we're assuming Autoconf 2.54 or later now.
43783         Suggested by Bruno Haible.
43784         * MODULES.html.sh (func_all_modules): Remove gnu-source.
43785
43786 2003-08-11  Bruno Haible  <bruno@clisp.org>
43787
43788         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
43789
43790 2003-08-11  Bruno Haible  <bruno@clisp.org>
43791
43792         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
43793         (vasnprintf): Use it instead of wcslen.
43794
43795 2003-08-11  Bruno Haible  <bruno@clisp.org>
43796
43797         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
43798         value to ensure that _Bool promotes to int. Use #define for _Bool when
43799         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
43800
43801 2003-08-10  Karl Berry  <karl@gnu.org>
43802
43803         * lib/regex.h: update from libc (whitespace fix).
43804
43805 2003-08-09  Paul Eggert  <eggert@twinsun.com>
43806
43807         Merge some files from coreutils.  These changes were
43808         originally made by Jim Meyering.
43809         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
43810         many older Unixes require this.
43811         * lib/alloca.c (alloca): Remove cast to argument of free;
43812         no longer needed in C89.
43813         * lib/alloca_.h, regex.h: Fix white space to match
43814         what GNU indent does.
43815
43816 2003-08-09  Paul Eggert  <eggert@twinsun.com>
43817
43818         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
43819         apparently Emacs's Unicode mode got confused before my 2003-08-05
43820         checkin.
43821
43822 2003-08-08  Paul Eggert  <eggert@twinsun.com>
43823
43824         * m4/extensions.m4: New file.
43825         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
43826         Require gl_USE_SYSTEM_EXTENSIONS.
43827         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
43828         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
43829
43830 2003-08-08  Paul Eggert  <eggert@twinsun.com>
43831
43832         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
43833         * modules/extensions, modules/gnu-source: New files.
43834         * modules/timespec, modules/unlocked-io: Depend on extensions.
43835
43836 2003-08-07  Paul Eggert  <eggert@twinsun.com>
43837
43838         * modules/restrict: New file.
43839         * MODULES.html.sh (func_all_modules): Add restrict.
43840         * modules/regex: Depend on restrict.
43841
43842 2003-08-07  Paul Eggert  <eggert@twinsun.com>
43843
43844         * m4/restrict.m4: New file.
43845         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
43846
43847 2003-08-07  Bruno Haible  <bruno@clisp.org>
43848
43849         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
43850         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
43851
43852 2003-08-07  Bruno Haible  <bruno@clisp.org>
43853
43854         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
43855         makes the module 'getndelim2' compatible with the module 'getline'.
43856
43857 2003-08-05  Paul Eggert  <eggert@twinsun.com>
43858
43859         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
43860         byte with "\201" to avoid glitches when editing that source file
43861         with multi-gnome-terminal.
43862
43863 2003-08-05  Paul Eggert  <eggert@twinsun.com>
43864
43865         * lib/bumpalloc.h: Remove.
43866
43867 2003-08-05  Paul Eggert  <eggert@twinsun.com>
43868
43869         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
43870         * modules/bumpalloc: Remove.
43871
43872 2003-08-04  Paul Eggert  <eggert@twinsun.com>
43873
43874         * lib/getloadavg.c: Change copyright notice and spacing to conform to
43875         GNU coding style.
43876
43877         Merge from coreutils.
43878         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
43879         1. From glibc.
43880         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
43881         from Karl Berry, implemented by Jim Meyering.
43882         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
43883         from Dmitry V. Levin.
43884         Remove anachronistic cast of xrealloc.
43885         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
43886         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
43887         type. Otherwise, it wouldn't compile with at least /bin/cc on
43888         ymp-cray-unicos9.0.2.X.
43889         Combine two mostly-identical uses of alloca into one.
43890         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
43891
43892 2003-08-04  Dave Love  <d.love@dl.ac.uk>
43893
43894         [From Emacs.]
43895
43896         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
43897         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
43898         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
43899         obsolete NLIST_NAME_UNION.
43900         [__GNU__]: Undef BSD and FSCALE.
43901         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
43902
43903 2003-08-03  Paul Eggert  <eggert@twinsun.com>
43904
43905         * lib/stdbool_.h (_Bool): Make it signed char, instead of
43906         an enum type, so that it's guaranteed to promote to int.  See:
43907         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
43908
43909 2003-08-03  Karl Berry  <karl@gnu.org>
43910
43911         * config/depcomp: update from automake.
43912
43913 2003-07-31  Paul Eggert  <eggert@twinsun.com>
43914
43915         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
43916         (strerror): Don't assume that a printable int fits in 14 bytes.
43917
43918 2003-07-31  Bruno Haible  <bruno@clisp.org>
43919
43920         * modules/getpass-gnu: New file.
43921         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
43922
43923 2003-07-31  Bruno Haible  <bruno@clisp.org>
43924
43925         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
43926
43927 2003-07-24  Karl Berry  <karl@gnu.org>
43928
43929         * config/missing: update from automake.
43930
43931 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
43932             Bruno Haible  <bruno@clisp.org>
43933
43934         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
43935         * lib/getline.c (getline, getdelim): Likewise.
43936         Remove _GNU_SOURCE define; now it's defined in config.h through
43937         m4/getline.m4.
43938
43939 2003-07-23  Karl Berry  <karl@gnu.org>
43940
43941         * config/config.sub: update from prep.
43942
43943 2003-07-22  Paul Eggert  <eggert@twinsun.com>
43944
43945         * modules/xalloc (Depends-on): Add exitfail.
43946         * modules/xmemcoll: Likewise.
43947
43948 2003-07-22  Paul Eggert  <eggert@twinsun.com>
43949
43950         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
43951         over-parenthesization in macros.
43952
43953         Sync with coreutils.
43954
43955         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
43956         required by C99.
43957
43958         Use `exit_failure' for xalloc and xmemcoll instead of their own
43959         private exit-failure variables.
43960         * lib/xalloc.h (xalloc_exit_failure): Remove.
43961         * lib/xmalloc.c: Likewise.  Include exitfail.h.
43962         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
43963         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
43964         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
43965         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
43966
43967 2003-07-20  Jim Meyering  <jim@meyering.net>
43968
43969         * modules/closeout (Depends-on): Add exitfail.
43970         Suggestion from Bruno Haible.
43971
43972 2003-07-19  Karl Berry  <karl@gnu.org>
43973
43974         * config/config.sub: update from prep.
43975
43976 2003-07-18  Paul Eggert  <eggert@twinsun.com>
43977
43978         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
43979         Remove.
43980         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
43981         to test that it can stand by itself.  Include "exitfail.h".
43982         Clients should set exit_failure instead.
43983         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
43984
43985 2003-07-18  Bruno Haible  <bruno@clisp.org>
43986
43987         * modules/getndelim2: New file.
43988         * modules/getline: Share files with module getndelim2.
43989         * modules/getnline: Depend on getndelim2 instead of sharing files with
43990         it. Add getnline.c to lib_SOURCES.
43991         * MODULES.html.sh (func_all_modules): Add getndelim2.
43992
43993 2003-07-18  Bruno Haible  <bruno@clisp.org>
43994
43995         * m4/getndelim2.m4: New file.
43996         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
43997         invoke gl_PREREQ_GETNDELIM2.
43998         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
43999         gl_PREREQ_GETNDELIM2.
44000         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
44001         gl_GETNDELIM2.
44002
44003 2003-07-18  Bruno Haible  <bruno@clisp.org>
44004
44005         * lib/getndelim2.h: New file.
44006         * lib/getndelim2.c: Make into a module of its own. Include config.h,
44007         getndelim2.h.
44008         (getndelim2): Make non-static. Change return type to ssize_t.
44009         * lib/getline.h: Change argument names.
44010         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
44011         * lib/getnline.c: Include getndelim2.h.
44012
44013 2003-07-18  Andreas Schwab  <schwab@suse.de>
44014
44015         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
44016
44017 2003-07-17  Karl Berry  <karl@gnu.org>
44018
44019         * config/config.sub: update from prep.
44020
44021 2003-07-17  Bruno Haible  <bruno@clisp.org>
44022
44023         * modules/getnline: New file.
44024         * modules/getline: Add lib/getndelim2.c to source file list.
44025         * MODULES.html.sh (func_all_modules): Add getnline.
44026
44027 2003-07-17  Bruno Haible  <bruno@clisp.org>
44028
44029         * m4/getnline.m4: New file.
44030
44031 2003-07-17  Bruno Haible  <bruno@clisp.org>
44032
44033         * m4/Makefile.am.in: Remove file.
44034         * m4/Makefile.am: Remove file.
44035         * m4/Makefile.in: Remove file.
44036
44037 2003-07-17  Bruno Haible  <bruno@clisp.org>
44038
44039         * lib/getnline.h: New file.
44040         * lib/getnline.c: New file.
44041         * lib/getndelim2.c: New file, extracted from getline.c.
44042         (getndelim2): Renamed from getdelim2, with added nmax argument.
44043         * lib/getline.c: Include getndelim2.c.
44044         (getdelim2): Moved out to getndelim2.c.
44045         (getline, getdelim): Update.
44046
44047 2003-07-17  Bruno Haible  <bruno@clisp.org>
44048
44049         * lib/Makefile.am: Remove file.
44050         * lib/Makefile.in: Remove file.
44051
44052 2003-07-17  Bruno Haible  <bruno@clisp.org>
44053
44054         * configure.in: Remove file.
44055         * Makefile.in: Remove file.
44056
44057 2003-07-17  Bruno Haible  <bruno@clisp.org>
44058
44059         * MODULES.html.sh: Put the </BODY> right before </HTML>.
44060
44061 2003-07-16  Karl Berry  <karl@gnu.org>
44062
44063         * config/srclist-update: was running fixlicense twice, which caused
44064                 texinfo.tex to be nullified for some reason.  Simplify,
44065                 $gplsrc is no longer needed as far as I can see?
44066
44067 2003-07-16  Jim Meyering  <jim@meyering.net>
44068
44069         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
44070
44071 2003-07-15  Paul Eggert  <eggert@twinsun.com>
44072
44073         * config/srclist.txt: Get the following files from gettext-runtime/intl
44074         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
44075         ref-del.sin.  From Bruno Haible.
44076         * config/srclist-update (fixfile): Change grep pattern again, since the
44077         previous fix didn't work (there was another trailing $).  Use
44078         '[$]' to escape the $s.
44079
44080 2003-07-15  Karl Berry  <karl@gnu.org>
44081
44082         * lib/vasnprintf.c: update from gettext.
44083
44084 2003-07-15  Karl Berry  <karl@gnu.org>
44085
44086         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
44087         gets expanded when surrounded by '$'.
44088
44089 2003-07-15  Jim Meyering  <jim@meyering.net>
44090
44091         * modules/save-cwd: Don't depend on error.  From Derek Price.
44092
44093 2003-07-15  Jim Meyering  <jim@meyering.net>
44094
44095         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
44096
44097 2003-07-14  Simon Josefsson  <jas@extundo.com>
44098
44099         * modules/mempcpy: New file.
44100         * MODULES.html.sh (func_all_modules): Add mempcpy.
44101
44102 2003-07-14  Simon Josefsson  <jas@extundo.com>
44103
44104         * m4/mempcpy.m4: New file.
44105
44106 2003-07-14  Simon Josefsson  <jas@extundo.com>
44107
44108         * lib/mempcpy.h: New file.
44109         * lib/mempcpy.c: New file.
44110
44111 2003-07-14  Paul Eggert  <eggert@twinsun.com>
44112
44113         * modules/getdate, modules/posixtm: Depend on mktime.
44114
44115 2003-07-14  Paul Eggert  <eggert@twinsun.com>
44116
44117         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
44118         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
44119         unicodeio.c, unicodeio.h, unlocked-io.h:
44120         Switch from LGPL to GPL.
44121
44122 2003-07-14  Paul Eggert  <eggert@twinsun.com>
44123
44124         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
44125         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
44126         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
44127         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
44128         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
44129         updated automatically by ../config/srclist-update.  This changes
44130         their license from LPGL to GPL.
44131
44132 2003-07-14  Paul Eggert  <eggert@twinsun.com>
44133
44134         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
44135         assumed to refer to the root of the most recent stable gettext version.
44136         * config/srclistvars.sh: Add defaults for eggert.
44137         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
44138         Match "This program" as well as "The program".  This is needed
44139         for gettext.
44140
44141 2003-07-14  Jim Meyering  <jim@meyering.net>
44142
44143         Don't emit diagnostics.  Let callers do that.
44144         * lib/save-cwd.c: Don't include "error.h".
44145         (save_cwd): Don't call error.  Ensure that errno is valid
44146         when returning nonzero.
44147
44148         * lib/save-cwd.h (restore_cwd): Update prototype.
44149         * lib/save-cwd.c (restore_cwd): Remove two parameters.
44150         Simplify.  Don't call error upon failure.  Let callers do that.
44151         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
44152         when auditing is enabled.  But don't bother updating the #if.
44153
44154 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
44155
44156         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
44157         it breaks C++ compilation.
44158         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
44159
44160 2003-07-10  Simon Josefsson  <jas@extundo.com>
44161
44162         * modules/strchrnul (Makefile.am): Add strchrnul.h.
44163
44164 2003-07-10  Jim Meyering  <jim@meyering.net>
44165
44166         * m4/clock_time.m4: Remove trailing blank.
44167         * m4/intmax_t.m4: Likewise.
44168
44169 2003-07-10  Jim Meyering  <jim@meyering.net>
44170
44171         * lib/vasnprintf.c: Remove trailing blanks.
44172         Make cpp indentation consistent.
44173
44174 2003-07-09  Paul Eggert  <eggert@twinsun.com>
44175
44176         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
44177         posixver.c, strftime.c, strnlen.c, strverscmp.c:
44178         Switch from LGPL to GPL.
44179
44180 2003-07-09  Paul Eggert  <eggert@twinsun.com>
44181
44182         * config/srclist.txt: Sort sublists.  Add
44183         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
44184         that differ from gnulib for one reason or another; we'd like this list
44185         to be smaller but for now let's document what we have.
44186
44187 2003-07-08  Paul Eggert  <eggert@twinsun.com>
44188
44189         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
44190         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
44191         and sweeter "eval x=$x".
44192         * config/srclist.txt: Get lib/argp* from glibc.
44193
44194 2003-07-07  Paul Eggert  <eggert@twinsun.com>
44195
44196         * lib/mktime.c: Fix some boundary cases and remove need for floating
44197         point.
44198
44199         Issue a compile-time diagnostic if time_t is floating point, or if
44200         two's complement arithmetic is not in effect, or if arithmetic
44201         right shift does not propagate the sign.  These assumptions were
44202         all in the original code but they weren't checked.
44203
44204         (TIME_T_MIDPOINT, verify): New macros.
44205         (__isleap): Remove; it has integer overflow problems.
44206         (leapyear): New function, without those problems.
44207         (ydhms_tm_diff): Remove; splitting into two parts.
44208         (ydhms_diff): New function, containing the arithmetic part of
44209         the old ydhms_tm_diff function.  Issue a compile-time
44210         diagnostic if we are not using C99 integer division.
44211         Avoid casts when possible.
44212         (guess_time_tm): New function, containing the checking part of
44213         the old ydhms_tm_diff function.  Return the new value, rather than
44214         the difference between it and the old.  Accept a new argument T
44215         so that *T specifies the old value.  Check for overflow in the result.
44216
44217         (__mktime_internal): Use a time_t offset, not a long int offset.
44218         This undoes the 2003-06-04 change, which is no longer needed now
44219         that we have better overflow checking.
44220         (localtime_offset): Likewise.
44221
44222         (__mktime_internal): Avoid harmful overflow on hosts where time_t
44223         and long are 64-bit but int is only 32-bit.
44224         (ydhms_diff): Use long int to store year1 and yday1.
44225         Issue a compile-time diagnostic if long int is not wide enough.
44226
44227         (__mktime_internal): Use long int to store adjusted year and yday.
44228         Use plain C rather than preprocessor commands, if that doesn't
44229         affect efficiency.
44230         Check for overflow (and try to repair) after each probe
44231         rather than checking only at the very end.  This avoids some bugs
44232         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
44233         does not equal GMT offset at maximum time).
44234         Use integer to check for overflow rather than floating point; this
44235         is more portable to non-IEEE hosts, and is a tad faster.
44236         When we detect that we are oscillating between two values,
44237         don't check whether tm_isdst has the requested value, since
44238         we already know the answer.  When tm_isdst has the wrong value,
44239         use a different heuristic to find the right one, based on the
44240         extreme values actually observed in practice in tz2003a,
44241         rather than the (overly optimistic) "previous 3 calendar quarters".
44242
44243         (not_equal_tm, print_tm, check_result): Use "const T" rather than
44244         "T const" to accommodate glibc style.
44245         (check_result): Use less-confusing report format.  "long" -> "long int.
44246         (main): Likewise.
44247         Don't loop if the iteration overflows time_t.
44248         Allow a negative step in the iteration.
44249
44250 2003-07-06  Karl Berry  <karl@gnu.org>
44251
44252         * config/depcomp: update from automake.
44253         * config/config.sub: update from prep.
44254
44255 2003-07-03  Karl Berry  <karl@gnu.org>
44256
44257         * config/config.guess: update from prep.
44258
44259 2003-07-01  Paul Eggert  <eggert@twinsun.com>
44260
44261         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
44262         xreadlink.c now includes it unconditionally.
44263
44264 2003-07-01  Paul Eggert  <eggert@twinsun.com>
44265
44266         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
44267         having it depend on HAVE_SYS_TYPES_H.
44268
44269 2003-07-01  Bruno Haible  <bruno@clisp.org>
44270
44271         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
44272         <sys/types.h> should be sufficient.
44273         Reported by Paul Eggert.
44274
44275 2003-06-26  Karl Berry  <karl@gnu.org>
44276
44277         * config/depcomp: update from automake.
44278
44279 2003-06-26  Bruno Haible  <bruno@clisp.org>
44280
44281         * modules/human: Depend on module stdbool.
44282
44283 2003-06-25  Bruno Haible  <bruno@clisp.org>
44284
44285         * modules/readlink: New file.
44286         * modules/xreadlink: Depend on it.
44287         * MODULES.html.sh (func_all_modules): Add readlink.
44288
44289 2003-06-25  Bruno Haible  <bruno@clisp.org>
44290
44291         * m4/readlink.m4: New file.
44292
44293 2003-06-25  Bruno Haible  <bruno@clisp.org>
44294
44295         * lib/readlink.c: New file.
44296
44297 2003-06-22  Karl Berry  <karl@gnu.org>
44298
44299         * config/srclist.txt: update mkinstalldirs from automake.
44300         * config/mkinstalldirs: update.
44301
44302 2003-06-22  Bruno Haible  <bruno@clisp.org>
44303
44304         Portability to mingw32.
44305         * m4/ssize_t.m4: New file, from GNU gettext.
44306         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
44307         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
44308
44309 2003-06-22  Bruno Haible  <bruno@clisp.org>
44310
44311         * modules/safe-read: Add m4/ssize_t.m4.
44312         * modules/xreadlink: Add m4/ssize_t.m4.
44313
44314 2003-06-20  Bruno Haible  <bruno@clisp.org>
44315
44316         Assume C89, so PARAMS isn't needed.
44317         * lib/unicodeio.h (PARAMS): Remove.
44318         * lib/unicodeio.c: Don't use PARAMS.
44319
44320 2003-06-18  Karl Berry  <karl@gnu.org>
44321
44322         * config/config.{guess,sub}: update from prep.
44323
44324 2003-06-18  Jim Meyering  <jim@meyering.net>
44325
44326         Merge changes from coreutils.
44327         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
44328         Remove explicit declarations of xmalloc and realloc.
44329         Include xalloc.h.
44330         (read_utmp): Remove anachronistic cast of xmalloc.
44331
44332 2003-06-17  Paul Eggert  <eggert@twinsun.com>
44333
44334         Assume C89, so PARAMS isn't needed.
44335         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
44336         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
44337         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
44338         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
44339         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
44340         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
44341         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
44342         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
44343         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
44344         lib/xstrtod.h, lib/xstrtol.h: Likewise.
44345         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
44346         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
44347         no longer needed. Anyway, config.h should always be included before any
44348         other file.
44349
44350 2003-06-11  Simon Josefsson  <jas@extundo.com>
44351
44352         * modules/sysexits: New file.
44353         * MODULES.html.sh (func_all_modules): Add sysexits.
44354
44355 2003-06-11  Simon Josefsson  <jas@extundo.com>
44356
44357         * lib/sysexit_.h: New file.
44358
44359 2003-06-11  Derek Price  <derek@ximbiot.com>
44360
44361         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
44362         necessary.
44363
44364 2003-06-11  Bruno Haible  <bruno@clisp.org>
44365
44366         * m4/sysexits.m4: New file.
44367
44368 2003-06-10  Simon Josefsson  <jas@extundo.com>
44369
44370         * lib/argp.h: New file, from glibc.
44371         * lib/argp-ba.c: New file, from glibc.
44372         * lib/argp-eexst.c: New file, from glibc.
44373         * lib/argp-fmtstream.c: New file, from glibc.
44374         * lib/argp-fmtstream.h: New file, from glibc.
44375         * lib/argp-fs-xinl.c: New file, from glibc.
44376         * lib/argp-help.c: New file, from glibc.
44377         * lib/argp-namefrob.h: New file, from glibc.
44378         * lib/argp-parse.c: New file, from glibc.
44379         * lib/argp-pv.c: New file, from glibc.
44380         * lib/argp-pvh.c: New file, from glibc.
44381         * lib/argp-xinl.c: New file, from glibc.
44382
44383 2003-06-10  Simon Josefsson  <jas@extundo.com>
44384
44385         * modules/strchrnul: New file.
44386
44387 2003-06-10  Simon Josefsson  <jas@extundo.com>
44388
44389         * modules/argp: New file.
44390
44391 2003-06-10  Simon Josefsson  <jas@extundo.com>
44392
44393         * m4/strchrnul.m4: New file.
44394
44395 2003-06-10  Simon Josefsson  <jas@extundo.com>
44396
44397         * lib/strchrnul.h: New file.
44398         * lib/strchrnul.c: New file.
44399
44400 2003-06-10  Bruno Haible  <bruno@clisp.org>
44401
44402         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
44403
44404 2003-06-07  Karl Berry  <karl@gnu.org>
44405
44406         * config/config.{guess,sub}: update from prep.
44407
44408 2003-06-07  Jim Meyering  <jim@meyering.net>
44409
44410         * modules/strtod: Use $(...) notation, not @...@ for
44411         AC_REPLACE'd variables.
44412         * modules/localcharset: Likewise.
44413
44414 2003-06-07  Jim Meyering  <jim@meyering.net>
44415
44416         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
44417         in place of my name in the copyright comment.
44418         Remove definition and uses of __P.
44419
44420         From coreutils.
44421         * lib/stat.c: Don't declare xmalloc explicitly.
44422         Instead, include "xalloc.h".
44423         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
44424         xrealloc, and xcalloc return values.
44425         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
44426         Improve comment.
44427         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
44428
44429 2003-06-07  Bruno Haible  <bruno@clisp.org>
44430
44431         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
44432         avoid AC_CONFIG_LINKS.
44433         * modules/fnmatch (Makefile.am): Use explicit creation rule for
44434         fnmatch.h, to avoid AC_CONFIG_LINKS.
44435         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
44436
44437 2003-06-07  Bruno Haible  <bruno@clisp.org>
44438
44439         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
44440         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
44441         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
44442         directory.
44443         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
44444         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
44445         directory.
44446
44447 2003-06-06  Jim Meyering  <jim@meyering.net>
44448
44449         Merge from coreutils.
44450         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
44451         Consolidate declarations and initializations of *_base* locals.
44452
44453         Merge from coreutils.
44454         This avoids a core dump on systems without GNU putenv,
44455         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
44456         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
44457         (unsetenv): New static function, from GNU libc.
44458         (rpl_putenv): Use it.
44459
44460         * lib/modechange.c: Remove trailing blanks.
44461
44462         Merge from coreutils.
44463         * lib/fsusage.c: Remove declaration of statfs.
44464         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
44465
44466         * lib/posixtm.c: Include <stdbool.h> unconditionally.
44467
44468 2003-06-06  Jim Meyering  <jim@meyering.net>
44469
44470         * lib/stdbool_.h: Renamed from stdbool.h.in.
44471
44472 2003-06-06  Jim Meyering  <jim@meyering.net>
44473             Bruno Haible  <bruno@clisp.org>
44474
44475         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
44476         Adjust Makefile.am snippet not to redirect directly to target.
44477         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
44478
44479 2003-06-05  Paul Eggert  <eggert@twinsun.com>
44480
44481         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
44482         mismatch, look in future quarters as well as past.  This fixes a
44483         bug when processing fall-backwards gaps immediately after a long
44484         period of daylight-saving time.
44485
44486         * lib/mktime.c: Assume freestanding C89 or better.
44487         (HAVE_LIMITS_H): Remove.  Assume it's 1.
44488         (__P): Remove; not used.
44489         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
44490         (mktime, not_equal_tm, print_tm, check_result,
44491         main): Use prototypes.  Use const * where appropriate.
44492         (main): Fix typo in testing code that uncovered by above changes.
44493         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
44494
44495 2003-06-04  Paul Eggert  <eggert@twinsun.com>
44496
44497         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
44498         locale.h, localeconv.  This merges changes from coreutils.
44499
44500         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
44501         It can be removed after the next Autoconf is released.
44502         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
44503         needed.
44504
44505 2003-06-04  Paul Eggert  <eggert@twinsun.com>
44506
44507         * lib/mktime.c: Fix Debian bug 177940
44508         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
44509         (localtime_offset): Now long int, not time_t, because we want it
44510         to be guaranteed to be signed.  All uses changed.
44511         (__mktime_internal): If overflow would occur when adding offset,
44512         don't add it.
44513
44514         Merge 'human' changes from coreutils.  Rewrite to support
44515         locale-specific notations like thousands separators.
44516         * lib/human.c: Simplify authorship notice.
44517         Include human.h immediately after config.h.
44518         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
44519         <limits.h>: Do not include, since human.h does.
44520         (SIZE_MAX, UINTMAX_MAX): New macros.
44521         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
44522         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
44523         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
44524         (power_letter): Renamed from suffixes.
44525         (generate_suffix_backwards): Remove.
44526         (adjust_value): Now takes int style (because of human.h changes)
44527         and long double value (for greater precision on some platforms).
44528         (group_number): New function.
44529         (human_readable): Use it.  Use integer options, not enum.
44530         Put the options before the sizes in the arg list.
44531         Support all the new options.
44532         The old human_readable function has been removed;
44533         use inttostr.h instead.
44534         (human_readable, default_block_size, humblock):
44535         Use uintmax_t, not int, for block sizes.
44536         (human_readable_inexact, block_size_types): Remove.
44537         (block_size_opts): New constant.
44538         (human_options): Renamed from human_block_size, with new signature
44539         that allows block sizes up to UINTMAX_MAX.  All callers changed.
44540         * lib/human.h: Add copyright and authorship notice.
44541         Include <limits.h> and <stdbool.h> unconditionally.
44542         (PARAMS): Remove.  All uses removed.
44543         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
44544         (enum human_inexact_style): Remove tag; now a nameless enum.
44545         (human_floor, human_ceiling, human_round_to_even): Now have
44546         values 2, 0, 1 rather than -1, 1, 0.
44547         (human_group_digits, human_suppress_point_zero, human_autoscale,
44548         human_base_1024, human_SI, human_B): New constants.
44549         (human_readable_inexact, human_block_size): Remove.
44550         (human_readable): Size args are now uintmax_t, not int.
44551         (human_options): New decl.
44552
44553         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
44554         unnecessary now that we assume C89 or better.  This change
44555         imported from coreutils.
44556
44557         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
44558         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
44559         in the 2003-05-30 sync from glibc.
44560
44561         .h files should stand alone, but we shouldn't include <sys/types.h>
44562         if we can get away with just <stddef.h>.
44563
44564         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
44565         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
44566         rather than <sys/types.h>, as we merely need size_t.
44567         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
44568         to get size_t.
44569         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
44570         Include <stdio.h>, to get FILE.
44571         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
44572         memcasecmp.h has included <stddef.h> and all we need is size_t.
44573         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
44574         our interface, instead of including <sys/types.h>
44575
44576 2003-06-04  Paul Eggert  <eggert@twinsun.com>
44577
44578         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
44579         now, as glibc mktime is buggy on non-glibc systems.
44580
44581 2003-06-03  Karl Berry  <karl@gnu.org>
44582
44583         * config/config.sub: update from prep.
44584
44585 2003-06-02  Paul Eggert  <eggert@twinsun.com>
44586
44587         [from coreutils]
44588         Fix some minor time-related bugs with POSIX time arguments.
44589         Some valid time stamps were being rejected (notably -1, and
44590         time stamps before 1900 on 64-bit hosts).  And some invalid
44591         time stamps were being accepted, e.g. September 31.
44592
44593         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
44594         that we can return (time_t) -1 successfully.
44595         * lib/posixtm.c: Likewise.
44596         [HAVE_STDBOOL_H]: Include <stdbool.h>.
44597         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
44598         (t): Remove static var.
44599         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
44600         of static var.  All uses changed.
44601         (year): Do not reject years before 1900; they can occur with
44602         64-bit time_t.
44603         (posix_time_parse): Do not check for out-of-range components;
44604         that is now the caller's responsibility, since our checks were
44605         only approximations.
44606         (posixtime): Use mktime to check for out-of-range components,
44607         since it knows them exactly.
44608         If mktime returns (time_t) -1, check whether an error actually occurred
44609         by invoking localtime on -1.
44610         (main) [TEST_POSIXTIME]: Check for input data errors, and report
44611         posixtime failures better.
44612         Improve the test data (in comments only).
44613
44614 2003-06-02  Karl Berry  <karl@gnu.org>
44615
44616         * config/mkinstalldirs (version): new variable.
44617         (--version): new option.
44618         (usage): improve message.
44619
44620 2003-05-30  Karl Berry  <karl@gnu.org>
44621
44622         * lib/mktime.c: update from libc.
44623
44624 2003-05-30  Bruno Haible  <bruno@clisp.org>
44625
44626         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
44627         * config/config.rpath: Upgrade to gettext-0.12.1.
44628
44629 2003-05-30  Bruno Haible  <bruno@clisp.org>
44630
44631         * m4/gettext.m4: Upgrade to gettext-0.12.1.
44632         * m4/nls.m4: New file, from gettext-0.12.1.
44633         * m4/po.m4: New file, from gettext-0.12.1.
44634         * m4/progtest.m4: Upgrade to gettext-0.12.1.
44635
44636 2003-05-30  Bruno Haible  <bruno@clisp.org>
44637
44638         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
44639         * lib/localcharset.h: Likewise.
44640         * lib/localcharset.c: Likewise.
44641
44642 2003-05-29  Karl Berry  <karl@gnu.org>
44643
44644         * config/config.rpath: update from gettext.
44645
44646 2003-05-28  Paul Eggert  <eggert@twinsun.com>
44647
44648         Assume the headers required for C89 freestanding compilers.
44649         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
44650         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
44651         * m4/human.m4 (gl_HUMAN): Likewise.
44652         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
44653         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
44654         * m4/userspec.m4 (gl_USERSPEC): Likewise.
44655         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
44656         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44657         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
44658
44659 2003-05-28  Paul Eggert  <eggert@twinsun.com>
44660
44661         Assume the headers required for C89 freestanding compilers.
44662         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
44663         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
44664         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
44665         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
44666         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
44667         define, since <limits.h> is guaranteed to do that.
44668         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
44669         * lib/exclude.c: Include <stdbool.h> unconditionally.
44670         * lib/tempname.c: Include <stddef.h> unconditionally.
44671         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
44672         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
44673         <stddef.h> does that.
44674         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
44675         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
44676         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
44677         needed.
44678         * lib/xstrtol.c: Likewise.
44679         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
44680         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
44681
44682         * lib/addext.c (addext): Use assignment rather than cast, to avoid
44683         warnings on some platforms.
44684
44685         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
44686         arbitrarily.
44687
44688 2003-05-26  Jim Meyering  <jim@meyering.net>
44689
44690         Merge in a change from coreutils:
44691         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
44692         that is guaranteed to be `no'.  Use `no_such_member' to indicate
44693         that condition, rather than `-1' which is slightly misleading.
44694         Change the name of the cache variable to have the gl_ prefix.
44695         Prompted by a patch from Richard Dawe for DJGPP.
44696
44697 2003-05-24  Karl Berry  <karl@gnu.org>
44698
44699         * config/config.guess: update from prep.
44700
44701 2003-05-22  Karl Berry  <karl@gnu.org>
44702
44703         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
44704
44705 2003-05-20  Karl Berry  <karl@gnu.org>
44706
44707         * config/config.guess: update from prep.
44708
44709 2003-05-18  Karl Berry  <karl@gnu.org>
44710
44711         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
44712         might actually be set by the user.
44713
44714         * config/depcomp, install-sh, mdate-sh: update from automake.
44715
44716 2003-05-17  Bruno Haible  <bruno@clisp.org>
44717
44718         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
44719         invalid expansion for AC_EGREP_CPP.
44720         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
44721         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
44722         Suggested by Akim Demaille <akim@epita.fr> in
44723         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
44724
44725 2003-05-12  Jim Meyering  <jim@meyering.net>
44726
44727         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
44728         the space-padded-by-default conversion specifiers, %e, %k, %l.
44729
44730 2003-05-12  Bruno Haible  <bruno@clisp.org>
44731
44732         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
44733         the string is longer than 4 KB.
44734
44735 2003-05-11  Karl Berry  <karl@gnu.org>
44736
44737         * config/config.{guess,sub}: update from prep.
44738
44739 2003-05-09  Bruno Haible  <bruno@clisp.org>
44740
44741         * modules/error: Add m4/strerror_r.m4 to file list.
44742
44743 2003-05-03  Bruno Haible  <bruno@clisp.org>
44744
44745         Upgrade to Unicode-4.0.
44746         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
44747         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
44748         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
44749         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
44750         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
44751         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
44752         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
44753         Change width of U+E0100..U+E01EF from 1 to 0.
44754
44755 2003-04-25  Jim Meyering  <jim@meyering.net>
44756
44757         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
44758         of type size_t, not int.
44759
44760 2003-04-25  Bruno Haible  <bruno@clisp.org>
44761
44762         * lib/copy-file.c: Include <stddef.h>, for size_t.
44763
44764 2003-04-21  Paul Eggert  <eggert@twinsun.com>
44765
44766         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
44767         code which expansion is under static control.  Patch imported from
44768         Akim Demaille's patch to Bison; see
44769         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
44770
44771 2003-04-14  Bruno Haible  <bruno@clisp.org>
44772
44773         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
44774
44775 2003-04-11  Jim Meyering  <jim@meyering.net>
44776
44777         Merge changes from Coreutils.
44778
44779         2003-03-22  Jim Meyering  <jim@meyering.net>
44780
44781         * lib/strftime.c (widen): Cast alloca return value to proper type.
44782
44783         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
44784
44785         From GNU libc.
44786         * lib/strftime.c (my_strftime): Handle very large width
44787         specifications for numeric values correctly.  Improve checks for
44788         overflow.
44789
44790         2003-01-19  Jim Meyering  <jim@meyering.net>
44791
44792         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
44793         definitions.
44794         (nl_get_alt_digit) [! defined my_strftime]: Define.
44795         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
44796         _nl_get_alt_digit and _nl_get_walt_digit.
44797
44798         * lib/strftime.c (my_strftime): Merge in locale-related changes from
44799         libc. These changes have no effect outside of _LIBC.
44800
44801 2003-04-10  Bruno Haible  <bruno@clisp.org>
44802
44803         * modules/findprog: New file.
44804         * MODULES.html.sh (func_all_modules): Add it.
44805
44806 2003-04-10  Bruno Haible  <bruno@clisp.org>
44807
44808         * m4/findprog.m4: New file.
44809         * m4/eaccess.m4: New file.
44810
44811 2003-04-10  Bruno Haible  <bruno@clisp.org>
44812
44813         * lib/findprog.h: New file, from GNU gettext.
44814         * lib/findprog.c: New file, from GNU gettext.
44815
44816 2003-04-05  Jim Meyering  <jim@meyering.net>
44817
44818         Merge changes from Coreutils.
44819
44820         * lib/exclude.h (PARAMS): Remove definition and uses.
44821         * lib/exclude.c: Remove uses of `PARAMS'.
44822
44823         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
44824         Add test-cases for DOS filenames. Declare program_name.
44825         (main): Set up program_name.  Patch by Rich Dawe.
44826
44827         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
44828         error from mntctl.
44829         Use mntctl's return value to drive the entry-processing loop, since
44830         we can't rely on the value of the vmt_length member in the last
44831         entry.  On some systems doing so could result in exhausting
44832         virtual memory.  Based in part on a patch from Mike Jetzer.
44833
44834 2003-04-04  Bruno Haible  <bruno@clisp.org>
44835
44836         * modules/linebreak: New file.
44837         * MODULES.html.sh (func_all_modules): Add it.
44838
44839 2003-04-04  Bruno Haible  <bruno@clisp.org>
44840
44841         * m4/linebreak.m4: New file.
44842
44843 2003-04-04  Bruno Haible  <bruno@clisp.org>
44844
44845         * lib/linebreak.h: New file, from GNU gettext.
44846         * lib/linebreak.c: New file, from GNU gettext with slight
44847         modifications.
44848         * lib/lbrkprop.h: New file, from GNU gettext.
44849
44850 2003-04-03  Bruno Haible  <bruno@clisp.org>
44851
44852         * modules/utf8-ucs4: New file.
44853         * modules/utf16-ucs4: New file.
44854         * modules/ucs4-utf8: New file.
44855         * modules/ucs4-utf16: New file.
44856         * MODULES.html.sh (func_all_modules): Add them.
44857
44858 2003-04-03  Bruno Haible  <bruno@clisp.org>
44859
44860         * m4/utf-ucs4.m4: New file.
44861         * m4/ucs4-utf.m4: New file.
44862
44863 2003-04-03  Bruno Haible  <bruno@clisp.org>
44864
44865         * lib/utf8-ucs4.h: New file, from GNU gettext.
44866         * lib/utf16-ucs4.h: New file, from GNU gettext.
44867         * lib/ucs4-utf8.h: New file, from GNU gettext.
44868         * lib/ucs4-utf16.h: New file, from GNU gettext.
44869
44870 2003-04-02  Bruno Haible  <bruno@clisp.org>
44871
44872         * modules/binary-io: New file.
44873         * MODULES.html.sh (func_all_modules): Add it.
44874
44875 2003-04-02  Bruno Haible  <bruno@clisp.org>
44876
44877         * lib/binary-io.h: New file, from GNU gettext.
44878
44879 2003-04-01  Bruno Haible  <bruno@clisp.org>
44880
44881         * modules/pathname: New file.
44882         * MODULES.html.sh (func_all_modules): Add it.
44883
44884 2003-04-01  Bruno Haible  <bruno@clisp.org>
44885
44886         * lib/pathname.h: New file, from GNU gettext.
44887         * lib/concatpath.c: New file, from GNU gettext.
44888
44889 2003-03-30  Bruno Haible  <bruno@clisp.org>
44890
44891         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
44892
44893 2003-03-30  Bruno Haible  <bruno@clisp.org>
44894
44895         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
44896         function chown() doesn't exist.
44897
44898 2003-03-28  Bruno Haible  <bruno@clisp.org>
44899
44900         * modules/copy-file: New file.
44901         * MODULES.html.sh (func_all_modules): Add it.
44902
44903 2003-03-28  Bruno Haible  <bruno@clisp.org>
44904
44905         * m4/copy-file.m4: New file.
44906
44907 2003-03-28  Bruno Haible  <bruno@clisp.org>
44908
44909         * lib/copy-file.h: New file, from GNU gettext.
44910         * lib/copy-file.c: New file, from GNU gettext.
44911
44912 2003-03-18  Jim Meyering  <jim@meyering.net>
44913
44914         * lib/quote.c (quote_n): Fix typo in comment.
44915
44916 2003-03-18  Bruno Haible  <bruno@clisp.org>
44917
44918         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
44919         checking.
44920         * m4/onceonly_2_57.m4: Likewise.
44921
44922 2003-03-17  Bruno Haible  <bruno@clisp.org>
44923
44924         * m4/onceonly.m4: Require autoconf 2.54 or newer.
44925         (m4_quote): Remove macro.
44926         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
44927
44928 2003-03-14  Jim Meyering  <jim@meyering.net>
44929
44930         Merge changes from Coreutils.
44931         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
44932         to be const, in order to avoid warnings.
44933         (obstack_room): Likewise.
44934         (obstack_empty_p): Likewise.
44935
44936 2003-03-14  Bruno Haible  <bruno@clisp.org>
44937
44938         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
44939         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
44940
44941 2003-03-13  Paul Eggert  <eggert@twinsun.com>
44942
44943         Merge changes from Bison.
44944         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
44945         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
44946         when compiling Bison 1.875's `bitset bset = obstack_alloc
44947         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
44948         * lib/hash.c: Include <stdbool.h> unconditionally.
44949
44950 2003-03-13  Paul Eggert  <eggert@twinsun.com>
44951
44952         * m4/onceonly.m4 (m4_quote): New macro.
44953         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
44954         Quote AC_FOREACH variable-expansions properly.
44955
44956 2003-03-13  Paul Eggert  <eggert@twinsun.com>
44957
44958         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
44959
44960 2003-03-09  Paul Eggert  <eggert@twinsun.com>
44961
44962         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
44963         Reported by Bruce Becker; see:
44964         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
44965
44966 2003-03-03  Paul Eggert  <eggert@twinsun.com>
44967             Bruno Haible  <bruno@clisp.org>
44968
44969         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
44970         Reported by John Hughes, see
44971         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
44972
44973 2003-02-20  Bruno Haible  <bruno@clisp.org>
44974
44975         * MODULES.html.sh (func_all_modules): Add poll.
44976
44977 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
44978
44979         * modules/poll: New file.
44980
44981 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
44982
44983         * lib/poll_.h: New file.
44984         * lib/poll.c: New file.
44985
44986 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
44987
44988         * m4/poll.m4: New file.
44989
44990 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
44991
44992         * modules/mathl: New file.
44993
44994 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
44995
44996         * lib/mathl.h: New file.
44997         * lib/acosl.c: New file.
44998         * lib/asinl.c: New file.
44999         * lib/atanl.c: New file.
45000         * lib/ceill.c: New file.
45001         * lib/cosl.c: New file.
45002         * lib/expl.c: New file.
45003         * lib/floorl.c: New file.
45004         * lib/frexpl.c: New file.
45005         * lib/ldexpl.c: New file.
45006         * lib/logl.c: New file.
45007         * lib/sincosl.c: New file.
45008         * lib/sinl.c: New file.
45009         * lib/sqrtl.c: New file.
45010         * lib/tanl.c: New file.
45011         * lib/trigl.c: New file.
45012         * lib/trigl.h: New file.
45013
45014 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
45015
45016         * m4/mathl.m4: New file.
45017
45018 2003-02-18  Bruno Haible  <bruno@clisp.org>
45019
45020         * MODULES.html.sh (func_all_modules): Add mathl.
45021
45022 2003-02-17  Bruno Haible  <bruno@clisp.org>
45023
45024         * modules/mkdtemp: New module.
45025         * MODULES.html.sh (func_all_modules): Add it.
45026
45027 2003-02-17  Bruno Haible  <bruno@clisp.org>
45028
45029         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
45030
45031 2003-02-17  Bruno Haible  <bruno@clisp.org>
45032
45033         * lib/mkdtemp.h: New file, from GNU gettext.
45034         * lib/mkdtemp.c: New file, from GNU gettext.
45035
45036 2003-02-02  Jim Meyering  <jim@meyering.net>
45037
45038         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
45039         e.g. glibc-2.2.93.
45040
45041 2003-01-31  Bruno Haible  <bruno@clisp.org>
45042
45043         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
45044         'rpl_rename'.
45045         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
45046         'rpl_strnlen'.
45047         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
45048         'rpl_strtod'.
45049         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
45050         'rpl_utime'.
45051
45052 2003-01-31  Bruno Haible  <bruno@clisp.org>
45053
45054         * lib/rename.c: #undef rename before defining rpl_rename.
45055         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
45056
45057 2003-01-30  Bruno Haible  <bruno@clisp.org>
45058
45059         * modules/vasnprintf, modules/vasprintf: New modules.
45060         * MODULES.html.sh (func_all_modules): Add them.
45061
45062 2003-01-30  Bruno Haible  <bruno@clisp.org>
45063
45064         * m4/signed.m4: New file, from GNU gettext.
45065         * m4/longdouble.m4: New file, from GNU gettext.
45066         * m4/wchar_t.m4: New file, from GNU gettext.
45067         * m4/wint_t.m4: New file, from GNU gettext.
45068         * m4/vasnprintf.m4: New file.
45069         * m4/vasprintf.m4: New file.
45070
45071 2003-01-30  Bruno Haible  <bruno@clisp.org>
45072
45073         * lib/printf-args.h: New file, from GNU gettext.
45074         * lib/printf-args.c: New file, from GNU gettext.
45075         * lib/printf-parse.h: New file, from GNU gettext.
45076         * lib/printf-parse.c: New file, from GNU gettext.
45077         * lib/vasnprintf.h: New file, from GNU gettext.
45078         * lib/vasnprintf.c: New file, from GNU gettext.
45079         * lib/asnprintf.c: New file, from GNU gettext.
45080         * lib/vasprintf.h: New file, from GNU gettext with modifications.
45081         * lib/vasprintf.c: New file, from GNU gettext.
45082         * lib/asprintf.c: New file, from GNU gettext.
45083
45084 2003-01-29  Bruno Haible  <bruno@clisp.org>
45085
45086         * modules/stpncpy: New module.
45087         * MODULES.html.sh (func_all_modules): Add it.
45088
45089 2003-01-29  Bruno Haible  <bruno@clisp.org>
45090
45091         * m4/stpncpy.m4: New file.
45092
45093 2003-01-29  Bruno Haible  <bruno@clisp.org>
45094
45095         * lib/stpncpy.h: New file, from GNU gettext with modifications.
45096         * lib/stpncpy.c: New file, from GNU gettext with modifications.
45097
45098 2003-01-28  Bruno Haible  <bruno@clisp.org>
45099
45100         * modules/c-ctype: New module.
45101         * MODULES.html.sh (func_all_modules): Add it.
45102
45103 2003-01-28  Bruno Haible  <bruno@clisp.org>
45104
45105         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
45106         Paul Eggert.
45107         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
45108         Paul Eggert.
45109
45110 2003-01-27  Bruno Haible  <bruno@clisp.org>
45111
45112         * modules/xsetenv: New module.
45113         * MODULES.html.sh (func_all_modules): Add it.
45114
45115 2003-01-27  Bruno Haible  <bruno@clisp.org>
45116
45117         * lib/xsetenv.h: New file, from GNU gettext.
45118         * lib/xsetenv.c: New file, from GNU gettext.
45119
45120 2003-01-23  Jim Meyering  <jim@meyering.net>
45121
45122         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
45123         from working on systems without dirfd (at least Irix and OSF1/Tru64).
45124
45125 2003-01-23  Bruno Haible  <bruno@clisp.org>
45126
45127         * modules/minmax: New module.
45128         * MODULES.html.sh (func_all_modules): Add it.
45129
45130 2003-01-23  Bruno Haible  <bruno@clisp.org>
45131
45132         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
45133         Eggert.
45134
45135 2003-01-22  Bruno Haible  <bruno@clisp.org>
45136
45137         * modules/exit: New module.
45138         * MODULES.html.sh (func_all_modules): Add it.
45139
45140 2003-01-22  Bruno Haible  <bruno@clisp.org>
45141
45142         * lib/exit.h: New file, from GNU gettext.
45143
45144 2003-01-19  Bruno Haible  <bruno@clisp.org>
45145
45146         * gnulib-tool: Recognize option --extract-maintainer.
45147         (func_get_maintainer): New function.
45148         * modules/*: Add Maintainer entry.
45149
45150 2003-01-16  Jim Meyering  <jim@meyering.net>
45151
45152         * m4/regex.m4: The `regex' struct is both input and output.
45153         Initialize it before each use.  Patch by Tim Waugh.
45154
45155 2003-01-16  Bruno Haible  <bruno@clisp.org>
45156
45157         * MODULES.html.sh: Add a table of contents. Add the module name as
45158         leftmost column. Add hyperlinks.
45159
45160 2003-01-15  Bruno Haible  <bruno@clisp.org>
45161
45162         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
45163
45164 2003-01-15  Bruno Haible  <bruno@clisp.org>
45165
45166         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
45167         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
45168         suffix.
45169
45170 2003-01-15  Bruno Haible  <bruno@clisp.org>
45171
45172         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
45173
45174 2003-01-15  Bruno Haible  <bruno@clisp.org>
45175
45176         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
45177         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
45178
45179 2003-01-14  Jim Meyering  <jim@meyering.net>
45180
45181         * lib/same.c (same_name): Tweak a comment.
45182
45183 2003-01-14  Bruno Haible  <bruno@clisp.org>
45184
45185         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
45186         when a string comparison is sufficient.
45187
45188 2003-01-14  Bruno Haible  <bruno@clisp.org>
45189
45190         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
45191         'unsigned int'.
45192
45193 2003-01-14  Bruno Haible  <bruno@clisp.org>
45194
45195         * lib/hash-pjw.c: Add comment about low quality of this function.
45196
45197 2003-01-13  Bruno Haible  <bruno@clisp.org>
45198
45199         * modules/stpcpy: Distribute lib/stpcpy.h.
45200         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
45201
45202 2003-01-13  Bruno Haible  <bruno@clisp.org>
45203
45204         * modules/*: Add a description.
45205         * modules/strpbrk: Fix Makefile.am snippet.
45206         * modules/strtoimax: Fix dependencies.
45207         * modules/strtoumax: Likewise.
45208
45209 2003-01-13  Bruno Haible  <bruno@clisp.org>
45210
45211         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
45212         * modules/alloca (Makefile.am): All object files depend on alloca.h.
45213         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
45214
45215 2003-01-13  Bruno Haible  <bruno@clisp.org>
45216
45217         * gnulib-tool (func_create_testdir): Store config/* files in the main
45218         directory.
45219         * config.rpath: Move to ...
45220         * config/config.rpath: ... here.
45221         * modules/gettext: Contains config/config.rpath, not config.rpath.
45222         * modules/iconv: Likewise.
45223
45224 2003-01-12  Paul Eggert  <eggert@twinsun.com>
45225
45226         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
45227         to avoid collisions with libcurses and libreadline.
45228
45229         * m4/getstr.m4: Remove.
45230         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
45231
45232 2003-01-12  Paul Eggert  <eggert@twinsun.com>
45233
45234         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
45235         to avoid collisions with libcurses and libreadline.
45236
45237         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
45238         * lib/getstr.h, getstr.c: Remove.
45239         * lib/getline.c: Include "getline.h", to check interface.
45240         Move body of old getstr.c here: this defines MIN_CHUNK and
45241         declares getdelim2, which is renamed from getstr.
45242         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
45243
45244         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
45245         All uses changed.
45246         * lib/linebuffer.h: Likewise.
45247         (readline): Remove backward-compatibility macro.
45248
45249 2003-01-12  Paul Eggert  <eggert@twinsun.com>
45250
45251         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
45252         to avoid collisions with libcurses and libreadline.
45253         * getstr: Remove.
45254         * MODULES.html.sh: Remove getstr.
45255         * modules/getline: Depend on unlocked-io, not getstr.
45256
45257 2003-01-12  Jim Meyering  <jim@meyering.net>
45258
45259         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
45260
45261 2003-01-10  Bruno Haible  <bruno@clisp.org>
45262
45263         * modules/alloca: Change Makefile.am requirements. Simplify Include
45264         requirements. Add lib/alloca_.h to file list.
45265
45266 2003-01-10  Bruno Haible  <bruno@clisp.org>
45267
45268         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
45269
45270 2003-01-10  Bruno Haible  <bruno@clisp.org>
45271
45272         * lib/alloca_.h: New file.
45273         * lib/getdate.y: Unconditionally include alloca.h.
45274         * lib/makepath.c: Likewise.
45275         * lib/setenv.c: Likewise.
45276         * lib/userspec.c: Likewise.
45277
45278 2003-01-09  Karl Berry  <karl@gnu.org>
45279
45280         * MODULES.html.sh: include `dirname $0` in PATH, to find
45281         gnulib-tool.
45282
45283 2003-01-09  Bruno Haible  <bruno@clisp.org>
45284
45285         * modules/stdbool: Change configure.ac, Makefile.am requirements.
45286         Simplify Include requirements. Add lib/stdbool.h.in to file list.
45287
45288 2003-01-09  Bruno Haible  <bruno@clisp.org>
45289
45290         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
45291
45292 2003-01-09  Bruno Haible  <bruno@clisp.org>
45293
45294         * lib/stdbool.h.in: New file.
45295
45296 2003-01-09  Bruno Haible  <bruno@clisp.org>
45297
45298         * gnulib-tool (func_all_modules): Ignore files ending in ~.
45299         * MODULES.html.sh: Likewise.
45300
45301 2003-01-08  Jim Meyering  <jim@meyering.net>
45302
45303         * lib/full-write.c: Undefine and define-away `const' after inclusion
45304         of errno.h, not before.  Suggestion from Bruno Haible.
45305
45306 2003-01-08  Bruno Haible  <bruno@clisp.org>
45307
45308         * modules/full-read: Depend on full-write.
45309
45310 2003-01-08  Bruno Haible  <bruno@clisp.org>
45311
45312         * lib/safe-read.c: Include specification header first, to ensure its
45313         selfcontainedness.
45314         * lib/full-write.c: Likewise.
45315
45316 2003-01-07  Jim Meyering  <jim@meyering.net>
45317
45318         * lib/full-write.c: Rework so that it may serve to define full_read,
45319         too.
45320         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
45321
45322 2003-01-07  Bruno Haible  <bruno@clisp.org>
45323
45324         * lib/strtoimax.c: Include <stdint.h> as an alternative to
45325         <inttypes.h>.
45326         * lib/xstrtol.h: Likewise.
45327         * lib/xstrtoimax.c: Likewise.
45328         * lib/xstrtoumax.c: Likewise.
45329         * lib/human.h: Likewise.
45330
45331         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
45332         on systems that have <inttypes.h> but not <stdint.h>.
45333
45334 2003-01-07  Bruno Haible  <bruno@clisp.org>
45335
45336         * MODULES.html.sh: Add copyright notice.
45337         (missed_files): Omit CVS directory entries.
45338         (func_module): Make it work with sed-3.02.
45339         * MODULES.txt: Remove file.
45340
45341 2003-01-06  Jim Meyering  <jim@meyering.net>
45342
45343         * lib/version-etc.c: Update year in translatable copyright string.
45344
45345 2003-01-03  Karl Berry  <karl@gnu.org>
45346
45347         * config/config.{guess,sub}: update from prep.
45348
45349 2003-01-02  Karl Berry  <karl@gnu.org>
45350
45351         * doc/COPYING.DOC: belatedly updated to 1.2.
45352
45353 2003-01-01  Karl Berry  <karl@gnu.org>
45354
45355         * gnulib-tool (func_verify_module): report module name $module in
45356         error message, not $1.
45357         * gnulib-tool (create-testdir): don't complain if destdir couldn't
45358         be created, only if it doesn't exist.
45359         * gnulib-tool (last_checkin_date): don't expand the $Date here.
45360
45361 2002-12-31  Paul Eggert  <eggert@twinsun.com>
45362
45363         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
45364
45365 2002-12-31  Paul Eggert  <eggert@twinsun.com>
45366
45367         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
45368         memcmp if strcoll doesn't work.
45369
45370 2002-12-31  Bruno Haible  <bruno@clisp.org>
45371
45372         * lib/utime.c (utime_null): No need to call ftruncate if the file was
45373         nonempty.
45374
45375 2002-12-31  Bruno Haible  <bruno@clisp.org>
45376
45377         * lib/memcoll.c (STRCOLL): New macro.
45378         (memcoll): Use it.
45379
45380 2002-12-31  Bruno Haible  <bruno@clisp.org>
45381
45382         * lib/localcharset.h: New file.
45383         * lib/localcharset.c: Include it.
45384         * lib/unicodeio.c: Likewise.
45385
45386 2002-12-31  Bruno Haible  <bruno@clisp.org>
45387
45388         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
45389         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
45390
45391 2002-12-31  Bruno Haible  <bruno@clisp.org>
45392
45393         * lib/getline.h: Include <stddef.h>, for size_t.
45394
45395         * lib/unicodeio.h: Include <stddef.h>, for size_t.
45396         * lib/unicodeio.c: Don't include <stddef.h>.
45397
45398 2002-12-31  Bruno Haible  <bruno@clisp.org>
45399
45400         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
45401         HAVE_TM_ZONE.
45402
45403 2002-12-24  Karl Berry  <karl@gnu.org>
45404
45405         * config/config.guess: update from prep.
45406
45407 2002-12-24  Bruno Haible  <bruno@clisp.org>
45408
45409         General infrasructure.
45410         * m4/README: Rewritten.
45411         * m4/onceonly.m4: New file.
45412         * m4/onceonly_2_57.m4: New file.
45413
45414         Module atexit.
45415         * m4/atexit.m4: New file.
45416
45417         Module strtod.
45418         * m4/strtod.m4: New file.
45419
45420         Module strtol.
45421         * m4/strtol.m4: New file.
45422
45423         Module strtoul.
45424         * m4/strtoul.m4: New file.
45425
45426         Module memchr.
45427         * m4/memchr.m4: New file.
45428
45429         Module memcmp.
45430         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
45431         (jm_FUNC_MEMCMP): Invoke it.
45432
45433         Module memcpy.
45434         * m4/memcpy.m4: New file.
45435
45436         Module memmove.
45437         * m4/memmove.m4: New file.
45438
45439         Module memset.
45440         * m4/memset.m4: New file.
45441
45442         Module strcspn.
45443         * m4/strcspn.m4: New file.
45444
45445         Module strpbrk.
45446         * m4/strpbrk.m4: New file.
45447
45448         Module strstr.
45449         * m4/strstr.m4: New file.
45450
45451         Module strerror.
45452         * m4/strerror.m4: New file.
45453
45454         Module mktime.
45455         * m4/mktime.m4: Renamed from jm-mktime.m4.
45456         (gl_PREREQ_MKTIME): New macro.
45457         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
45458
45459         Module malloc.
45460         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
45461         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
45462         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
45463
45464         Module realloc.
45465         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
45466         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
45467         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
45468
45469         Module strftime.
45470         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
45471         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
45472         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
45473         gl_TM_GMTOFF.
45474         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
45475
45476         Module xalloc.
45477         * m4/xalloc.m4: New file.
45478
45479         Module alloca.
45480         * m4/alloca.m4: New file.
45481
45482         Module putenv.
45483         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
45484         (jm_FUNC_PUTENV): Invoke it.
45485
45486         Module setenv.
45487         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
45488         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
45489         when invoked twice.
45490         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
45491         gt_FUNC_SETENV.
45492
45493         Module memrchr.
45494         * m4/memrchr.m4: New file.
45495
45496         Module stpcpy.
45497         * m4/stpcpy.m4: New file.
45498
45499         Module strcase.
45500         * m4/strcase.m4: New file.
45501
45502         Module strdup.
45503         * m4/strdup.m4: New file.
45504
45505         Module strnlen.
45506         * m4/strnlen.m4: New file.
45507
45508         Module strndup.
45509         * m4/strndup.m4: New file.
45510
45511         Module xstrtod.
45512         * m4/xstrtod.m4: New file.
45513
45514         Module xstrtol.
45515         * m4/xstrtol.m4: New file.
45516
45517         Module getdate.
45518         * m4/getdate.m4: New file.
45519
45520         Module unlocked-io.
45521         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
45522         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
45523         * m4/jm-glibc-io.m4n: Remove file.
45524
45525         Module long-options.
45526         * m4/long-options.m4: New file.
45527
45528         Module md5.
45529         * m4/md5.m4: New file.
45530
45531         Module sha.
45532         * m4/sha.m4: New file.
45533
45534         Module getstr.
45535         * m4/getstr.m4: New file.
45536
45537         Module getline.
45538         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
45539         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
45540         <sys/types.h>, for size_t. Use the function name gnu_getline, not
45541         simply getline. Infoke gl_PREREQ_GETLINE.
45542
45543         Module obstack.
45544         * m4/obstack.m4: New file.
45545
45546         Module hash.
45547         * m4/hash.m4: New file.
45548
45549         Module readtokens.
45550         * m4/readtokens.m4: New file.
45551
45552         Module strverscmp.
45553         * m4/strverscmp.m4: New file.
45554
45555         Module stdbool.
45556         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
45557         OSF/1.
45558
45559         Module strtoll.
45560         * m4/strtoll.m4: New file.
45561
45562         Module strtoull.
45563         * m4/strtoull.m4: New file.
45564
45565         Module strtoimax.
45566         * m4/strtoimax.m4: New file.
45567
45568         Module strtoumax.
45569         * m4/strtoumax.m4: New file.
45570
45571         Module xstrtoimax.
45572         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
45573         jm_AC_PREREQ_XSTRTOIMAX.
45574         Moved the strtol prerequisites to strtol.m4.
45575         Moved the strtoll prerequisites to strtoll.m4.
45576         Moved the strtoimax prerequisites to strtoimax.m4.
45577
45578         Module xstrtoumax.
45579         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
45580         jm_AC_PREREQ_XSTRTOUMAX.
45581         Moved the strtoul prerequisites to strtoul.m4.
45582         Moved the strtoull prerequisites to strtoull.m4.
45583         Moved the strtoumax prerequisites to strtoumax.m4.
45584
45585         Module chown.
45586         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
45587         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
45588
45589         Module dup2.
45590         * m4/dup2.m4: New file.
45591
45592         Module ftruncate.
45593         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
45594         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
45595
45596         Module getgroups.
45597         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
45598         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
45599
45600         Module gettimeofday.
45601         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
45602         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
45603         gl_PREREQ_GETTIMEOFDAY.
45604
45605         Module mkdir.
45606         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
45607         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
45608
45609         Module mkstemp.
45610         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
45611         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
45612         jm_AC_TYPE_UINTMAX_T.
45613         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
45614
45615         Module stat.
45616         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
45617         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
45618
45619         Module lstat.
45620         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
45621         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
45622
45623         Module timespec.
45624         * m4/timespec.m4 (gl_TIMESPEC): New macro.
45625         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
45626         * m4/st_mtim.m4: Indentation.
45627
45628         Module nanosleep.
45629         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
45630         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
45631         gl_PREREQ_NANOSLEEP.
45632
45633         Module regex.
45634         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
45635         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
45636         (gl_REGEX): New macro.
45637
45638         Module rename.
45639         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
45640         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
45641
45642         Module rmdir.
45643         * m4/rmdir.m4: New file.
45644
45645         Module utime.
45646         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
45647         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
45648         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
45649
45650         Module dirname.
45651         * m4/dirname.m4: New file.
45652
45653         Module getopt.
45654         * m4/getopt.m4: New file.
45655
45656         Module unistd-safer.
45657         * m4/unistd-safer.m4: New file.
45658
45659         Module fnmatch.
45660         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
45661         declaration.
45662         (gl_PREREQ_FNMATCH_EXTRA): New macro.
45663         (gl_FUNC_FNMATCH_POSIX): New macro.
45664         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
45665         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
45666         simply fnmatch.
45667
45668         Module exclude.
45669         * m4/exclude.m4: New file.
45670
45671         Module human.
45672         * m4/human.m4: New file.
45673
45674         Module acl.
45675         * m4/acl.m4: Nop.
45676
45677         Module backupfile.
45678         * m4/backupfile.m4: New file.
45679         * m4/d-ino.m4: Indentation.
45680
45681         Module fsusage.
45682         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
45683         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
45684         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
45685
45686         Module dirfd.
45687         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
45688         requirements.
45689
45690         Module euidaccess.
45691         * m4/euidaccess.m4: New file.
45692
45693         Module file-type.
45694         * m4/file-type.m4: New file.
45695
45696         Module fileblocks.
45697         * m4/fileblocks.m4: New file.
45698
45699         Module filemode.
45700         * m4/filemode.m4: New file.
45701
45702         Module isdir.
45703         * m4/isdir.m4: New file.
45704
45705         Module lchown.
45706         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
45707         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
45708
45709         Module makepath.
45710         * m4/makepath.m4: New file.
45711
45712         Module modechange.
45713         * m4/modechange.m4: New file.
45714
45715         Module mountlist.
45716         * m4/mountlist.m4: New file.
45717         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
45718         Indentation.
45719
45720         Module path-concat.
45721         * m4/path-concat.m4: New file.
45722
45723         Module pathmax.
45724         * m4/pathmax.m4: New file.
45725
45726         Module same.
45727         * m4/same.m4: New file.
45728
45729         Module save-cwd.
45730         * m4/save-cwd.m4: New file.
45731
45732         Module savedir.
45733         * m4/savedir.m4: New file.
45734
45735         Module xgetcwd.
45736         * m4/xgetcwd.m4: New file.
45737         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
45738
45739         Module xreadlink.
45740         * m4/xreadlink.m4: New file.
45741
45742         Module safe-read.
45743         * m4/safe-read.m4: New file.
45744
45745         Module safe-write.
45746         * m4/safe-write.m4: New file.
45747
45748         Module closeout.
45749         * m4/closeout.m4: New file.
45750
45751         Module stdio-safer.
45752         * m4/stdio-safer.m4: New file.
45753
45754         Module getpass.
45755         * m4/getpass.m4: New file.
45756
45757         Module getugroups.
45758         * m4/getugroups.m4: New file.
45759
45760         Module group-member.
45761         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
45762         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
45763
45764         Module idcache.
45765         * m4/idcache.m4: New file.
45766
45767         Module userspec.
45768         * m4/userspec.m4: New file.
45769
45770         Module gettime.
45771         * m4/clock_time.m4: New file.
45772         * m4/gettime.m4: New file.
45773
45774         Module settime.
45775         * m4/settime.m4: New file.
45776
45777         Module posixtm.
45778         * m4/posixtm.m4: New file.
45779
45780         Module gethostname.
45781         * m4/gethostname.m4: New file.
45782
45783         Module canon-host.
45784         * m4/canon-host.m4: New file.
45785
45786         Module gettext.
45787         * m4/codeset.m4: New file, from gettext-0.11.5.
45788         * m4/gettext.m4: New file, from gettext-0.11.5.
45789         * m4/glibc21.m4: New file, from gettext-0.11.5.
45790         * m4/iconv.m4: New file, from gettext-0.11.5.
45791         * m4/intdiv0.m4: New file, from gettext-0.11.5.
45792         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
45793         * m4/inttypes.m4: New file, from gettext-0.11.5.
45794         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
45795         * m4/isc-posix.m4: New file, from gettext-0.11.5.
45796         * m4/lcmessage.m4: New file, from gettext-0.11.5.
45797         * m4/lib-ld.m4: New file, from gettext-0.11.5.
45798         * m4/lib-link.m4: New file, from gettext-0.11.5.
45799         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
45800         * m4/progtest.m4: New file, from gettext-0.11.5.
45801         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
45802         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
45803         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
45804
45805         Module localcharset.
45806         * m4/localcharset.m4: New file.
45807
45808         Module hard-locale.
45809         * m4/hard-locale.m4: New file.
45810
45811         Module mbswidth.
45812         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
45813         onceonly macros.
45814         * m4/mbrtowc.m4: Add comment.
45815
45816         Module memcasecmp.
45817         * m4/memcasecmp.m4: New file.
45818
45819         Module memcoll.
45820         * m4/memcoll.m4: New file.
45821
45822         Module unicodeio.
45823         * m4/unicodeio.m4: New file.
45824
45825         Module rpmatch.
45826         * m4/rpmatch.m4: New file.
45827
45828         Module yesno.
45829         * m4/yesno.m4: New file.
45830
45831         Module exitfail.
45832         * m4/exitfail.m4: New file.
45833
45834         Module c-stack.
45835         * m4/c-stack.m4 (gl_C_STACK): New macro.
45836         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
45837
45838         Module error.
45839         * m4/error.m4 (gl_ERROR): New macro.
45840         (jm_PREREQ_ERROR): Use onceonly macros.
45841
45842         Module fatal.
45843         * m4/fatal.m4: New file.
45844
45845         Module getloadavg.
45846         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
45847         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
45848
45849         Module getpagesize.
45850         * m4/getpagesize.m4: New file.
45851
45852         Module getusershell.
45853         * m4/getusershell.m4: New file.
45854
45855         Module physmem.
45856         * m4/physmem.m4: New file.
45857
45858         Module posixver.
45859         * m4/posixver.m4: New file.
45860
45861         Module quotearg.
45862         * m4/quotearg.m4: New file.
45863
45864         Module quote.
45865         * m4/quote.m4: New file.
45866
45867         Module readutmp.
45868         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
45869
45870         Module sig2str.
45871         * m4/sig2str.m4: New file.
45872
45873         Other.
45874         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
45875         ulonglong.m4.
45876         * m4/intmax_t.m4: New file.
45877         * m4/d-type.m4: Indentation.
45878         * m4/jm-macros.m4: Update.
45879         * m4/prereq.m4 (jm_PREREQ): Update.
45880         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
45881         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
45882         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
45883         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
45884         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
45885         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
45886         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
45887         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
45888         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
45889         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
45890         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
45891         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
45892         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
45893         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
45894         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
45895         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
45896         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
45897         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
45898         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
45899
45900 2002-12-24  Bruno Haible  <bruno@clisp.org>
45901
45902         * MODULES.txt: Update according to m4/ changes.
45903
45904         Module gettext.
45905         * config.rpath: New file, from gettext-0.11.5.
45906
45907         * modules/*: New module descriptions.
45908         * gnulib-tool: New file.
45909         * MODULES.html.sh: New file.
45910
45911 2002-12-21  Karl Berry  <karl@gnu.org>
45912
45913         * doc/fdl.texi: update to version 1.2.
45914
45915 2002-12-19  Karl Berry  <karl@gnu.org>
45916
45917         * config/config.guess: update from prep.
45918
45919 2002-12-18  Bruno Haible  <bruno@clisp.org>
45920
45921         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
45922         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
45923
45924 2002-12-17  Bruno Haible  <bruno@clisp.org>
45925
45926         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
45927         stdlib.h, string.h.
45928
45929 2002-12-17  Bruno Haible  <bruno@clisp.org>
45930
45931         * lib/canon-host.c (strdup): Remove unused declaration.
45932
45933         * lib/fsusage.c: Include full_read.h.
45934         (get_fs_usage): Use full_read instead of safe_read.
45935
45936         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
45937
45938 2002-12-12  Karl Berry  <karl@gnu.org>
45939
45940         * config/config.guess: update from prep.
45941
45942 2002-12-11  Bruno Haible  <bruno@clisp.org>
45943
45944         * m4/setenv.m4: New file, from gettext-0.11.5.
45945
45946 2002-12-11  Bruno Haible  <bruno@clisp.org>
45947
45948         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
45949         not unsetenv().
45950         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
45951         modifications:
45952
45953         2002-12-11  Bruno Haible  <bruno@clisp.org>
45954
45955                 * setenv.c (alloca): Fall back to malloc.
45956                 (freea): New macro.
45957                 (setenv): Use freea() to free memory allocated with alloca().
45958
45959         2002-11-13  Bruno Haible  <bruno@clisp.org>
45960
45961                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
45962                 function declarations.
45963                 * unsetenv.c (unsetenv): Likewise.
45964
45965         2002-03-04  Bruno Haible  <bruno@clisp.org>
45966
45967                 Portability to AIX 4.3.3.
45968                 * unsetenv.c: New file, extracted from setenv.c.
45969                 * setenv.c: Move the unsetenv() function to unsetenv.c.
45970
45971         2001-12-20  Bruno Haible  <bruno@clisp.org>
45972
45973                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
45974                 use malloc instead. For SunOS 4.
45975
45976         2001-12-11  Bruno Haible  <bruno@clisp.org>
45977
45978                 * setenv.c: Declare alloca.
45979                 (compar_fn_t): New typedef.
45980                 (KNOWN_VALUE, STORE_VALUE): Use it.
45981
45982         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
45983         setenv.h.
45984
45985 2002-12-10  Paul Eggert  <eggert@twinsun.com>
45986
45987         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
45988         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
45989         Choose values that are less likely to collide with system fnmatch
45990         options.
45991         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
45992         defined (e.g., a pure POSIX system).
45993         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
45994         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
45995
45996 2002-12-06  Paul Eggert  <eggert@twinsun.com>
45997
45998         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
45999         a pain in practice to deal with generated m4 files.  This change
46000         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
46001
46002         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
46003         and jm-glibc-io.m4, as they are no longer a special case.
46004         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
46005         kludge and the auto-generation stuff.  Check only whether the
46006         functions are declared, not whether they exist, since older hosts
46007         that don't declare the functions can't use the optimization anyway.
46008
46009 2002-12-06  Jim Meyering  <jim@meyering.net>
46010
46011         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
46012
46013         Merge in changes from libc's misc/error.c, in preparation
46014         for the merge of gnulib's changes back into libc.
46015
46016         * lib/error.c (_): Define only if not already defined.
46017         Move definition to follow all #include directives.
46018         Include unlocked-io.h only if !_LIBC.
46019         [_LIBC]: Include <libio/libioP.h>.
46020         [USE_IN_LIBIO]: Include <libio/iolibio.h>
46021         (fflush): Tweak definition to use INTUSE.
46022         (putc): Define.
46023
46024 2002-12-05  Paul Eggert  <eggert@twinsun.com>
46025
46026         * lib/alloca.c [defined emacs]: Include "lisp.h".
46027         (xalloc_die) [defined emacs]: New macro.
46028         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
46029         [! defined emacs]: Include <xalloc.h>.
46030         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
46031         (pointer): Typedef to POINTER_TYPE *.
46032         (malloc): Remove decl; we now always use xmalloc.
46033         (alloca): Use old-style definition, since Emacs needs this.
46034         Check for arithmetic overflow when computing combined size.
46035
46036 2002-12-04  Paul Eggert  <eggert@twinsun.com>
46037
46038         Do not generate unlocked-io.h automatically, since it's easier to
46039         maintain it by hand.
46040
46041         * lib/unlocked-io.h: New file, from GNU diffutils,
46042         but with proper copyright notice and attribution.
46043         * lib/gen-uio: Remove.
46044         * lib/Makefile.am: Add copyright notice.
46045         (libfetish_a_SOURCES): Add unlocked-io.h.
46046         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
46047         (DISTCLEANFILES, io_functions): Remove macros.
46048         (EXTRA_DIST): Remove gen_uio.
46049         (unlocked-io.h): Remove rule.
46050
46051 2002-12-04  Jim Meyering  <jim@meyering.net>
46052
46053         Reflect the fact that stat.c and lstat.c are no longer generated.
46054         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
46055         (DISTCLEANFILES): Likewise.
46056         (EXTRA_DIST): Likewise.
46057         (all_local): Don't depend on stat.c or lstat.c.
46058         (stat.c, lstat.c): Remove rules.
46059         (EXTRA_DIST): Remove xstat.in.
46060
46061         * lib/xstat.in: Remove file.  Contents moved into stat.c.
46062         * lib/stat.c: New file.  Contents mostly from xstat.in.
46063         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
46064         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
46065
46066         * lib/safe-read.c: Rework so that it may serve to define safe_write,
46067         too.
46068         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
46069
46070 2002-12-03  Jim Meyering  <jim@meyering.net>
46071
46072         * lib/safe-read.c, safe-write.c: Change variable names and comments,
46073         but not semantics, to minimize the differences between these two files.
46074         (safe_read): Change comment to mention SAFE_READ_ERROR.
46075
46076         * lib/safe-read.c (IS_EINTR): Define.
46077         (safe_read): Use IS_EINTR in place of in-function cpp directives.
46078
46079 2002-12-02  Jim Meyering  <jim@meyering.net>
46080
46081         * lib/safe-read.c (EINTR): Define.
46082         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
46083         (INT_MAX): Provide fallback.
46084         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
46085
46086         * lib/safe-read.h (SAFE_READ_ERROR): Define.
46087
46088 2002-12-02  Bruno Haible  <bruno@clisp.org>
46089
46090         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
46091         Define, taken from safe-read.c.
46092         (INT_MAX): Provide fallback.
46093         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
46094         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
46095
46096         * lib/safe-read.c (EINTR): Remove definition.
46097         (safe_read): Don't use EINTR if it is absent.
46098
46099 2002-12-01  Jim Meyering  <jim@meyering.net>
46100
46101         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
46102         zero.
46103         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
46104
46105 2002-11-27  Paul Eggert  <eggert@twinsun.com>
46106
46107         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
46108         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
46109         with `if (! (value < limit)) abort ();', for readability.
46110
46111 2002-11-26  Karl Berry  <karl@gnu.org>
46112
46113         * lib/strdup.c: copy from libc again, with jim's ok.
46114         * lib/.cppi-disable: re-add strdup.c
46115
46116 2002-11-25  Karl Berry  <karl@gnu.org>
46117
46118         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
46119         instead of "strtol.c".
46120
46121 2002-11-25  Karl Berry  <karl@gnu.org>
46122
46123         * config/install-sh: update from automake for variable quoting, $0 in
46124         error msgs, etc.
46125
46126         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
46127         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
46128         entry.
46129
46130 2002-11-25  Jim Meyering  <jim@meyering.net>
46131
46132         * lib/mktime.c: Sync from libc, now that it has the latest fix.
46133
46134 2002-11-24  Karl Berry  <karl@gnu.org>
46135
46136         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
46137         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
46138
46139 2002-11-24  Jim Meyering  <jim@meyering.net>
46140
46141         Update from coreutils:
46142
46143         * lib/mktime.c: Merge in changes from libc.
46144
46145         Avoid a link-time failure on some Linux systems.
46146         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
46147         (otherwise).
46148         (__mon_yday): Declare with the STATIC attribute.
46149         (__mktime_internal): Likewise.
46150         Based on a report from Greg Schafer.
46151
46152 2002-11-23  Jim Meyering  <jim@meyering.net>
46153
46154         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
46155         Use `unsigned', not `int', as type of index.
46156
46157         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
46158
46159         * lib/fsusage.c: Remove unneeded parentheses around operands of
46160         `defined'.
46161
46162 2002-11-22  Paul Eggert  <eggert@twinsun.com>
46163
46164         * lib/quotearg.h: Allow multiple inclusion by surrounding with
46165         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
46166         so that we can be included first.
46167         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
46168         * lib/quotearg.c: Include quotearg.h immediately after config.h.
46169         No need to include stddef.h or sys/types.h any more.
46170         Surround local include files with "", not "<>".
46171         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
46172         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
46173         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
46174         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
46175         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
46176         (ISPRINT): Remove; no longer needed now that we assume C89.
46177
46178         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
46179         Preserve errno.
46180
46181         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
46182         quotearg_char): Use SIZE_MAX rather than
46183         (size_t) -1 when we are talking about "infinity".
46184
46185         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
46186
46187 2002-11-22  Paul Eggert  <eggert@twinsun.com>
46188
46189         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
46190         hint that one should use `if (! x) abort ();' rather than `assert
46191         (x);', and anyway it's one less thing to worry about configuring.
46192         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
46193         hash_rehash, hash_insert): Use abort rather than assert.
46194
46195 2002-11-22  Bruno Haible  <bruno@clisp.org>
46196
46197         * lib/safe-read.h: Assume C89. Add comments.
46198         (safe_read): Change return type to size_t.
46199         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
46200         byte counts > SSIZE_MAX correctly.
46201         * lib/safe-write.h: New file.
46202         * lib/safe-write.c: New file.
46203         * lib/full-read.h: New file.
46204         * lib/full-read.c: New file.
46205         * lib/full-write.h: Assume C89. Add comments.
46206         * lib/full-write.c: Include safe-write.h.
46207         (full_write): Rewritten to use safe_write.
46208         Suggested by Jim Meyering and Paul Eggert.
46209
46210 2002-11-21  Jim Meyering  <jim@meyering.net>
46211
46212         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
46213
46214         Merge in changes from the coreutils.
46215
46216         2002-09-25  Paul Eggert  <eggert@twinsun.com>
46217         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
46218         <stdint.h>.
46219         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
46220         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
46221         int.  Work more efficiently if X is the same width as uintmax_t.
46222         Do not compare X to -1, to avoid bogus compiler warning.
46223         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
46224         Don't assume that f_frsize and f_bsize are the same type.
46225
46226         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
46227         warning on FreeBSD.
46228
46229         * lib/makepath.c (make_path): Restore umask *before* creating the final
46230         component.
46231         (make_path): Minor reformatting.
46232
46233         * lib/xmalloc.c: Adjust to work with new autoconf macros,
46234         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
46235         HAVE_MALLOC/HAVE_REALLOC.
46236
46237         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
46238         dummy ones.  At least on GNU/Linux systems, `auto' means something
46239         else.
46240         From Michael Stone.
46241
46242 2002-11-21  Bruno Haible  <bruno@clisp.org>
46243
46244         Remove case insensitive option matching.
46245         * lib/argmatch.h (argcasematch): Remove declaration.
46246         (ARGCASEMATCH): Remove macro.
46247         (__xargmatch_internal): Remove case_sensitive argument.
46248         (XARGMATCH): Update.
46249         (XARGCASEMATCH): Remove macro.
46250         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
46251         case_sensitive argument.
46252         (argcasematch): Remove function.
46253         (__xargmatch_internal): Remove case_sensitive argument.
46254         (main): Use XARGMATCH instead of XARGCASEMATCH.
46255
46256         * lib/xmalloc.c: Change compile-time error message. Add comment about
46257         required autoconf version.
46258
46259 2002-11-20  Paul Eggert  <eggert@twinsun.com>
46260
46261         Merge argmatch cleanups from Bison.  Assume C89.
46262
46263         * lib/argmatch.c: Include config.h here, not in argmatch.h.
46264         Include stdlib.h, for EXIT_FAILURE.
46265         Always include <string.h>, since we assume C89.
46266         (EXIT_FAILURE): Remove pre-C89 bug workaround.
46267         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
46268         Include <stddef.h> instead, since it's all we need for size_t.
46269         (PARAMS): Remove.  All uses removed.
46270         (ARRAY_CARDINALITY): Do not bother to #undef.
46271         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
46272         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
46273         Remove unnecessary parentheses.
46274         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
46275         Insert necessary parentheses.
46276         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
46277         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
46278
46279 2002-11-19  Bruno Haible  <bruno@clisp.org>
46280
46281         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
46282         * lib/mbswidth.h: Include <stddef.h>, for size_t.
46283
46284         * lib/mbswidth.h (PARAMS): Remove macro.
46285         (mbswidth, mbsnwidth): Use ANSI C function declarations.
46286         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
46287
46288         * lib/gcd.h (PARAMS): Remove macro.
46289         (gcd): Use ANSI C function declarations.
46290         * lib/gcd.c (gcd): Likewise.
46291
46292 2002-11-15  Bruno Haible  <bruno@clisp.org>
46293
46294         * lib/strcspn.c: Include <stddef.h>.
46295         (strcspn): Use ANSI C function declaration. Change return type to
46296         size_t. Use NULL.
46297         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
46298         (strpbrk): Use NULL.
46299         * lib/strpbrk.h (PARAMS): Remove macro.
46300         (strpbrk): Use ANSI C function declaration.
46301         * lib/strstr.c: Don't include <sys/types.h>.
46302         * lib/strstr.h (PARAMS): Remove macro.
46303         (strstr): Use ANSI C function declarations.
46304
46305 2002-11-14  Karl Berry  <karl@gnu.org>
46306
46307         * config/mkinstalldirs: `do' on separate line, instead of
46308         `for var; do'.
46309
46310 2002-11-06  Bruno Haible  <bruno@clisp.org>
46311
46312         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
46313         * lib/gcd.c (gcd): Likewise.
46314
46315 2002-11-05  Bruno Haible  <bruno@clisp.org>
46316
46317         * lib/gcd.h: New file, from gettext-0.11.5.
46318         * lib/gcd.c: New file, from gettext-0.11.5.
46319
46320 2002-11-05  Bruno Haible  <bruno@clisp.org>
46321
46322         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
46323         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
46324         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
46325         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
46326
46327         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
46328         <libintl.h>.
46329         * lib/makepath.c: Include gettext.h instead of <locale.h> and
46330         <libintl.h>.
46331
46332         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
46333         * lib/human.c: Include gettext.h instead of <libintl.h>.
46334         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
46335         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
46336         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
46337         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
46338         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
46339         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
46340         (textdomain): Remove definition.
46341         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
46342
46343         * lib/long-options.c: Remove include of <libintl.h> and definition of
46344         _.
46345         * lib/same.c: Remove include of <libintl.h> and definition of _.
46346
46347 2002-11-04  Owen Taylor  <otaylor@redhat.com>
46348
46349         * lib/config.charset: A few additions for Solaris.
46350
46351 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
46352
46353         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
46354         * lib/localcharset.c (locale_charset): Declare as extern "C".
46355
46356 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
46357
46358         * lib/config.charset: msdos in uk_UA uses CP1125.
46359
46360 2002-11-04  Bruno Haible  <bruno@clisp.org>
46361
46362         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
46363         * lib/strcase.h: New file, from GNU gettext-0.11.5.
46364         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
46365         * lib/strstr.h: New file, from GNU gettext-0.11.5.
46366         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
46367
46368 2002-11-04  Bruno Haible  <bruno@clisp.org>
46369
46370         * lib/localcharset.c (locale_charset): Don't return an empty string.
46371
46372 2002-11-04  Bruno Haible  <bruno@clisp.org>
46373
46374         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
46375         aliases.
46376
46377 2002-11-04  Bruno Haible  <bruno@clisp.org>
46378
46379         * lib/config.charset: Update for newest glibc. Add canonical names
46380         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
46381
46382 2002-11-04  Bruno Haible  <bruno@clisp.org>
46383
46384         * lib/config.charset: Add support for NetBSD.
46385
46386 2002-11-04  Bruno Haible  <bruno@clisp.org>
46387
46388         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
46389
46390 2002-11-01  Bruno Haible  <bruno@clisp.org>
46391
46392         * configure.in: Add AC_CONFIG_AUX_DIR call.
46393         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
46394         test/Makefile.
46395         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
46396
46397 2002-09-28  Karl Berry  <karl@gnu.org>
46398
46399         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
46400         installed automake until the next release, since changes have been
46401         made.
46402
46403 2002-09-25  Karl Berry  <karl@gnu.org>
46404
46405         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
46406         * lib/getopt*: copy from libc/posix.
46407         * lib/gettext.h: copy from gettext.
46408         * lib/.cppi-disable: add strdup.c, gettext.h.
46409
46410 2002-09-25  Karl Berry  <karl@gnu.org>
46411
46412         * config/srclist.txt: enable gettext.h check.
46413         * config/config.{guess,sub}: update from prep.
46414         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
46415                 from automake 1.6.3.
46416         See srclist*.
46417
46418 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
46419
46420         * regex.c (PATFETCH): Remove the translating fetch.
46421         (PATFETCH_RAW): Rename to PATFETCH.
46422         (set_image_of_range): New fun.
46423         (SET_RANGE_TABLE_WORK_AREA): Use it.
46424         (regex_compile): Don't translate the pattern chars so eagerly.
46425         Only do it when inserting an `exactn' bytecode or when handling
46426         a char-range.
46427         (mutually_exclusive_p): Avoid empty statement.
46428
46429 2002-07-06  Jim Meyering  <meyering@lucent.com>
46430
46431         * m4/README: Don't mention Makefile.am.in.
46432         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
46433
46434 2002-07-01  Jim Meyering  <meyering@lucent.com>
46435
46436         * lib/c-stack.c: Include sys/time.h.
46437         From Volker Borchert.
46438
46439 2002-06-26  Paul Eggert  <eggert@twinsun.com>
46440
46441         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
46442
46443 2002-06-26  Paul Eggert  <eggert@twinsun.com>
46444
46445         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
46446         New macro.  Use it uniformly instead of
46447         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
46448         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
46449         reported by Vin Shelton.
46450
46451 2002-06-22  Paul Eggert  <eggert@twinsun.com>
46452
46453         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
46454         Do not assume SA_SIGINFO behavior.
46455         Bug reported by Jim Meyering on NetBSD 1.5.2.
46456
46457 2002-06-22  Jim Meyering  <meyering@lucent.com>
46458
46459         * m4/c-stack.m4: New file, from diffutils-2.8.2.
46460         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
46461
46462         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
46463         now that configure.ac uses AC_GNU_SOURCE.
46464         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
46465         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
46466
46467         Update to latest tools.  Suggestions from Paul Eggert.
46468         * m4/stdbool.m4: New file, from diffutils-2.8.2.
46469         * m4/gnu-source.m4: Update from diffutils-2.8.2.
46470         * m4/fnmatch.m4: Likewise.
46471         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
46472         to AC_HEADER_STDBOOL
46473
46474 2002-06-22  Jim Meyering  <meyering@lucent.com>
46475
46476         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
46477         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
46478
46479 2002-06-22  Jim Meyering  <meyering@lucent.com>
46480
46481         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
46482
46483         * lib/exitfail.c, exitfail.h: Likewise.
46484         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
46485
46486         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
46487         of fnmatch.h.
46488         (EXTRA_DIST): Add fnmatch_loop.c.
46489         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
46490
46491         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
46492         * lib/fnmatch.c: Update from diffutils-2.8.2.
46493         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
46494         * lib/fnmatch.h: Remove file.
46495
46496 2002-06-21  Jim Meyering  <meyering@lucent.com>
46497
46498         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
46499         * m4/mbrtowc.m4: Likewise.
46500
46501         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
46502         * m4/mbswidth.m4: Reflect name change:
46503         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
46504         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
46505
46506         * m4/lib-link.m4: Update from gettext-0.11.2.
46507         * m4/gettext.m4: Likewise.
46508
46509         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
46510         From Alfred M. Szmidt.
46511
46512 2002-06-18  Paul Eggert  <eggert@twinsun.com>
46513
46514         * lib/file-type.h: Report an error if neither S_ISREG nor
46515         S_IFREG is defined, instead of using a test specific to glibc
46516         2.2.  This should be safe, since POSIX requires S_ISREG and
46517         Unix Version 7 had S_IFREG.  We don't need to check for
46518         <sys/types.h> since we don't use any symbols that it defines.
46519
46520 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
46521
46522         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
46523         $@-t, so that each temporary file name is unique and valid in the first
46524         8 characters, for operation under DOS.
46525
46526 2002-06-15  Paul Eggert  <eggert@twinsun.com>
46527
46528         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
46529
46530 2002-06-15  Jim Meyering  <meyering@lucent.com>
46531
46532         Work even with DJGPP 2.03, which lacks support for symlinks.
46533         From Richard Dawe.
46534         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
46535         is defined.
46536         * lib/lchown.c (S_ISLNK): Likewise.
46537
46538 2002-06-15  Jim Meyering  <meyering@lucent.com>
46539
46540         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
46541         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
46542         have been included before this file.
46543
46544 2002-06-14  Jim Meyering  <meyering@lucent.com>
46545
46546         * lib/file-type.h: Use the version from diffutils-2.8.2.
46547         * lib/file-type.c: Likewise.
46548
46549 2002-06-07  Jim Meyering  <meyering@lucent.com>
46550
46551         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
46552         They're needed at least for NetBSD 1.5.2.
46553         ($statxfs_includes): Include those same headers.
46554         ($statxfs_includes): Include sys/vfs.h if available.
46555         ($statxfs_includes): Likewise for sys/statvfs.h.
46556         Check for the following members in both structs statfs and statvfs:
46557         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
46558
46559 2002-06-01  Jim Meyering  <meyering@lucent.com>
46560
46561         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
46562         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
46563
46564 2002-05-28  Jim Meyering  <meyering@lucent.com>
46565
46566         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
46567         Reported by Volker Borchert.
46568
46569 2002-05-27  Jim Meyering  <meyering@lucent.com>
46570
46571         Fix a problem seen only on nonconforming systems whereby ls.c's
46572         use of localtime, and then of gettimeofday would cause trouble:
46573         the localtime call used to initialize rpl_gettimeofday's save
46574         mechanism would clobber ls's current local time information so
46575         that in any long listing the first file would always be listed
46576         with date 1970-01-01.  Analysis by Volker Borchert.
46577
46578         * lib/gettimeofday.c (localtime): Undefine.
46579         (rpl_localtime): New function.
46580
46581 2002-05-27  Jim Meyering  <meyering@lucent.com>
46582
46583         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
46584         localtime.
46585
46586         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
46587         use the replacement function; it wouldn't resolve at link time.
46588         Reported by Volker Borchert.
46589
46590 2002-05-22  Jim Meyering  <meyering@lucent.com>
46591
46592         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
46593         file-type.h.
46594         * lib/file-type.h: New file.
46595         * lib/file-type.c (file_type): New file/function.  Extracted from
46596         diffutils.
46597
46598 2002-04-30  Jim Meyering  <meyering@lucent.com>
46599
46600         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
46601
46602 2002-04-29  Paul Eggert  <eggert@twinsun.com>
46603
46604         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
46605
46606 2002-04-29  Paul Eggert  <eggert@twinsun.com>
46607
46608         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
46609         Do not check for alloca.h (no longer used) or stdbool.h (was never
46610         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
46611
46612 2002-04-29  Paul Eggert  <eggert@twinsun.com>
46613
46614         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
46615
46616 2002-04-29  Jim Meyering  <meyering@lucent.com>
46617
46618         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
46619         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
46620         Use AC_FUNC_STRNLEN here instead.
46621
46622         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
46623         With autoconf-2.53a, it's part of AC_PROG_CC.
46624
46625 2002-04-28  Paul Eggert  <eggert@twinsun.com>
46626
46627         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
46628         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
46629
46630 2002-04-28  Paul Eggert  <eggert@twinsun.com>
46631
46632         * lib/sig2str.h, lib/sig2str.c: New files.
46633         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
46634
46635 2002-04-28  Paul Eggert  <eggert@twinsun.com>
46636
46637         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
46638         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
46639         of 127, since 64 is the largest conceivable number for ancient
46640         nonstandard hosts.
46641         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
46642
46643 2002-04-28  Jim Meyering  <meyering@lucent.com>
46644
46645         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
46646
46647 2002-04-24  Jim Meyering  <meyering@lucent.com>
46648
46649         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
46650         (jm_PREREQ): Use it.
46651
46652         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
46653         mach/mach.h fcntl.h.
46654         Check for this function: setlocale.
46655
46656 2002-04-24  Jim Meyering  <meyering@lucent.com>
46657
46658         * lib/gettext.h: New file, from Gettext.
46659         * lib/Makefile.am (INCLUDES): Remove -I../intl.
46660         (libfetish_a_SOURCES): Add gettext.h.
46661
46662 2002-04-16  Jim Meyering  <meyering@lucent.com>
46663
46664         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
46665         ut_pid, ut_id, ut_exit.
46666
46667 2002-04-16  Jim Meyering  <meyering@lucent.com>
46668
46669         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
46670         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
46671         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
46672
46673 2002-04-12  Jim Meyering  <meyering@lucent.com>
46674
46675         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
46676         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
46677         existence of the getmntinfo function.  Needed for Darwin 5.3.
46678
46679         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
46680         This is necessary at least on Darwin 5.3.
46681
46682         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
46683         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
46684         strnlen.o in the library, and that makes some versions of ranlib
46685         object.
46686
46687 2002-04-12  Jim Meyering  <meyering@lucent.com>
46688
46689         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
46690
46691 2002-04-09  Jim Meyering  <meyering@lucent.com>
46692
46693         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
46694         to be more precise.  Rather than saying we're checking whether the
46695         function `works', say what we're testing.
46696         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
46697         Reported by Bruno Haible.
46698
46699 2002-03-10  Jim Meyering  <meyering@lucent.com>
46700
46701         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
46702         Suggestion from Santiago Vila.
46703
46704 2002-03-08  Jim Meyering  <meyering@lucent.com>
46705
46706         * lib/rename.c: Mention that this wrapper is needed also on
46707         mips-dec-ultrix4.4 systems.
46708
46709 2002-03-02  Jim Meyering  <meyering@lucent.com>
46710
46711         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
46712         not HAVE_CLOCK_SETTIME.
46713
46714 2002-02-27  Paul Eggert  <eggert@twinsun.com>
46715
46716         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
46717         Check for clock_settime.
46718
46719 2002-02-27  Paul Eggert  <eggert@twinsun.com>
46720
46721         * lib/nanosleep.h: Rename to....
46722         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
46723
46724         * lib/gettime.c: New file.
46725         * lib/settime.c: New file.
46726         * lib/stime.c: Remove.
46727
46728         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
46729         timespec.h.  Remove nanosleep.h.
46730
46731 2002-02-25  Paul Eggert  <eggert@twinsun.com>
46732
46733         * m4/acl.m4: New file.
46734         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
46735         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
46736
46737 2002-02-25  Paul Eggert  <eggert@twinsun.com>
46738
46739         * lib/acl.c, lib/acl.h: New files.
46740         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
46741
46742 2002-02-24  Jim Meyering  <meyering@lucent.com>
46743
46744         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
46745         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
46746         cause trouble.  Reported by Nelson Beebe.
46747
46748 2002-02-23  Paul Eggert  <eggert@twinsun.com>
46749
46750         * lib/path-concat.c (xpath_concat): Reorder code to pacify
46751         compilers that don't know that xalloc_die never returns.
46752
46753 2002-02-20  Jim Meyering  <meyering@lucent.com>
46754
46755         * lib/getdate.c: Regenerate using bison-1.33.
46756
46757 2002-02-17  Jim Meyering  <meyering@lucent.com>
46758
46759         * config/config.guess (main): Don't use `head -1'; it's no longer
46760         portable. Use `sed 1q' instead.
46761
46762 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
46763
46764         * m4/codeset.m4: Upgrade to gettext-0.11.
46765         * m4/gettext.m4: Upgrade to gettext-0.11.
46766         * m4/glibc21.m4: Upgrade to gettext-0.11.
46767         * m4/iconv.m4: Upgrade to gettext-0.11.
46768         * m4/isc-posix.m4: Upgrade to gettext-0.11.
46769         * m4/lcmessage.m4: Upgrade to gettext-0.11.
46770         * m4/lib-ld.m4: New file, from gettext-0.11.
46771         * m4/lib-link.m4: New file, from gettext-0.11.
46772         * m4/lib-prefix.m4: New file, from gettext-0.11.
46773         * m4/progtest.m4: Upgrade to gettext-0.11.
46774
46775 2002-02-15  Paul Eggert  <eggert@twinsun.com>
46776
46777         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
46778         (jm_PREREQ): Use it.
46779
46780 2002-02-15  Paul Eggert  <eggert@twinsun.com>
46781
46782         * lib/posixver.c, lib/posixver.h: New files.
46783         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
46784
46785 2002-02-02  Paul Eggert  <eggert@twinsun.com>
46786             Bruno Haible  <bruno@clisp.org>
46787
46788         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
46789         (fwrite_success_callback): New declaration.
46790         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
46791         print_unicode_char. Call failure callback instead of error.
46792         (fwrite_success_callback): New function.
46793         (exit_failure_callback): New function.
46794         (fallback_failure_callback): New function.
46795         (print_unicode_char): Call unicode_to_mb.
46796
46797 2002-01-26  Jim Meyering  <meyering@lucent.com>
46798
46799         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
46800         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
46801
46802 2002-01-26  Jim Meyering  <meyering@lucent.com>
46803
46804         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
46805
46806 2002-01-22  Paul Eggert  <eggert@twinsun.com>
46807
46808         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
46809
46810 2002-01-22  Jim Meyering  <meyering@lucent.com>
46811
46812         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
46813         Otherwise, some versions of automake would omit the rule that makes
46814         Makefile from Makefile.in.
46815
46816 2002-01-21  Paul Eggert  <eggert@twinsun.com>
46817
46818         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
46819         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
46820         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
46821         (memcoll): Set errno to zero if there is no error.
46822
46823         * lib/quotearg.c (quotearg_buffer_restyled):
46824         Fix bug with quoting buffers containing NUL when backslashing escapes.
46825         This bug was exposed by the other changes in this patch.
46826         (quotearg_n_options): New arg ARGSIZE.
46827         All callers changed.
46828         (quoting_options_from_style): New function.
46829         (quotearg_n_style): Use it.
46830         (quotearg_n_style_mem): New function.
46831
46832         * lib/quotearg.h (quotearg_n_style_mem): New function.
46833
46834 2002-01-19  Jim Meyering  <meyering@lucent.com>
46835
46836         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
46837         Remove useless quotes: DF_PROG="df".
46838         * m4/strnlen.m4: New file.
46839
46840 2002-01-16  Paul Eggert  <eggert@twinsun.com>
46841
46842         * lib/backupfile.c (ISDIGIT): Comment fix.
46843         * lib/getdate.y (ISDIGIT): Likewise.
46844         * lib/posixtm.c (ISDIGIT, year): Likewise.
46845         * lib/strverscmp.c (ISDIGIT): Likewise.
46846         * lib/userspec.c (ISDIGIT): Likewise.
46847
46848 2002-01-16  Jim Meyering  <meyering@lucent.com>
46849
46850         * lib/getdate.y: Add three semicolons, each just before a closing
46851         brace. Bison (as of version 1.31) no longer papers over that mistake.
46852
46853 2002-01-05  Jim Meyering  <meyering@lucent.com>
46854
46855         * lib/version-etc.c (version_etc_copyright): Update copyright year.
46856
46857 2001-12-19  Paul Eggert  <eggert@twinsun.com>
46858
46859         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
46860         not silently exit merely because the output buffer happens to
46861         have nothing pending.
46862
46863 2001-12-18  Paul Eggert  <eggert@twinsun.com>
46864
46865         See the big note in ../ChangeLog.
46866         * lib/human.c (suffixes): Prefer K to k for 1024.
46867         (generate_suffix_backwards): New function.
46868         (human_readable_inexact): Use it.
46869         * lib/xstrtol.c (__xstrtol): If there is no number but there
46870         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
46871         Accept 'K' as well as 'k'.
46872
46873 2001-12-15  Jim Meyering  <meyering@lucent.com>
46874
46875         * lib/regex.h (__restrict_arr): Update from libc.
46876
46877         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
46878         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
46879         (STREQ): Define.
46880
46881 2001-12-14  Jim Meyering  <meyering@lucent.com>
46882
46883         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
46884         Suggestion from Bruno Haible.
46885
46886 2001-12-10  Jim Meyering  <meyering@lucent.com>
46887
46888         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
46889         xrealloc, Instead, include "xalloc.h".
46890         (initbuffer): Don't cast xmalloc return value to char*.
46891         (readline): Reword comment.
46892         Don't cast xrealloc return value to char*
46893         Return NULL, not 0.
46894
46895 2001-12-09  Jim Meyering  <meyering@lucent.com>
46896
46897         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
46898         about `signed and unsigned type in conditional expression'.
46899         * lib/posixtm.c (posix_time_parse): Likewise.
46900
46901         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
46902
46903         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
46904         to avoid a pedantic warning.
46905
46906         * lib/getstr.c: Don't include assert.h.
46907         (getstr): Remove warning-evoking assertions.
46908         Return -1 if offset parameter is out of bounds.
46909         Change the type of a local from int to size_t.
46910
46911         * lib/strftime.c (my_strftime_localtime_r): Include this function
46912         definition in the `#if ! HAVE_TM_GMTOFF' block.
46913
46914         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
46915         Include xalloc.h instead.
46916
46917 2001-12-02  Jim Meyering  <meyering@lucent.com>
46918
46919         * lib/tempname.c: Don't declare getenv, thus reverting the change of
46920         2001-11-18.  It's no longer necessary, now that stdlib.h is always
46921         included.
46922
46923         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
46924         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
46925
46926 2001-11-30  Akim Demaille  <akim@epita.fr>
46927
46928         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
46929         before being defined.
46930
46931 2001-11-27  Paul Eggert  <eggert@twinsun.com>
46932
46933         * lib/quotearg.h (quotearg_n, quotearg_n_style):
46934         First arg is int, not unsigned.
46935         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
46936         (SIZE_MAX, UINT_MAX): New macros.
46937         (quotearg_n_options): Abort if N is negative.
46938         Avoid overflow check on hosts where size_t is 64 bits and int
46939         is 32 bits, as overflow is impossible there.
46940         Fix off-by-one typo that caused unnecessary reallocation.
46941
46942 2001-11-27  Jim Meyering  <meyering@lucent.com>
46943
46944         * lib/tempname.c: Merge with version from libc.
46945         * lib/regex.c: Likewise.
46946
46947         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
46948         systems for which STDC_HEADERS is 0, it was not included, resulting in
46949         a warning about an integer-to-pointer conversion problem with getenv.
46950         Reported by Volker Borchert.
46951
46952 2001-11-26  Jim Meyering  <meyering@lucent.com>
46953
46954         * lib/gtod.h: Remove file.
46955         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
46956         * lib/gettimeofday.c: Don't include gtod.h.
46957         (GTOD_init): Remove function.
46958         (rpl_gettimeofday): Do its job here instead, rather than aborting.
46959         Suggestion from Volker Borchert.
46960
46961 2001-11-23  Jim Meyering  <meyering@lucent.com>
46962
46963         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
46964         it.
46965         * lib/hash.c (struct hash_table): Define it here instead.
46966
46967 2001-11-22  Jim Meyering  <meyering@lucent.com>
46968
46969         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
46970
46971 2001-11-20  Jim Meyering  <meyering@lucent.com>
46972
46973         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
46974         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
46975
46976 2001-11-19  Jim Meyering  <meyering@lucent.com>
46977
46978         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
46979         directory.  Use "conftestXXXXXX" as the template.
46980         Suggestion from Paul Eggert.
46981
46982         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
46983         immediately, so the test doesn't mistakenly hit the max-open-files
46984         limit.
46985
46986 2001-11-18  Paul Eggert  <eggert@twinsun.com>
46987
46988         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
46989         (TEMPORARIES): New macro.
46990         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
46991         removes an artificial limitation (e.g. HP-UX 10.20, where
46992         TMP_MAX is 17576).
46993
46994 2001-11-18  Jim Meyering  <meyering@lucent.com>
46995
46996         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
46997
46998 2001-11-18  Jim Meyering  <meyering@lucent.com>
46999
47000         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
47001         on SunOS 4.
47002
47003         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
47004         files will be created before anything else.
47005
47006 2001-11-17  Paul Eggert  <eggert@twinsun.com>
47007
47008         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
47009         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
47010
47011 2001-11-17  Jim Meyering  <meyering@lucent.com>
47012
47013         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
47014         Prompted by a report from Bob Proulx.
47015
47016         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
47017         Instead, require UTILS_FUNC_MKSTEMP.
47018
47019 2001-11-17  Jim Meyering  <meyering@lucent.com>
47020
47021         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
47022         Now, that's done as part of AC_FUNC_STRTOD.
47023
47024 2001-11-17  Jim Meyering  <meyering@lucent.com>
47025
47026         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
47027         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
47028         rather than group writable.  Patch by Juan F. Codagnone.
47029
47030         * lib/readtokens.c: Remove explicit declarations of xmalloc and
47031         xrealloc, Instead, include "xalloc.h".
47032
47033         * lib/mountlist.c: Include unlocked-io.h after all system headers.
47034         Remove explicit declarations of xmalloc, xrealloc,
47035         and xstrdup.  Instead, include "xalloc.h".
47036
47037         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
47038         unlocked-io.h.
47039         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
47040         Likewise.
47041         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
47042
47043         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
47044         Reported by Padraig Brady.
47045
47046         * lib/mkstemp.c: #undef mkstemp.
47047         Include config.h.
47048         (rpl_mkstemp): Rename from mkstemp.
47049         Protoize.
47050
47051 2001-11-16  Jim Meyering  <meyering@lucent.com>
47052
47053         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
47054         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
47055         determine the amount of total physical memory, use pstat_getstatic.
47056         HPUX-11 doesn't define _SC_PHYS_PAGES.
47057         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
47058         If sysconf couldn't be used to determine the amount of available
47059         physical memory, use both pstat_getstatic and pstat_getdynamic.
47060         Based on a patch from Bob Proulx.
47061
47062 2001-11-10  Jim Meyering  <meyering@lucent.com>
47063
47064         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
47065         (jm_PREREQ): Use it.
47066
47067 2001-11-09  Jim Meyering  <meyering@lucent.com>
47068
47069         * m4/jm-macros.m4: Require autoconf-2.52f.
47070         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
47071         Use these AC_-prefixed names, not the AM_-prefixed ones.
47072
47073         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
47074
47075 2001-11-05  Jim Meyering  <meyering@lucent.com>
47076
47077         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
47078
47079 2001-11-04  Jim Meyering  <meyering@lucent.com>
47080
47081         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
47082         $DEFS.
47083
47084 2001-11-03  Jim Meyering  <meyering@lucent.com>
47085
47086         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
47087         of AC_DEFUN.
47088
47089         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
47090         know the name of the variable in the macro definition.
47091
47092 2001-11-03  Jim Meyering  <meyering@lucent.com>
47093
47094         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
47095         in argmatch_to_argument call.
47096
47097         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
47098         argument.
47099
47100         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
47101         e.g., a fault due to an attempt to free a NULL pointer.
47102
47103 2001-11-01  Jim Meyering  <meyering@lucent.com>
47104
47105         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
47106         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
47107
47108 2001-11-01  Jim Meyering  <meyering@lucent.com>
47109
47110         * lib/dirfd.c, lib/dirfd.h: New files.
47111         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
47112
47113         * lib/hash.c (hash_print) [TESTING]: Clean up.
47114
47115 2001-10-22  Paul Eggert  <eggert@twinsun.com>
47116
47117         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
47118         to avoid a warning if -Wall.
47119
47120 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
47121
47122         * README: New file
47123         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
47124         (per RMS's instructions, this is now the canonical source)
47125         * lgpl/, gpl/: New directories.
47126
47127 2001-10-21  Paul Eggert  <eggert@twinsun.com>
47128
47129         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
47130
47131 2001-10-21  Jim Meyering  <meyering@lucent.com>
47132
47133         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
47134         this code would end up calling gettext even in packages built
47135         with --disable-nls.
47136         * lib/getopt.c (_): Likewise.
47137         * lib/regex.c (_): Likewise.
47138
47139 2001-10-20  Paul Eggert  <eggert@twinsun.com>
47140
47141         * m4/error.m4 (jm_PREREQ_ERROR):
47142         Do not invoke AC_CHECK_FUNCS with strerror_r, as
47143         AC_FUNC_STRERROR_R does that.
47144         Check for strerror declaration.
47145
47146         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
47147         are supposed to have them these days.
47148         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
47149         Merge changes from latest Autoconf CVS.
47150         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
47151         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
47152         POSIX decided to standardize on the int flavor of strerror_r.
47153
47154 2001-10-20  Paul Eggert  <eggert@twinsun.com>
47155
47156         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
47157         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
47158         Use strerror_r that is only a macro, even if it is not a function.
47159         (strerror): Check for HAVE_DECL_STRERROR before declaring.
47160         (private_strerror): Use prototypes, not old-style function definition.
47161         (print_errno_message): New function.
47162         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
47163         char*-flavored one.
47164         (error_tail, error, error_at_line): Use it.
47165
47166 2001-10-11  Jim Meyering  <meyering@lucent.com>
47167
47168         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
47169         and quote_n (1, ... to avoid clobbering a buffer.
47170
47171 2001-10-05  Jim Meyering  <meyering@lucent.com>
47172
47173         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
47174         hash-pjw.h.
47175         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
47176         * lib/hash-pjw.h: New file.
47177
47178 2001-09-30  Jim Meyering  <meyering@lucent.com>
47179
47180         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
47181         `struct fsstat' has the `f_fstypename' member.
47182         Use that to define FS_TYPE, which is now used to make
47183         the getfsstat link test tighter.
47184
47185 2001-09-30  Jim Meyering  <meyering@lucent.com>
47186
47187         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
47188         Include <sys/ucred.h>, for Apple Darwin.
47189         Include sys/mount.h and sys/fs_types.h only if available.
47190         (FS_TYPE): Define.
47191         (read_filesystem_list): Use FS_TYPE.
47192
47193 2001-09-29  Paul Eggert  <eggert@twinsun.com>
47194
47195         * lib/exclude.c (excluded_filename): 0 -> false, since it's
47196         a boolean context.
47197
47198 2001-09-29  Jim Meyering  <meyering@lucent.com>
47199
47200         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
47201         [one-argument getmntent function]): Include stdio.h before mntent.h.
47202         SunOS 4.1.x needs it for the declaration of `FILE'.
47203         Patch by Volker Borchert.
47204
47205         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
47206         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
47207         sys/fs_types.h, and make the link-test for getfsstat guard #include
47208         directives with appropriate #if HAVE_*_H tests so that we can
47209         detect getfsstat on Apple Darwin1.3.7 systems.
47210         Reported by Nelson Beebe.
47211         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
47212
47213 2001-09-28  Paul Eggert  <eggert@twinsun.com>
47214
47215         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
47216         #defines strtoimax.  Also treat the other strto* functions
47217         like strtoimax.
47218
47219         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
47220         Check for strtoul and strtoumax,
47221         as those declarations are made even in the signed case.
47222         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
47223         Likewise, for strtol and strtoimax.
47224
47225 2001-09-28  Paul Eggert  <eggert@twinsun.com>
47226
47227         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
47228         #defines strtoimax.  Also treat the other strto* functions
47229         like strtoimax.
47230
47231         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
47232         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
47233         (strtoimax, strtoumax): Do not declare if already defined as a macro.
47234
47235 2001-09-26  Jim Meyering  <meyering@lucent.com>
47236
47237         Most macros in unlocked-io.h had the wrong number of arguments.
47238         * lib/gen-uio: New script.
47239         (USE_UNLOCKED_IO): Define to 1 if not already defined.
47240         * lib/unlocked-io.hin: Remove file.
47241         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
47242         rather than trying to embed it here.
47243         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
47244         Reported by Padraig Brady.
47245
47246 2001-09-25  Volker Borchert  <bt@teknon.de>
47247
47248         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
47249         `result'.
47250
47251 2001-09-24  Jim Meyering  <meyering@lucent.com>
47252
47253         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
47254
47255 2001-09-23  Jim Meyering  <meyering@lucent.com>
47256
47257         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
47258         instead of the mere test for existence of mntent.h.  The latter
47259         would get a false-positive on AIX 3.4 systems.
47260         In the outer getmntent if-block, don't die if neither of the getmntent
47261         tests succeeds.  Instead, just fall through and continue with the
47262         remaining tests.
47263
47264 2001-09-23  Jim Meyering  <meyering@lucent.com>
47265
47266         * lib/mountlist.c: Remove useless parentheses in #if directives.
47267         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
47268         the deprecated MOUNTED symbol is no longer defined in mntent.h.
47269
47270 2001-09-22  Jim Meyering  <meyering@lucent.com>
47271
47272         * m4/gettext.m4: New file.  From gettext.
47273         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
47274         * m4/progtest.m4: Likewise
47275         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
47276         * m4/glibc21.m4: Likewise.
47277
47278         * m4/libintl.m4: Remove.  No longer used.
47279
47280 2001-09-22  Jim Meyering  <meyering@lucent.com>
47281
47282         * lib/localcharset.c: Update from latest gettext.
47283         * lib/config.charset: Likewise.
47284
47285 2001-09-20  Jim Meyering  <meyering@lucent.com>
47286
47287         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
47288         strtoimax.
47289         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
47290         strtoumax.
47291
47292 2001-09-20  Jim Meyering  <meyering@lucent.com>
47293
47294         * lib/xstrtol.c (strtoimax): Guard declaration with
47295         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
47296         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
47297         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
47298         (strtoumax): Likewise, for completeness (it wasn't necessary).
47299
47300 2001-09-17  Paul Eggert  <eggert@twinsun.com>
47301
47302         * lib/strtoimax.c (HAVE_LONG_LONG):
47303         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
47304         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
47305         to work around bug in IBM C compiler.
47306
47307 2001-09-17  Jim Meyering  <meyering@lucent.com>
47308
47309         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
47310         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
47311         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
47312         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
47313         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
47314         whenever the right hand side need not be expanded by the shell.
47315
47316 2001-09-16  Paul Eggert  <eggert@twinsun.com>
47317
47318         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
47319         library.  It's not correct, as some older glibcs are buggy.
47320         fnmatch wasn't fixed until glibc 2.2.
47321
47322         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
47323         special shell magic here.
47324
47325 2001-09-16  Jim Meyering  <meyering@lucent.com>
47326
47327         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
47328         * m4/jm-macros.m4: Require it.
47329
47330 2001-09-16  Jim Meyering  <meyering@lucent.com>
47331
47332         * lib/mkdir.c: New file.
47333
47334 2001-09-15  Jim Meyering  <meyering@lucent.com>
47335
47336         * m4/jm-macros.m4: Check for help2man.
47337
47338 2001-09-11  Jim Meyering  <meyering@lucent.com>
47339
47340         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
47341         The body, by Paul Eggert, was moved here from configure.in.
47342         * m4/jm-macros.m4: Require UTILS_HOST_OS.
47343
47344 2001-09-04  Paul Eggert  <eggert@twinsun.com>
47345
47346         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
47347         (jm_PREREQ): Use it.
47348
47349 2001-09-04  Paul Eggert  <eggert@twinsun.com>
47350
47351         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
47352         Use ssize_t, not int, to store result of readlink.
47353         Check for ssize_t overflow as well as size_t overflow,
47354         as POSIX says the result of readlink is implementation-defined
47355         when ssize_t overflows.
47356         Remove unnecessary cast to char*.
47357         Use free+malloc instead of realloc, as the storage doesn't need
47358         to be preserved and it's clearer and can be more efficient that way.
47359         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
47360         * lib/xreadlink.h (xreadlink): Update prototype.
47361
47362 2001-09-04  Paul Eggert  <eggert@twinsun.com>
47363
47364         * lib/xgetcwd.c: Revert some of the previous change; intead,
47365         fix the HAVE_GETCWD_NULL code to behave more like the
47366         !HAVE_GETCWD_NULL code used to.
47367
47368         Include "xalloc.h".
47369         (xgetcwd): Do not return NULL when memory is exhausted; instead,
47370         invoke xalloc_die.
47371
47372 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47373
47374         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
47375         sys/param.h, as pathmax.h includes them.
47376
47377 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47378
47379         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
47380         (jm_PREREQ_XGETCWD): New macro.
47381
47382         * m4/getcwd.m4: New file.
47383
47384 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47385
47386         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
47387         like the HAVE_GETCWD_NULL code.
47388         Include pathmax.h if not HAVE_GETCWD.
47389         Do not include xalloc.h.
47390         (INITIAL_BUFFER_SIZE): New symbol.
47391         Do not use xmalloc / xrealloc, since the caller is responsible for
47392         handling errors.  Preserve errno around `free' during failure.
47393         Do not overrun buffer when using getwd.
47394
47395 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47396
47397         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
47398         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
47399         getcwd (NULL, 0).
47400
47401 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47402
47403         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
47404         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
47405         spotted by Jim Meyering.
47406
47407 2001-09-03  Jim Meyering  <meyering@lucent.com>
47408
47409         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
47410         failure.
47411
47412 2001-09-02  Jim Meyering  <meyering@lucent.com>
47413
47414         * lib/error.c: Update from GNU libc.
47415
47416 2001-09-01  Jim Meyering  <meyering@lucent.com>
47417
47418         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
47419         Used by df.
47420
47421 2001-09-01  Jim Meyering  <meyering@lucent.com>
47422
47423         * lib/xreadlink.c: New file.
47424         * lib/xreadlink.h: New file.
47425         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
47426         xreadlink.h.
47427
47428         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
47429         doesn't conflict with sparc Solaris 7's definition in
47430         /usr/include/sys/int_types.h.
47431
47432         * lib/exclude.c: Use `""', not `<>' to #include non-system header
47433         files.
47434         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
47435         and strncasecmp as r-values.  Unixware didn't have declarations.
47436
47437 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47438
47439         * lib/xstrtol.h: Add copyright notice.
47440         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
47441         LONGINT_INVALID_SUFFIX_CHAR.
47442
47443 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47444
47445         * lib/xstrtol.c (strtoimax): New decl.
47446
47447 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47448
47449         * lib/xgetcwd.c: Don't include pathmax.h.
47450         Include stdlib.h and unistd.h if available.
47451         Include xalloc.h.
47452         (xmalloc, xstrdup, free): Remove decls.
47453         (xgetcwd): Don't assume sizes fit in unsigned.
47454         Check for overflow when computing sizes.
47455         Simplify reallocation code.
47456
47457 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47458
47459         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
47460         a directory's st_size can have an arbitrary value, so the old
47461         usage could waste an arbitrary amount of memory.  All uses
47462         changed.
47463         * lib/savedir.h: Update prototype.
47464
47465 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47466
47467         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
47468
47469         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
47470         old strtoimax.c.
47471
47472         Also, make the following further changes to make this file's
47473         configuration more similar to that of strtol.c:
47474         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
47475         (strtoumax, uintmax_t, strtoull, strtol): Remove.
47476         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
47477         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
47478         changed to signed values.
47479
47480         And make the following changes as well:
47481         Fix copyright notice, as 1999 was missing.
47482         (verify): New macro.
47483         (strtoimax): Check sizes at compile-time, not run-time.
47484         Prefer strtol to strtoll if both work.
47485         (main): Remove; it was not that useful and was a pain to maintain.
47486
47487         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
47488
47489 2001-08-31  Jim Meyering  <meyering@lucent.com>
47490
47491         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
47492         Use an initial, malloc'd, buffer of length 128 rather than
47493         a statically allocated one of length 1024.
47494
47495 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47496
47497         Simplify code, partly by assuming autoconf 2.52 semantics.
47498
47499         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
47500
47501         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
47502         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
47503         All uses removed.
47504         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
47505         Move AC_REQUIRE to next-to-top level, to avoid confusion.
47506         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
47507         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
47508         jm_AC_HEADER_INTTYPES_H.
47509         * m4/jm-macros.m4 (jm_MACROS): Likewise.
47510
47511         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
47512
47513         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
47514         Quote first arg of AC_DEFUN.
47515         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
47516         since they are needed to parse the include file even if we need
47517         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
47518         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
47519         but with opposite signedness.
47520
47521 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47522
47523         Merge 'exclude' changes from tar 1.13.22.
47524         This fixes one or two unlikely storage allocation overflow bugs,
47525         but doesn't change user-visible behavior otherwise.
47526
47527 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47528
47529         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
47530         (jm_PREREQ_EXCLUDE): New macro.
47531
47532 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47533
47534         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
47535         tm to be declared.
47536
47537 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47538
47539         * lib/hash.c: Remove '2001' from copyright notice.
47540
47541 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47542
47543         * lib/full-write.h: New file.
47544         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
47545         * lib/full-write.c: Correct credits, as cccp.c no longer
47546         exists and anyway it was so heavily changed from the old cccp
47547         code as to be unrecognizable.  Include full-write.h.
47548         (full_write) Return size_t, with short writes meaning failure.
47549         All callers changed.  This fixes a bug with large buffers
47550         on 64-bit hosts.
47551         * lib/utime.c: Include full-write.h.
47552
47553 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47554
47555         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
47556         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
47557         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
47558         Include if available.
47559         (<xalloc.h>): Include
47560         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
47561         (verify): New macro.  Use it to verify that EXCLUDE macros do not
47562         collide with FNM macros.
47563         (struct patopts): New struct.
47564         (struct exclude): Use it, as exclude patterns now come with options.
47565         (new_exclude): Support above changes.
47566         (new_exclude, add_exclude_file):
47567         Initial size must now be a power of two to simplify overflow checking.
47568         (free_exclude, fnmatch_no_wildcards): New function.
47569         (excluded_filename): No longer requires options arg, as the options
47570         are determined by add_exclude.  Now returns bool, not int.
47571         (excluded_filename, add_exclude):
47572         Add support for the fancy new exclusion options.
47573         (add_exclude, add_exclude_file): Now takes int options arg.
47574         Check for arithmetic overflow when computing sizes.
47575         (add_exclude_file): xrealloc might modify errno, so don't
47576         realloc until after errno might be used.
47577
47578         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
47579         New macros.
47580         (free_exclude): New decl.
47581         (add_exclude, add_exclude_file): Now takes int options arg.
47582         (excluded_filename): No longer requires options arg, as the options
47583         are determined by add_exclude.  Now returns bool, not int.
47584
47585 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47586
47587         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
47588
47589 2001-08-27  Jim Meyering  <meyering@lucent.com>
47590
47591         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
47592
47593         * lib/version-etc.c (N_): Remove definition.
47594         Revert most of last change.
47595         Instead, simply don't mark the `Copyright...' string for translation.
47596         Based on advice from Paul Eggert.
47597
47598         * lib/strtoxmax.c: Tweak comment.
47599
47600 2001-08-26  Jim Meyering  <meyering@lucent.com>
47601
47602         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
47603
47604         * m4/xstrtoimax.m4: New file.
47605         * m4/xstrtoumax.m4: Add comments explaining why we
47606         AC_REPLACE_FUNCS(strtol).
47607
47608 2001-08-26  Jim Meyering  <meyering@lucent.com>
47609
47610         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
47611         of copyright with `%s' so translators don't get an untranslated
47612         message in 2002.
47613         (COPYRIGHT_YEAR): Define.
47614         (version_etc): Use fprintf rather than fputs.
47615         Suggestion from Ulrich Drepper.
47616
47617         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
47618
47619         * lib/strtoll.c: New file, from GNU libc.
47620         * lib/xstrtoimax.c: New file.
47621
47622         * lib/xstrtol.h: Add xstrtoimax.
47623         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
47624         * lib/strtoimax.c: New file.  Likewise, but first define
47625         STRTOUXMAX_SIGNED.
47626
47627         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
47628         ...
47629         * lib/strtoxmax.c: ... then renamed to this.
47630
47631 2001-08-18  Paul Eggert  <eggert@twinsun.com>
47632
47633         * m4/inttypes.m4: Add AC_PREREQ(2.13).
47634         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
47635         (jm_AC_TYPE_INTMAX_T): New macro.
47636         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
47637
47638         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
47639
47640         * m4/longlong.m4: Renamed from ulonglong.m4.
47641         * m4/inttypes.m4: Renamed from inttypes_h.m4.
47642         * m4/uintmax_t.m4: Removed.
47643
47644 2001-08-13  Paul Eggert  <eggert@twinsun.com>
47645
47646         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
47647         Port to Solaris 8, where 'sed' requires a space after the 'r'
47648         command, and where sh dislikes "$/".  Clean up the spacing a bit.
47649         Redirect output to $tmp just once.
47650
47651 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
47652
47653         * lib/addext.c (<errno.h>): Include.
47654         (errno): Declare if not defined.
47655         (addext): Work correctly when pathconf returns -1 and leaves
47656         errno alone because there is no limit.  Also, work even if
47657         pathconf returns a value greater than SIZE_MAX.
47658
47659 2001-08-12  Jim Meyering  <meyering@lucent.com>
47660
47661         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
47662         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
47663         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
47664         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
47665         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
47666         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
47667         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
47668         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
47669         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
47670         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
47671         utime.m4, utimes.m4, xstrtoumax.m4:
47672         Quote the first argument in each use of AC_DEFUN.
47673
47674 2001-08-12  Jim Meyering  <meyering@lucent.com>
47675
47676         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
47677         Simply `return getcwd (NULL, 0);'.
47678         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
47679         Use 1300 as initial value for length, not PATH_MAX.
47680
47681         * lib/pathmax.h: Clean up cpp syntax.
47682
47683 2001-08-12  Jim Meyering  <meyering@lucent.com>
47684
47685         * lib/gettimeofday.c: New file.
47686         * lib/gtod.h: New file.
47687         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
47688
47689 2001-08-05  Jim Meyering  <meyering@lucent.com>
47690
47691         * m4/jm-macros.m4: Require autoconf-2.52.
47692
47693 2001-08-04  Jim Meyering  <meyering@lucent.com>
47694
47695         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
47696         stmt, to get in sync with glibc.
47697
47698 2001-08-03  Paul Eggert  <eggert@twinsun.com>
47699
47700         The following changes are from gettext 0.10.39 as maintained by
47701         Bruno Haible.
47702
47703         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
47704         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
47705         with inverted sense.  All uses changed.
47706
47707         * lib/mbswidth.c: Don't include <limits.h>.
47708         Include <stdlib.h> and <string.h> unconditionally.
47709         (iswcntrl, mbsinit, ISCNTRL): New macros.
47710         (mbsnwidth): Use K&R style function declarations.
47711         Don't bother checking for MB_LEN_MAX == 1, since the compiler
47712         can optimize it when MB_CUR_MAX == 1.
47713         The width of control characters is zero, not 1.
47714
47715 2001-08-03  Paul Eggert  <eggert@twinsun.com>
47716
47717         The following changes are from gettext 0.10.39 as maintained by
47718         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
47719
47720         * m4/codeset.m4: Upgrade to serial AM1.
47721         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
47722         all uses changed.  Quote first arg of AC_DEFUN.
47723         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
47724
47725         * m4/iconv.m4: Upgrade to serial AM2.
47726         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
47727         Add --with-libconv-prefix.
47728         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
47729         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
47730         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
47731         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
47732         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
47733
47734         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
47735         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
47736         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
47737         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
47738         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
47739         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
47740         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47741         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
47742         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
47743
47744         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
47745         string.h any more.
47746
47747         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
47748         not the default value.
47749
47750         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
47751         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
47752         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
47753         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
47754         Also check for iswcntrl, used for wcwidth fallback.
47755         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
47756         to Autoconf 2.13.
47757
47758 2001-08-03  Jim Meyering  <meyering@lucent.com>
47759
47760         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
47761         as it was in the original.  Reported by Paul Eggert.
47762
47763 2001-07-16  Jim Meyering  <meyering@lucent.com>
47764
47765         * m4/gettimeofday.m4: New file.
47766         Prompted by a report from Bernhard Baehr.
47767
47768 2001-07-15  Jim Meyering  <meyering@lucent.com>
47769
47770         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
47771         stuff. Now it's in ../Makefile.cfg.
47772
47773 2001-07-15  Jim Meyering  <meyering@lucent.com>
47774
47775         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
47776         (BUILT_SOURCES): Add unlocked-io.h.
47777         (io_functions): Define.
47778         (unlocked-io.h): New rule.
47779         (DISTCLEANFILES): Add unlocked-io.h.
47780         (all-local): Depend on unlocked-io.h, to ensure it is created.
47781
47782         * lib/unlocked-io.hin: New file
47783
47784         * lib/regex.c: Update from glibc.
47785
47786 2001-07-05  Jim Meyering  <meyering@lucent.com>
47787
47788         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
47789         recommendation.
47790         (libfetish_a_SOURCES): Put all .h files here instead.
47791         Remove a thus-exposed (better checks in automake) duplicate and
47792         two unnecessary .h files.
47793
47794 2001-07-04  Jim Meyering  <meyering@lucent.com>
47795
47796         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
47797         that generates jm-glibc-io.m4 so that it doesn't trigger any make
47798         distcheck failure.
47799
47800 2001-07-02  Jim Meyering  <meyering@lucent.com>
47801
47802         The following changes were prompted by suggestions from Bruno Haible.
47803
47804         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
47805         is now generated.
47806         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
47807         definition of EXTRA_DIST.
47808         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
47809         ensure that the generated file is created/updated whenever the list
47810         of $(unlocked_functions) is changed.
47811         (jm-glibc-io.m4): New rule.
47812         (unlocked-io.h): New rule -- currently unused.
47813
47814 2001-06-24  Jim Meyering  <meyering@lucent.com>
47815
47816         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
47817         unmatched right bracket, rather than kludging it with an extra,
47818         falsely-matching quote in a comment.  Patch by Akim Demaille.
47819
47820 2001-06-11  Jim Meyering  <meyering@lucent.com>
47821
47822         * lib/regex.c: Update from GNU libc.
47823
47824 2001-05-27  Jim Meyering  <meyering@lucent.com>
47825
47826         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
47827         Check for ut_type in struct utmp.
47828
47829 2001-05-27  Jim Meyering  <meyering@lucent.com>
47830
47831         * lib/readutmp.h (UT_TYPE): Define.
47832
47833 2001-05-24  Jim Meyering  <meyering@lucent.com>
47834
47835         * lib/argmatch.c: Include "quote.h".
47836         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
47837         quote function.  Reported by Göran Uddeborg.
47838
47839 2001-05-22  Jim Meyering  <meyering@lucent.com>
47840
47841         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
47842         now that we use the package-supplied version unconditionally.
47843         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
47844
47845 2001-05-21  Jim Meyering  <meyering@lucent.com>
47846
47847         * m4/regex.m4: Change a couple backticks to single quotes to avoid
47848         shell syntax errors.
47849
47850 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
47851
47852         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
47853
47854 2001-05-20  Paul Eggert  <eggert@twinsun.com>
47855
47856         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
47857         Don't bother to check library strftime, since
47858         we'll be using our own my_strftime function anyway.
47859         Define my_strftime instead of strftime.
47860
47861 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
47862
47863         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
47864         which is not yet declared.
47865
47866 2001-05-15  Jim Meyering  <meyering@lucent.com>
47867
47868         * m4/regex.m4: Use proper quoting so brackets appear in the test
47869         program.
47870         Reported by, and with help from, Bruno Haible.
47871
47872 2001-05-13  Jim Meyering  <meyering@lucent.com>
47873
47874         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
47875         undefined.
47876
47877 2001-05-11  Paul Eggert  <eggert@twinsun.com>
47878
47879         dirname code cleanup.  base_name now behaves more compatibly
47880         with POSIX basename when given file names that have trailing
47881         slashes, and similarly for dir_name.  Add new primitives
47882         base_len and dir_len.  Put the directory-name-related decls
47883         into dirname.h.
47884
47885         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
47886         * lib/backupfile.c (base_name): Likewise.
47887         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
47888         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
47889         * lib/makepath.c (strip_trailing_slashes): Likewise.
47890         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
47891         ISSLASH): Likewise.
47892         * lib/rename.c (strip_trailing_slashes): Likewise.
47893         * lib/same.c (base_name): Likewise.
47894         * lib/stripslash.c (ISSLASH): Likewise.
47895
47896         * lib/addext.c: Include <dirname.h> after size_t is defined.
47897         * lib/backupfile.c: Likewise.
47898
47899         * lib/addext.c (addext): Use base_len to trim redundant
47900         trailing slashes instead of doing it ourselves.
47901         But do not trim the last slash if it is not redundant.
47902
47903         * lib/backupfile.c (find_backup_file_name,
47904         max_backup_version): Use base_len instead of rolling it ourselves.
47905         Handle the case of "" and (on DOS) "C:" correctly.
47906
47907         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
47908         needed. Include <string.h>, <dirname.h>.
47909         (base_name): Allow file names ending in slashes, other than names
47910         that are all slashes.  In this case, return the basename followed
47911         by the slashes.  This is more general, and can be used in places
47912         where the original base_name purposely had an assertion failure.
47913         (base_len): New function.
47914
47915         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
47916         Do not include <assert.h>; no longer needed.
47917         Include xalloc.h.
47918         (memrchr): Remove decl.
47919         (dir_name_r): Remove.
47920         (dir_len): Renamed from dirlen.  All callers changed.
47921         Rewrite in terms of base_name, for simplicity and consistency.
47922         (dir_name): Never return NULL.  All callers changed.
47923         Do not include <stdlib.h> in test program; no longer needed.
47924         return 0; is fine for test program.
47925
47926         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
47927         New macros.
47928         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
47929
47930         * lib/path-concat.c (path_concat): Use base_len to compute
47931         base length, not strlen; this means we cannot rely on memcpy
47932         to null-terminate.
47933
47934         * lib/same.c (STREQ): Remove.
47935         (same_name): Handle the case where the basename ends in trailing '/'.
47936
47937         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
47938         a slash was stripped.  Do not strip the last slash after a
47939         file system prefix.
47940
47941 2001-05-11  Paul Eggert  <eggert@twinsun.com>
47942
47943         * lib/Makefile.am (libfetish_a_SOURCES):
47944         Add strftime.c, since we now compile it on all hosts.
47945
47946         * lib/strftime.c (my_strftime):
47947         Define to nstrftime if emacs, but only if my_strftime is not defined.
47948         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
47949         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
47950         Add one more extra argument: a nanoseconds value.
47951         All uses changed.
47952         (ns): New macro.
47953         (my_strftime function): Add %N format.
47954         (emacs_strftimeu): Renamed from emacs_strftime,
47955         with extra ut argument.
47956
47957 2001-05-09  Paul Eggert  <eggert@twinsun.com>
47958
47959         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
47960
47961 2001-04-21  Jim Meyering  <meyering@lucent.com>
47962
47963         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
47964         doesn't interfere.
47965
47966 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
47967
47968         * m4/ftruncate.m4: Check for chsize.
47969         Link with ftruncate.o unconditionally if ftruncate is missing.
47970         This was required when cross-compiling to i586-mingw32msvc.
47971
47972 2001-04-08  Jim Meyering  <meyering@lucent.com>
47973
47974         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
47975         recomputed; that's necessary when the offset spans a DST transition.
47976         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
47977
47978 2001-04-02  Jim Meyering  <meyering@lucent.com>
47979
47980         * lib/regex.h, regex.c: Update from GNU libc.
47981
47982 2001-03-24  Jim Meyering  <meyering@lucent.com>
47983
47984         * m4/jm-macros.m4: Require autoconf-2.49d.
47985
47986 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
47987
47988         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
47989
47990 2001-03-19  Paul Eggert  <eggert@twinsun.com>
47991
47992         * lib/version-etc.c (version_etc_copyright): Update to 2001.
47993
47994 2001-03-17  Jim Meyering  <meyering@lucent.com>
47995
47996         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
47997         now that the version in autoconf is equivalent.
47998         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
47999
48000         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
48001         Suggestion from Akim Demaille.
48002
48003         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
48004         (jm_PREREQ_TEMPNAME): New function.
48005
48006 2001-03-16  Paul Eggert  <eggert@twinsun.com>
48007
48008         * lib/tempname.c (uint64_t): Define to uintmax_t if
48009         not defined, and if UINT64_MAX is not defined.
48010         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
48011         Reported by John David Anglin.
48012
48013 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
48014
48015         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
48016         resolve alias if codeset is empty.
48017         * lib/config.charset (BeOS): Use wildcard syntax.
48018
48019 2001-03-13  Jim Meyering  <meyering@lucent.com>
48020
48021         * lib/path-concat.c (path_concat)
48022         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
48023         concatenating e.g., `C:' and `foo'.
48024         From Bruno Haible.
48025
48026 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
48027
48028         * lib/localcharset.c (locale_charset): Don't use
48029         setlocale(LC_CTYPE,NULL). Don't return NULL.
48030         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
48031
48032 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
48033
48034         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
48035         support for DOS/DJGPP.
48036
48037 2001-03-01  Paul Eggert  <eggert@twinsun.com>
48038
48039         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
48040         lacks mkstemp.  Compile our own tempname.c if we compile our own
48041         mkstemp.c, as mkstemp relies on tempname.
48042
48043 2001-03-01  Jim Meyering  <meyering@lucent.com>
48044
48045         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
48046         AH_VERBATIM really does output its argument verbatim.
48047
48048 2001-02-28  Paul Eggert  <eggert@twinsun.com>
48049
48050         * lib/Makefile.am (libfetish_a_SOURCES):
48051         Add dup-safer.c, fopen-safer.c.
48052         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
48053
48054         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
48055         * lib/unistd-safer.h: New files.
48056
48057 2001-02-25  Paul Eggert  <eggert@twinsun.com>
48058
48059         The mkstemp replacement is taken from glibc 2.2.2, with some
48060         portability fixes for use outside glibc, as follows:
48061
48062         * lib/tempname.c (struct_stat64): New macro.
48063         (direxists, __gen_tempname): Use it.
48064         This avoids a portability problem with Solaris 8.
48065
48066         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
48067         (<stddef.h>, <stdint.h>, <string.h>):
48068         Include only if STDC_HEADERS || _LIBC.
48069         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
48070         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
48071         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
48072         (__set_errno): Define this macro if <errno.h> doesn't.
48073         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
48074         Define these macros if <stdio.h> doesn't.
48075         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
48076         Define these macros if <sys/stat.h>
48077         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
48078         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
48079         __xstat64): Define if not _LIBC.
48080         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
48081         (__gen_tempname): Invoke gettimeofday only if
48082         HAVE_GETTIMEOFDAY || _LIBC;
48083         otherwise, fall back on plain "time".
48084         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
48085
48086         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
48087
48088         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
48089
48090 2001-02-18  Paul Eggert  <eggert@twinsun.com>
48091
48092         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
48093
48094 2001-02-17  Paul Eggert  <eggert@twinsun.com>
48095
48096         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
48097         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
48098         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
48099         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
48100
48101 2001-02-17  Paul Eggert  <eggert@twinsun.com>
48102
48103         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
48104         Remove workaround macros for hosts that have mbrtowc but not
48105         mbstate_t, as we now insist on proper declarations for both
48106         before using mbrtowc.
48107
48108 2001-02-17  Jim Meyering  <meyering@lucent.com>
48109
48110         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
48111         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
48112         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
48113         UnixWare 7.1.1.
48114
48115         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
48116         rather than AC_CACHE_VAL.
48117
48118 2001-02-17  Jim Meyering  <meyering@lucent.com>
48119
48120         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
48121         around included file name.
48122
48123         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
48124
48125         * lib/strftime.c: Update from GNU libc (the only changes were to
48126         comments).
48127
48128 2001-02-17  Jim Meyering  <meyering@lucent.com>
48129
48130         * lib/regex.c: Update from libc.
48131
48132 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
48133
48134         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
48135         clash.
48136
48137 2001-02-16  Paul Eggert  <eggert@twinsun.com>
48138
48139         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
48140         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
48141         Reported by Mark Hounschell via Paul Eggert.
48142
48143 2001-02-07  Jim Meyering  <meyering@lucent.com>
48144
48145         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
48146
48147 2001-02-05  Jim Meyering  <meyering@lucent.com>
48148
48149         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
48150         it includes the patch required for `large file' support with at least
48151         HP-UX's 10.20 /bin/cc.
48152
48153 2001-02-03  Jim Meyering  <meyering@lucent.com>
48154
48155         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
48156         AS_IF, now that it works once again (mysteriously).
48157         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
48158
48159 2001-01-30  Jim Meyering  <meyering@lucent.com>
48160
48161         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
48162         * m4/chown.m4: Rename conftestchown to conftest.chown.
48163         * m4/rename.m4: s/conftestdir/conftest.d1/ and
48164         s/conftestdir2/conftest.d2/.
48165         * m4/utimes.m4: s/conftestdata/conftest.data/
48166         Inspired by Pavel Roskin's change in autoconf.
48167
48168 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
48169
48170         * lib/config.charset: Update for FreeBSD 4.2.
48171
48172 2001-01-27  Jim Meyering  <meyering@lucent.com>
48173
48174         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
48175         a use of AS_IF.
48176         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
48177
48178 2001-01-26  Jim Meyering  <meyering@lucent.com>
48179
48180         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
48181         quotearg.c includes it.
48182
48183 2001-01-26  Jim Meyering  <meyering@lucent.com>
48184
48185         * lib/quotearg.c: Include stddef.h.
48186         * lib/quote.c: Include stddef.h.
48187         Reported by Axel Kittenberger.
48188
48189         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
48190         line in double quotes so that it evokes a better diagnostic.
48191         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
48192         Reported by Axel Kittenberger.
48193
48194 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
48195
48196         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
48197         as if it was a `charset'.
48198
48199 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
48200
48201         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
48202         has const.
48203
48204 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
48205
48206         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
48207         to avoid a warning.  Add back 'const' to inptr.
48208
48209 2001-01-20  Jim Meyering  <meyering@lucent.com>
48210
48211         Be sure that headers are checked before used in code compiled
48212         for the type checks.
48213         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
48214         In place of that, invoke jm_CHECK_ALL_TYPES.
48215         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
48216         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
48217         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
48218         The check for ssize_t was mistakenly run before the test for unistd.h.
48219
48220         The configure-time check for stdbool.h was missing.
48221         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
48222         (jm_PREREQ_HASH): New function.
48223
48224 2001-01-17  Jim Meyering  <meyering@lucent.com>
48225
48226         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
48227         for autoconf-2.49c.
48228         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
48229
48230 2001-01-16  Jim Meyering  <meyering@lucent.com>
48231
48232         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
48233         From Bruno Haible.
48234
48235 2001-01-14  Jim Meyering  <meyering@lucent.com>
48236
48237         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
48238         foo and bar.  Create conftestdir/ in the script, not in the C code.
48239         Remove directories in the script, not in the C code.
48240         Remove conftestdir{,2} before trying to create the directory.
48241         Make the entire configure script fail if the mkdir fails.
48242
48243 2001-01-14  Jim Meyering  <meyering@lucent.com>
48244
48245         * lib/rename.c: New file.  From Volker Borchert.
48246         Include stdlib.h, string.h or strings.h, and xalloc.h.
48247         Use strip_trailing_slashes rather than open-coding it.
48248
48249 2001-01-03  Paul Eggert  <eggert@twinsun.com>
48250
48251         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
48252
48253 2001-01-03  Jim Meyering  <meyering@lucent.com>
48254
48255         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
48256         of local `inptr' to avoid warning with some system declarations of
48257         iconv.
48258
48259 2001-01-02  Volker Borchert  <bt@teknon.de>
48260
48261         * m4/rename.m4: New file.
48262         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
48263
48264 2001-01-01  Jim Meyering  <meyering@lucent.com>
48265
48266         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
48267         even on systems with utmpx.h.  It's necessary for the declaration of
48268         utmp's ut_user member.  Reported by Andreas Jaeger.
48269
48270         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
48271         available. They are required for the declarations of getgrgid and
48272         getpwuid resp.
48273         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
48274         Reported by Andreas Jaeger.
48275
48276 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
48277
48278         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
48279         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
48280         so `make install' also works in VPATH builds.
48281
48282 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
48283
48284         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
48285         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
48286         can be used in subdirectories.
48287
48288 2000-12-29  Paul Eggert  <eggert@twinsun.com>
48289
48290         * lib/modechange.c: Do not assume that mode_t uses the
48291         traditional octal encoding.  E.g. "chmod 1 FOO" should set
48292         the other-execute bit of FOO even if S_IXOTH != 1.
48293
48294         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
48295         WOTH, XOTH, ALLM): New macros.
48296         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
48297          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
48298         Use them.
48299         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
48300         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
48301         (mode_compile):
48302         No need to use uintmax_t; unsigned long is long enough.
48303         Don't bother to get suffix since we don't use it.
48304
48305 2000-12-26  Jim Meyering  <meyering@lucent.com>
48306
48307         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
48308         better with autoheader.
48309
48310 2000-12-24  Jim Meyering  <meyering@lucent.com>
48311
48312         * lib/hash.c (is_prime): Return explicit boolean values.
48313         (hash_get_first): Return NULL to appease Irix5.6's 89.
48314         Reported by Nelson Beebe.
48315
48316 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
48317
48318         * lib/localcharset.c (locale_charset): Add support for Win32.
48319
48320 2000-12-18  Paul Eggert  <eggert@twinsun.com>
48321
48322         * lib/physmem.h, lib/physmem.c: New files.
48323
48324         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
48325         (noinst_HEADERS): Add physmem.h.
48326
48327         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
48328         't' for compatibility with Solaris 8 sort.
48329
48330 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
48331
48332         * lib/config.charset: Add support for BeOS.
48333
48334 2000-12-17  Jim Meyering  <meyering@lucent.com>
48335
48336         * m4/dos.m4 (jm_AC_DOS): New file and macro.
48337         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
48338
48339 2000-12-16  Jim Meyering  <meyering@lucent.com>
48340
48341         This bug had a serious impact on chown: `chown N:M FILE' (for integer
48342         N and M) would have treated it like `chown N:N FILE'.
48343
48344         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
48345
48346 2000-12-16  Jim Meyering  <meyering@lucent.com>
48347
48348         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
48349         SHELLS_FILE to a file name that's useful on djgpp systems.
48350         Include stdlib.h.
48351         (ADDITIONAL_DEFAULT_SHELLS): Define.
48352         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
48353         Based mostly on a patch from Prashant TR.
48354
48355 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
48356
48357         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
48358         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
48359         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
48360
48361 2000-12-08  Andreas Schwab  <schwab@suse.de>
48362
48363         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
48364         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
48365
48366 2000-12-07  Jim Meyering  <meyering@lucent.com>
48367
48368         * lib/stripslash.c (ISSLASH): Define.
48369         (strip_trailing_slashes): Use ISSLASH rather than comparing against
48370         `/'.
48371         From Prashant TR.
48372
48373         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
48374         (dir_name_r): Declare this function as static.
48375         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
48376         manifest itself on a name containing a mix of slashes and
48377         backslashes.
48378         Make this function work with names starting with a DOS-style
48379         drive letter and colon prefix.
48380         (dir_name): Append `.' if necessary.
48381         Based mostly on patches from Prashant TR and Eli Zaretskii.
48382
48383         * lib/dirname.h (dir_name_r): Remove prototype.
48384
48385 2000-12-06  Paul Eggert  <eggert@twinsun.com>
48386
48387         * m4/off_t-format.m4: Remove this file.
48388         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
48389
48390 2000-12-06  Jim Meyering  <meyering@lucent.com>
48391
48392         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
48393         replacement strtoull, we may well need the replacement strtoul, too.
48394         Check for declarations of strtoul and strtoull.
48395         Check for strtol.  Mainly as a cue to cause automake to include
48396         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
48397         Check for limits.h -- strtol.c needs it.
48398
48399 2000-12-05  Jim Meyering  <meyering@lucent.com>
48400
48401         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
48402
48403 2000-12-04  Jim Meyering  <meyering@lucent.com>
48404
48405         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
48406         Also include memory.h, stdlib.h, unistd.h if appropriate.
48407         Reported by Andreas Jaeger (conflicting declaration of malloc).
48408
48409 2000-12-02  Jim Meyering  <meyering@lucent.com>
48410
48411         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
48412         * m4/jm-macros.m4 (jm_MACROS): require it.
48413
48414 2000-12-02  Jim Meyering  <meyering@lucent.com>
48415
48416         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
48417
48418 2000-12-01  Paul Eggert  <eggert@twinsun.com>
48419
48420         * lib/memrchr.c: Include <config.h> before any system include file.
48421
48422 2000-11-30  Jim Meyering  <meyering@lucent.com>
48423
48424         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
48425
48426 2000-11-30  Jim Meyering  <meyering@lucent.com>
48427
48428         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
48429
48430 2000-11-29  Paul Eggert  <eggert@twinsun.com>
48431
48432         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
48433
48434 2000-11-26  Jim Meyering  <meyering@lucent.com>
48435
48436         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
48437
48438 2000-11-22  Paul Eggert  <eggert@twinsun.com>
48439
48440         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
48441         size of (size_t) -1; it's not portable.
48442
48443 2000-11-17  Jim Meyering  <meyering@lucent.com>
48444
48445         * lib/strstr.c: Update from GNU libc.
48446
48447 2000-11-17  Akim Demaille  <akim@epita.fr>
48448
48449         * lib/obstack.h: Formatting changes.
48450         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
48451         prevent type checking.
48452         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
48453         cast the value to (void *): assigning a `foo *' to a `void *'
48454         variable is valid.
48455         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
48456
48457 2000-11-16  Jim Meyering  <meyering@lucent.com>
48458
48459         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
48460
48461 2000-11-11  Jim Meyering  <meyering@lucent.com>
48462
48463         * lib/error.c: Add a couple #includes, merging from GNU libc version.
48464
48465 2000-11-10  Jim Meyering  <meyering@lucent.com>
48466
48467         * lib/obstack.h: Update from GNU libc.
48468         * lib/obstack.c: Likewise.
48469
48470 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
48471
48472         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
48473
48474 2000-11-06  Paul Eggert  <eggert@twinsun.com>
48475
48476         * lib/getusershell.c (setusershell): Use rewind rather than
48477         fseek/fseeko, to avoid configuration hassles with fseeko.
48478         Don't bother opening SHELLS_FILE if shellstream is NULL;
48479         it's not necessary.
48480
48481 2000-11-05  Jim Meyering  <meyering@lucent.com>
48482
48483         * lib/makepath.h (make_dir): Declare.
48484         * lib/makepath.c (make_dir): Remove `static' attribute.
48485         Tweak a comment.
48486
48487 2000-11-04  Jim Meyering  <meyering@lucent.com>
48488
48489         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
48490
48491 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
48492
48493         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
48494         last one in a bucket, advance to the next bucket.
48495
48496 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
48497
48498         * lib/fnmatch.c: Do not comment out all the code if we are using
48499         the GNU C library, because in some cases we are replacing buggy
48500         code in the GNU C library itself.
48501
48502 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
48503
48504         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
48505         (regex_compile): Catch bogus \(\1\).
48506
48507 2000-10-30  Paul Eggert  <eggert@twinsun.com>
48508
48509         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
48510         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
48511         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
48512
48513 2000-10-30  Paul Eggert  <eggert@twinsun.com>
48514
48515         * lib/error.h, getline.h, modechange.h:
48516         Remove "2000" from Copyright line, as the file hasn't been
48517         changed this year other than in the copyright notice.
48518
48519         * lib/xalloc.h: Add "2000" to Copyright line, as this file
48520         was changed this year.
48521
48522 2000-10-29  Jim Meyering  <meyering@lucent.com>
48523
48524         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
48525         renaming.
48526         * m4/ls-mntd-fs.m4: Likewise
48527
48528 2000-10-29  Jim Meyering  <meyering@lucent.com>
48529
48530         * lib/xstat.in: Fix grammar in comment.
48531
48532 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
48533
48534         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
48535         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
48536         doesn't define __restrict_arr.
48537
48538 2000-10-28  Jim Meyering  <meyering@lucent.com>
48539
48540         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
48541         (jm_PREREQ_MEMCHR): New function.
48542
48543 2000-10-28  Jim Meyering  <meyering@lucent.com>
48544
48545         * lib/memchr.c: Update from libc.
48546         Adjust for portability:
48547         [HAVE_STDLIB_H]: Include stdlib.h.
48548         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
48549         Undef __memchr, too.
48550         [!weak_alias]: Define __memchr to memchr.
48551
48552         * lib/regex.c: Update from libc.
48553         * lib/regex.h: Likewise.
48554         * lib/getopt1.c: Likewise.
48555         * lib/memcmp.c: Likewise.
48556
48557         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
48558         Avoid using fseek, when possible -- it's broken by design.
48559         Patch by Ulrich Drepper.
48560
48561 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
48562
48563         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
48564         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
48565         Giving in to popular pressure to shut up the compiler with casts.
48566
48567 2000-10-26  Jim Meyering  <meyering@lucent.com>
48568
48569         * lib/strftime.c: Update from libc.
48570
48571 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
48572
48573         * regex.c: More `unsigned char' -> `re_char' changes.
48574         Also change several `int' into `re_wchar_t'.
48575         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
48576         (PUSH_FAILURE_POINTER): Don't cast any more.
48577         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
48578         We want GCC to complain, since this piece of code makes
48579         re_match non-reentrant, which *should* be fixed.
48580         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
48581         (EXTEND_BUFFER): Use RETALLOC.
48582         (SET_LIST_BIT): Don't cast.
48583         (re_wchar_t): New type.
48584         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
48585         that those two functions will always properly return.
48586         (IMMEDIATE_QUIT_CHECK): Cast to void.
48587         (analyse_first): Use recursion rather than an explicit stack.
48588         (re_compile_fastmap): Can't fail anymore.
48589         (re_search_2): Don't check re_compile_fastmap for failure.
48590         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
48591         Now also sets the new value (passed in a new argument).
48592         (re_match_2_internal): Use it.
48593         Also, use a new var `reg' of type size_t when looping through regs
48594         rather than reuse the inappropriate `mcnt'.
48595
48596 2000-10-25  Jim Meyering  <meyering@lucent.com>
48597
48598         * lib/obstack.c: Update from libc.
48599
48600 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
48601
48602         * regex.c (regex_compile): Change the way of handling a range from
48603         a char less than 256 to a char not less than 256.
48604
48605 2000-10-24  Andrew Innes  <andrewi@gnu.org>
48606
48607         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
48608         NT-Emacs only.
48609         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
48610         so that re_search functions only quit when callers expect them to.
48611
48612 2000-10-23  Jim Meyering  <meyering@lucent.com>
48613
48614         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
48615         wrong.  That set_locale call must not have any side effects.
48616         From Paul Eggert.
48617
48618 2000-10-22  Jim Meyering  <meyering@lucent.com>
48619
48620         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
48621         [CYCLIC]: Remove now-unused definition.
48622
48623         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
48624         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
48625         Suggestion from Ulrich Drepper.
48626
48627 2000-10-21  Jim Meyering  <meyering@lucent.com>
48628
48629         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
48630         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
48631         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
48632
48633 2000-10-21  Jim Meyering  <meyering@lucent.com>
48634
48635         * lib/dirname.c (memrchr): Declare if necessary.
48636         (dir_name): Remove the restriction that there be no
48637         trailing slashes.  Now, this code skips past them, effectively
48638         ignoring them.
48639         [TEST_DIRNAME] (main): New unit tests.
48640
48641         * lib/memrchr.c: New file from GNU libc.
48642         Undef __memrchr, too.
48643         [!weak_alias]: Define __memrchr to memrchr.
48644         Guard weak_alias use with `#ifdef weak_alias'.
48645
48646 2000-10-21  Jim Meyering  <meyering@lucent.com>
48647
48648         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
48649         (dir_name): Use dir_name_r.
48650         * lib/dirname.h (dir_name_r): Declare it.
48651
48652 2000-10-17  Jim Meyering  <meyering@lucent.com>
48653
48654         * lib/quote.h (PARAMS): Define and use.
48655         Reported by Akim Demaille.
48656
48657         * lib/getopt.c: Update from libc.
48658
48659 2000-10-16  Jim Meyering  <meyering@lucent.com>
48660
48661         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
48662         setlocale.
48663         From Jan Fedak.
48664
48665 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
48666
48667         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
48668
48669 2000-09-25  Jim Meyering  <meyering@lucent.com>
48670
48671         * lib/md5.h (rol): Define (from GnuPG).
48672
48673         * lib/sha.c: Give credit (GnuPG) where due.
48674         (M): Use rol rather than open-coding it.
48675         Add a FIXME comment.
48676
48677 2000-09-21  Jim Meyering  <meyering@lucent.com>
48678
48679         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
48680         Reported by Michael Stone.
48681
48682 2000-09-20  Jim Meyering  <meyering@lucent.com>
48683
48684         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
48685         (noinst_HEADERS): Add sha.h.
48686         Based on code from Scott G. Miller and from GnuPG.
48687
48688 2000-09-18  Jim Meyering  <meyering@lucent.com>
48689
48690         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
48691         LIBS. Otherwise, everyone ends up linking with -lelf for some
48692         configurations.
48693         Reported by Mike Stone.
48694
48695 2000-09-15  Jim Meyering  <meyering@lucent.com>
48696
48697         * lib/regex.c: Update from libc.
48698
48699 2000-09-10  Jim Meyering  <meyering@lucent.com>
48700
48701         * lib/getopt.c (_getopt_internal): Update from glibc.
48702
48703 2000-09-09  Jim Meyering  <meyering@lucent.com>
48704
48705         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
48706         think it should be used as a general replacement for isascii.
48707         * lib/fnmatch.c: Likewise.
48708         * lib/mbswidth.c: Likewise
48709         * lib/regex.c: Likewise.
48710
48711         Don't use atoi.
48712         * lib/userspec.c: Include sys/param.h and limits.h.
48713         Include xstrtol.h.
48714         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
48715         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
48716         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
48717         UID, GID.  Check range.
48718
48719 2000-09-06  Jim Meyering  <meyering@lucent.com>
48720
48721         * lib/getopt.c (_getopt_internal): Update from glibc.
48722
48723 2000-08-30  Jim Meyering  <meyering@lucent.com>
48724
48725         * lib/strftime.c: Merge in changes from GNU libc.
48726
48727 2000-08-26  Jim Meyering  <meyering@lucent.com>
48728
48729         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
48730         * m4/fpending.m4: New file.
48731
48732 2000-08-26  Jim Meyering  <meyering@lucent.com>
48733
48734         * lib/closeout.c: Include "__fpending.h".
48735         (close_stdout_status): Return right away if there's nothing to flush.
48736
48737         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
48738         * lib/__fpending.c: New file.
48739         * lib/__fpending.h: New file.
48740
48741 2000-08-20  Jim Meyering  <meyering@lucent.com>
48742
48743         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
48744         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
48745         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
48746
48747 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
48748
48749         Improve fileutils installation on systems where running
48750         programs (like install) can't be unlinked.
48751         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
48752         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
48753
48754 2000-08-07  Paul Eggert  <eggert@twinsun.com>
48755
48756         Standardize on "memory exhausted" instead of "Memory exhausted"
48757         or "virtual memory exhausted".
48758         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
48759         "virtual memory exhausted".
48760         * lib/same.c (same_name): Invoke xalloc_die instead of printing
48761         our own message.
48762         * lib/userspec.c (parse_user_spec): Likewise.
48763         * lib/bumpalloc.h: comment fix
48764         * lib/same.c, userspec.c: Include xalloc.h.
48765
48766         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
48767         not char *const and pointing to a constant array.
48768         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
48769         (xrealloc): Comment fix.
48770
48771         * lib/userspec.c (parse_user_spec):
48772         Don't translate a message until just before returning,
48773         to avoid unnecessary translation.
48774
48775 2000-08-07  Jim Meyering  <meyering@lucent.com>
48776
48777         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
48778         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
48779         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
48780         getgroups.c, gethostname.c, getopt.h, group-member.c,
48781         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
48782         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
48783         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
48784         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
48785         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
48786         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
48787         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
48788         yesno.c: Back out Copyright date changes for each file with no change
48789         this year.  This eases coordination with other programs using the same
48790         source code modules.  From Paul Eggert.
48791
48792 2000-08-06  Paul Eggert  <eggert@twinsun.com>
48793
48794         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
48795         not char, for compatibility with glibc 2.1.3 strftime.c.
48796
48797 2000-08-03  Greg McGary  <greg@mcgary.org>
48798
48799         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
48800         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
48801         (EXTEND_BUFFER): Use them.
48802
48803 2000-08-01  Jim Meyering  <meyering@lucent.com>
48804
48805         * lib/dirname.c (ISSLASH): Define.
48806         (BACKSLASH_IS_PATH_SEPARATOR): Define.
48807         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
48808         both `\' and `/' may be use as path separators.
48809         Based on a patch from Prashant TR.
48810
48811 2000-07-31  Paul Eggert  <eggert@twinsun.com>
48812
48813         * lib/quotearg.c (quotearg_n_options): Don't make the initial
48814         slot vector a constant, since it might get modified.
48815
48816 2000-07-31  Jim Meyering  <meyering@lucent.com>
48817
48818         * lib/xmalloc.c: Use `virtual memory exhausted', not
48819         `Memory exhausted'.
48820         * lib/obstack.c (print_and_abort): Likewise.
48821
48822 2000-07-30  Paul Eggert  <eggert@twinsun.com>
48823
48824         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
48825         buffer, so that the caller can always quote one small
48826         component of a "memory exhausted" message in slot 0.
48827         From a suggestion by Jim Meyering.
48828
48829 2000-07-30  Jim Meyering  <meyering@lucent.com>
48830
48831         * lib/makepath.c (make_path): Quote the other instance, too.
48832
48833         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
48834         (STATIC_BUF_SIZE): Define.
48835         (quotearg_n_options): Use only statically allocated storage when
48836         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
48837         than STATIC_BUF_SIZE.
48838
48839 2000-07-29  Jim Meyering  <meyering@lucent.com>
48840
48841         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
48842         * lib/dirname.c (dir_name): Likewise.
48843
48844         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
48845         `/'.
48846
48847         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
48848         (dir_name): Assert that there are no trailing slashes.
48849
48850 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
48851
48852         * lib/mbswidth.h (mbswidth): Add a flags argument.
48853         (mbswidth): New declaration.
48854         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
48855         * lib/mbswidth.c (mbswidth): Add a flags argument.
48856         (mbsnwidth): New function.
48857
48858 2000-07-24  Jim Meyering  <meyering@lucent.com>
48859
48860         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
48861
48862 2000-07-23  Paul Eggert  <eggert@twinsun.com>
48863
48864         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
48865
48866 2000-07-23  Paul Eggert  <eggert@twinsun.com>
48867
48868         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
48869         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
48870         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
48871         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
48872         invoke multibyte primitives.
48873
48874 2000-07-23  Paul Eggert  <eggert@twinsun.com>
48875
48876         * lib/quotearg.c:
48877         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
48878         so that mbstate_t is always defined.
48879
48880         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
48881         be 1 in at least one GCC installation, and this configuration
48882         error is likely to be common.  Ignoring MB_LEN_MAX hurts
48883         performance on hosts that have mbrtowc but have only unibyte
48884         locales, but I assume these hosts are rare.
48885
48886 2000-07-23  Paul Eggert  <eggert@twinsun.com>
48887
48888         * lib/mbswidth.c (_XOPEN_SOURCE):
48889         Don't define; this causes problems on Solaris 7.
48890         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
48891
48892 2000-07-23  Jim Meyering  <meyering@lucent.com>
48893
48894         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
48895         too: getgrgid, getpwuid, getuid.
48896
48897 2000-07-23  Jim Meyering  <meyering@lucent.com>
48898
48899         * lib/basename.c (base_name): Add an assertion.
48900
48901 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
48902
48903         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
48904         shadow its mbsinit function.
48905
48906 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
48907
48908         * lib/mbswidth.h: New file.
48909         * lib/mbswidth.c: New file.
48910         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
48911         (noinst_HEADERS): Add mbswidth.h.
48912
48913 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
48914
48915         * lib/config.charset: Add support for FreeBSD. Improve support for
48916         HP-UX and IRIX 6.
48917
48918 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
48919
48920         * m4/mbswidth.m4: New file.
48921         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
48922
48923 2000-07-15  Jim Meyering  <meyering@lucent.com>
48924
48925         * lib/makepath.c: Include quote.h.
48926         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
48927         corresponding argument in a `quote (...)' call.
48928         Give better diagnostics.
48929
48930         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
48931         (noinst_HEADERS): Add quote.h.
48932
48933         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
48934         from tar's src/misc.c.
48935         * lib/quote.h: New file.  Prototypes for same.
48936
48937 2000-07-14  Paul Eggert  <eggert@twinsun.com>
48938
48939         From a suggestion by Bruno Haible.
48940         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
48941         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
48942         to decide whether to define the BeOS workaround macro;
48943         this adjusts to the change to AC_MBSTATE_T.
48944
48945 2000-07-14  Jim Meyering  <meyering@lucent.com>
48946
48947         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
48948         jm_AC_TYPE_UINTMAX_T.
48949
48950 2000-07-13  Paul Eggert  <eggert@twinsun.com>
48951
48952         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
48953
48954         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
48955         quotearg_buffer_restyled): Add support for
48956         clocale_quoting_style.  Undo previous change to
48957         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
48958         and "{RIGHT QUOTATION MARK}" msgids.
48959
48960 2000-07-10  Paul Eggert  <eggert@twinsun.com>
48961
48962         From a suggestion by Bruno Haible.
48963         * m4/mbstate_t.m4 (AC_MBSTATE_T):
48964         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
48965         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
48966         and mbstate_t, to a single-part test that simply defines mbstate_t.
48967         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
48968         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
48969
48970 2000-07-10  Jim Meyering  <meyering@lucent.com>
48971
48972         * m4/strerror_r.m4: Mirror the correction made in autoconf.
48973
48974         * m4/gnu-source.m4: Output to confdefs.h directly.
48975         Suggestion from Akim Demaille.
48976
48977 2000-07-09  Paul Eggert  <eggert@twinsun.com>
48978
48979         The old behavior of quoting `like this' doesn't look good with
48980         newer, ISO-style fonts.  See:
48981         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
48982
48983         Instead, quote "like this" by default.  Let the translator
48984         tailor the locale-specific quoting behavior by providing
48985         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
48986
48987         * lib/quotearg.c (N_): New macro.
48988         (gettext_default): New function.
48989         (quotearg_buffer_restyled): Use
48990         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
48991         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
48992
48993 2000-07-09  Jim Meyering  <meyering@lucent.com>
48994
48995         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
48996         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
48997
48998         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
48999         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
49000
49001 2000-07-09  Jim Meyering  <meyering@lucent.com>
49002
49003         * lib/Most files: Update copyright dates to include 2000.
49004
49005 2000-07-08  Jim Meyering  <meyering@lucent.com>
49006
49007         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
49008         if not defined.
49009         (xgethostname): Remove now-unnecessary #ifdef.
49010         Move declaration of `err' into loop where it's used.
49011
49012 2000-07-05  Paul Eggert  <eggert@twinsun.com>
49013         and Bruno Haible  <haible@clisp.cons.org>
49014
49015         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
49016         only if the test for an object-type mbstate_t fails.  This
49017         prevents us from mistakenly reporting that mbstate_t is a
49018         system object type after we "#define mbstate_t int" to work
49019         around its lack.
49020
49021 2000-07-05  Paul Eggert  <eggert@twinsun.com>
49022         and Bruno Haible  <haible@clisp.cons.org>
49023
49024         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
49025
49026 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
49027
49028         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
49029         to strerror_r.
49030         Include <ctype.h> for use of isalpha.
49031
49032 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
49033
49034         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
49035         by allocating a larger buffer. Test the gethostname return value for
49036         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
49037         returns an error and ENAMETOOLONG isn't defined.
49038
49039 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
49040
49041         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
49042         dimension.
49043
49044 2000-07-04  Jim Meyering  <meyering@lucent.com>
49045
49046         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
49047         of the deprecated AC_CHECKING.
49048
49049 2000-07-04  Jim Meyering  <meyering@lucent.com>
49050
49051         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
49052         Reported by Bruno Haible.
49053
49054 2000-07-04  Jim Meyering  <meyering@lucent.com>
49055
49056         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
49057         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
49058         lacks mbrtowc.
49059
49060 2000-07-03  Paul Eggert  <eggert@twinsun.com>
49061
49062         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
49063         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
49064
49065 2000-07-03  Paul Eggert  <eggert@twinsun.com>
49066         and Bruno Haible  <haible@clisp.cons.org>
49067
49068         * lib/quotearg.c (mbrtowc):
49069         Assign to *pwc, and return 1 only if result is nonzero.
49070         (iswprint): Use ISPRINT when substituting our own mbrtowc.
49071
49072 2000-07-03  Jim Meyering  <meyering@lucent.com>
49073
49074         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
49075
49076 2000-07-03  Jim Meyering  <meyering@lucent.com>
49077
49078         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
49079         This is necessary to get a definition of e.g., UTMP_FILE on
49080         HP-UX 10.20.
49081         From Bob Proulx.
49082
49083 2000-07-02  Jim Meyering  <meyering@lucent.com>
49084
49085         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
49086
49087         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
49088         AC_LIBOBJ(function_name).
49089         * m4/chown.m4: Likewise.
49090         * m4/fnmatch.m4: Likewise.
49091         * m4/ftruncate.m4: Likewise.
49092         * m4/getgroups.m4: Likewise.
49093         * m4/getline.m4: Likewise.
49094         * m4/group-member.m4: Likewise.
49095         * m4/jm-macros.m4: Likewise.
49096         * m4/lstat.m4: Likewise.
49097         * m4/malloc.m4: Likewise.
49098         * m4/memcmp.m4: Likewise.
49099         * m4/nanosleep.m4: Likewise.
49100         * m4/putenv.m4: Likewise.
49101         * m4/realloc.m4: Likewise.
49102         * m4/regex.m4: Likewise.
49103         * m4/stat.m4: Likewise.
49104         * m4/strftime.m4: Likewise.
49105
49106 2000-07-02  Jim Meyering  <meyering@lucent.com>
49107
49108         * lib/quotearg.c (mbstate_t): Don't define here.
49109
49110 2000-07-02  Jim Meyering  <meyering@lucent.com>
49111
49112         * lib/nanosleep.c (SIGCONT): Define if not already defined.
49113
49114 2000-07-01  Jim Meyering  <meyering@lucent.com>
49115
49116         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
49117
49118 2000-07-01  Jim Meyering  <meyering@lucent.com>
49119
49120         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
49121         problem.
49122
49123 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
49124
49125         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
49126         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
49127
49128 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
49129
49130         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
49131         per change in ../m4/ls-mntd-fs.m4.
49132         (read_filesystem_list): Ignore symbolic links.
49133
49134 2000-06-29  Jim Meyering  <meyering@lucent.com>
49135
49136         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
49137         for declaration of strcmp.
49138
49139         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
49140
49141         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
49142         Avoid warning by casting result to `char *' to remove `const'.
49143
49144 2000-06-28  Jim Meyering  <meyering@lucent.com>
49145
49146         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
49147         included by quotearg.c, for which we perform this test.  From
49148         Bruno Haible.
49149
49150 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
49151
49152         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
49153         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
49154         <utmpx.h> exists, put readutmp.o into LIBOBJS.
49155
49156 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
49157
49158         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
49159
49160 2000-06-26  Paul Eggert  <eggert@twinsun.com>
49161
49162         savedir now sets errno on failure and invokes xmalloc to get memory.
49163         Fix a couple of other minor bugs while we're at it.
49164
49165         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
49166         (NAMLEN): Remove macro.
49167         (malloc, realloc): Remove decls.
49168         (stpcpy): Likewise.
49169         ("xalloc.h"): Include.
49170         (NAME_SIZE_DEFAULT): New macro.
49171         (savedir): Use xmalloc / xrealloc to allocate memory.
49172         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
49173         Skip "" directory entries.
49174         Use strlen to calculate directory entry length, since the old method
49175         is rarely used these days and isn't worth supporting.
49176         Don't use a pointer after freeing it.
49177         Check for integer overflow when calculating allocation size.
49178         Use memcpy to copy entries, instead of stpcpy.
49179         Set errno properly when returning NULL.
49180         Check for readdir error.
49181
49182 2000-06-26  Jim Meyering  <meyering@lucent.com>
49183
49184         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
49185
49186 2000-06-25  Jim Meyering  <meyering@lucent.com>
49187
49188         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
49189         Linux header bug when _XOPEN_SOURCE is defined to 500.
49190
49191 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
49192
49193         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
49194         deficiency.
49195
49196 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
49197
49198         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
49199         Include xalloc.h.
49200         Don't include <stdlib.h>.  Don't declare malloc, realloc.
49201
49202 2000-06-24  Jim Meyering  <meyering@lucent.com>
49203
49204         * m4/strerror_r.m4: Revive this file -- to try out an experimental
49205         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
49206         for which strerror does return char*, but which lacks a conveniently
49207         accessible declaration of the function.  If the compile-test says
49208         strerror_r doesn't work, then resort to a `run'-test that works on
49209         BeOS and segfaults on DEC Unix.
49210
49211 2000-06-24  Jim Meyering  <meyering@lucent.com>
49212
49213         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
49214
49215 2000-06-23  Paul Eggert  <eggert@twinsun.com>
49216
49217         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
49218         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
49219
49220 2000-06-23  Paul Eggert  <eggert@twinsun.com>
49221
49222         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
49223         (mbrtowc, mbstate_t): Define substitutes if
49224         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
49225         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
49226         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
49227
49228 2000-06-23  Jim Meyering  <meyering@lucent.com>
49229
49230         * m4/afs.m4: Add missing AC_MSG_RESULT.
49231         Reported by Bruno Haible.
49232
49233         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
49234         Suggestion from Bruno Haible.
49235
49236 2000-06-23  Jim Meyering  <meyering@lucent.com>
49237
49238         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
49239
49240 2000-06-21  Jim Meyering  <meyering@lucent.com>
49241
49242         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
49243
49244 2000-06-21  Jim Meyering  <meyering@lucent.com>
49245
49246         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
49247         (noinst_HEADERS): Add getstr.h.
49248
49249         * lib/getline.c (getstr): Move into a separate file.
49250         * lib/getstr.c (getstr): New file, extracted from getline.c, with
49251         the following changes: new parameter, delim2; both delim[12]
49252         parameters have type `int', not `char'.  The latter would lose
49253         with 8-bit delimiters.
49254         * lib/getstr.h: New file.
49255
49256 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
49257
49258         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
49259         than 1024, return a memory chunk of least possible size, instead
49260         of size PATH_MAX + 2. In the loop, increment the size proportionally.
49261         Use free/xmalloc instead of xrealloc to avoid copying for very long
49262         paths.
49263
49264 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
49265
49266         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
49267         the empty string.
49268
49269 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
49270
49271         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
49272         address, not strdup.  Include <stdlib.h> and don't declare free().
49273
49274 2000-06-19  Jim Meyering  <meyering@lucent.com>
49275
49276         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
49277
49278 2000-06-18  Jim Meyering  <meyering@lucent.com>
49279
49280         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
49281
49282         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
49283         `checking whether...' message to be consistent with that of the
49284         lstat test.
49285
49286 2000-06-18  Jim Meyering  <meyering@lucent.com>
49287
49288         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
49289         Besides, these days every porting target provides a mkdir function.
49290
49291         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
49292         needed. (this snippet comes from src/system.h).
49293
49294 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
49295
49296         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
49297
49298 2000-06-15  Paul Eggert  <eggert@twinsun.com>
49299
49300         * lib/human.c (adjust_value): New function.
49301         (human_readable_inexact): Apply rounding style even when
49302         printing approximate values.
49303
49304 2000-06-14  Paul Eggert  <eggert@twinsun.com>
49305
49306         * lib/human.c (human_readable_inexact): Allow an input block
49307         size that is not a multiple of the output block size, and vice versa.
49308         Reported by Piergiorgio Sartor.
49309
49310 2000-06-14  Paul Eggert  <eggert@twinsun.com>
49311
49312         * lib/getdate.y (get_date): Apply relative times after time
49313         zone indicator, not before.  Reported by Todd A. Jacobs.
49314
49315 2000-06-13  Jim Meyering  <meyering@lucent.com>
49316
49317         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
49318
49319         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
49320
49321 2000-06-12  Paul Eggert  <eggert@twinsun.com>
49322
49323         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
49324
49325 2000-06-12  Jim Meyering  <meyering@lucent.com>
49326
49327         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
49328         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
49329         optional argument.
49330         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
49331         the optional argument, `lib'.
49332
49333 2000-06-08  Jim Meyering  <meyering@lucent.com>
49334
49335         * m4/largefile.m4: Remove file (now that it's part of autoconf).
49336
49337 2000-06-04  Paul Eggert  <eggert@twinsun.com>
49338
49339         Rewrite largefile configuration so that we don't need to run
49340         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
49341         AC_CANONICAL_HOST in configure.in -- jmm]
49342
49343         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
49344         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
49345         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
49346         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
49347         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
49348         All uses changed.
49349         Instead of inspecting the output of getconf, try to compile the
49350         test program without and with the macro definition.
49351         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
49352         for getconf.  Instead, check for the needed flags by compiling
49353         test programs.
49354
49355 2000-06-04  Paul Eggert  <eggert@twinsun.com>
49356
49357         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
49358
49359 2000-06-04  Jim Meyering  <meyering@lucent.com>
49360
49361         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
49362         SunOS 4.1.4 for which gid_t is an unsigned type.
49363
49364 2000-06-03  Jim Meyering  <meyering@lucent.com>
49365
49366         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
49367         now that autoconf requires that.
49368
49369         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
49370         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
49371         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
49372
49373 2000-06-03  Jim Meyering  <meyering@lucent.com>
49374
49375         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
49376
49377 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
49378
49379         * m4/glibc21.m4: New file.
49380         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
49381
49382 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
49383
49384         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
49385         newer, don't install charset.alias.
49386         * lib/config.charset: Change the Linux/glibc rules so they become empty
49387         on glibc-2.1 or newer.
49388
49389 2000-06-02  Jim Meyering  <meyering@lucent.com>
49390
49391         * lib/mountlist.c: Back out last change.  Instead, do this...
49392         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
49393         me_dummy member using the same `ignore'-testing code.
49394         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
49395         fs_type strings.
49396         From Mark D. Roth.
49397
49398 2000-05-29  Jim Meyering  <meyering@lucent.com>
49399
49400         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
49401         mounts with the `ignore' attribute.  Based on a patch from
49402         Mark D. Roth.
49403
49404 2000-05-28  Jim Meyering  <meyering@lucent.com>
49405
49406         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
49407         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49408         * m4/stat.m4: Likewise.
49409         * m4/lstat.m4: Likewise.
49410         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
49411
49412         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
49413         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
49414
49415 2000-05-26  Jim Meyering  <meyering@lucent.com>
49416
49417         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
49418
49419 2000-05-24  Jim Meyering  <meyering@lucent.com>
49420
49421         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
49422         autoconf requires that.
49423         * m4/lib-check.m4: Likewise.
49424         * m4/jm-macros.m4: Likewise.
49425         * m4/strftime.m4: Likewise.
49426
49427         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
49428         AC_CHECK_DECLS, now that autoconf requires that.
49429
49430 2000-05-22  Jim Meyering  <meyering@lucent.com>
49431
49432         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49433         * m4/lstat.m4: Likewise.
49434
49435 2000-05-22  Jim Meyering  <meyering@lucent.com>
49436
49437         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
49438
49439 2000-05-20  Jim Meyering  <meyering@lucent.com>
49440
49441         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
49442         (jm_PREREQ): Use it.
49443
49444 2000-05-18  Jim Meyering  <meyering@lucent.com>
49445
49446         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
49447         back, too, since it may have been modified by allocate_entry.
49448         (hash_delete): Rewrite to use neither the assignment operator
49449         nor the comma operator in an if-expression.
49450
49451 2000-05-15  Paul Eggert  <eggert@twinsun.com>
49452
49453         * lib/closeout.c:
49454         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
49455         Remove; no longer needed.
49456         "quotearg.h": Add include.
49457         (file_name): Do not bother to explicitly initialize to NULL; it's less
49458         efficient on some hosts.
49459         (close_stdout_status): Remove test as to whether stdout was already
49460         closed; it breaks for the case "echo x | sort >&-".
49461         Quote file name colons.
49462         Do not assume that _("write error") lacks format strings.
49463
49464 2000-05-15  Jim Meyering  <meyering@lucent.com>
49465
49466         * lib/version-etc.c (version_etc_copyright): Update the copyright
49467         string used in all --version output.
49468
49469 2000-05-14  Jim Meyering  <meyering@lucent.com>
49470
49471         * lib/closeout.c (close_stdout_set_file_name): New function.
49472         (close_stdout_status): Use new file-scoped global.
49473         Return right away if fstat says the stdout file descriptor is invalid.
49474         * lib/closeout.h (close_stdout_set_file_name): Declare.
49475
49476 2000-05-10  Jim Meyering  <meyering@lucent.com>
49477
49478         * lib/closeout.c [default_exit_status]: New file-scoped variable.
49479         (close_stdout_set_status): New function.
49480         * lib/closeout.h (close_stdout_set_status): Declare.
49481
49482 2000-05-09  Jim Meyering  <meyering@lucent.com>
49483
49484         * m4/gettext.m4: Rename this...
49485         * m4/libintl.m4: ...to this.
49486
49487 2000-05-08  Jim Meyering  <meyering@lucent.com>
49488
49489         * lib/long-options.c: Don't include closeout.h.
49490         (parse_long_options): Don't call close_stdout for --version.
49491
49492 2000-05-06  Paul Eggert  <eggert@twinsun.com>
49493
49494         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
49495         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
49496         2.1.3 bug.  This avoids a clash when files like regex.c define
49497         _GNU_SOURCE.
49498
49499 2000-05-06  Jim Meyering  <meyering@lucent.com>
49500
49501         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
49502         (AC_REPLACE_FUNCS): Add strnlen.
49503
49504         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
49505         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
49506
49507         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
49508         AC_SEARCH_LIBS call for nanosleep.
49509         (LIB_NANOSLEEP): Set and AC_SUBST.
49510
49511 2000-05-06  Jim Meyering  <meyering@lucent.com>
49512
49513         * lib/strnlen.c: Undefine __strnlen and strnlen.
49514         [!weak_alias]: Define __strnlen to strnlen.
49515
49516         * lib/atexit.c: New file, from libiberty.
49517
49518 2000-05-06  Jim Meyering  <meyering@lucent.com>
49519
49520         * lib/closeout.c (close_stdout_status): Also check for errors on the
49521         stderr stream.
49522
49523 2000-05-05  Jim Meyering  <meyering@lucent.com>
49524
49525         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
49526         AC_SEARCH_LIBS call for clock_gettime.
49527         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
49528
49529         * m4/search-libs.m4: Update from autoconf.
49530
49531         su doesn't work on Solaris 2.6.
49532         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
49533         <shadow.h>.  Reported by Dragos Harabor.
49534
49535 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
49536
49537         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
49538         memcpy instead of xmalloc, xrealloc, path_concat.
49539         (locale_charset): Treat empty environment variables as absent.
49540         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
49541
49542 2000-05-04  Jim Meyering  <meyering@lucent.com>
49543
49544         * lib/getopt.c: Update from glibc.
49545         * lib/obstack.c: Likewise.
49546         * lib/obstack.h: Likewise.
49547         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
49548         file
49549
49550         * lib/regex.h: Likewise.
49551         * lib/strndup.c: Likewise.
49552         * lib/strnlen.c: New file, from glibc.
49553
49554 2000-05-03  Jim Meyering  <meyering@lucent.com>
49555
49556         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
49557
49558 2000-05-02  Paul Eggert  <eggert@twinsun.com>
49559
49560         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
49561         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
49562         compile-time test, rather than inspecting host and OS, to
49563         decide whether to define _LARGEFILE_SOURCE.
49564
49565 2000-05-01  Jim Meyering  <meyering@lucent.com>
49566
49567         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
49568
49569         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
49570         Based on a patch from Bruno Haible.
49571
49572 2000-05-01  Jim Meyering  <meyering@lucent.com>
49573
49574         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
49575
49576 2000-04-29  Jim Meyering  <meyering@lucent.com>
49577
49578         * lib/path-concat.c: Declare strdup only if it's not defined.
49579         * lib/canon-host.c: Likewise.
49580
49581 2000-04-28  Jim Meyering  <meyering@lucent.com>
49582
49583         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
49584         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
49585         is included first, then limits.h is included by locale.h by libintl.h.
49586         From John David Anglin.
49587
49588 2000-04-25  Jim Meyering  <meyering@lucent.com>
49589
49590         * lib/makepath.c (S_IRWXUGO): Define.
49591         (make_path): Always perform explicit chmod if MODE specifies any
49592         of the `special' permission bits.  Prompted by a bug report against
49593         install from Mate Wierdl and Joost van Baal.
49594
49595 2000-04-18  Jim Meyering  <meyering@lucent.com>
49596
49597         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
49598         (jm_PREREQ): Use it.
49599
49600 2000-04-18  Jim Meyering  <meyering@lucent.com>
49601
49602         * lib/README: New file.
49603
49604         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
49605         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
49606
49607 2000-04-17  Jim Meyering  <meyering@lucent.com>
49608
49609         Get it right :-)
49610         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
49611         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
49612         Suggestion from Akim Demaille.
49613
49614 2000-04-17  Jim Meyering  <meyering@lucent.com>
49615
49616         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
49617         the definition of it to rpl_strftime also defined-away the system's
49618         declaration.
49619
49620 2000-04-15  Jim Meyering  <meyering@lucent.com>
49621
49622         Use `C' to denote so-called `contiguous' files, the same way
49623         that tar does.
49624         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
49625         (ftypelet): Use S_ISCTG.
49626         From Michael Deutschmann.
49627
49628 2000-04-14  Jim Meyering  <meyering@lucent.com>
49629
49630         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
49631         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
49632         clobbered.
49633
49634 2000-04-14  Jim Meyering  <meyering@lucent.com>
49635
49636         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
49637
49638 2000-04-13  Jim Meyering  <meyering@lucent.com>
49639
49640         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
49641         AH_VERBATIM to insert required #ifndef into config.h.in.
49642         Suggestion from Akim Demaille.
49643
49644 2000-04-12  Jim Meyering  <meyering@lucent.com>
49645
49646         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
49647         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
49648         Christian Krackowizer.
49649
49650         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
49651         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
49652         (AC_SYS_LARGEFILE): Require.
49653         (AM_C_PROTOTYPES): Require.
49654
49655 2000-04-08  Jim Meyering  <meyering@lucent.com>
49656
49657         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
49658         names don't conflict.  Reported by Eli Zaretskii.
49659
49660 2000-04-07  Jim Meyering  <meyering@lucent.com>
49661
49662         * lib/putenv.c: Move inclusion of errno.h so it follows that of
49663         sys/types.h, to work around system header problems on AIX 3.2.5.
49664         From Bruno Haible.
49665
49666 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
49667
49668         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
49669         bug.  Deal with the different error behavior of Irix iconv.
49670
49671 2000-04-05  Paul Eggert  <eggert@twinsun.com>
49672
49673         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
49674         IRIX if the installer said otherwise.
49675
49676 2000-04-05  Jim Meyering  <meyering@lucent.com>
49677
49678         Portability tweaks required for ultrix4.3.
49679         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
49680         (jm_CHECK_DECLS): Add getutent to the list of functions.
49681         (_jm_DECL_HEADERS): Add utmpx.h.
49682         From John David Anglin.
49683
49684         * m4/strftime.m4: Back out the 2000-04-02 change.
49685         Instead of that change, simply undefine putenv in the test program.
49686
49687 2000-04-05  Jim Meyering  <meyering@lucent.com>
49688
49689         Portability tweaks required for ultrix4.3.
49690         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
49691         getutent.
49692         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
49693         * lib/canon-host.c: Declare strdup.
49694         * lib/path-concat.c: Likewise.
49695         From John David Anglin.
49696
49697 2000-04-04  Jim Meyering  <meyering@lucent.com>
49698
49699         Be more DOS 8.3-friendly.
49700         * lib/ref-add.sin: Renamed from ref-add.sed.in.
49701         * lib/ref-del.sin: Renamed from ref-del.sed.in.
49702         * lib/Makefile.am: Reflect renaming.
49703         Reported by Eli Zaretskii.
49704
49705         Use a temporary file name that won't clash with `charset.alias'
49706         in the DOS 8.3 name space.
49707         * lib/Makefile.am (charset_tmp): Define.
49708         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
49709         (uninstall-local): Likewise.
49710         Reported by Eli Zaretskii.
49711
49712 2000-04-03  Jim Meyering  <meyering@lucent.com>
49713
49714         * m4/gettext.m4: Fix typo in comment.
49715
49716         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
49717         textutils/configure.in).  Suggestion from Paul Eggert.
49718         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
49719
49720 2000-04-02  Paul Eggert  <eggert@twinsun.com>
49721
49722         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
49723         variable in the shell rather than using putenv, which isn't
49724         portable.  This avoids the configure-time inter-test dependency
49725         on the potentially-renamed putenv function.
49726
49727 2000-03-30  Paul Eggert  <eggert@twinsun.com>
49728
49729         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
49730         before checking struct stat.st_blksize, so that
49731         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
49732
49733 2000-03-29  Paul Eggert  <eggert@twinsun.com>
49734
49735         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
49736         since strftime.c uses HAVE_STRFTIME to decide whether to use
49737         the underlying strftime.
49738
49739 2000-03-29  Paul Eggert  <eggert@twinsun.com>
49740
49741         * lib/time/strftime.c (my_strftime): Make sure we call the system
49742         strftime, not ourselves, when invoking the underlying strftime.
49743
49744 2000-03-24  Jim Meyering  <meyering@lucent.com>
49745
49746         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
49747         (charset_alias): Define.
49748         (install-exec-local): Factor out common code.
49749         (uninstall-local): Split lines longer than 80.
49750         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
49751         (SUFFIXES): Define.
49752         (.sed.in.sed): New rule.  Don't redirect directly to $@.
49753         (CLEANFILES): Add ref-add.sed and ref-del.sed.
49754
49755 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
49756
49757         * lib/config.charset: Output a line containing "Packages using this
49758         file".
49759         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
49760         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
49761         ref-del.sed): New rules.
49762
49763 2000-03-17  Jim Meyering  <meyering@lucent.com>
49764
49765         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
49766         Otherwise, include <strings.h>
49767
49768 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
49769
49770         * lib/unicodeio.c (utf8_wctomb): New function.
49771         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
49772         format instead of in UCS-4 with platform dependent endianness.
49773
49774 2000-03-10  Jim Meyering  <meyering@lucent.com>
49775
49776         * m4/lib-check.m4: Look for getspnam in -lgen, too.
49777         From Marco Franzen.
49778
49779 2000-03-07  Paul Eggert  <eggert@twinsun.com>
49780
49781         * lib/savedir.c (savedir): Work even if directory size is
49782         negative; this can happen with some screwy NFS configurations.
49783
49784 2000-03-06  Jim Meyering  <meyering@lucent.com>
49785
49786         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
49787         if it's NULL (because we ran out of memory).  From Bruno Haible.
49788
49789 2000-03-05  Jim Meyering  <meyering@lucent.com>
49790
49791         * lib/localcharset.c ("path-concat.h"): Include.
49792         (get_charset_aliases): Use path_concat instead of ANSI string
49793         concatenation.
49794
49795         * lib/unicodeio.h (PARAMS): Define.
49796         Use it to guard prototype.
49797
49798 2000-03-04  Jim Meyering  <meyering@lucent.com>
49799
49800         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
49801         for lib/localcharset.c.
49802
49803 2000-03-04  Jim Meyering  <meyering@lucent.com>
49804
49805         * lib/Makefile.am (install-exec-local): Create $(libdir) before
49806         installing into it.
49807         (uninstall-local): Uncomment this rule so `make distcheck' works
49808         once again.
49809
49810         * lib/unicodeio.c (<errno.h>): Include it.
49811         (errno): Declare if not defined.
49812
49813         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
49814
49815         * lib/config.charset: New version, incorporating remarks from a linux
49816         i18n mailing list.  From Bruno Haible.
49817
49818 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
49819
49820         * m4/codeset.m4: New file.
49821         * m4/iconv.m4: New file.
49822         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
49823
49824 2000-03-03  Jim Meyering  <meyering@lucent.com>
49825
49826         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
49827
49828 2000-03-02  Jim Meyering  <meyering@lucent.com>
49829
49830         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
49831         the messages come out on separate lines.
49832
49833         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
49834         rather than jm_CHECK_DECLARATIONS.
49835         * m4/decl.m4: Remove now-unused file.
49836
49837         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
49838         geteuid.
49839
49840 2000-03-02  Jim Meyering  <meyering@lucent.com>
49841
49842         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
49843
49844 2000-03-01  Jim Meyering  <meyering@lucent.com>
49845
49846         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
49847         * lib/unicodeio.c: Likewise.
49848
49849 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
49850
49851         * lib/config.charset: New file.
49852         * lib/localcharset.c: New file.
49853         * lib/unicodeio.h, lib/unicodeio.c: New files.
49854         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
49855         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
49856         (noinst_HEADERS): Add unicodeio.h.
49857         (all-local, install-exec-local, charset.alias): New targets.
49858
49859 2000-02-28  Paul Eggert  <eggert@twinsun.com>
49860
49861         * lib/quotearg.c (ALERT_CHAR): New macro.
49862         (quotearg_buffer_restyled): Use it.
49863
49864 2000-02-27  Jim Meyering  <meyering@lucent.com>
49865
49866         * m4/check-decl.m4: Add getenv to the list.
49867
49868 2000-02-27  Jim Meyering  <meyering@lucent.com>
49869
49870         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
49871         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
49872
49873         * lib/backupfile.c: Guard inclusion of stdlib.h with
49874         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
49875         Declare malloc if needed.
49876
49877         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
49878         `#ifndef HAVE_DECL..'
49879         now that autoconf always defines the HAVE_DECL_ symbols.
49880         * lib/human.c: Likewise.
49881         * lib/same.c: Likewise.
49882         * lib/strtoumax.c: Likewise.
49883
49884         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
49885         declaration check was not run.
49886         * lib/hash.c: Likewise.
49887         * lib/human.c: Likewise.
49888         * lib/same.c: Likewise.
49889         * lib/strtoumax.c: Likewise.
49890
49891         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
49892         `.', then first look up the entire `.'-containing string as a login
49893         name.
49894
49895 2000-02-23  Jim Meyering  <meyering@lucent.com>
49896
49897         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
49898         in place of my hack.
49899
49900 2000-02-18  Paul Eggert  <eggert@twinsun.com>
49901
49902         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
49903         (textint): New typedef.
49904         (parser_control): Member year changed from int to textint.
49905         All uses changed.
49906         (YYSTYPE): Removed; replaced by %union with int and textint members.
49907         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
49908         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
49909         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
49910         (tSNUMBER, tUNUMBER): Now of type <textintval>.
49911         (date, number, to_year): Use width of number in digits, not its value,
49912         to determine whether it's a 2-digit year, or a 2-digit time.
49913         (yylex): Store number of digits of numeric tokens.
49914         Reported by John Kendall.
49915
49916         (parser_control): Changed from struct parser_control to typedef (for
49917         consistency).  All uses changed.
49918
49919         (tID): Removed; not used.
49920         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
49921
49922 2000-02-14  Paul Eggert  <eggert@twinsun.com>
49923
49924         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
49925         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
49926
49927 2000-02-12  Jim Meyering  <meyering@lucent.com>
49928
49929         * lib/userspec.c (ISDIGIT): Define it.
49930         (isdigit): Remove definition.
49931         (is_number): Use ISDIGIT, not isdigit.
49932         <libintl.h>: Include.
49933         (_ and N_): Define.
49934         (parse_user_spec): Mark translatable strings.
49935
49936 2000-02-10  Jim Meyering  <meyering@lucent.com>
49937
49938         With these changes, nanosleep.[ch] are finally enough like the other
49939         lib/* replacement files to compile on a few more losing systems.
49940
49941         * lib/nanosleep.h: Don't include config.h.
49942         Remove prototype from declaration of nanosleep.
49943         (PARAMS): Remove now-unneeded definition.
49944         * lib/nanosleep.c: #undef nanosleep.
49945         (rpl_nanosleep): Rename from nanosleep.
49946
49947 2000-02-10  Jim Meyering  <meyering@lucent.com>
49948
49949         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
49950         gnu_nanosleep to rpl_nanosleep.
49951
49952 2000-02-09  Jim Meyering  <meyering@lucent.com>
49953
49954         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
49955         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
49956
49957 2000-02-08  Akim Demaille  <akim@epita.fr>
49958
49959         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
49960         `[' and `]' and remove uses of `changequote'.
49961         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
49962         (AC_SYS_LARGEFILE): Likewise.
49963         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49964         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
49965         of changequote.
49966         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
49967         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
49968         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
49969         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
49970
49971 2000-02-05  Jim Meyering  <meyering@lucent.com>
49972
49973         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
49974         Remove explicit use of AC_HEADER_TIME.  It is required by
49975         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
49976         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
49977         in autoconf whereby the expansion of the latter ended up preceding
49978         the expansion of its prerequisite, AC_HEADER_TIME.
49979         Reported by Volker Borchert.
49980
49981 2000-02-03  Jim Meyering  <meyering@lucent.com>
49982
49983         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
49984
49985 2000-02-03  Jim Meyering  <meyering@lucent.com>
49986
49987         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
49988         rather than with `#if HAVE_UTMPNAME'.
49989
49990 2000-02-02  Jim Meyering  <meyering@lucent.com>
49991
49992         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
49993         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
49994         Reported by Eli Zaretskii.
49995
49996 2000-02-01  Jim Meyering  <meyering@lucent.com>
49997
49998         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
49999
50000 2000-01-31  Jim Meyering  <meyering@lucent.com>
50001
50002         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
50003         functions.  Add the time.h and sys/time.h headers along with the
50004         AC_REQUIRE'ment of AC_HEADER_TIME.
50005
50006 2000-01-31  Jim Meyering  <meyering@lucent.com>
50007
50008         * lib/nanosleep.h (nanosleep): Guard declaration with
50009         `#if ! HAVE_DECL_NANOSLEEP'.
50010         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
50011         the declaration in that vendor's sys/timers.h.
50012         Reported by Christian Krackowizer.
50013
50014         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
50015         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
50016         (ISPRINT): Likewise.
50017         Reported by Tom Tromey.
50018
50019 2000-01-30  Jim Meyering  <meyering@lucent.com>
50020
50021         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
50022
50023         * m4/prereq.m4 (utmp_includes): Define.
50024         Check for ut_user and ut_name members in both struct utmpx
50025         and struct utmp.
50026
50027 2000-01-30  Jim Meyering  <meyering@lucent.com>
50028
50029         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
50030         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
50031         header files where only utmpx.ut_user is declared.
50032
50033         * lib/readutmp.h (UT_USER): Define.
50034
50035 2000-01-29  Jim Meyering  <meyering@lucent.com>
50036
50037         * m4/lib-check.m4: New file containing library-related checks from
50038         fileutils and sh-utils (textutils had none).
50039
50040 2000-01-28  Jim Meyering  <meyering@lucent.com>
50041
50042         * m4/perl.m4: Change format of warning message to look more like that
50043         from the missing script.  Suggestion from François Pinard.
50044
50045 2000-01-25  Jim Meyering  <meyering@lucent.com>
50046
50047         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
50048         well as time.h in the compile check.
50049         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
50050         Fix typo in cross-compiling case: s/yes/no/.
50051
50052 2000-01-23  Jim Meyering  <meyering@lucent.com>
50053
50054         * m4/jm-macros.m4: Move df-related tests here from
50055         fileutils/configure.in
50056
50057         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
50058         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
50059
50060         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
50061         s/space/ac_fsusage_space/.
50062         (jm_FILE_SYSTEM_USAGE): Take two parameters.
50063
50064         * m4/ftruncate.m4: New file (derived from part of
50065         fileutils/configure.in).
50066         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
50067         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
50068
50069         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
50070         AC_SUBST these here, rather than just in sh-util/configure.in, so
50071         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
50072         all the same.
50073         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
50074         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
50075         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
50076         (AC_SUBST(POW_LIBM)): Likewise.
50077         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
50078
50079 2000-01-23  Jim Meyering  <meyering@lucent.com>
50080
50081         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
50082         obstack.c.
50083
50084 2000-01-22  Jim Meyering  <meyering@lucent.com>
50085
50086         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
50087
50088         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
50089
50090         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
50091         configure.in
50092         (AC_CHECK_HEADERS): Likewise for sh-utils.
50093         (AC_CHECK_HEADERS): Likewise for textutils.
50094         Merge the three lists of headers.
50095
50096         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
50097         from fileutils' configure.in.
50098
50099         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
50100         code. Moved tests into their own function (_jm_DECL_HEADERS) in
50101         check-decl.m4.
50102
50103         * m4/check-decl.m4: Use #if rather than #ifdef.
50104         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
50105         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
50106         (_jm_DECL_HEADERS): Define new function.
50107         (jm_CHECK_DECLARATIONS): Require it.
50108
50109 2000-01-22  Jim Meyering  <meyering@lucent.com>
50110
50111         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
50112         [! HAVE_DECL_STRTOULL]: Declare strtoull.
50113         Required for some AIX systems.  Reported by Christian Krackowizer.
50114         [TESTING] (main): New function.
50115
50116         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
50117         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
50118         letters.
50119
50120         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
50121         iswprint.
50122
50123         * lib/strverscmp.c (ISDIGIT): Define.
50124         (strverscmp): Use ISDIGIT, not isdigit.
50125
50126 2000-01-19  Jim Meyering  <meyering@lucent.com>
50127
50128         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
50129         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
50130         defines `struct timespec' in <sys/time.h>
50131
50132         * m4/c-bs-a.m4: Remove uses of changequote altogether.
50133         Thanks to Akim for explaining.
50134
50135 2000-01-17  Paul Eggert  <eggert@twinsun.com>
50136
50137         * lib/nanosleep.c (nanosleep):
50138         Don't use SA_INTERRUPT to decide whether to call sigaction, as
50139         POSIX.1 doesn't require SA_INTERRUPT and some systems
50140         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
50141         it's been part of POSIX.1 since day 1 (in 1988).
50142
50143 2000-01-17  Jim Meyering  <meyering@lucent.com>
50144
50145         * lib/interlock: Remove unused file.  Reported by François Pinard.
50146
50147 2000-01-16  Paul Eggert  <eggert@twinsun.com>
50148
50149         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
50150         alert, backslash, formfeed, and vertical tab unnecessarily in
50151         shell quoting style.
50152
50153 2000-01-16  Jim Meyering  <meyering@lucent.com>
50154
50155         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
50156         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
50157         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
50158         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
50159
50160 2000-01-16  Jim Meyering  <meyering@lucent.com>
50161
50162         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
50163         because the latter didn't work.
50164
50165 2000-01-15  Jim Meyering  <meyering@lucent.com>
50166
50167         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
50168         (AC_REPLACE_FUNCS): Add memcpy and memset.
50169         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
50170         Add strpbrk.
50171         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
50172
50173 2000-01-12  Jim Meyering  <meyering@lucent.com>
50174
50175         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
50176         (jm_PREREQ): Use it.
50177         (jm_PREREQ_READUTMP): New macro.
50178         (jm_PREREQ): Use it.
50179
50180 2000-01-11  Paul Eggert  <eggert@twinsun.com>
50181
50182         Quote multibyte characters correctly.
50183         * m4/c-bs-a.m4: New file.
50184         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
50185         (jm_PREREQ): Use it.
50186
50187 2000-01-11  Paul Eggert  <eggert@twinsun.com>
50188
50189         * m4/uintmax_t.m4: Port to autoconf 2.13.
50190
50191 2000-01-08  Jim Meyering  <meyering@ascend.com>
50192
50193         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
50194         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
50195
50196 2000-01-04  Jim Meyering  <meyering@ascend.com>
50197
50198         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
50199         jm_STRUCT_DIRENT_D_TYPE.
50200         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
50201         jm_STRUCT_DIRENT_D_INO.
50202         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
50203         jm_STRUCT_UTIMBUF.
50204         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
50205         renamings.
50206         * m4/utime.m4: Likewise.
50207
50208         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
50209         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
50210
50211 2000-01-03  Paul Eggert  <eggert@twinsun.com>
50212
50213         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
50214         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
50215
50216 2000-01-02  Jim Meyering  <meyering@ascend.com>
50217
50218         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
50219         remember if this is necessary.
50220
50221 1999-12-26  Jim Meyering  <meyering@ascend.com>
50222
50223         * m4/jm-macros.m4: Use it here.
50224         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
50225
50226 1999-12-23  Jim Meyering  <meyering@ascend.com>
50227
50228         * m4/jm-macros.m4: Check for clock_gettime (moved from
50229         fileutils/configure.in)
50230         Check for gettimeofday.
50231
50232 1999-12-20  Jim Meyering  <meyering@ascend.com>
50233
50234         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
50235         autoconf-2.14a-1999-12-20.
50236
50237 1999-12-19  Jim Meyering  <meyering@ascend.com>
50238
50239         * m4/lstat-slash.m4: New file.
50240         * m4/jm-macros.m4: Use the new macro:
50241         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50242
50243 1999-12-07  Jim Meyering  <meyering@ascend.com>
50244
50245         * m4/perl.m4: Require that File::Compare be available, too.
50246         Too many systems seem to lack it.
50247
50248         * m4/strftime.m4: Add checks for most of the cpp macros tested in
50249         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
50250
50251 1999-11-18  Paul Eggert  <eggert@twinsun.com>
50252
50253         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
50254         problem with the QNX 4.25 shell, which doesn't propagate exit
50255         status of failed commands inside shell assignments.
50256
50257 1999-11-17  Jim Meyering  <meyering@ascend.com>
50258
50259         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
50260
50261 1999-11-07  Jim Meyering  <meyering@ascend.com>
50262
50263         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
50264
50265 1999-11-06  Jim Meyering  <meyering@ascend.com>
50266
50267         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
50268         * m4/jm-macros.m4 (jm_MACROS): Use it here.
50269
50270 1999-11-05  Jim Meyering  <meyering@ascend.com>
50271
50272         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
50273         configure.in of textutils, fileutils, and sh-utils into this one
50274         (shared between those packages) file.
50275         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
50276         AC_STRUCT_ST_BLKSIZE.
50277
50278 1999-11-03  Jim Meyering  <meyering@ascend.com>
50279
50280         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
50281         of AC_CHECK_TYPE checks includes unistd.h.
50282         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
50283         Suggestion from Akim Demaille.
50284
50285 1999-10-30  Jim Meyering  <meyering@ascend.com>
50286
50287         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
50288         m4-quoted string.
50289         * m4/ls-mntd-fs.m4: Likewise.
50290         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
50291         * m4/jm-winsz1.m4: Likewise.
50292
50293         * m4/const.m4: Remove file, since the fix made it into the experimental
50294         version of autoconf.
50295         * m4/mktime.m4: Likewise.
50296
50297         * m4/check-type.m4: Remove file, now that the latest version of
50298         AC_CHECK_TYPE takes a third arg to specify additional #includes.
50299
50300         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
50301         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
50302         AC_CHECK_TYPE.
50303
50304 1999-10-04  Jim Meyering  <meyering@ascend.com>
50305
50306         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
50307
50308 1999-09-22  Paul Eggert  <eggert@twinsun.com>
50309
50310         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
50311         2.95.1 bug with HP-UX 10.20.
50312
50313 1999-09-17  Jim Meyering  <meyering@ascend.com>
50314
50315         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
50316         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
50317         due to missing strdup (against sh-utils-2.0).
50318
50319 1999-08-29  Jim Meyering  <meyering@ascend.com>
50320
50321         * m4/jm-macros.m4: Require jm_BISON.
50322         * m4/bison.m4: New file.
50323
50324 1999-08-17  Paul Eggert  <eggert@twinsun.com>
50325
50326         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
50327         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
50328
50329 1999-08-05  Jim Meyering  <meyering@ascend.com>
50330
50331         * m4/getline.m4: Rename test file from conftestdata to conftest.data
50332         to avoid conflicts with `conftest' on 8+3 filesystems.
50333         Suggestion from Eli Zaretskii.
50334
50335 1999-08-04  Jim Meyering  <meyering@ascend.com>
50336
50337         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
50338         fileutils and sh-utils (textutils's getline test was inadequate).
50339         (AM_FUNC_GETLINE): Run this test.
50340         (AC_CHECK_FUNCS): Check for getdelim.
50341         Reported by Bob Proulx.
50342
50343 1999-08-02  Jim Meyering  <meyering@ascend.com>
50344
50345         * m4/jm-macros.m4: Add a comment.
50346
50347 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50348
50349         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
50350         <inttypes.h> defines strtoumax as a macro (and not as a
50351         function).
50352
50353 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50354
50355         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
50356         that we can shift, multiply and divide unsigned long long
50357         values; Ultrix cc can't do it.
50358
50359 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50360
50361         * m4/mktime.m4: New file, which is a preview of what should appear
50362         in the next public autoconf release.
50363
50364 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50365
50366         * m4/lfs.m4: Remove this file.
50367         * m4/largefile.m4: New file.  It contains the old contents of
50368         lfs.m4, except that all names with prefix AC_LFS have been
50369         changed to use the prefix AC_SYS_LARGEFILE instead, to be
50370         compatible with future autoconf versions.  Also, some minor m4
50371         quoting problems have been fixed.
50372
50373 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50374
50375         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
50376         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
50377         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
50378         and simplify the shell code.
50379
50380 1999-08-01  Jim Meyering  <meyering@ascend.com>
50381
50382         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
50383         m4.
50384
50385 1999-07-20  Jim Meyering  <meyering@ascend.com>
50386
50387         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
50388
50389 1999-07-15  Jim Meyering  <meyering@ascend.com>
50390
50391         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
50392
50393 1999-05-22  Jim Meyering  <meyering@ascend.com>
50394
50395         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
50396
50397 1999-05-20  Jim Meyering  <meyering@ascend.com>
50398
50399         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
50400         Add a colon after each `then' in case $4 is empty.
50401
50402 1999-05-16  Jim Meyering  <meyering@ascend.com>
50403
50404         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
50405
50406 1999-05-10  Jim Meyering  <meyering@ascend.com>
50407
50408         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
50409
50410         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
50411         AC_FUNC_MKTIME.
50412
50413 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
50414
50415         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
50416
50417 1999-05-04  Paul Eggert  <eggert@twinsun.com>
50418
50419         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
50420         not CPPFLAGS, so that linking works correctly in IRIX.
50421
50422 1999-04-30  Paul Eggert  <eggert@twinsun.com>
50423
50424         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
50425
50426 1999-04-20  Paul Eggert  <eggert@twinsun.com>
50427
50428         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
50429         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
50430         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
50431         jm_AC_TYPE_UNSIGNED_LONG_LONG.
50432         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
50433
50434         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
50435
50436 1999-04-20  Jim Meyering  <meyering@ascend.com>
50437
50438         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
50439         AC_REPLACE xstroull if necessary.  From Paul Eggert.
50440         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
50441
50442 1999-04-18  Jim Meyering  <meyering@ascend.com>
50443
50444         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
50445         * m4/jm-macros.m4: Use it.
50446
50447 1999-04-06  Jim Meyering  <meyering@ascend.com>
50448
50449         * m4/strftime.m4: Remove test for %f.
50450
50451 1999-03-29  Jim Meyering  <meyering@ascend.com>
50452
50453         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
50454         superset of the AC_TYPE_* checks in the textutils, fileutils,
50455         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
50456         AC_TYPE_PID_T.
50457
50458 1999-03-28  Jim Meyering  <meyering@ascend.com>
50459
50460         * m4/jm-macros.m4: Define GNU_PACKAGE here.
50461         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
50462         replaced e.g., in the *.sh files of the sh-utils.
50463
50464 1999-03-20  Jim Meyering  <meyering@ascend.com>
50465
50466         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
50467         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
50468         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
50469
50470 1999-03-19  Jim Meyering  <meyering@ascend.com>
50471
50472         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
50473
50474 1999-03-12  Jim Meyering  <meyering@ascend.com>
50475
50476         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
50477
50478 1999-03-07  Jim Meyering  <meyering@ascend.com>
50479
50480         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
50481         declared.
50482
50483 1999-02-17  Jim Meyering  <meyering@ascend.com>
50484
50485         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
50486         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
50487
50488 1999-02-07  Jim Meyering  <meyering@ascend.com>
50489
50490         * m4/group-member.m4: New file -- extracted from sh-utils'
50491         configure.in.
50492
50493         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
50494         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
50495
50496 1999-02-06  Jim Meyering  <meyering@ascend.com>
50497
50498         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
50499         * m4/fnmatch.m4: Likewise.
50500         * m4/getgroups.m4: Likewise.
50501         * m4/lstat.m4: Likewise.
50502         * m4/malloc.m4: Likewise.
50503         * m4/putenv.m4: Likewise.
50504         * m4/realloc.m4: Likewise.
50505         * m4/regex.m4: Likewise.
50506         * m4/stat.m4: Likewise.
50507         * m4/strftime.m4: Likewise.
50508         Suggestion from Alain Magloire.
50509
50510         * m4/chown.m4: Use `.$ac_objext', not `.o'.
50511         * m4/fnmatch.m4: Likewise.
50512         * m4/getgroups.m4: Likewise.
50513         * m4/getline.m4: Likewise.
50514         * m4/lstat.m4: Likewise.
50515         * m4/malloc.m4: Likewise.
50516         * m4/memcmp.m4: Likewise.
50517         * m4/putenv.m4: Likewise.
50518         * m4/realloc.m4: Likewise.
50519         * m4/regex.m4: Likewise.
50520         * m4/stat.m4: Likewise.
50521         * m4/strftime.m4: Likewise.
50522         Suggestion from Alain Magloire.
50523
50524         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
50525         an argument.
50526
50527         * m4/regex.m4: Add a run-time Test for proper operation of
50528         re_compile_pattern.
50529
50530 1999-01-31  Jim Meyering  <meyering@ascend.com>
50531
50532         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
50533
50534 1999-01-30  Jim Meyering  <meyering@ascend.com>
50535
50536         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
50537
50538         * m4/jm-mktime.m4: Make this a wrapper around the official
50539         AM_FUNC_MKTIME rather than my private copy, now that the official one
50540         is up to date.
50541         * m4/mktime.m4: Remove file.
50542
50543         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
50544         * m4/uptime.m4: Likewise.
50545         * m4/uintmax_t.m4: Likewise.
50546
50547 1999-01-28  Jim Meyering  <meyering@ascend.com>
50548
50549         * m4/jm-macros.m4: Use jm_AFS.
50550         * m4/afs.m4: New file (from fileutils' configure.in).
50551
50552         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
50553         * m4/chown.m4: Likewise.
50554         * m4/d-ino.m4: Likewise.
50555         * m4/d-type.m4: Likewise.
50556         * m4/fnmatch.m4: Likewise.
50557         * m4/getgroups.m4: Likewise.
50558         * m4/gettext.m4: Likewise.
50559         * m4/jm-mktime.m4: Likewise.
50560         * m4/jm-winsz2.m4: Likewise.
50561         * m4/lcmessage.m4: Likewise.
50562         * m4/ls-mntd-fs.m4: Likewise.
50563         * m4/malloc.m4: Likewise.
50564         * m4/memcmp.m4: Likewise.
50565         * m4/putenv.m4: Likewise.
50566         * m4/realloc.m4: Likewise.
50567         * m4/st_mtim.m4: Likewise.
50568         * m4/strftime.m4: Likewise.
50569
50570 1999-01-16  Jim Meyering  <meyering@ascend.com>
50571
50572         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
50573         (ARGMATCH_DIE_DECL): Define.
50574
50575 1999-01-12  Jim Meyering  <meyering@ascend.com>
50576
50577         * m4/Makefile.am.in: Rewrite to avoid using fmt.
50578         Reported by Lars Hecking.
50579
50580 1999-01-10  Jim Meyering  <meyering@ascend.com>
50581
50582         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
50583         gross kludge.
50584         * m4/inttypes_h.m4: Likewise.
50585         * m4/lstat.m4: Likewise.
50586         * m4/malloc.m4: Likewise.
50587         * m4/readdir.m4: Likewise.
50588         * m4/realloc.m4: Likewise.
50589         * m4/st_dm_mode.m4: Likewise.
50590         * m4/stat.m4: Likewise.
50591         * m4/utimbuf.m4: Likewise.
50592         * m4/utimes.m4: Likewise.
50593
50594         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
50595         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
50596         comments in config.h.in are meaningful.
50597
50598         * m4/jm-macros.m4: Require autoconf-2.13 here.
50599
50600         * m4/regex.m4: By default, don't use the included regex.c on systems
50601         with glibc 2.  Suggestion from Uli Drepper.
50602
50603 1999-01-02  Jim Meyering  <meyering@ascend.com>
50604
50605         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
50606
50607 1998-12-18  Jim Meyering  <meyering@ascend.com>
50608
50609         * m4/Makefile.am.in (Makefile.am): Simplify rule.
50610         Based on a suggestion from Lars Hecking.
50611
50612 1998-11-16  Paul Eggert  <eggert@twinsun.com>
50613
50614         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
50615
50616 1998-11-16  Jim Meyering  <meyering@ascend.com>
50617
50618         * m4/lfs.m4: Double-quote the `uname...` expression.
50619
50620 1998-11-14  Jim Meyering  <meyering@ascend.com>
50621
50622         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
50623         * m4/stat.m4: Likewise.
50624
50625 1998-11-03  Jim Meyering  <meyering@ascend.com>
50626
50627         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
50628         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
50629
50630 1998-10-18  Jim Meyering  <meyering@ascend.com>
50631
50632         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
50633
50634 1998-10-17  Jim Meyering  <meyering@ascend.com>
50635
50636         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
50637         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
50638         calls for those previously hard-coded headers.  Instead, take a new
50639         parameter.
50640         (jm_CHECK_DECLARATIONS): Reflect interface change.
50641         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
50642         (jm_CHECK_DECL_LOCALTIME_R): New macro.
50643
50644         * m4/mktime.m4: Test for spring-forward gap before long-running test.
50645
50646 1998-10-14  Jim Meyering  <meyering@ascend.com>
50647
50648         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
50649         instead of "TZ=America/Vancouver".  From Paul Eggert.
50650
50651 1998-10-11  Jim Meyering  <meyering@ascend.com>
50652
50653         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
50654         This adds a test for a recently added compatibility fix for mktime.c.
50655         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
50656
50657 1998-09-27  Jim Meyering  <meyering@ascend.com>
50658
50659         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
50660
50661         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
50662         ../configure.in, including a change from Gordon Matzigkeit to allow
50663         cross-compiling for the Hurd.
50664
50665         * m4/glibc.m4: New file/macro to test for the GNU C Library
50666         versions 1 and 2.  From Gordon Matzigkeit.
50667         Indent.
50668
50669 1998-09-21  Jim Meyering  <meyering@ascend.com>
50670
50671         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
50672
50673 1998-08-18  Paul Eggert  <eggert@twinsun.com>
50674
50675         Port nanosecond-resolution times to UnixWare 2.1.2 and
50676         pedantic Solaris 2.6.
50677
50678         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
50679         AC_STRUCT_ST_MTIM.
50680         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
50681         Generate name of ns member, instead of just 1 or undef.
50682         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
50683
50684 1998-08-15  Jim Meyering  <meyering@ascend.com>
50685
50686         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
50687         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
50688         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
50689         instead of jm_TYPE_SSIZE_T.
50690
50691 1998-08-12  Jim Meyering  <meyering@ascend.com>
50692
50693         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
50694
50695 1998-08-02  Jim Meyering  <meyering@ascend.com>
50696
50697         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
50698         in acconfig.h manually.
50699
50700 1998-07-31  Paul Eggert  <eggert@twinsun.com>
50701
50702         * m4/st_mtim.m4: New file.
50703
50704 1998-07-28  Jim Meyering  <meyering@ascend.com>
50705
50706         * m4/utimes.m4: Undef stat.
50707
50708 1998-07-25  Jim Meyering  <meyering@ascend.com>
50709
50710         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
50711         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
50712
50713 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
50714
50715         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
50716         uid and gid actually remain unchanged.
50717
50718 1998-07-07  Jim Meyering  <meyering@ascend.com>
50719
50720         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
50721
50722 1998-07-04  Jim Meyering  <meyering@ascend.com>
50723
50724         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
50725         to prove that this macro can be used in packages without regex.c.
50726
50727 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
50728
50729         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
50730         is to be used.
50731
50732 1998-07-03  Jim Meyering  <meyering@ascend.com>
50733
50734         * m4/gettext.m4: Add -lintl if it's found to be necessary.
50735
50736         * m4/gettext.m4: New file -- from gettext-0.10.35.
50737         * m4/lcmessage.m4: Likewise.
50738         * m4/progtest.m4: Likewise.
50739
50740         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
50741         * m4/jm-macros.m4: Require the new macro.
50742
50743 1998-06-29  Jim Meyering  <meyering@ascend.com>
50744
50745         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
50746         for the definition of NGROUPS (used in a system header included
50747         by sys/mount.h).
50748
50749 1998-06-28  Jim Meyering  <meyering@ascend.com>
50750
50751         * m4/ls-mntd-fs.m4: New file.
50752         * m4/fstypename.m4: New file.
50753
50754         * m4/jm-macros.m4: Require the new macro.
50755         * m4/jm-glibc-io.m4: New file.
50756
50757 1998-05-19  Jim Meyering  <meyering@ascend.com>
50758
50759         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
50760         * m4/lchown.m4: New file.
50761
50762         * m4/Makefile.am.in: New file.
50763         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
50764
50765 1998-05-14  Jim Meyering  <meyering@ascend.com>
50766
50767         * m4/Makefile.am (EXTRA_DIST): Add them.
50768         * m4/jm-macros.m4: New file.
50769         * m4/utimbuf.m4: New file.
50770
50771 1998-05-12  Jim Meyering  <meyering@ascend.com>
50772
50773         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
50774
50775 1998-05-11  Jim Meyering  <meyering@ascend.com>
50776
50777         * m4/isc-posix.m4: New file.
50778
50779 1998-05-10  Jim Meyering  <meyering@ascend.com>
50780
50781         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
50782
50783 1998-05-09  Jim Meyering  <meyering@ascend.com>
50784
50785         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
50786         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
50787         with automake.
50788
50789         * m4/ssize_t.m4: New file.
50790         * m4/mktime.m4: Remove file -- the new automake has this now.
50791
50792 1998-04-26  Jim Meyering  <meyering@ascend.com>
50793
50794         * m4/assert.m4: New file.
50795         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
50796
50797 1998-04-05  Jim Meyering  <meyering@ascend.com>
50798
50799         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
50800         (jm_PREREQ): Use it here.
50801
50802 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
50803
50804         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
50805         in acconfig.h.
50806
50807 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
50808
50809         * m4/prereq.m4: New file.
50810         * m4/error.m4: New file.
50811         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
50812
50813 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
50814
50815         * m4/getline.m4: Don't set am_cv_func_working_getline before the
50816         cache-check for the same variable -- that defeated the purpose of
50817         the test; the test program was never run.  This was a problem only
50818         on systems with losing getline functions -- HP-UX 10.20 is one.
50819         Reported by Bjorn Helgaas.
50820
50821 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
50822
50823         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
50824
50825 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
50826
50827         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
50828
50829         * m4/const.m4: New file.  Use an initializer in this declaration
50830         typedef int charset[2]; const charset x;
50831         Reported by Bob Glickstein.
50832
50833 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
50834
50835         * m4/chown.m4: Fix reversed types on -1 args to chown.
50836         From Kaveh Ghazi.
50837
50838 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
50839
50840         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
50841         Add lseek and memchr.
50842
50843         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
50844         T.E.Dickey <dickey@clark.net> said that some older preprocessors
50845         have a 20-character limit on names.
50846
50847 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
50848
50849         * m4/inttypes_h.m4: New file.
50850         * m4/uintmax_t.m4: New file.
50851         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
50852
50853
50854         -----
50855
50856         Local Variables:
50857         coding: utf-8
50858         End:
50859
50860         Copyright (C) 1997-2009 Free Software Foundation, Inc.
50861
50862         Copying and distribution of this file, with or without
50863         modification, are permitted provided the copyright notice
50864         and this notice are preserved.