0ba878b91dc03b6a34945d806a0eb9e9042316af
[gnulib.git] / ChangeLog
1 2009-03-20  Bruno Haible  <bruno@clisp.org>
2
3         Remove dependency from 'close' module to -lws2_32 on native Windows.
4         * lib/close-hook.h: New file.
5         * lib/close-hook.c: New file.
6         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
7         w32sock.h.
8         (_gl_close_fd_maybe_socket): Remove function.
9         (rpl_close): Invoke execute_all_close_hooks instead of
10         _gl_close_fd_maybe_socket.
11         * lib/sockets.c: Include close-hook.h, w32sock.h.
12         (close_fd_maybe_socket): New function, essentially from lib/close.c.
13         (close_sockets_hook): New variable.
14         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
15         (gl_sockets_cleanup): Unregister it.
16         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
17         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
18         * modules/close-hook: New file.
19         * modules/close (Files): Remove lib/w32sock.h.
20         (Depends-on): Add close-hook.
21         (Link): Remove section.
22         * modules/sockets (Files): Add lib/w32sock.h.
23         (Depends-on): Add close-hook.
24         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
25         invocation.
26         * NEWS: Mention that LIB_CLOSE is gone.
27
28 2009-03-23  Eric Blake  <ebb9@byu.net>
29
30         signal-tests: test previous patch
31         * tests/test-signal.c: New file.
32         * modules/signal-tests: Likewise.
33
34         signal.h: always support 'volatile sig_atomic_t'
35         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
36         (gl_SIGNAL_H_DEFAULTS): Add a default.
37         * modules/signal (Makefile.am): Substitute if needed.
38         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39         users can blindly add volatile.
40         * doc/posix-headers/signal.texi (signal.h): Document it.
41         Reported by Matthew Woehlke.
42
43 2009-03-23  Jim Meyering  <meyering@redhat.com>
44
45         pathmax: PATH_MAX: use pathconf only when available
46         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
47         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
48         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
49         This avoids a link failure in a PSP cross-compilation environment
50         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
51
52         * lib/vasnprintf.c (divide): Fix typo in comment.
53
54 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55
56         * gnulib-tool (func_filter_filelist): Fix comment.
57
58 2009-03-20  Bruno Haible  <bruno@clisp.org>
59
60         Make sockets.h self-contained.
61         * lib/sockets.c: Include sockets.h first.
62         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
63
64 2009-03-19  Eric Blake  <ebb9@byu.net>
65
66         doc: mention more functions added in cygwin 1.7.0
67         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
68         addition.
69         * doc/posix-functions/log2f.texi: Likewise.
70
71 2009-03-19  Jim Meyering  <meyering@redhat.com>
72
73         fsusage: avoid syntax error due to statement-before-declaration
74         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
75         after all declarations.  Reported by Matthew Woehlke in
76         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
77
78 2009-03-18  Eric Blake  <ebb9@byu.net>
79
80         build-aux/compile: sync from automake
81         * build-aux/compile: New file, from automake.
82         * config/srclist.txt: Mention build-aux/compile.
83
84 2009-03-17  Bruno Haible  <bruno@clisp.org>
85
86         * lib/git-merge-changelog.c: Fix typo in comment.
87         Reported by Reuben Thomas <rrt@sc3d.org>.
88
89 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
90
91         * m4/regex.m4: update and improve help for
92         --without-included-regex.
93
94 2009-03-17  Simon Josefsson  <simon@josefsson.org>
95
96         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
97         failure on missing include files.
98
99 2009-03-17  Eric Blake  <ebb9@byu.net>
100
101         doc: mention more functions added in cygwin 1.7.0
102         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
103         addition.
104         * doc/posix-functions/fwscanf.texi: Likewise.
105         * doc/posix-functions/swprintf.texi: Likewise.
106         * doc/posix-functions/swscanf.texi: Likewise.
107         * doc/posix-functions/vfwprintf.texi: Likewise.
108         * doc/posix-functions/vfwscanf.texi: Likewise.
109         * doc/posix-functions/vswprintf.texi: Likewise.
110         * doc/posix-functions/vswscanf.texi: Likewise.
111         * doc/posix-functions/vwprintf.texi: Likewise.
112         * doc/posix-functions/vwscanf.texi: Likewise.
113         * doc/posix-functions/wcscasecmp.texi: Likewise.
114         * doc/posix-functions/wcsdup.texi: Likewise.
115         * doc/posix-functions/wcsftime.texi: Likewise.
116         * doc/posix-functions/wcsncasecmp.texi: Likewise.
117         * doc/posix-functions/wprintf.texi: Likewise.
118         * doc/posix-functions/wscanf.texi: Likewise.
119         * doc/glibc-functions/gethostbyname2.texi: Likewise.
120
121 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
122
123         maint.mk: really add $(AM_MAKEFLAGS)
124         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
125         was inadvertently omitted in the last commit.
126         Spotted by Bruno Haible.
127
128         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
129         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
130         $(AM_MAKEFLAGS)' rather than plain `make'.
131
132         gnulib-tool: execute $MAKE not make
133         * gnulib-tool: Default $MAKE to 'make'.
134         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
135         than make.  Initialize $MAKE in the do-autobuild script.
136
137         gnulib-tool: use $MAKE not make in generated files
138         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
139         make, in generated files.  Initialize $MAKE in the do-autobuild
140         script.
141
142         * top/GNUmakefile (_have-git-version-gen): Fix typo.
143
144         GNUmakefile: disable parallelism only for multiple, recursive targets
145         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
146         additions in the Makefile.
147         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
148         by Automake.
149         (.NOTPARALLEL): Only disable parallel builds if multiple targets
150         are listed on the command line and at least one of them is
151         listed in $(ALL_RECURSIVE_TARGETS).
152
153 2009-03-14  Bruno Haible  <bruno@clisp.org>
154
155         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
156         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
157         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
158         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
159         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
160         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
161         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
162         unistr/u8-uctomb.
163         * modules/unistr/u8-strchr (Depends-on): Likewise.
164         * modules/unistr/u8-strrchr (Depends-on): Likewise.
165         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
166         unistr/u16-uctomb.
167         * modules/unistr/u16-strchr (Depends-on): Likewise.
168         * modules/unistr/u16-strrchr (Depends-on): Likewise.
169
170 2009-03-12  Bruno Haible  <bruno@clisp.org>
171
172         Work around select() bug on Interix 3.5.
173         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
174         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
175         * m4/select.m4: New file.
176         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
177         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
178         * modules/select (Files): Add m4/select.m4.
179         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
180         * modules/nanosleep (Depends-on): Add select.
181         * modules/poll (Depends-on): Likewise.
182         * doc/posix-functions/select.texi: Mention the Interix bug.
183         Reported by Markus Duft <mduft@gentoo.org>.
184
185         * lib/select.c: Renamed from lib/winsock-select.c.
186         * modules/select (Files): Add lib/select.c, remove
187         lib/winsock-select.c.
188         (configure.ac): Update.
189
190 2009-03-12  Jim Meyering  <meyering@redhat.com>
191
192         avoid gcc warnings about unused macro definitions
193         * lib/readtokens.c (STREQ): Remove unused definition.
194         * lib/xmalloc.c (SIZE_MAX): Likewise.
195         * lib/openat-die.c (N_): Likewise.
196         * lib/mountlist.c (SIZE_MAX): Remove definition.
197         Instead, include <stdint.h>.
198         * lib/readutmp.c: Likewise.
199         * modules/readutmp (Depends-on): Add stdint.
200         * modules/mountlist (Depends-on): Add stdint.
201         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
202
203 2009-03-10  Bruno Haible  <bruno@clisp.org>
204
205         Tests for module 'mbmemcasecoll'.
206         * modules/mbmemcasecoll-tests: New file.
207         * tests/test-mbmemcasecoll1.sh: New file.
208         * tests/test-mbmemcasecoll2.sh: New file.
209         * tests/test-mbmemcasecoll3.sh: New file.
210         * tests/test-mbmemcasecoll.c: New file.
211
212         New module 'mbmemcasecoll'.
213         * lib/mbmemcasecoll.h: New file.
214         * lib/mbmemcasecoll.c: New file.
215         * modules/mbmemcasecoll: New file.
216
217         * tests/test-mbmemcasecmp.h: New file, extracted from
218         tests/test-mbmemcasecmp.c.
219         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
220         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
221         (main): Update.
222         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
223
224 2009-03-09  Bruno Haible  <bruno@clisp.org>
225
226         Tests for module 'mbmemcasecmp'.
227         * modules/mbmemcasecmp-tests: New file.
228         * tests/test-mbmemcasecmp1.sh: New file.
229         * tests/test-mbmemcasecmp2.sh: New file.
230         * tests/test-mbmemcasecmp3.sh: New file.
231         * tests/test-mbmemcasecmp.c: New file.
232
233         New module 'mbmemcasecmp'.
234         * lib/mbmemcasecmp.h: New file.
235         * lib/mbmemcasecmp.c: New file.
236         * modules/mbmemcasecmp: New file.
237
238 2009-03-09  Bruno Haible  <bruno@clisp.org>
239
240         Tests for module 'unicase/ulc-casecoll'.
241         * modules/unicase/ulc-casecoll-tests: New file.
242         * tests/unicase/test-ulc-casecoll1.sh: New file.
243         * tests/unicase/test-ulc-casecoll2.sh: New file.
244         * tests/unicase/test-ulc-casecoll.c: New file.
245
246         New module 'unicase/ulc-casecoll'.
247         * lib/unicase.h (ulc_casecoll): New declaration.
248         * lib/unicase/ulc-casecoll.c: New file.
249         * modules/unicase/ulc-casecoll: New file.
250
251         New module 'unicase/ulc-casexfrm'.
252         * lib/unicase.h (ulc_casexfrm): New declaration.
253         * lib/unicase/ulc-casexfrm.c: New file.
254         * modules/unicase/ulc-casexfrm: New file.
255
256 2009-03-09  Bruno Haible  <bruno@clisp.org>
257
258         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
259         invocations.
260
261         * m4/mbscasecmp.m4: Remove file.
262         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
263         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
264
265         * m4/mbscasestr.m4: Remove file.
266         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
267         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
268
269         * m4/mbschr.m4: Remove file.
270         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
271         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
272
273         * m4/mbscspn.m4: Remove file.
274         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
275         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
276
277         * m4/mbslen.m4: Remove file.
278         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
279         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
280
281         * m4/mbsncasecmp.m4: Remove file.
282         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
283         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
284
285         * m4/mbsnlen.m4: Remove file.
286         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
287         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
288
289         * m4/mbspbrk.m4: Remove file.
290         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
291         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
292
293         * m4/mbspcasecmp.m4: Remove file.
294         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
295         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
296
297         * m4/mbsrchr.m4: Remove file.
298         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
299         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
300
301         * m4/mbssep.m4: Remove file.
302         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
303         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
304
305         * m4/mbsspn.m4: Remove file.
306         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
307         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
308
309         * m4/mbsstr.m4: Remove file.
310         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
311         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
312
313         * m4/mbstok_r.m4: Remove file.
314         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
315         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
316
317         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
318
319         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
320         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
321
322         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
323
324 2009-03-08  Bruno Haible  <bruno@clisp.org>
325
326         Tests for module 'unicase/ulc-casecmp'.
327         * modules/unicase/ulc-casecmp-tests: New file.
328         * tests/unicase/test-ulc-casecmp1.sh: New file.
329         * tests/unicase/test-ulc-casecmp2.sh: New file.
330         * tests/unicase/test-ulc-casecmp.c: New file.
331
332         New module 'unicase/ulc-casecmp'.
333         * lib/unicase.h (ulc_casecmp): New declaration.
334         * lib/unicase/ulc-casecmp.c: New file.
335         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
336         'const SRC_UNIT *'.
337         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
338         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
339         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
340         * modules/unicase/ulc-casecmp: New file.
341
342         Tests for module 'unicase/u32-is-cased'.
343         * modules/unicase/u32-is-cased-tests: New file.
344         * tests/unicase/test-u32-is-cased.c: New file.
345
346         Tests for module 'unicase/u16-is-cased'.
347         * modules/unicase/u16-is-cased-tests: New file.
348         * tests/unicase/test-u16-is-cased.c: New file.
349
350         Tests for module 'unicase/u8-is-cased'.
351         * modules/unicase/u8-is-cased-tests: New file.
352         * tests/unicase/test-u8-is-cased.c: New file.
353         * tests/unicase/test-is-cased.h: New file.
354
355         New module 'unicase/u32-is-cased'.
356         * lib/unicase/u32-is-cased.c: New file.
357         * modules/unicase/u32-is-cased: New file.
358
359         New module 'unicase/u16-is-cased'.
360         * lib/unicase/u16-is-cased.c: New file.
361         * modules/unicase/u16-is-cased: New file.
362
363         New module 'unicase/u8-is-cased'.
364         * lib/unicase/u8-is-cased.c: New file.
365         * lib/unicase/u-is-cased.h: New file.
366         * modules/unicase/u8-is-cased: New file.
367
368         Tests for module 'unicase/u32-is-casefolded'.
369         * modules/unicase/u32-is-casefolded-tests: New file.
370         * tests/unicase/test-u32-is-casefolded.c: New file.
371
372         Tests for module 'unicase/u16-is-casefolded'.
373         * modules/unicase/u16-is-casefolded-tests: New file.
374         * tests/unicase/test-u16-is-casefolded.c: New file.
375
376         Tests for module 'unicase/u8-is-casefolded'.
377         * modules/unicase/u8-is-casefolded-tests: New file.
378         * tests/unicase/test-u8-is-casefolded.c: New file.
379         * tests/unicase/test-is-casefolded.h: New file.
380
381         New module 'unicase/u32-is-casefolded'.
382         * lib/unicase/u32-is-casefolded.c: New file.
383         * modules/unicase/u32-is-casefolded: New file.
384
385         New module 'unicase/u16-is-casefolded'.
386         * lib/unicase/u16-is-casefolded.c: New file.
387         * modules/unicase/u16-is-casefolded: New file.
388
389         New module 'unicase/u8-is-casefolded'.
390         * lib/unicase/u8-is-casefolded.c: New file.
391         * modules/unicase/u8-is-casefolded: New file.
392
393         Tests for module 'unicase/u32-is-titlecase'.
394         * modules/unicase/u32-is-titlecase-tests: New file.
395         * tests/unicase/test-u32-is-titlecase.c: New file.
396
397         Tests for module 'unicase/u16-is-titlecase'.
398         * modules/unicase/u16-is-titlecase-tests: New file.
399         * tests/unicase/test-u16-is-titlecase.c: New file.
400
401         Tests for module 'unicase/u8-is-titlecase'.
402         * modules/unicase/u8-is-titlecase-tests: New file.
403         * tests/unicase/test-u8-is-titlecase.c: New file.
404         * tests/unicase/test-is-titlecase.h: New file.
405
406         New module 'unicase/u32-is-titlecase'.
407         * lib/unicase/u32-is-titlecase.c: New file.
408         * modules/unicase/u32-is-titlecase: New file.
409
410         New module 'unicase/u16-is-titlecase'.
411         * lib/unicase/u16-is-titlecase.c: New file.
412         * modules/unicase/u16-is-titlecase: New file.
413
414         New module 'unicase/u8-is-titlecase'.
415         * lib/unicase/u8-is-titlecase.c: New file.
416         * modules/unicase/u8-is-titlecase: New file.
417
418         Tests for module 'unicase/u32-is-lowercase'.
419         * modules/unicase/u32-is-lowercase-tests: New file.
420         * tests/unicase/test-u32-is-lowercase.c: New file.
421
422         Tests for module 'unicase/u16-is-lowercase'.
423         * modules/unicase/u16-is-lowercase-tests: New file.
424         * tests/unicase/test-u16-is-lowercase.c: New file.
425
426         Tests for module 'unicase/u8-is-lowercase'.
427         * modules/unicase/u8-is-lowercase-tests: New file.
428         * tests/unicase/test-u8-is-lowercase.c: New file.
429         * tests/unicase/test-is-lowercase.h: New file.
430
431         New module 'unicase/u32-is-lowercase'.
432         * lib/unicase/u32-is-lowercase.c: New file.
433         * modules/unicase/u32-is-lowercase: New file.
434
435         New module 'unicase/u16-is-lowercase'.
436         * lib/unicase/u16-is-lowercase.c: New file.
437         * modules/unicase/u16-is-lowercase: New file.
438
439         New module 'unicase/u8-is-lowercase'.
440         * lib/unicase/u8-is-lowercase.c: New file.
441         * modules/unicase/u8-is-lowercase: New file.
442
443         Tests for module 'unicase/u32-is-uppercase'.
444         * modules/unicase/u32-is-uppercase-tests: New file.
445         * tests/unicase/test-u32-is-uppercase.c: New file.
446
447         Tests for module 'unicase/u16-is-uppercase'.
448         * modules/unicase/u16-is-uppercase-tests: New file.
449         * tests/unicase/test-u16-is-uppercase.c: New file.
450
451         Tests for module 'unicase/u8-is-uppercase'.
452         * modules/unicase/u8-is-uppercase-tests: New file.
453         * tests/unicase/test-u8-is-uppercase.c: New file.
454         * tests/unicase/test-is-uppercase.h: New file.
455
456         New module 'unicase/u32-is-uppercase'.
457         * lib/unicase/u32-is-uppercase.c: New file.
458         * modules/unicase/u32-is-uppercase: New file.
459
460         New module 'unicase/u16-is-uppercase'.
461         * lib/unicase/u16-is-uppercase.c: New file.
462         * modules/unicase/u16-is-uppercase: New file.
463
464         New module 'unicase/u8-is-uppercase'.
465         * lib/unicase/u8-is-uppercase.c: New file.
466         * modules/unicase/u8-is-uppercase: New file.
467
468         New module 'unicase/u32-is-invariant'.
469         * lib/unicase/u32-is-invariant.c: New file.
470         * modules/unicase/u32-is-invariant: New file.
471
472         New module 'unicase/u16-is-invariant'.
473         * lib/unicase/u16-is-invariant.c: New file.
474         * modules/unicase/u16-is-invariant: New file.
475
476         New module 'unicase/u8-is-invariant'.
477         * lib/unicase/u8-is-invariant.c: New file.
478         * lib/unicase/invariant.h: New file.
479         * lib/unicase/u-is-invariant.h: New file.
480         * modules/unicase/u8-is-invariant: New file.
481
482         Tests for module 'unicase/u32-casecoll'.
483         * modules/unicase/u32-casecoll-tests: New file.
484         * tests/unicase/test-u32-casecoll.c: New file.
485
486         Tests for module 'unicase/u16-casecoll'.
487         * modules/unicase/u16-casecoll-tests: New file.
488         * tests/unicase/test-u16-casecoll.c: New file.
489
490         Tests for module 'unicase/u8-casecoll'.
491         * modules/unicase/u8-casecoll-tests: New file.
492         * tests/unicase/test-u8-casecoll.c: New file.
493
494         New module 'unicase/u32-casecoll'.
495         * lib/unicase/u32-casecoll.c: New file.
496         * modules/unicase/u32-casecoll: New file.
497
498         New module 'unicase/u16-casecoll'.
499         * lib/unicase/u16-casecoll.c: New file.
500         * modules/unicase/u16-casecoll: New file.
501
502         New module 'unicase/u8-casecoll'.
503         * lib/unicase/u8-casecoll.c: New file.
504         * lib/unicase/u-casecoll.h: New file.
505         * modules/unicase/u8-casecoll: New file.
506
507         New module 'unicase/u32-casexfrm'.
508         * lib/unicase/u32-casexfrm.c: New file.
509         * modules/unicase/u32-casexfrm: New file.
510
511         New module 'unicase/u16-casexfrm'.
512         * lib/unicase/u16-casexfrm.c: New file.
513         * modules/unicase/u16-casexfrm: New file.
514
515         New module 'unicase/u8-casexfrm'.
516         * lib/unicase/u8-casexfrm.c: New file.
517         * lib/unicase/u-casexfrm.h: New file.
518         * modules/unicase/u8-casexfrm: New file.
519
520         Tests for module 'unicase/u32-casecmp'.
521         * modules/unicase/u32-casecmp-tests: New file.
522         * tests/unicase/test-u32-casecmp.c: New file.
523
524         Tests for module 'unicase/u16-casecmp'.
525         * modules/unicase/u16-casecmp-tests: New file.
526         * tests/unicase/test-u16-casecmp.c: New file.
527
528         Tests for module 'unicase/u8-casecmp'.
529         * modules/unicase/u8-casecmp-tests: New file.
530         * tests/unicase/test-u8-casecmp.c: New file.
531         * tests/unicase/test-casecmp.h: New file.
532
533         New module 'unicase/u32-casecmp'.
534         * lib/unicase/u32-casecmp.c: New file.
535         * modules/unicase/u32-casecmp: New file.
536
537         New module 'unicase/u16-casecmp'.
538         * lib/unicase/u16-casecmp.c: New file.
539         * modules/unicase/u16-casecmp: New file.
540
541         New module 'unicase/u8-casecmp'.
542         * lib/unicase/u8-casecmp.c: New file.
543         * lib/unicase/u-casecmp.h: New file.
544         * modules/unicase/u8-casecmp: New file.
545
546         Tests for module 'unicase/u32-casefold'.
547         * modules/unicase/u32-casefold-tests: New file.
548         * tests/unicase/test-u32-casefold.c: New file.
549
550         Tests for module 'unicase/u16-casefold'.
551         * modules/unicase/u16-casefold-tests: New file.
552         * tests/unicase/test-u16-casefold.c: New file.
553
554         Tests for module 'unicase/u8-casefold'.
555         * modules/unicase/u8-casefold-tests: New file.
556         * tests/unicase/test-u8-casefold.c: New file.
557
558         New module 'unicase/u32-casefold'.
559         * lib/unicase/u32-casefold.c: New file.
560         * modules/unicase/u32-casefold: New file.
561
562         New module 'unicase/u16-casefold'.
563         * lib/unicase/u16-casefold.c: New file.
564         * modules/unicase/u16-casefold: New file.
565
566         New module 'unicase/u8-casefold'.
567         * lib/unicase/u8-casefold.c: New file.
568         * lib/unicase/u-casefold.h: New file.
569         * modules/unicase/u8-casefold: New file.
570
571         New module 'unicase/tocasefold'.
572         * lib/unicase/casefold.h: New file.
573         * lib/unicase/tocasefold.c: New file.
574         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
575         * modules/unicase/tocasefold: New file.
576
577         Tests for module 'unicase/u32-totitle'.
578         * modules/unicase/u32-totitle-tests: New file.
579         * tests/unicase/test-u32-totitle.c: New file.
580
581         Tests for module 'unicase/u16-totitle'.
582         * modules/unicase/u16-totitle-tests: New file.
583         * tests/unicase/test-u16-totitle.c: New file.
584
585         Tests for module 'unicase/u8-totitle'.
586         * modules/unicase/u8-totitle-tests: New file.
587         * tests/unicase/test-u8-totitle.c: New file.
588
589         New module 'unicase/u32-totitle'.
590         * lib/unicase/u32-totitle.c: New file.
591         * modules/unicase/u32-totitle: New file.
592
593         New module 'unicase/u16-totitle'.
594         * lib/unicase/u16-totitle.c: New file.
595         * modules/unicase/u16-totitle: New file.
596
597         New module 'unicase/u8-totitle'.
598         * lib/unicase/u8-totitle.c: New file.
599         * lib/unicase/u-totitle.h: New file.
600         * modules/unicase/u8-totitle: New file.
601
602         Tests for module 'unicase/u32-tolower'.
603         * modules/unicase/u32-tolower-tests: New file.
604         * tests/unicase/test-u32-tolower.c: New file.
605
606         Tests for module 'unicase/u16-tolower'.
607         * modules/unicase/u16-tolower-tests: New file.
608         * tests/unicase/test-u16-tolower.c: New file.
609
610         Tests for module 'unicase/u8-tolower'.
611         * modules/unicase/u8-tolower-tests: New file.
612         * tests/unicase/test-u8-tolower.c: New file.
613
614         New module 'unicase/u32-tolower'.
615         * lib/unicase/u32-tolower.c: New file.
616         * modules/unicase/u32-tolower: New file.
617
618         New module 'unicase/u16-tolower'.
619         * lib/unicase/u16-tolower.c: New file.
620         * modules/unicase/u16-tolower: New file.
621
622         New module 'unicase/u8-tolower'.
623         * lib/unicase/u8-tolower.c: New file.
624         * modules/unicase/u8-tolower: New file.
625
626         Tests for module 'unicase/u32-toupper'.
627         * modules/unicase/u32-toupper-tests: New file.
628         * tests/unicase/test-u32-toupper.c: New file.
629
630         Tests for module 'unicase/u16-toupper'.
631         * modules/unicase/u16-toupper-tests: New file.
632         * tests/unicase/test-u16-toupper.c: New file.
633
634         Tests for module 'unicase/u8-toupper'.
635         * modules/unicase/u8-toupper-tests: New file.
636         * tests/unicase/test-u8-toupper.c: New file.
637
638         New module 'unicase/u32-toupper'.
639         * lib/unicase/u32-toupper.c: New file.
640         * modules/unicase/u32-toupper: New file.
641
642         New module 'unicase/u16-toupper'.
643         * lib/unicase/u16-toupper.c: New file.
644         * modules/unicase/u16-toupper: New file.
645
646         New module 'unicase/u8-toupper'.
647         * lib/unicase/u8-toupper.c: New file.
648         * modules/unicase/u8-toupper: New file.
649
650         New module 'unicase/u32-casemap'.
651         * lib/unicase/u32-casemap.c: New file.
652         * modules/unicase/u32-casemap: New file.
653
654         New module 'unicase/u16-casemap'.
655         * lib/unicase/u16-casemap.c: New file.
656         * modules/unicase/u16-casemap: New file.
657
658         New module 'unicase/u8-casemap'.
659         * lib/unicase/unicasemap.h: New file.
660         * lib/unicase/u8-casemap.c: New file.
661         * lib/unicase/u-casemap.h: New file.
662         * modules/unicase/u8-casemap: New file.
663
664         New module 'unicase/special-casing'.
665         * lib/unicase/special-casing.h: New file.
666         * lib/unicase/special-casing.c: New file.
667         * lib/unicase/special-casing-table.gperf: New file, generated by
668         gen-uni-tables.c.
669         * modules/unicase/special-casing: New file.
670
671         Tests for module 'unicase/locale-language'.
672         * modules/unicase/locale-language-tests: New file.
673         * tests/unicase/test-locale-language.sh: New file.
674         * tests/unicase/test-locale-language.c: New file.
675
676         New module 'unicase/locale-language'.
677         * lib/unicase/locale-language.c: New file.
678         * lib/unicase/locale-languages.gperf: New file.
679         * modules/unicase/locale-language: New file.
680
681         Generate more tables for case conversion and case folding.
682         * lib/gen-uni-tables.c (SCC_*): New enum items.
683         (struct special_casing_rule): New type.
684         (casing_rules, num_casing_rules, allocated_casing_rules): New
685         variables.
686         (add_casing_rule, fill_casing_rules): New functions.
687         (struct casefold_rule): New type.
688         (casefolding_rules, num_casefolding_rules,
689         allocated_casefolding_rules): New variables.
690         (fill_casefolding_rules): New function.
691         (unicode_casefold): New variable.
692         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
693         sort_casing_rules, output_casing_rules): New functions.
694         (main): Accept to more arguments: SpecialCasing.txt and
695         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
696         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
697         Output mapping for casefolding.
698
699         * lib/unicase.h: Include stdbool.h, uninorm.h.
700         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
701         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
702         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
703         arguments.
704         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
705         resultp arguments.
706         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
707         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
708         resultp arguments.
709         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
710         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
711         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
712         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
713         declarations.
714         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
715
716 2009-03-08  Bruno Haible  <bruno@clisp.org>
717
718         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
719         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
720         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
721         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
722
723 2009-03-07  Bruno Haible  <bruno@clisp.org>
724
725         Adjust u*_normcmp, u*_normcoll API.
726         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
727         u16_normcoll, u32_normcoll): Change failure conventions.
728         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
729         errno and return -1.
730         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
731
732 2009-03-07  Bruno Haible  <bruno@clisp.org>
733
734         Tests for module 'uninorm/u32-normcoll'.
735         * modules/uninorm/u32-normcoll-tests: New file.
736         * tests/uninorm/test-u32-normcoll.c: New file.
737
738         Tests for module 'uninorm/u16-normcoll'.
739         * modules/uninorm/u16-normcoll-tests: New file.
740         * tests/uninorm/test-u16-normcoll.c: New file.
741
742         Tests for module 'uninorm/u8-normcoll'.
743         * modules/uninorm/u8-normcoll-tests: New file.
744         * tests/uninorm/test-u8-normcoll.c: New file.
745
746 2009-03-07  Bruno Haible  <bruno@clisp.org>
747
748         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
749         tests/uninorm/test-u32-normcmp.c.
750         * tests/uninorm/test-u32-normcmp.c: Include it.
751         (test_nonascii): New function, extracted from main. Add some more
752         tests.
753         (main): Invoke test_ascii and test_nonascii.
754         * modules/uninorm/u32-normcmp-tests (Files): Add
755         tests/uninorm/test-u32-normcmp.h.
756         (Depends-on): Remove uninorm/u32-normcmp.
757
758         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
759         tests/uninorm/test-u16-normcmp.c.
760         * tests/uninorm/test-u16-normcmp.c: Include it.
761         (test_nonascii): New function, extracted from main. Add some more
762         tests.
763         (main): Invoke test_ascii and test_nonascii.
764         * modules/uninorm/u16-normcmp-tests (Files): Add
765         tests/uninorm/test-u16-normcmp.h.
766         (Depends-on): Remove uninorm/u16-normcmp.
767
768         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
769         tests/uninorm/test-u8-normcmp.c.
770         * tests/uninorm/test-u8-normcmp.c: Include it.
771         (test_nonascii): New function, extracted from main. Add some more
772         tests.
773         (main): Invoke test_ascii and test_nonascii.
774         * modules/uninorm/u8-normcmp-tests (Files): Add
775         tests/uninorm/test-u8-normcmp.h.
776         (Depends-on): Remove uninorm/u8-normcmp.
777
778 2009-03-07  Bruno Haible  <bruno@clisp.org>
779
780         New module 'uninorm/u32-normcoll'.
781         * lib/uninorm/u32-normcoll.c: New file.
782         * modules/uninorm/u32-normcoll: New file.
783
784         New module 'uninorm/u16-normcoll'.
785         * lib/uninorm/u16-normcoll.c: New file.
786         * modules/uninorm/u16-normcoll: New file.
787
788         New module 'uninorm/u8-normcoll'.
789         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
790         declarations.
791         * lib/uninorm/u8-normcoll.c: New file.
792         * lib/uninorm/u-normcoll.h: New file.
793         * modules/uninorm/u8-normcoll: New file.
794
795         New module 'uninorm/u32-normxfrm'.
796         * lib/uninorm/u32-normxfrm.c: New file.
797         * modules/uninorm/u32-normxfrm: New file.
798
799         New module 'uninorm/u16-normxfrm'.
800         * lib/uninorm/u16-normxfrm.c: New file.
801         * modules/uninorm/u16-normxfrm: New file.
802
803         New module 'uninorm/u8-normxfrm'.
804         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
805         declarations.
806         * lib/uninorm/u8-normxfrm.c: New file.
807         * lib/uninorm/u-normxfrm.h: New file.
808         * modules/uninorm/u8-normxfrm: New file.
809
810 2009-03-07  Bruno Haible  <bruno@clisp.org>
811
812         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
813         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
814         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
815
816 2009-03-07  Bruno Haible  <bruno@clisp.org>
817
818         New module 'memxfrm'.
819         * lib/memxfrm.h: New file.
820         * lib/memxfrm.c: New file.
821         * modules/memxfrm: New file.
822
823 2009-03-07  Bruno Haible  <bruno@clisp.org>
824
825         New module 'memcmp2'.
826         * lib/memcmp2.h: New file.
827         * lib/memcmp2.c: New file.
828         * modules/memcmp2: New file.
829
830 2009-03-07  Bruno Haible  <bruno@clisp.org>
831
832         Tests for module 'uninorm/decomposing-form'.
833         * modules/uninorm/decomposing-form-tests: New file.
834         * tests/uninorm/test-decomposing-form.c: New file.
835
836         New module 'uninorm/decomposing-form'.
837         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
838         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
839         Add 'decomposing_variant' field.
840         * lib/uninorm/decomposing-form.c: New file.
841         * lib/uninorm/nfc.c (uninorm_nfc): Update.
842         * lib/uninorm/nfd.c (uninorm_nfd): Update.
843         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
844         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
845         * modules/uninorm/decomposing-form: New file.
846         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
847         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
848
849 2009-03-07  Bruno Haible  <bruno@clisp.org>
850
851         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
852         strings.
853
854 2009-03-06  Bruno Haible  <bruno@clisp.org>
855
856         Tests for module 'uninorm/u32-normcmp'.
857         * tests/uninorm/test-u32-normcmp.c: New file.
858         * modules/uninorm/u32-normcmp-tests: New file.
859
860         Tests for module 'uninorm/u16-normcmp'.
861         * tests/uninorm/test-u16-normcmp.c: New file.
862         * modules/uninorm/u16-normcmp-tests: New file.
863
864         Tests for module 'uninorm/u8-normcmp'.
865         * tests/uninorm/test-u8-normcmp.c: New file.
866         * modules/uninorm/u8-normcmp-tests: New file.
867
868         New module 'uninorm/u32-normcmp'.
869         * lib/uninorm/u32-normcmp.c: New file.
870         * modules/uninorm/u32-normcmp: New file.
871
872         New module 'uninorm/u16-normcmp'.
873         * lib/uninorm/u16-normcmp.c: New file.
874         * modules/uninorm/u16-normcmp: New file.
875
876         New module 'uninorm/u8-normcmp'.
877         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
878         declarations.
879         * lib/uninorm/u8-normcmp.c: New file.
880         * lib/uninorm/u-normcmp.h: New file.
881         * modules/uninorm/u8-normcmp: New file.
882
883 2009-03-06  Bruno Haible  <bruno@clisp.org>
884
885         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
886         Reported by Eric Blake.
887
888 2009-03-06  Eric Blake  <ebb9@byu.net>
889             Bruno Haible  <bruno@clisp.org>
890
891         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
892         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
893         condition.
894         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
895         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
896         condition.
897         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
898
899 2009-03-06  Eric Blake  <ebb9@byu.net>
900
901         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
902         to avoid compiler warnings.
903         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
904
905 2009-03-05  Bruno Haible  <bruno@clisp.org>
906
907         * tests/test-ftell.c (main): Disable test beyond end of file on
908         FreeMiNT.
909         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
910
911 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
912
913         * lib/filevercmp.c: Move hidden files up in ordering.
914         * tests/test-filevercmp.c: Add tests for hidden files.
915
916 2009-03-04  Bruno Haible  <bruno@clisp.org>
917
918         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
919         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
920         AM_CFLAGS.
921         Reported by Simon Josefsson.
922
923 2009-03-03  Bruno Haible  <bruno@clisp.org>
924
925         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
926         Reported by Simon Josefsson.
927
928         * doc/ld-version-script.texi: Update node reference.
929
930 2009-03-03  Bruno Haible  <bruno@clisp.org>
931
932         * modules/visibility (License): Change to 'unlimited'.
933         Suggested by Simon Josefsson.
934
935 2009-03-03  Jim Meyering  <meyering@redhat.com>
936
937         unlinkdir: cannot_unlink_dir may modify process state
938         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
939         it's neither thread-safe nor appropriate for use in a library.
940
941 2009-03-03  Eric Blake  <ebb9@byu.net>
942
943         test-closein: silence test under Darwin
944         * tests/test-closein.sh: Ignore stderr from cat, since we don't
945         care if it dies from EPIPE or EBADF.
946
947 2009-03-03  Bruno Haible  <bruno@clisp.org>
948
949         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
950         earlier.
951         * doc/visibility.texi: Fix @node and @section.
952
953 2009-03-03  Simon Josefsson  <simon@josefsson.org>
954
955         * doc/gnulib.texi: Link to sections for ld version script and
956         visibility.
957         * doc/visibility.texi: Add @node and @section.
958         * modules/ld-version-script: New module.
959         * m4/ld-version-script.m4: New file.
960         * doc/ld-version-script.texi: New file.
961
962 2009-03-02  David Lutterkort  <lutter@redhat.com>
963
964         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
965         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
966
967 2009-03-02  Bruno Haible  <bruno@clisp.org>
968
969         * doc/visibility.texi: Mention libtool's -export-symbols option.
970
971 2009-03-02  Jim Meyering  <meyering@redhat.com>
972
973         announce-gen: new option: --no-print-checksums
974         * build-aux/announce-gen (usage): Describe it.
975         (print_checksums): Print a newline here, not in the [*] footnote.
976         (main): Honor it.
977
978 2009-03-01  Bruno Haible  <bruno@clisp.org>
979
980         Use socklen_t in the native Windows replacements prototypes.
981         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
982         instead of 'int'.
983         * lib/getsockopt.c (rpl_getsockopt): Likewise.
984         * lib/setsockopt.c (rpl_setsockopt): Likewise.
985         * modules/getsockopt (Depends-on): Add socklen.
986         * modules/setsockopt (Depends-on): Add socklen.
987
988 2009-03-01  Bruno Haible  <bruno@clisp.org>
989
990         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
991         least 4.2.
992
993 2009-03-01  Eric Blake  <ebb9@byu.net>
994             Bruno Haible  <bruno@clisp.org>
995
996         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
997         error messages.
998         * lib/wait-process.c (wait_subprocess): Omit error message about
999         deadly signal sent to the child of termsigp != NULL.
1000
1001 2009-03-01  Eric Blake  <ebb9@byu.net>
1002
1003         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
1004
1005 2009-03-01  Bruno Haible  <bruno@clisp.org>
1006
1007         Avoid a gcc warning.
1008         * tests/test-sched.c (b): Make global.
1009         Reported by Eric Blake.
1010
1011 2009-01-19  Martin Lambers  <marlam@marlam.de>
1012
1013         Provide POSIX semantics for socket timeout options on W32.
1014         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
1015         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
1016         * modules/setsockopt: Depend on sys_time module for struct timeval.
1017         * modules/getsockopt: Depend on sys_time module for struct timeval.
1018
1019 2009-03-01  Simon Josefsson  <simon@josefsson.org>
1020
1021         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
1022         __USE_GNU, for consistency with netdb.in.h.
1023         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1024
1025 2009-03-01  Bruno Haible  <bruno@clisp.org>
1026
1027         More support for FreeMiNT.
1028         * lib/fseeko.c (rpl_fseeko): Complete last commit.
1029         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1030
1031 2009-03-01  Bruno Haible  <bruno@clisp.org>
1032
1033         More support for FreeMiNT.
1034         * lib/fpurge.c (fpurge): Correct last commit.
1035         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1036
1037 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1038
1039         Fix unportable awk script in vc-list-files.
1040         * build-aux/vc-list-files: In the replacement awk script, use
1041         substr with a second argument of 1, not zero.
1042         Report by Simon Josefsson.
1043
1044 2009-02-28  Bruno Haible  <bruno@clisp.org>
1045
1046         More support for FreeMiNT.
1047         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
1048         to FreeMiNT today.
1049         * lib/fwriting.c (fwriting): Likewise.
1050         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
1051
1052 2009-02-28  Bruno Haible  <bruno@clisp.org>
1053
1054         * tests/test-freadseek.c (main): Disable test beyond end of file on
1055         FreeMiNT.
1056         * tests/test-ftello.c (main): Likewise.
1057         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
1058
1059 2009-02-28  Bruno Haible  <bruno@clisp.org>
1060
1061         Add tentative support for FreeMiNT.
1062         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
1063         * lib/fpurge.c (fpurge): Likewise.
1064         * lib/freadable.c (freadable): Likewise.
1065         * lib/freading.c (freading): Likewise.
1066         * lib/freadptr.c (freadptr): Likewise.
1067         * lib/freadseek.c (freadptrinc): Likewise.
1068         * lib/fseeko.c (rpl_fseeko): Likewise.
1069         * lib/fseterr.c (fseterr): Likewise.
1070         * lib/fwritable.c (fwritable): Likewise.
1071         * lib/fwriting.c (fwriting): Likewise.
1072         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
1073         Hourihane.
1074         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1075
1076 2009-02-28  Bruno Haible  <bruno@clisp.org>
1077
1078         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
1079         SIGCHLD.
1080         Reported by Jim Meyering.
1081
1082 2009-02-28  Bruno Haible  <bruno@clisp.org>
1083
1084         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
1085         Mention the results of these tests on various platforms.
1086         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
1087         order.
1088         * doc/posix-functions/printf.texi: Likewise.
1089         * doc/posix-functions/snprintf.texi: Likewise.
1090         * doc/posix-functions/sprintf.texi: Likewise.
1091         * doc/posix-functions/vfprintf.texi: Likewise.
1092         * doc/posix-functions/vprintf.texi: Likewise.
1093         * doc/posix-functions/vsnprintf.texi: Likewise.
1094         * doc/posix-functions/vsprintf.texi: Likewise.
1095         * doc/glibc-functions/obstack_printf.texi: Likewise.
1096         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1097
1098 2009-02-28  Bruno Haible  <bruno@clisp.org>
1099
1100         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
1101         Reported by Loïc Minier <lool@dooz.org>.
1102
1103 2009-02-27  Bruno Haible  <bruno@clisp.org>
1104
1105         * gnulib-tool (func_import): Make the sed expression used to create the
1106         sed script for updating the .gitignore file POSIX compliant.
1107         Reported by Eric Blake.
1108
1109 2009-02-27  Bruno Haible  <bruno@clisp.org>
1110
1111         * gnulib-tool (sed): Don't alias as "sed --posix".
1112         Reported by Eric Blake.
1113
1114 2009-02-27  Bruno Haible  <bruno@clisp.org>
1115
1116         Avoid test link errors.
1117         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
1118         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
1119         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
1120         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
1121         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1122
1123 2009-02-27  Bruno Haible  <bruno@clisp.org>
1124
1125         Avoid spurious "(cached)" in configure output.
1126         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
1127         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
1128         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
1129         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
1130         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
1131         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
1132         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
1133         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
1134         Reported by Eric Blake.
1135
1136 2009-02-27  Eric Blake  <ebb9@byu.net>
1137
1138         printf: fix regression in previous patch
1139         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
1140
1141 2009-02-27  Bruno Haible  <bruno@clisp.org>
1142
1143         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
1144         value.
1145         * lib/stdint.in.h: Likewise.
1146         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
1147
1148 2009-02-27  Eric Blake  <ebb9@byu.net>
1149
1150         doc: mention more functions added in cygwin 1.7.0
1151         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
1152         addition.
1153         * doc/posix-functions/open_wmemstream.texi: Likewise.
1154         * doc/posix-functions/wcsnlen.texi: Likewise.
1155         * doc/posix-functions/wcsnrtombs.texi: Likewise.
1156         * doc/posix-functions/wcstod.texi: Likewise.
1157         * doc/posix-functions/wcstof.texi: Likewise.
1158         * doc/posix-functions/wcstoimax.texi: Likewise.
1159         * doc/posix-functions/wcstok.texi: Likewise.
1160         * doc/posix-functions/wcstoumax.texi: Likewise.
1161
1162         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
1163         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
1164         * doc/posix-functions/fprintf.texi: Update.
1165         * doc/posix-functions/printf.texi: Update.
1166         * doc/posix-functions/snprintf.texi: Update.
1167         * doc/posix-functions/sprintf.texi: Update.
1168         * doc/posix-functions/vfprintf.texi: Update.
1169         * doc/posix-functions/vprintf.texi: Update.
1170         * doc/posix-functions/vsnprintf.texi: Update.
1171         * doc/posix-functions/vsprintf.texi: Update.
1172         * doc/glibc-functions/obstack_printf.texi: Update.
1173         * doc/glibc-functions/obstack_vprintf.texi: Update.
1174
1175 2009-02-26  Eric Blake  <ebb9@byu.net>
1176
1177         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
1178         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
1179         compilation bug by using runtime conversion.
1180         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
1181         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
1182         * modules/ceill-tests (Files): Use nan.h.
1183         * modules/floorl-tests (Files): Likewise.
1184         * modules/frexpl-tests (Files): Likewise.
1185         * modules/isnanl-tests (Files): Likewise.
1186         * modules/ldexpl-tests (Files): Likewise.
1187         * modules/roundl-tests (Files): Likewise.
1188         * modules/truncl-tests (Files): Likewise.
1189         * tests/test-ceill.c (main): Use a working NaN.
1190         * tests/test-floorl.c (main): Likewise.
1191         * tests/test-frexpl.c (main): Likewise.
1192         * tests/test-isnan.c (test_long_double): Likewise.
1193         * tests/test-isnanl.h (main): Likewise.
1194         * tests/test-ldexpl.h (main): Likewise.
1195         * tests/test-roundl.h (main): Likewise.
1196         * tests/test-truncl.h (main): Likewise.
1197         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
1198
1199 2009-02-26  Eric Blake  <ebb9@byu.net>
1200             Bruno Haible  <bruno@clisp.org>
1201
1202         Work around a *printf bug with %ls on Solaris.
1203         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
1204         precision is specified, sprintf stops converting the wide string
1205         argument when the number of bytes that have been produced by this
1206         conversion equals or exceeds the precision.
1207         * doc/posix-functions/fprintf.texi: Update.
1208         * doc/posix-functions/printf.texi: Update.
1209         * doc/posix-functions/snprintf.texi: Update.
1210         * doc/posix-functions/sprintf.texi: Update.
1211         * doc/posix-functions/vfprintf.texi: Update.
1212         * doc/posix-functions/vprintf.texi: Update.
1213         * doc/posix-functions/vsnprintf.texi: Update.
1214         * doc/posix-functions/vsprintf.texi: Update.
1215         * doc/glibc-functions/obstack_printf.texi: Update.
1216         * doc/glibc-functions/obstack_vprintf.texi: Update.
1217
1218 2009-02-26  Eric Blake  <ebb9@byu.net>
1219
1220         stdlib: favor compiler check of random.h
1221         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
1222         to avoid an ObjC random.h installed by Swarm.
1223
1224 2009-02-26  Bruno Haible  <bruno@clisp.org>
1225
1226         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
1227         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
1228         Reported by Gary V. Vaughan <gary@gnu.org>.
1229
1230 2009-02-26  Bruno Haible  <bruno@clisp.org>
1231
1232         Fix *printf behaviour regarding the %ls directive.
1233         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
1234         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
1235         NEED_PRINTF_DIRECTIVE_LS.
1236         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
1237         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
1238         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1239         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
1240         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
1241         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
1242         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
1243         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1244         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1245         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1246         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1247         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
1248         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1249         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1250         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1251         * doc/posix-functions/fprintf.texi: Update.
1252         * doc/posix-functions/printf.texi: Update.
1253         * doc/posix-functions/snprintf.texi: Update.
1254         * doc/posix-functions/sprintf.texi: Update.
1255         * doc/posix-functions/vfprintf.texi: Update.
1256         * doc/posix-functions/vprintf.texi: Update.
1257         * doc/posix-functions/vsnprintf.texi: Update.
1258         * doc/posix-functions/vsprintf.texi: Update.
1259         * doc/glibc-functions/obstack_printf.texi: Update.
1260         * doc/glibc-functions/obstack_vprintf.texi: Update.
1261         Reported by Eric Blake.
1262
1263 2009-02-25  Bruno Haible  <bruno@clisp.org>
1264
1265         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
1266         with known value.
1267         Reported by Gary V. Vaughan <gary@gnu.org>.
1268
1269 2009-02-25  Bruno Haible  <bruno@clisp.org>
1270
1271         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
1272         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
1273         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
1274         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
1275         Reported by Gary V. Vaughan <gary@gnu.org>.
1276
1277 2009-02-25  Bruno Haible  <bruno@clisp.org>
1278
1279         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
1280         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
1281         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
1282         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
1283         Reported by Gary V. Vaughan <gary@gnu.org>.
1284
1285 2009-02-25  Eric Blake  <ebb9@byu.net>
1286
1287         tests: skip fseek/ftell tests if ungetc is broken
1288         * m4/ungetc.m4: New file.
1289         * modules/fseek-tests: Split test, so ungetc dependency is
1290         separate from rest of test.
1291         * modules/fseeko-tests: Likewise.
1292         * modules/ftell-tests: Likewise.
1293         * modules/ftello-tests: Likewise.
1294         * tests/test-fseek.c (main): Isolate ungetc dependency.
1295         * tests/test-fseeko.c (main): Likewise.
1296         * tests/test-ftell.c (main): Likewise.
1297         * tests/test-ftello.c (main): Likewise.
1298         * tests/test-fseek2.sh: New file.
1299         * tests/test-fseeko2.sh: Likewise.
1300         * tests/test-ftell2.sh: Likewise.
1301         * tests/test-ftello2.sh: Likewise.
1302
1303 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
1304
1305         test-getaddrinfo: fix usage of skip return code 77
1306         * tests/test-gettaddrinfo.c: Return skip code 77 only
1307         for first occurance of skip (4x77 is not 77)
1308
1309 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
1310
1311         strtod: avoid C99 decl-after-statement
1312         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
1313
1314 2009-02-24  Eric Blake  <ebb9@byu.net>
1315
1316         strtod: detect HP-UX 11.31 bug
1317         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
1318         Reported by Gary V. Vaughan.
1319
1320 2009-02-23  Bruno Haible  <bruno@clisp.org>
1321
1322         Fix invalid read past end of memory block.
1323         * lib/vasnprintf.c (DCHAR_SET): Define.
1324         (local_wcslen): Define only when needed.
1325         (local_strnlen, local_wcsnlen): New functions.
1326         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
1327         directives that involve a conversion ourselves.
1328         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
1329         wcsnlen, mbrtowc, wcrtomb.
1330         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
1331         * tests/test-vasprintf-posix.c (test_function): Likewise.
1332         * tests/test-snprintf-posix.h (test_function): Likewise.
1333         * tests/test-sprintf-posix.h (test_function): Likewise.
1334         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1335
1336 2009-02-22  Bruno Haible  <bruno@clisp.org>
1337
1338         Implement new clarified decomposition of Hangul syllables.
1339         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
1340         of type LTV, return only a pairwise decomposition.
1341         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
1342         Likewise.
1343         * tests/uninorm/test-decomposition.c (main): Updated expected result.
1344         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
1345         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
1346
1347 2009-02-22  Bruno Haible  <bruno@clisp.org>
1348
1349         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
1350         zero-length results and shrink excess allocated memory.
1351         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
1352         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
1353         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
1354         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
1355         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
1356         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
1357         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
1358         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
1359         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
1360         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
1361         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
1362         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
1363
1364 2009-02-21  Bruno Haible  <bruno@clisp.org>
1365
1366         * doc/gnulib.texi: Include safe-alloc.texi earlier.
1367         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
1368         spaces after a period. Put a space between a macro name and its
1369         argument list. Trivial rewordings.
1370         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
1371         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
1372         (main): Return 0 explicitly.
1373
1374 2009-02-21  Bruno Haible  <bruno@clisp.org>
1375
1376         Tests for module 'uninorm/filter'.
1377         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
1378         * modules/uninorm/filter-tests: New file.
1379
1380         New module 'uninorm/filter'.
1381         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
1382         uninorm_filter_flush, uninorm_filter_free): New declarations.
1383         * lib/uninorm/uninorm-filter.c: New file.
1384         * modules/uninorm/filter: New file.
1385
1386 2009-02-21  Bruno Haible  <bruno@clisp.org>
1387
1388         Tests for module 'uninorm/nfkc'.
1389         * tests/uninorm/test-nfkc.c: New file.
1390         * tests/uninorm/test-u8-nfkc.c: New file.
1391         * tests/uninorm/test-u16-nfkc.c: New file.
1392         * tests/uninorm/test-u32-nfkc.c: New file.
1393         * tests/uninorm/test-u32-nfkc-big.sh: New file.
1394         * tests/uninorm/test-u32-nfkc-big.c: New file.
1395         * modules/uninorm/nfkc-tests: New file.
1396
1397         New module 'uninorm/nfkc'.
1398         * lib/uninorm/nfkc.c: New file.
1399         * modules/uninorm/nfkc: New file.
1400
1401         Tests for module 'uninorm/nfkd'.
1402         * tests/uninorm/test-nfkd.c: New file.
1403         * tests/uninorm/test-u8-nfkd.c: New file.
1404         * tests/uninorm/test-u16-nfkd.c: New file.
1405         * tests/uninorm/test-u32-nfkd.c: New file.
1406         * tests/uninorm/test-u32-nfkd-big.sh: New file.
1407         * tests/uninorm/test-u32-nfkd-big.c: New file.
1408         * modules/uninorm/nfkd-tests: New file.
1409
1410         New module 'uninorm/nfkd'.
1411         * lib/uninorm/nfkd.c: New file.
1412         * modules/uninorm/nfkd: New file.
1413
1414         Tests for module 'uninorm/nfc'.
1415         * tests/uninorm/test-nfc.c: New file.
1416         * tests/uninorm/test-u8-nfc.c: New file.
1417         * tests/uninorm/test-u16-nfc.c: New file.
1418         * tests/uninorm/test-u32-nfc.c: New file.
1419         * tests/uninorm/test-u32-nfc-big.sh: New file.
1420         * tests/uninorm/test-u32-nfc-big.c: New file.
1421         * modules/uninorm/nfc-tests: New file.
1422
1423         New module 'uninorm/nfc'.
1424         * lib/uninorm/nfc.c: New file.
1425         * modules/uninorm/nfc: New file.
1426
1427         Tests for module 'uninorm/nfd'.
1428         * tests/uninorm/test-nfd.c: New file.
1429         * tests/uninorm/test-u8-nfd.c: New file.
1430         * tests/uninorm/test-u16-nfd.c: New file.
1431         * tests/uninorm/test-u32-nfd.c: New file.
1432         * tests/uninorm/test-u32-nfd-big.sh: New file.
1433         * tests/uninorm/test-u32-nfd-big.c: New file.
1434         * tests/uninorm/test-u32-normalize-big.h: New file.
1435         * tests/uninorm/test-u32-normalize-big.c: New file.
1436         * tests/uninorm/NormalizationTest.txt: New file, created from
1437         Unicode 5.1.0 NormalizationTest.txt.
1438         * modules/uninorm/nfd-tests: New file.
1439
1440         New module 'uninorm/nfd'.
1441         * lib/uninorm/nfd.c: New file.
1442         * modules/uninorm/nfd: New file.
1443
1444         New module 'uninorm/u32-normalize'.
1445         * lib/uninorm/u32-normalize.c: New file.
1446         * modules/uninorm/u32-normalize: New file.
1447
1448         New module 'uninorm/u16-normalize'.
1449         * lib/uninorm/u16-normalize.c: New file.
1450         * modules/uninorm/u16-normalize: New file.
1451
1452         New module 'uninorm/u8-normalize'.
1453         * lib/uninorm/u8-normalize.c: New file.
1454         * lib/uninorm/normalize-internal.h: New file.
1455         * lib/uninorm/u-normalize-internal.h: New file.
1456         * modules/uninorm/u8-normalize: New file.
1457
1458         New module 'uninorm/decompose-internal'.
1459         * lib/uninorm/decompose-internal.c: New file.
1460         * modules/uninorm/decompose-internal: New file.
1461
1462         Tests for module 'uninorm/composition'.
1463         * tests/uninorm/test-composition.c: New file.
1464         * modules/uninorm/composition-tests: New file.
1465
1466         New module 'uninorm/composition'.
1467         * lib/uninorm/composition.c: New file.
1468         * lib/uninorm/composition-table.gperf: New file, generated by
1469         gen-uni-tables.
1470         * modules/uninorm/composition: New file.
1471
1472         Tests for module 'uninorm/compat-decomposition'.
1473         * tests/uninorm/test-compat-decomposition.c: New file.
1474         * modules/uninorm/compat-decomposition-tests: New file.
1475
1476         New module 'uninorm/compat-decomposition'.
1477         * lib/uninorm/decompose-internal.h: New file.
1478         * lib/uninorm/compat-decomposition.c: New file.
1479         * modules/uninorm/compat-decomposition: New file.
1480
1481         Tests for module 'uninorm/canonical-decomposition'.
1482         * tests/uninorm/test-canonical-decomposition.c: New file.
1483         * modules/uninorm/canonical-decomposition-tests: New file.
1484
1485         New module 'uninorm/canonical-decomposition'.
1486         * lib/uninorm/canonical-decomposition.c: New file.
1487         * modules/uninorm/canonical-decomposition: New file.
1488
1489         Tests for module 'uninorm/decomposition'.
1490         * tests/uninorm/test-decomposition.c: New file.
1491         * modules/uninorm/decomposition-tests: New file.
1492
1493         New module 'uninorm/decomposition'.
1494         * lib/uninorm/decomposition.c: New file.
1495         * modules/uninorm/decomposition: New file.
1496
1497         New module 'uninorm/decomposition-table'.
1498         * lib/uninorm/decomposition-table.h: New file.
1499         * lib/uninorm/decomposition-table.c: New file.
1500         * lib/uninorm/decomposition-table1.h: New file, generated by
1501         gen-uni-tables.
1502         * lib/uninorm/decomposition-table2.h: New file, generated by
1503         gen-uni-tables.
1504         * modules/uninorm/decomposition-table: New file.
1505
1506         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
1507         (UC_DECOMP_*): New enumeration items.
1508         (get_decomposition): New function.
1509         (struct decomp_table): New type.
1510         (output_decomposition, output_decomposition_tables): New functions.
1511         (unicode_composition_exclusions): New variable.
1512         (fill_composition_exclusions, debug_output_composition_tables): New
1513         functions.
1514         (main): Accept one more argument. Invoke fill_composition_exclusions.
1515         Output decomposition and composition tables.
1516
1517         New module 'uninorm/base'.
1518         * lib/uninorm.h: New file.
1519         * lib/unictype.h: Update comment.
1520         * modules/uninorm/base: New file.
1521
1522 2009-02-21  David Lutterkort  <lutter@redhat.com>
1523
1524         Tests for module 'safe-alloc'.
1525         * tests/test-safe-alloc.c: New file.
1526         * modules/safe-alloc-tests: New file.
1527
1528         New module 'safe-alloc'.
1529         * lib/safe-alloc.h: New file.
1530         * lib/safe-alloc.c: New file.
1531         * m4/safe-alloc.m4: New file.
1532         * modules/safe-alloc: New file.
1533         * doc/safe-alloc.texi: New file.
1534         * doc/gnulib.texi: Include it.
1535         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
1536         safe-alloc.
1537
1538 2009-02-18  Bruno Haible  <bruno@clisp.org>
1539
1540         Fix link error on non-glibc systems.
1541         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
1542         variable.
1543         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1544
1545 2009-02-18  Jim Meyering  <meyering@redhat.com>
1546
1547         fts: avoid used-uninitialized error due to recent change
1548         * lib/fts.c (fts_read): Guard uses of the new member,
1549         parent->fts_n_dirs_remaining, since it's not relevant for
1550         the parent of a directory specified on the command-line.
1551
1552 2009-02-17  James Youngman  <jay@gnu.org>
1553             Bruno Haible  <bruno@clisp.org>
1554
1555         * m4/include_next.m4: Reformulate comment.
1556
1557 2009-02-16  Jim Meyering  <meyering@redhat.com>
1558
1559         fts: add #if guards so that the fts_lgpl module still builds
1560         * lib/fts.c: Guard just-added hash-table-using parts with
1561         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
1562         Reported by Simon Josefsson.
1563
1564 2009-02-15  Bruno Haible  <bruno@clisp.org>
1565
1566         * modules/array-mergesort-tests: New file.
1567         * tests/test-array-mergesort.c: New file.
1568
1569         New module 'array-mergesort'.
1570         * modules/array-mergesort: New file.
1571         * lib/array-mergesort.h: New file.
1572
1573 2009-02-15  Bruno Haible  <bruno@clisp.org>
1574
1575         Fix 2009-02-07 commit.
1576         * lib/gen-uni-tables.c (output_predicate, output_category,
1577         output_combclass, output_bidi_category, output_decimal_digit,
1578         output_digit, output_numeric, output_mirror, output_scripts,
1579         output_ident_category, output_simple_mapping): Fix format directives.
1580         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
1581
1582 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
1583
1584         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
1585         fixes are available from IBM.
1586
1587 2009-02-13  Jim Meyering  <meyering@redhat.com>
1588
1589         fts: arrange not to stat non-directories in more cases
1590         This makes GNU find (when it doesn't need to stat each file)
1591         *much* more efficient at traversing reiserfs file systems.
1592         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
1593         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
1594         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
1595         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
1596         (leaf_optimization_applies): New function.
1597         (LCO_hash, LCO_compare): New helper functions.
1598         (link_count_optimize_ok): New function.
1599         (fts_stat): Initialize new member (if dir).
1600         (fts_read): Decrement parent's fts_n_dirs_remaining count if
1601         we've just stat'ed a directory.  Skip the stat call when possible.
1602         ---
1603         Note this AFS-related exchange:
1604         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
1605         and note find's pioctl call in find/fstype.c.
1606         But that is necessary only if you want to enable the
1607         optimization for AFS, and for now, I don't.
1608
1609         fts: move a function definition "up" (no semantic change)
1610         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
1611         "up" to precede upcoming use of a related function.
1612
1613 2009-02-11  Jim Meyering  <meyering@redhat.com>
1614
1615         fts: correct internal computation of nlinks (optimization-related)
1616         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
1617         whether the current entry is a directory, so don't test it.
1618
1619 2009-02-10  Bruno Haible  <bruno@clisp.org>
1620
1621         Tests for module 'uniwbrk/ulc-wordbreaks'.
1622         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
1623         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
1624         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
1625
1626         Tests for module 'uniwbrk/u32-wordbreaks'.
1627         * modules/uniwbrk/u32-wordbreaks-tests: New file.
1628         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
1629
1630         Tests for module 'uniwbrk/u16-wordbreaks'.
1631         * modules/uniwbrk/u16-wordbreaks-tests: New file.
1632         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
1633
1634         Tests for module 'uniwbrk/u8-wordbreaks'.
1635         * modules/uniwbrk/u8-wordbreaks-tests: New file.
1636         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
1637
1638 2009-02-10  Bruno Haible  <bruno@clisp.org>
1639
1640         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
1641         property.
1642         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
1643         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
1644         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
1645
1646 2009-02-10  Simon Josefsson  <simon@josefsson.org>
1647
1648         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
1649         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
1650
1651 2009-02-10  Bruno Haible  <bruno@clisp.org>
1652
1653         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
1654         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
1655         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
1656         * lib/unilbrk/u8-possible-linebreaks.c: Update.
1657         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
1658         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
1659
1660 2009-02-09  Simon Josefsson  <simon@josefsson.org>
1661
1662         * lib/sockets.h (gl_fd_to_handle): New function.
1663
1664         * tests/test-sockets.c: Call gl_fd_to_handle.
1665
1666 2009-02-09  Bruno Haible  <bruno@clisp.org>
1667
1668         * doc/havelib.texi: Document the conventions on bi-arch systems.
1669
1670 2009-02-08  Bruno Haible  <bruno@clisp.org>
1671
1672         Document the AC_LIB_LINKFLAGS macro.
1673         * doc/havelib.texi: New file, mostly written on 2005-05-24.
1674         * doc/gnulib.texi: Include it.
1675
1676 2009-02-08  Bruno Haible  <bruno@clisp.org>
1677
1678         Fix wrong order of sections, compared to TOC.
1679         * doc/gnulib.texi: Include relocatable-maint.texi after the
1680         "Regular expressions" node, not before.
1681
1682 2009-02-08  Bruno Haible  <bruno@clisp.org>
1683
1684         Tests for module 'unicase/totitle'.
1685         * modules/unicase/totitle-tests: New file.
1686
1687         Tests for module 'unicase/tolower'.
1688         * modules/unicase/tolower-tests: New file.
1689
1690         Tests for module 'unicase/toupper'.
1691         * modules/unicase/toupper-tests: New file.
1692         * tests/unicase/test-mapping-part1.h: New file.
1693         * tests/unicase/test-mapping-part2.h: New file.
1694
1695         New module 'unicase/totitle'.
1696         * modules/unicase/totitle: New file.
1697         * lib/unicase/totitle.c: New file.
1698
1699         New module 'unicase/tolower'.
1700         * modules/unicase/tolower: New file.
1701         * lib/unicase/tolower.c: New file.
1702
1703         New module 'unicase/toupper'.
1704         * modules/unicase/toupper: New file.
1705         * lib/unicase/toupper.c: New file.
1706         * lib/unicase/simple-mapping.h: New file.
1707
1708         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
1709         (mapping_table): New structure.
1710         (output_simple_mapping): New function.
1711         (main): Invoke output_simple_mapping_test and output_simple_mapping.
1712         * modules/gen-uni-tables (Description): Update.
1713         * lib/unicase/toupper.h: New file, automatically generated by
1714         gen-uni-tables.
1715         * lib/unicase/tolower.h: New file, automatically generated by
1716         gen-uni-tables.
1717         * lib/unicase/totitle.h: New file, automatically generated by
1718         gen-uni-tables.
1719         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
1720         gen-uni-tables.
1721         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
1722         gen-uni-tables.
1723         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
1724         gen-uni-tables.
1725
1726         New module 'unicase/base'.
1727         * modules/unicase/base: New file.
1728         * lib/unicase.h: New file.
1729
1730 2009-02-08  Bruno Haible  <bruno@clisp.org>
1731
1732         New module 'uniwbrk/ulc-wordbreaks'.
1733         * modules/uniwbrk/ulc-wordbreaks: New file.
1734         * lib/uniwbrk/ulc-wordbreaks.c: New file.
1735
1736         New module 'uniwbrk/u32-wordbreaks'.
1737         * modules/uniwbrk/u32-wordbreaks: New file.
1738         * lib/uniwbrk/u32-wordbreaks.c: New file.
1739
1740         New module 'uniwbrk/u16-wordbreaks'.
1741         * modules/uniwbrk/u16-wordbreaks: New file.
1742         * lib/uniwbrk/u16-wordbreaks.c: New file.
1743
1744         New module 'uniwbrk/u8-wordbreaks'.
1745         * modules/uniwbrk/u8-wordbreaks: New file.
1746         * lib/uniwbrk/u8-wordbreaks.c: New file.
1747         * lib/uniwbrk/u-wordbreaks.h: New file.
1748
1749         New module 'uniwbrk/table'.
1750         * modules/uniwbrk/table: New file.
1751         * lib/uniwbrk/wbrktable.h: New file.
1752         * lib/uniwbrk/wbrktable.c: New file.
1753
1754         New module 'uniwbrk/wordbreak-property'.
1755         * modules/uniwbrk/wordbreak-property: New file.
1756         * lib/uniwbrk/wordbreak-property.c: New file.
1757
1758         * lib/gen-uni-tables.c (WBP_*): New enum items.
1759         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
1760         (unicode_org_wbp): New variable.
1761         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
1762         New functions.
1763         (wbp_table): New structure.
1764         (output_wbp, output_wbrk_tables): New functions.
1765         (main): Accept additional argument. Invoke fill_org_wbp,
1766         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
1767         output_wbrk_tables.
1768         * modules/gen-uni-tables (Description): Update.
1769         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
1770         gen-uni-tables.
1771
1772         New module 'uniwbrk/base'.
1773         * modules/uniwbrk/base: New file.
1774         * lib/uniwbrk.h: New file.
1775
1776 2009-02-08  Bruno Haible  <bruno@clisp.org>
1777
1778         Update to Unicode 5.1.0.
1779         * lib/gen-uni-tables.c (is_property_alphabetic): Include
1780         U+2185..U+2188.
1781         (is_property_default_ignorable_code_point): Don't include characters
1782         of category Cc or Cs and not-a-characters.
1783         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
1784         U+0D79, U+109E, U+109F, U+A60C.
1785         * lib/unictype/bidi_of.h: Regenerated.
1786         * lib/unictype/blocks.h: Regenerated.
1787         * lib/unictype/categ_C.h: Regenerated.
1788         * lib/unictype/categ_Cf.h: Regenerated.
1789         * lib/unictype/categ_Cn.h: Regenerated.
1790         * lib/unictype/categ_L.h: Regenerated.
1791         * lib/unictype/categ_Ll.h: Regenerated.
1792         * lib/unictype/categ_Lm.h: Regenerated.
1793         * lib/unictype/categ_Lo.h: Regenerated.
1794         * lib/unictype/categ_Lu.h: Regenerated.
1795         * lib/unictype/categ_M.h: Regenerated.
1796         * lib/unictype/categ_Mc.h: Regenerated.
1797         * lib/unictype/categ_Me.h: Regenerated.
1798         * lib/unictype/categ_Mn.h: Regenerated.
1799         * lib/unictype/categ_N.h: Regenerated.
1800         * lib/unictype/categ_Nd.h: Regenerated.
1801         * lib/unictype/categ_Nl.h: Regenerated.
1802         * lib/unictype/categ_No.h: Regenerated.
1803         * lib/unictype/categ_P.h: Regenerated.
1804         * lib/unictype/categ_Pd.h: Regenerated.
1805         * lib/unictype/categ_Pe.h: Regenerated.
1806         * lib/unictype/categ_Pf.h: Regenerated.
1807         * lib/unictype/categ_Pi.h: Regenerated.
1808         * lib/unictype/categ_Po.h: Regenerated.
1809         * lib/unictype/categ_Ps.h: Regenerated.
1810         * lib/unictype/categ_S.h: Regenerated.
1811         * lib/unictype/categ_Sk.h: Regenerated.
1812         * lib/unictype/categ_Sm.h: Regenerated.
1813         * lib/unictype/categ_So.h: Regenerated.
1814         * lib/unictype/categ_of.h: Regenerated.
1815         * lib/unictype/combining.h: Regenerated.
1816         * lib/unictype/ctype_alnum.h: Regenerated.
1817         * lib/unictype/ctype_alpha.h: Regenerated.
1818         * lib/unictype/ctype_graph.h: Regenerated.
1819         * lib/unictype/ctype_lower.h: Regenerated.
1820         * lib/unictype/ctype_print.h: Regenerated.
1821         * lib/unictype/ctype_punct.h: Regenerated.
1822         * lib/unictype/ctype_upper.h: Regenerated.
1823         * lib/unictype/decdigit.h: Regenerated.
1824         * lib/unictype/digit.h: Regenerated.
1825         * lib/unictype/mirror.h: Regenerated.
1826         * lib/unictype/numeric.h: Regenerated.
1827         * lib/unictype/pr_alphabetic.h: Regenerated.
1828         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
1829         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
1830         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
1831         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
1832         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
1833         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
1834         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
1835         * lib/unictype/pr_combining.h: Regenerated.
1836         * lib/unictype/pr_dash.h: Regenerated.
1837         * lib/unictype/pr_decimal_digit.h: Regenerated.
1838         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
1839         * lib/unictype/pr_deprecated.h: Regenerated.
1840         * lib/unictype/pr_diacritic.h: Regenerated.
1841         * lib/unictype/pr_extender.h: Regenerated.
1842         * lib/unictype/pr_format_control.h: Regenerated.
1843         * lib/unictype/pr_grapheme_base.h: Regenerated.
1844         * lib/unictype/pr_grapheme_extend.h: Regenerated.
1845         * lib/unictype/pr_grapheme_link.h: Regenerated.
1846         * lib/unictype/pr_id_continue.h: Regenerated.
1847         * lib/unictype/pr_id_start.h: Regenerated.
1848         * lib/unictype/pr_ideographic.h: Regenerated.
1849         * lib/unictype/pr_ignorable_control.h: Regenerated.
1850         * lib/unictype/pr_lowercase.h: Regenerated.
1851         * lib/unictype/pr_math.h: Regenerated.
1852         * lib/unictype/pr_numeric.h: Regenerated.
1853         * lib/unictype/pr_other_alphabetic.h: Regenerated.
1854         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
1855         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
1856         * lib/unictype/pr_other_id_continue.h: Regenerated.
1857         * lib/unictype/pr_other_lowercase.h: Regenerated.
1858         * lib/unictype/pr_other_math.h: Regenerated.
1859         * lib/unictype/pr_punctuation.h: Regenerated.
1860         * lib/unictype/pr_sentence_terminal.h: Regenerated.
1861         * lib/unictype/pr_soft_dotted.h: Regenerated.
1862         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
1863         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
1864         * lib/unictype/pr_unified_ideograph.h: Regenerated.
1865         * lib/unictype/pr_uppercase.h: Regenerated.
1866         * lib/unictype/pr_xid_continue.h: Regenerated.
1867         * lib/unictype/pr_xid_start.h: Regenerated.
1868         * lib/unictype/pr_zero_width.h: Regenerated.
1869         * lib/unictype/scripts.h: Regenerated.
1870         * lib/unictype/scripts_byname.gperf: Regenerated.
1871         * lib/unictype/sy_java_ident.h: Regenerated.
1872         * lib/unilbrk/lbrkprop1.h: Regenerated.
1873         * lib/unilbrk/lbrkprop2.h: Regenerated.
1874         * tests/unictype/test-categ_C.c: Regenerated.
1875         * tests/unictype/test-categ_Cf.c: Regenerated.
1876         * tests/unictype/test-categ_Cn.c: Regenerated.
1877         * tests/unictype/test-categ_L.c: Regenerated.
1878         * tests/unictype/test-categ_Ll.c: Regenerated.
1879         * tests/unictype/test-categ_Lm.c: Regenerated.
1880         * tests/unictype/test-categ_Lo.c: Regenerated.
1881         * tests/unictype/test-categ_Lu.c: Regenerated.
1882         * tests/unictype/test-categ_M.c: Regenerated.
1883         * tests/unictype/test-categ_Mc.c: Regenerated.
1884         * tests/unictype/test-categ_Me.c: Regenerated.
1885         * tests/unictype/test-categ_Mn.c: Regenerated.
1886         * tests/unictype/test-categ_N.c: Regenerated.
1887         * tests/unictype/test-categ_Nd.c: Regenerated.
1888         * tests/unictype/test-categ_Nl.c: Regenerated.
1889         * tests/unictype/test-categ_No.c: Regenerated.
1890         * tests/unictype/test-categ_P.c: Regenerated.
1891         * tests/unictype/test-categ_Pd.c: Regenerated.
1892         * tests/unictype/test-categ_Pe.c: Regenerated.
1893         * tests/unictype/test-categ_Pf.c: Regenerated.
1894         * tests/unictype/test-categ_Pi.c: Regenerated.
1895         * tests/unictype/test-categ_Po.c: Regenerated.
1896         * tests/unictype/test-categ_Ps.c: Regenerated.
1897         * tests/unictype/test-categ_S.c: Regenerated.
1898         * tests/unictype/test-categ_Sk.c: Regenerated.
1899         * tests/unictype/test-categ_Sm.c: Regenerated.
1900         * tests/unictype/test-categ_So.c: Regenerated.
1901         * tests/unictype/test-ctype_alnum.c: Regenerated.
1902         * tests/unictype/test-ctype_alpha.c: Regenerated.
1903         * tests/unictype/test-ctype_graph.c: Regenerated.
1904         * tests/unictype/test-ctype_lower.c: Regenerated.
1905         * tests/unictype/test-ctype_print.c: Regenerated.
1906         * tests/unictype/test-ctype_punct.c: Regenerated.
1907         * tests/unictype/test-ctype_upper.c: Regenerated.
1908         * tests/unictype/test-decdigit.h: Regenerated.
1909         * tests/unictype/test-digit.h: Regenerated.
1910         * tests/unictype/test-numeric.h: Regenerated.
1911         * tests/unictype/test-pr_alphabetic.c: Regenerated.
1912         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
1913         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
1914         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
1915         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
1916         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
1917         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
1918         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
1919         * tests/unictype/test-pr_combining.c: Regenerated.
1920         * tests/unictype/test-pr_dash.c: Regenerated.
1921         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
1922         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
1923         * tests/unictype/test-pr_deprecated.c: Regenerated.
1924         * tests/unictype/test-pr_diacritic.c: Regenerated.
1925         * tests/unictype/test-pr_extender.c: Regenerated.
1926         * tests/unictype/test-pr_format_control.c: Regenerated.
1927         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
1928         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
1929         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
1930         * tests/unictype/test-pr_id_continue.c: Regenerated.
1931         * tests/unictype/test-pr_id_start.c: Regenerated.
1932         * tests/unictype/test-pr_ideographic.c: Regenerated.
1933         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
1934         * tests/unictype/test-pr_lowercase.c: Regenerated.
1935         * tests/unictype/test-pr_math.c: Regenerated.
1936         * tests/unictype/test-pr_numeric.c: Regenerated.
1937         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
1938         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
1939         Regenerated.
1940         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
1941         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
1942         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
1943         * tests/unictype/test-pr_other_math.c: Regenerated.
1944         * tests/unictype/test-pr_punctuation.c: Regenerated.
1945         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
1946         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
1947         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
1948         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
1949         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
1950         * tests/unictype/test-pr_uppercase.c: Regenerated.
1951         * tests/unictype/test-pr_xid_continue.c: Regenerated.
1952         * tests/unictype/test-pr_xid_start.c: Regenerated.
1953         * tests/unictype/test-pr_zero_width.c: Regenerated.
1954
1955         Update to Unicode 5.1.0.
1956         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
1957         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
1958         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
1959         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
1960         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
1961         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
1962         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
1963         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
1964         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
1965         (nonspacing_table_ind): Update.
1966         * tests/uniwidth/test-uc_width2.sh: Update expected result.
1967
1968         Update to Unicode 5.1.0.
1969         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
1970         code transform.
1971         * lib/uniname/uniname.c (unicode_character_name,
1972         unicode_name_character): Add the range 0x1Fxxx to the code transform.
1973         * lib/uniname/uninames.h: Regenerated.
1974         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
1975
1976 2009-02-07  Bruno Haible  <bruno@clisp.org>
1977
1978         Merge gen-ctype and gen-lbrk into a single program.
1979         * lib/gen-uni-tables.c: New file, incorporating
1980         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
1981         Add directory prefixes to the names of the generated files.
1982         * lib/unictype/gen-ctype.c: Remove file.
1983         * lib/unilbrk/gen-lbrk.c: Remove file.
1984         * modules/gen-uni-tables: New file.
1985         * modules/unictype/gen-ctype: Remove file.
1986         * modules/unilbrk/gen-lbrk: Remove file.
1987
1988 2009-02-07  Bruno Haible  <bruno@clisp.org>
1989
1990         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
1991
1992         New module 'unistr/u32-strcoll'.
1993         * modules/unistr/u32-strcoll: New file.
1994         * lib/unistr/u32-strcoll.c: New file.
1995
1996         New module 'unistr/u16-strcoll'.
1997         * modules/unistr/u16-strcoll: New file.
1998         * lib/unistr/u16-strcoll.c: New file.
1999
2000         New module 'unistr/u8-strcoll'.
2001         * modules/unistr/u8-strcoll: New file.
2002         * lib/unistr/u8-strcoll.c: New file.
2003         * lib/unistr/u-strcoll.h: New file.
2004
2005 2009-02-07  Bruno Haible  <bruno@clisp.org>
2006
2007         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
2008         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
2009         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
2010         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
2011         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
2012         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
2013
2014 2009-02-07  Bruno Haible  <bruno@clisp.org>
2015
2016         Make 64-bit clean.
2017         * lib/unictype/gen-ctype.c (output_predicate, output_category,
2018         output_combclass, output_bidi_category, output_decimal_digit,
2019         output_digit, output_numeric, output_mirror, output_scripts,
2020         output_ident_category): Use proper width specifier in format strings.
2021
2022 2009-02-07  Bruno Haible  <bruno@clisp.org>
2023
2024         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
2025         failure behaviour.
2026
2027 2009-02-07  Jim Meyering  <meyering@redhat.com>
2028
2029         regex: avoid compilation failure with upcoming gcc-4.4
2030         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
2031         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
2032         "... error: integer overflow in preprocessor expression".
2033
2034 2009-02-05  Ben Pfaff  <blp@gnu.org>
2035
2036         Fix link errors on Windows when close module is used.
2037         * modules/close: Add $(LIB_CLOSE) to Link section.
2038         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
2039         $(LIB_CLOSE) on Windows.
2040
2041 2009-02-05  Jim Meyering  <meyering@redhat.com>
2042
2043         still avoid unused-parameter warnings, but do it cleanly
2044         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
2045         (get_fs_usage): Cast to void instead.
2046         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
2047         (dev_from_mount_options, read_file_system_list): Cast to void.
2048         Prompted by Bruno Haible.
2049
2050 2009-02-04  Jim Meyering  <meyering@redhat.com>
2051
2052         fsusage.c: correct copyright year
2053         * lib/fsusage.c: Reflect year in which the change is pushed into
2054
2055         avoid misc. warnings
2056         * lib/fsusage.c (UNUSED_PARAM): Define.
2057         (get_fs_usage): Mark parameter "disk" as unused.
2058         * lib/getugroups.c (getgrent): Use "void" in prototype.
2059         * lib/mountlist.c: Mark unused parameters.
2060         (read_file_system_list): Declare a local with "const".
2061         * lib/nanosleep.c (getnow): Declare static.
2062         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
2063
2064         dirfd: set errno upon failure
2065         * lib/dirfd.c: Include <errno.h>.
2066         Set errno to ENOTSUP when returning -1.
2067         * modules/dirfd (Depends-on): Add errno.
2068         Suggested by John Kodis <kodis@comcast.net>.
2069
2070 2009-02-01  Bruno Haible  <bruno@clisp.org>
2071
2072         Don't assume sizeof (long) >= sizeof (void *).
2073         * lib/memcmp.c: Include stdint.h.
2074         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
2075         srcp2 to 'const byte *'.
2076         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
2077         types to uintptr_t.
2078         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
2079         * modules/memcmp (Depends-on): Add stdint.
2080         Reported by Ozkan Sezer <sezeroz@gmail.com>.
2081
2082 2009-01-30  Eric Blake  <ebb9@byu.net>
2083
2084         fix more require-before-expand issues
2085         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
2086         expand, AC_PROG_AWK.
2087         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
2088
2089 2009-01-28  Eric Blake  <ebb9@byu.net>
2090
2091         version-etc: use consistent URL formatting
2092         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
2093         Improve formatting.  Use fputs for string without %.
2094
2095 2009-01-28  Jim Meyering  <meyering@redhat.com>
2096
2097         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
2098         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
2099         "underquoted definition of NAME" from autoconf-2.59.
2100
2101 2009-01-28  Bruno Haible  <bruno@clisp.org>
2102
2103         * doc/gnulib.texi: Add "Obsolete modules" to index.
2104
2105 2009-01-28  Jim Meyering  <meyering@redhat.com>
2106
2107         useless-if-before-free: recognize more variants
2108         * build-aux/useless-if-before-free: Also recognize e.g.,
2109         if (NULL != p) free (p);
2110
2111 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
2112
2113         test-getaddrinfo: skip (don't fail) this test when there's no network
2114         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
2115         on the presumption that it means you lack network access.
2116
2117 2009-01-26  Jim Meyering  <meyering@redhat.com>
2118
2119         fflush: avoid warnings on modern systems
2120         * lib/fflush.c (rpl_fflush): Move declarations of locals,
2121         pos and result, into scopes where they're used.
2122
2123 2009-01-26  Eric Blake  <ebb9@byu.net>
2124
2125         Silence warning reintroduced by recent extensions patch.
2126         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
2127         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
2128         autoconf.
2129
2130         Backport improved autoconf semantics of AC_DEFUN_ONCE.
2131         * m4/00gnulib.m4: New file.
2132         * gnulib-tool (func_get_filelist): Always use it.
2133         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
2134         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
2135
2136 2009-01-25  Bruno Haible  <bruno@clisp.org>
2137
2138         Make test-quotearg work on MacOS X and AIX.
2139         * tests/test-quotearg.sh: New file.
2140         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
2141         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
2142         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
2143         include <libintl.h>.
2144         (fake_locale): Remove variable.
2145         (gettext, dgettext, dcgettext): Remove functions.
2146         (main): Instead of setting a fake locale, set a real locale. Call
2147         textdomain and bindtextdomain.
2148         * modules/quotearg-tests (Files): Add the new files.
2149         (Depends-on): Add gettext, setenv, unsetenv.
2150         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
2151         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
2152         Augment TESTS_ENVIRONMENT.
2153
2154 2009-01-25  Bruno Haible  <bruno@clisp.org>
2155
2156         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
2157         fr_FR.ISO8859-1 locale on MacOS X.
2158         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
2159         ja_JP.eucJP locale on MacOS X.
2160         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
2161         zh_CN.GB18030 locale on MacOS X.
2162
2163 2009-01-25  Bruno Haible  <bruno@clisp.org>
2164
2165         Avoid link errors on MacOS X 10.3.
2166         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
2167         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
2168
2169 2009-01-25  Bruno Haible  <bruno@clisp.org>
2170
2171         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
2172         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
2173         * modules/pipe (Files): Remove m4/posix_spawn.m4.
2174         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
2175         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
2176         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
2177         posix_spawnattr_init, posix_spawnattr_setsigmask,
2178         posix_spawnattr_setflags, posix_spawnattr_destroy.
2179
2180         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
2181         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
2182         * modules/execute (Files): Remove m4/posix_spawn.m4.
2183         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
2184         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
2185         posix_spawnattr_init, posix_spawnattr_setsigmask,
2186         posix_spawnattr_setflags, posix_spawnattr_destroy.
2187
2188 2009-01-25  Bruno Haible  <bruno@clisp.org>
2189
2190         * lib/glthread/threadlib.c: Include <stdlib.h>.
2191
2192 2009-01-25  Bruno Haible  <bruno@clisp.org>
2193
2194         * lib/glthread/threadlib.c (dummy): New declaration.
2195
2196 2009-01-25  Bruno Haible  <bruno@clisp.org>
2197
2198         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
2199         multibyte characters also for the GB18030 encoding. Don't crash when
2200         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
2201
2202 2009-01-25  Bruno Haible  <bruno@clisp.org>
2203
2204         Avoid redefining 'struct random_data' on OSF/1 5.1.
2205         * lib/stdlib.in.h: Include <random.h> if it exists.
2206         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
2207         HAVE_RANDOM_H. Include <random.h> when testing whether
2208         'struct random_data' exists.
2209         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
2210
2211 2009-01-25  Bruno Haible  <bruno@clisp.org>
2212
2213         Don't install charset.alias on MacOS X >= 10.3.
2214         * lib/localcharset.c (DARWIN7): New macro.
2215         (get_charset_aliases): Hardcode the result for Darwin7.
2216         * modules/localcharset (install-exec-local): Don't install
2217         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
2218
2219 2009-01-25  Bruno Haible  <bruno@clisp.org>
2220
2221         Don't install charset.alias on mingw and Cygwin.
2222         * modules/localcharset (install-exec-local): Don't install
2223         charset.alias on mingw and Cygwin, if the file does not yet exist.
2224         The result for these platforms is hardcoded in localcharset.c.
2225
2226 2009-01-25  Bruno Haible  <bruno@clisp.org>
2227
2228         Make it possible again to use AC_GNU_SOURCE together with gnulib.
2229         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
2230         before requiring AC_USE_SYSTEM_EXTENSIONS.
2231
2232 2009-01-25  Jim Meyering  <meyering@redhat.com>
2233
2234         c-strtod: avoid warnings
2235         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
2236         "assignment discards qualifiers from pointer target type" warnings.
2237
2238 2009-01-24  Bruno Haible  <bruno@clisp.org>
2239
2240         Add support for non-UTF-8 locales on MacOS X.
2241         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
2242         canonical encodings. For Darwin 7 and newer, don't map traditional
2243         encodings to UTF-8.
2244         Reported by Vincent Lefevre <vincent@vinc17.org>
2245         at <http://savannah.gnu.org/bugs/?25235>.
2246
2247 2009-01-24  Bruno Haible  <bruno@clisp.org>
2248
2249         * doc/gnulib.texi (Obsolete modules): New section.
2250         Reported by Mike Frysinger <vapier@gentoo.org>.
2251
2252 2009-01-24  Bruno Haible  <bruno@clisp.org>
2253
2254         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
2255         (%.dvi): New rule.
2256
2257 2009-01-24  Bruno Haible  <bruno@clisp.org>
2258
2259         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
2260         Reported by Eric Blake.
2261
2262 2009-01-24  Bruno Haible  <bruno@clisp.org>
2263
2264         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
2265         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
2266         Reported by Gary V. Vaughan <gary@gnu.org>.
2267
2268 2009-01-24  Bruno Haible  <bruno@clisp.org>
2269
2270         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
2271
2272 2009-01-23  Bruno Haible  <bruno@clisp.org>
2273
2274         Make c-strtod, c-strtold usable in libraries.
2275         * lib/c-strtod.c: Include string.h instead of xalloc.h.
2276         (C_STRTOD): Call strdup instead of xstrdup.
2277         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
2278         * modules/c-strtold (Depends-on): Likewise.
2279         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
2280         * NEWS: Mention the change.
2281         Reported by Michael Gold <mgold@ncf.ca>.
2282
2283 2009-01-23  Jim Meyering  <meyering@redhat.com>
2284
2285         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
2286         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
2287         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
2288
2289 2009-01-23  Simon Josefsson  <simon@josefsson.org>
2290
2291         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
2292         GNU CoreUtils.
2293         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
2294         * modules/version-etc (Description): Update.
2295
2296 2009-01-22  Bruno Haible  <bruno@clisp.org>
2297
2298         Cache the C locale object.
2299         * lib/c-strtod.c (c_locale_cache): New variable.
2300         (c_locale): New function.
2301         (C_STRTOD): Use it, and don't call freelocale.
2302         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
2303         Suggested by Paolo Bonzini.
2304
2305 2009-01-21  Bruno Haible  <bruno@clisp.org>
2306
2307         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
2308         conditions other than overflow.
2309
2310 2009-01-21  Bruno Haible  <bruno@clisp.org>
2311
2312         * lib/c-strtod.c: Include errno.h.
2313         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
2314         value from STRTOD_L and STRTOD.
2315
2316 2009-01-21  Bruno Haible  <bruno@clisp.org>
2317         and Jim Meyering  <meyering@redhat.com>
2318
2319         nanosleep: skip configure test (fail it) for apple universal builds
2320         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
2321         universal builds, assume that nanosleep does not work.
2322         * modules/nanosleep (Depends-on): Add multiarch.
2323
2324         mktime: skip configure test (fail it) for apple universal builds
2325         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
2326         universal builds, assume that mktime does not work.
2327         * modules/mktime (Depends-on): Add multiarch.
2328
2329 2009-01-21  Eric Blake  <ebb9@byu.net>
2330
2331         multiarch: avoid expand-before-require warning
2332         * modules/multiarch (configure.ac): Require, rather than expand,
2333         gl_MULTIARCH.
2334         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
2335         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
2336         enforce that all clients require it.  Partial reversion of
2337         2008-12-29 patch.
2338
2339         error: avoid expand-before-require warning
2340         * modules/errno (configure.ac): Require, rather than expand,
2341         gl_HEADER_ERRNO_H.
2342         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
2343         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
2344         enforce that all clients require it.
2345
2346         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
2347         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
2348         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
2349         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
2350
2351 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
2352
2353         Revert:
2354         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
2355
2356         regex: do not depend on obsolete modules.
2357         * modules/regex: Remove memcmp and memmove.
2358
2359 2009-01-20  Bruno Haible  <bruno@clisp.org>
2360
2361         Make the 'link' module link on Windows NT 4.
2362         * lib/link.c (_WIN32_WINNT): Don't define.
2363         (CreateHardLinkFuncType): New type.
2364         (CreateHardLinkFunc, initialized): New variables.
2365         (initialize): New function.
2366         (link): Invoke CreateHardLink indirectly through the function pointer.
2367
2368 2009-01-20  Bruno Haible  <bruno@clisp.org>
2369
2370         Fix compilation failure on mingw.
2371         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
2372
2373 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
2374
2375         * doc/c-strtod.texi: Mention a couple of restrictions.
2376
2377 2009-01-20  Jim Meyering  <meyering@redhat.com>
2378
2379         gettimeofday: move more declarations out of functions
2380         * lib/gettimeofday.c: Move extern declarations of tzset and
2381         gmtime out of containing functions.  Prompted by Bruno Haible.
2382
2383 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
2384
2385         regex: do not depend on obsolete modules.
2386         * modules/regex: Remove memcmp and memmove.
2387
2388 2009-01-19  Bruno Haible  <bruno@clisp.org>
2389
2390         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
2391         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
2392         gl_BIGENDIAN, not AC_C_BIGENDIAN.
2393         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
2394         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
2395
2396 2009-01-19  Bruno Haible  <bruno@clisp.org>
2397
2398         * tests/test-link.c: Include <errno.h>.
2399         (main): Exit with code 77 when a hard link cannot be created due to
2400         the file system.
2401         * tests/test-link.sh: Skip test when a hard link cannot be created due
2402         to the file system.
2403         Suggested by Eric Blake.
2404
2405 2009-01-19  Martin Lambers  <marlam@marlam.de>
2406
2407         * modules/link-tests: New file.
2408         * tests/test-link.sh: New file.
2409         * tests/test-link.c: New file.
2410
2411 2009-01-19  Eric Blake  <ebb9@byu.net>
2412
2413         doc: mention another function added in cygwin 1.7.0
2414         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
2415         Another new function in cygwin 1.7.
2416
2417 2009-01-19  Bruno Haible  <bruno@clisp.org>
2418
2419         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
2420         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
2421         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
2422         gl_BIGENDIAN, not AC_C_BIGENDIAN.
2423         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
2424         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
2425         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2426         * m4/md4.m4 (gl_MD4): Likewise.
2427         * m4/md5.m4 (gl_MD5): Likewise.
2428         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
2429         * m4/sha1.m4 (gl_SHA1): Likewise.
2430         * m4/sha256.m4 (gl_SHA256): Likewise.
2431         * m4/sha512.m4 (gl_SHA512): Likewise.
2432
2433 2009-01-19  Bruno Haible  <bruno@clisp.org>
2434
2435         * modules/uniname/uniname-tests (Depends-on): Add progname.
2436         * tests/uniname/test-uninames.c: Include progname.h.
2437         (main): Call set_program_name.
2438
2439         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
2440         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
2441         (main): Call set_program_name.
2442
2443         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
2444         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
2445         (main): Call set_program_name.
2446
2447         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
2448         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
2449         (main): Call set_program_name.
2450
2451         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
2452         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
2453         (main): Call set_program_name.
2454
2455         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
2456         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
2457         (main): Call set_program_name.
2458
2459         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
2460         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
2461         (main): Call set_program_name.
2462
2463         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
2464         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
2465         (main): Call set_program_name.
2466
2467         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
2468         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
2469         (main): Call set_program_name.
2470
2471 2009-01-19  Eric Blake  <ebb9@byu.net>
2472
2473         test-unistd: test previous patch
2474         * tests/test-unistd.c: Test *_FILENO macros.
2475
2476         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
2477         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
2478         Guarantee a definition.
2479         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
2480         * modules/unistd-safer (Depends-on): Add dependency on unistd.
2481         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
2482         * lib/dup-safer.c (STDERR_FILENO): Likewise.
2483         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
2484         Likewise.
2485         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
2486         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
2487         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
2488         Likewise.
2489         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
2490         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
2491         (STDERR_FILENO): Likewise.
2492         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
2493         (STDERR_FILENO): Likewise.
2494         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
2495         (STDERR_FILENO): Likewise.
2496         Reported by Elbert Pol.
2497
2498 2009-01-19  Eric Blake  <ebb9@byu.net>
2499
2500         doc: mention more functions added in cygwin 1.7.0
2501         * doc/posix-functions/abort.texi (abort): Update wording related
2502         to cygwin.
2503         * doc/posix-functions/daylight.texi (daylight): Likewise.
2504         * doc/posix-functions/optarg.texi (optarg): Likewise.
2505         * doc/posix-functions/optarg.texi (opterr): Likewise.
2506         * doc/posix-functions/optarg.texi (optind): Likewise.
2507         * doc/posix-functions/optarg.texi (optopt): Likewise.
2508         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
2509         worked in 1.5.x, and was withdrawn in 1.7.
2510         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
2511         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
2512         cygwin versions.
2513         * doc/posix-functions/perror.texi (perror): Likewise.
2514         * doc/posix-functions/printf.texi (printf): Likewise.
2515         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
2516         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
2517         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2518         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2519         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2520         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
2521         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
2522         Likewise.
2523         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
2524         Likewise.
2525         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
2526         this function.
2527         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
2528         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
2529         Likewise.
2530         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
2531         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
2532         * doc/posix-functions/confstr.texi (confstr): Likewise.
2533         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
2534         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
2535         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
2536         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
2537         * doc/posix-functions/fputws.texi (fputws): Likewise.
2538         * doc/posix-functions/fwide.texi (fwide): Likewise.
2539         * doc/posix-functions/getwc.texi (getwc): Likewise.
2540         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
2541         * doc/posix-functions/putwc.texi (putwc): Likewise.
2542         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
2543         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
2544         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
2545         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
2546         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
2547         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
2548         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
2549         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
2550         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
2551         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
2552         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
2553
2554 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
2555
2556         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
2557         * lib/ioctl.c: Include <sys/ioctl.h>.
2558
2559 2009-01-19  Simon Josefsson  <simon@josefsson.org>
2560
2561         * modules/getdate-tests (Depends-on): Add progname.
2562         * tests/test-getdate.c: Use progname module, to avoid link errors
2563         on non-glibc systems.
2564
2565 2009-01-18  Simon Josefsson  <simon@josefsson.org>
2566
2567         * modules/filenamecat-tests (Depends-on): Add progname.
2568         * modules/fstrcmp-tests (Depends-on): Likewise.
2569
2570         * tests/test-filenamecat.c: Use progname module, to avoid link
2571         errors on non-glibc systems.
2572         * tests/test-fstrcmp.c: Likewise.
2573
2574 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
2575
2576         gettimeofday: avoid warning: nested extern declaration of 'localtime'
2577         * lib/gettimeofday.c: Move extern declaration out of function.
2578
2579 2009-01-18  Bruno Haible  <bruno@clisp.org>
2580
2581         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
2582         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
2583         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
2584
2585 2009-01-18  Bruno Haible  <bruno@clisp.org>
2586
2587         * lib/strftime.c (MEMPCPY): Remove unused macro.
2588         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
2589
2590 2009-01-18  Martin Lambers  <marlam@marlam.de>
2591
2592         New module 'link'.
2593         * lib/unistd.in.h (link): New declaration.
2594         * lib/link.c: New file.
2595         * m4/link.m4: New file.
2596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
2597         HAVE_LINK.
2598         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
2599         * modules/link: New file.
2600         * doc/posix-functions/link.texi: Mention the new module.
2601
2602 2009-01-18  Bruno Haible  <bruno@clisp.org>
2603
2604         * tests/test-avltree_list.c (main): Call set_program_name.
2605         * tests/test-avltree_oset.c (main): Likewise.
2606         * tests/test-obstack-printf.c: Include progname.h.
2607         (main): Call set_program_name.
2608         * tests/test-quotearg.c: Include progname.h.
2609         (main): Call set_program_name.
2610         * tests/test-xmemdup0.c: Include progname.h.
2611         (main): Call set_program_name.
2612
2613 2009-01-18  Bruno Haible  <bruno@clisp.org>
2614
2615         New module 'alphasort'.
2616         * lib/dirent.in.h (alphasort): New declaration.
2617         * lib/alphasort.c: New file, from glibc with modifications.
2618         * m4/alphasort.m4: New file.
2619         * modules/alphasort: New file.
2620         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
2621         HAVE_ALPHASORT.
2622         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
2623         HAVE_ALPHASORT.
2624         * doc/posix-functions/alphasort.texi: Mention the new module and the
2625         portability problems.
2626
2627 2009-01-18  Bruno Haible  <bruno@clisp.org>
2628
2629         New module 'scandir'.
2630         * lib/dirent.in.h (scandir): New declaration.
2631         * lib/scandir.c: New file, from glibc with modifications.
2632         * m4/scandir.m4: New file.
2633         * modules/scandir: New file.
2634         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
2635         HAVE_SCANDIR.
2636         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
2637         HAVE_SCANDIR.
2638         * doc/posix-functions/scandir.texi: Mention the new module and the
2639         portability problems.
2640
2641 2009-01-17  Bruno Haible  <bruno@clisp.org>
2642
2643         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
2644         Update documentation.
2645         (func_remove_suffix): Escape all dots in the suffix. Update
2646         documentation.
2647         (func_filter_filelist): Update documentation.
2648         Reported by Ralf Wildenhues.
2649
2650 2009-01-17  Bruno Haible  <bruno@clisp.org>
2651
2652         * modules/dprintf-posix-tests: New file.
2653         * tests/test-dprintf-posix.sh: New file.
2654         * tests/test-dprintf-posix.c: New file.
2655
2656         New modules 'dprintf', 'dprintf-posix'.
2657         * lib/stdio.in.h (dprintf): New declaration.
2658         * lib/dprintf.c: New file.
2659         * m4/dprintf.m4: New file.
2660         * m4/dprintf-posix.m4: New file.
2661         * modules/dprintf: New file.
2662         * modules/dprintf-posix: New file.
2663         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
2664         HAVE_DPRINTF, REPLACE_DPRINTF.
2665         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
2666         HAVE_DPRINTF, REPLACE_DPRINTF.
2667         * doc/posix-functions/dprintf.texi: Mention the new modules.
2668
2669 2009-01-17  Bruno Haible  <bruno@clisp.org>
2670
2671         * modules/vdprintf-posix-tests: New file.
2672         * tests/test-vdprintf-posix.sh: New file.
2673         * tests/test-vdprintf-posix.c: New file.
2674
2675         New modules 'vdprintf', 'vdprintf-posix'.
2676         * lib/stdio.in.h (vdprintf): New declaration.
2677         * lib/vdprintf.c: New file.
2678         * m4/vdprintf.m4: New file.
2679         * m4/vdprintf-posix.m4: New file.
2680         * modules/vdprintf: New file.
2681         * modules/vdprintf-posix: New file.
2682         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
2683         HAVE_VDPRINTF, REPLACE_VDPRINTF.
2684         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
2685         HAVE_VDPRINTF, REPLACE_VDPRINTF.
2686         * doc/posix-functions/vdprintf.texi: Mention the new modules.
2687
2688 2009-01-17  Bruno Haible  <bruno@clisp.org>
2689
2690         Fix replacement of fopen on mingw.
2691         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
2692         mingw.
2693
2694 2009-01-17  Bruno Haible  <bruno@clisp.org>
2695
2696         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
2697         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
2698
2699 2009-01-17  Bruno Haible  <bruno@clisp.org>
2700
2701         Avoid test-fflush2.sh failure on mingw.
2702         * tests/test-fflush2.c: Include binary-io.h.
2703         (main): Put standard input into binary mode.
2704         * modules/fflush-tests (Depends-on): Add binary-io.
2705
2706 2009-01-17  Bruno Haible  <bruno@clisp.org>
2707
2708         * lib/wchar.in.h: In another particular situation, include only the
2709         system's <wchar.h> file.
2710         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
2711         Reported by Albert Chin-A-Young <china@thewrittenword.com>
2712         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
2713
2714 2009-01-17  Bruno Haible  <bruno@clisp.org>
2715
2716         Support for stripping executables in --enable-relocatable.
2717         * build-aux/install-reloc: Expect one more argument, or an environment
2718         variable RELOC_STRIP_PROG. If set, strip the destination program and
2719         its wrapper.
2720         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
2721         RELOC_STRIP_PROG.
2722         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
2723         to set RELOCATABLE_STRIP.
2724         * NEWS: Mention the new Makefile requirement.
2725
2726 2009-01-17  Bruno Haible  <bruno@clisp.org>
2727
2728         * build-aux/install-reloc: Remove debugging information left over by
2729         C compiler on MacOS X.
2730
2731 2009-01-17  Bruno Haible  <bruno@clisp.org>
2732
2733         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
2734         * lib/progreloc.c (find_executable): Fix type of pointer passed to
2735         _NSGetExecutablePath.
2736
2737 2009-01-16  Jim Meyering  <meyering@redhat.com>
2738
2739         strerror: avoid warnings about discarding "const"
2740         * lib/strerror.c (rpl_strerror): Instead of returning a const
2741         string from each and every "case", use a variable, and add a single
2742         cast after the switch.
2743
2744 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
2745
2746         * lib/arpa_inet.in.h: Add extern "C" block for C++.
2747
2748 2009-01-16  Bruno Haible  <bruno@clisp.org>
2749
2750         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
2751         array initializer syntax that also works in C++ mode.
2752         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2753
2754 2009-01-16  Jim Meyering  <meyering@redhat.com>
2755
2756         poll: suppress a warning
2757         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
2758         to ignore "...unsigned expression < 0 is always false" warnings.
2759
2760 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
2761
2762         poll: remove declarations of unused variables
2763         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
2764         sockbuf and optlen.
2765
2766 2009-01-15  Bruno Haible  <bruno@clisp.org>
2767
2768         Make fflush-after-ungetc POSIX compliant on BSD systems.
2769         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
2770         (clear_ungetc_buffer): Implement also for other systems.
2771         (rpl_fflush): On glibc systems, invoke
2772         clear_ungetc_buffer_preserving_position. Otherwise, invoke
2773         clear_ungetc_buffer after fetching the stream's position, not before.
2774
2775 2009-01-15  Bruno Haible  <bruno@clisp.org>
2776
2777         Make fflush-after-ungetc POSIX compliant on glibc systems.
2778         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
2779         after ungetc.
2780         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
2781         (rpl_fflush): On glibc systems, simply call the system's fflush
2782         function after clearing the ungetc buffer.
2783         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
2784         Instead, lseek only to the end of file, then use the system's fseeko
2785         for the rest. On glibc systems, reset the EOF indicator bit.
2786
2787 2009-01-15  Jim Meyering  <meyering@redhat.com>
2788
2789         openmp.m4: revert quote-adding change, for portability to older autoconf
2790         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
2791         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
2792         Simon Josefsson noticed the problem when using autoconf-2.61.
2793
2794 2009-01-15  Bruno Haible  <bruno@clisp.org>
2795
2796         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
2797         * tests/test-fflush2.c (ASSERT): Always fail.
2798         (main): Add two tests for fflush() after ungetc(), taking into account
2799         the Austin Group's clarification.
2800         Suggested by Eric Blake.
2801
2802 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
2803
2804         mktime.m4: remove K&R-style function prototypes
2805         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
2806         for the Sun C++ compiler.
2807
2808 2009-01-14  Bruno Haible  <bruno@clisp.org>
2809
2810         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
2811         while including <wchar.h>.
2812         * lib/wchar.in.h: In two particular situations on HP-UX, include only
2813         the system's <wchar.h> file.
2814         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2815
2816 2009-01-14  Bruno Haible  <bruno@clisp.org>
2817
2818         * m4/csharp.m4: Don't mention gettext on the serial number line.
2819         * m4/csharpexec.m4: Likewise.
2820         * m4/eaccess.m4: Likewise.
2821         * m4/javaexec.m4: Likewise.
2822         * m4/sig_atomic_t.m4: Likewise.
2823         * m4/tmpdir.m4: Likewise.
2824         * m4/intldir.m4: Bump gettext version.
2825         * m4/lib-ld.m4: Likewise.
2826
2827 2009-01-14  Bruno Haible  <bruno@clisp.org>
2828
2829         * lib/progname.c (set_program_name): Add more comments.
2830         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
2831
2832 2009-01-14  Simon Josefsson  <simon@josefsson.org>
2833
2834         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
2835         were sys/stat.h does not define it.
2836
2837 2009-01-14  Jim Meyering  <meyering@redhat.com>
2838
2839         many *.m4 files: improve m4 quoting
2840         99% of this change was performed by running the following commands:
2841         git ls-files | grep '\.m4$' | xargs perl -pi \
2842           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
2843           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
2844           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
2845           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
2846         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
2847         The remainder were to add Copyright dates, increment serial numbers,
2848         undo some changes in comments, exclude m4/intl.m4, and add quotes
2849         around the "1" in ",1" where the unusual spacing prohibited the
2850         above regexps from doing the job.  For more details, see
2851         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
2852         * m4/acl.m4: Modified.
2853         * m4/afs.m4: Likewise.
2854         * m4/alloca.m4: Likewise.
2855         * m4/argp.m4: Likewise.
2856         * m4/argz.m4: Likewise.
2857         * m4/atexit.m4: Likewise.
2858         * m4/bison-i18n.m4: Likewise.
2859         * m4/bison.m4: Likewise.
2860         * m4/byteswap.m4: Likewise.
2861         * m4/c-stack.m4: Likewise.
2862         * m4/c-strtod.m4: Likewise.
2863         * m4/calloc.m4: Likewise.
2864         * m4/canonicalize-lgpl.m4: Likewise.
2865         * m4/chown.m4: Likewise.
2866         * m4/clock_time.m4: Likewise.
2867         * m4/codeset.m4: Likewise.
2868         * m4/copy-file.m4: Likewise.
2869         * m4/csharp.m4: Likewise.
2870         * m4/csharpcomp.m4: Likewise.
2871         * m4/csharpexec.m4: Likewise.
2872         * m4/d-ino.m4: Likewise.
2873         * m4/d-type.m4: Likewise.
2874         * m4/dirfd.m4: Likewise.
2875         * m4/double-slash-root.m4: Likewise.
2876         * m4/eaccess.m4: Likewise.
2877         * m4/eealloc.m4: Likewise.
2878         * m4/environ.m4: Likewise.
2879         * m4/errno_h.m4: Likewise.
2880         * m4/euidaccess.m4: Likewise.
2881         * m4/execute.m4: Likewise.
2882         * m4/fatal-signal.m4: Likewise.
2883         * m4/fchdir.m4: Likewise.
2884         * m4/fcntl_h.m4: Likewise.
2885         * m4/fileblocks.m4: Likewise.
2886         * m4/filenamecat.m4: Likewise.
2887         * m4/findprog.m4: Likewise.
2888         * m4/flexmember.m4: Likewise.
2889         * m4/fnmatch.m4: Likewise.
2890         * m4/fopen.m4: Likewise.
2891         * m4/fpending.m4: Likewise.
2892         * m4/fprintf-posix.m4: Likewise.
2893         * m4/free.m4: Likewise.
2894         * m4/frexp.m4: Likewise.
2895         * m4/frexpl.m4: Likewise.
2896         * m4/fsusage.m4: Likewise.
2897         * m4/ftruncate.m4: Likewise.
2898         * m4/gc-camellia.m4: Likewise.
2899         * m4/gc-random.m4: Likewise.
2900         * m4/gc.m4: Likewise.
2901         * m4/getaddrinfo.m4: Likewise.
2902         * m4/getcwd-abort-bug.m4: Likewise.
2903         * m4/getcwd-path-max.m4: Likewise.
2904         * m4/getdate.m4: Likewise.
2905         * m4/getdomainname.m4: Likewise.
2906         * m4/getgroups.m4: Likewise.
2907         * m4/gethostname.m4: Likewise.
2908         * m4/gethrxtime.m4: Likewise.
2909         * m4/getline.m4: Likewise.
2910         * m4/getloadavg.m4: Likewise.
2911         * m4/getndelim2.m4: Likewise.
2912         * m4/getpass.m4: Likewise.
2913         * m4/gettext.m4: Likewise.
2914         * m4/gettime.m4: Likewise.
2915         * m4/gettimeofday.m4: Likewise.
2916         * m4/gnulib-common.m4: Likewise.
2917         * m4/group-member.m4: Likewise.
2918         * m4/host-os.m4: Likewise.
2919         * m4/iconv.m4: Likewise.
2920         * m4/iconv_open.m4: Likewise.
2921         * m4/inet_ntop.m4: Likewise.
2922         * m4/inet_pton.m4: Likewise.
2923         * m4/inline.m4: Likewise.
2924         * m4/intldir.m4: Likewise.
2925         * m4/intlmacosx.m4: Likewise.
2926         * m4/intmax.m4: Likewise.
2927         * m4/intmax_t.m4: Likewise.
2928         * m4/inttypes.m4: Likewise.
2929         * m4/inttypes_h.m4: Likewise.
2930         * m4/inttypes-pri.m4: Likewise.
2931         * m4/isapipe.m4: Likewise.
2932         * m4/isnand.m4: Likewise.
2933         * m4/isnanf.m4: Likewise.
2934         * m4/isnanl.m4: Likewise.
2935         * m4/javacomp.m4: Likewise.
2936         * m4/javaexec.m4: Likewise.
2937         * m4/jm-winsz1.m4: Likewise.
2938         * m4/jm-winsz2.m4: Likewise.
2939         * m4/lchown.m4: Likewise.
2940         * m4/lcmessage.m4: Likewise.
2941         * m4/ldexpl.m4: Likewise.
2942         * m4/lib-ld.m4: Likewise.
2943         * m4/lib-link.m4: Likewise.
2944         * m4/libsigsegv.m4: Likewise.
2945         * m4/link-follow.m4: Likewise.
2946         * m4/localcharset.m4: Likewise.
2947         * m4/locale-fr.m4: Likewise.
2948         * m4/locale-ja.m4: Likewise.
2949         * m4/locale-tr.m4: Likewise.
2950         * m4/locale-zh.m4: Likewise.
2951         * m4/lock.m4: Likewise.
2952         * m4/longlong.m4: Likewise.
2953         * m4/ls-mntd-fs.m4: Likewise.
2954         * m4/lstat.m4: Likewise.
2955         * m4/malloc.m4: Likewise.
2956         * m4/mathl.m4: Likewise.
2957         * m4/mbrtowc.m4: Likewise.
2958         * m4/mbstate_t.m4: Likewise.
2959         * m4/mbswidth.m4: Likewise.
2960         * m4/memchr.m4: Likewise.
2961         * m4/memcmp.m4: Likewise.
2962         * m4/memcpy.m4: Likewise.
2963         * m4/memmem.m4: Likewise.
2964         * m4/memmove.m4: Likewise.
2965         * m4/mempcpy.m4: Likewise.
2966         * m4/memrchr.m4: Likewise.
2967         * m4/memset.m4: Likewise.
2968         * m4/minmax.m4: Likewise.
2969         * m4/mkdir-slash.m4: Likewise.
2970         * m4/mkdtemp.m4: Likewise.
2971         * m4/mktime.m4: Likewise.
2972         * m4/mmap-anon.m4: Likewise.
2973         * m4/mountlist.m4: Likewise.
2974         * m4/nanosleep.m4: Likewise.
2975         * m4/nls.m4: Likewise.
2976         * m4/nocrash.m4: Likewise.
2977         * m4/open.m4: Likewise.
2978         * m4/openat.m4: Likewise.
2979         * m4/openmp.m4: Likewise.
2980         * m4/pathmax.m4: Likewise.
2981         * m4/perl.m4: Likewise.
2982         * m4/physmem.m4: Likewise.
2983         * m4/pipe.m4: Likewise.
2984         * m4/po.m4: Likewise.
2985         * m4/poll.m4: Likewise.
2986         * m4/posixtm.m4: Likewise.
2987         * m4/posixver.m4: Likewise.
2988         * m4/printf-frexp.m4: Likewise.
2989         * m4/printf-frexpl.m4: Likewise.
2990         * m4/printf-posix.m4: Likewise.
2991         * m4/printf-posix-rpl.m4: Likewise.
2992         * m4/printf.m4: Likewise.
2993         * m4/progtest.m4: Likewise.
2994         * m4/putenv.m4: Likewise.
2995         * m4/readline.m4: Likewise.
2996         * m4/readlink.m4: Likewise.
2997         * m4/readutmp.m4: Likewise.
2998         * m4/realloc.m4: Likewise.
2999         * m4/regex.m4: Likewise.
3000         * m4/relocatable.m4: Likewise.
3001         * m4/relocatable-lib.m4: Likewise.
3002         * m4/rename-dest-slash.m4: Likewise.
3003         * m4/rename.m4: Likewise.
3004         * m4/rmdir-errno.m4: Likewise.
3005         * m4/rmdir.m4: Likewise.
3006         * m4/roundf.m4: Likewise.
3007         * m4/roundl.m4: Likewise.
3008         * m4/rpmatch.m4: Likewise.
3009         * m4/save-cwd.m4: Likewise.
3010         * m4/selinux-selinux-h.m4: Likewise.
3011         * m4/setenv.m4: Likewise.
3012         * m4/settime.m4: Likewise.
3013         * m4/sig2str.m4: Likewise.
3014         * m4/sig_atomic_t.m4: Likewise.
3015         * m4/signalblocking.m4: Likewise.
3016         * m4/signbit.m4: Likewise.
3017         * m4/sigpipe.m4: Likewise.
3018         * m4/sockets.m4: Likewise.
3019         * m4/sockpfaf.m4: Likewise.
3020         * m4/st_dm_mode.m4: Likewise.
3021         * m4/stat-time.m4: Likewise.
3022         * m4/stdbool.m4: Likewise.
3023         * m4/stdint.m4: Likewise.
3024         * m4/stdint_h.m4: Likewise.
3025         * m4/stpcpy.m4: Likewise.
3026         * m4/stpncpy.m4: Likewise.
3027         * m4/strcase.m4: Likewise.
3028         * m4/strchrnul.m4: Likewise.
3029         * m4/strcspn.m4: Likewise.
3030         * m4/strdup.m4: Likewise.
3031         * m4/strftime.m4: Likewise.
3032         * m4/strndup.m4: Likewise.
3033         * m4/strnlen.m4: Likewise.
3034         * m4/strpbrk.m4: Likewise.
3035         * m4/strptime.m4: Likewise.
3036         * m4/strsep.m4: Likewise.
3037         * m4/strtod.m4: Likewise.
3038         * m4/strtoimax.m4: Likewise.
3039         * m4/strtok_r.m4: Likewise.
3040         * m4/strtol.m4: Likewise.
3041         * m4/strtoll.m4: Likewise.
3042         * m4/strtoul.m4: Likewise.
3043         * m4/strtoull.m4: Likewise.
3044         * m4/strtoumax.m4: Likewise.
3045         * m4/strverscmp.m4: Likewise.
3046         * m4/threadlib.m4: Likewise.
3047         * m4/timegm.m4: Likewise.
3048         * m4/tm_gmtoff.m4: Likewise.
3049         * m4/tmpdir.m4: Likewise.
3050         * m4/tmpfile.m4: Likewise.
3051         * m4/tzset.m4: Likewise.
3052         * m4/uintmax_t.m4: Likewise.
3053         * m4/unlinkdir.m4: Likewise.
3054         * m4/unlocked-io.m4: Likewise.
3055         * m4/uptime.m4: Likewise.
3056         * m4/userspec.m4: Likewise.
3057         * m4/utimbuf.m4: Likewise.
3058         * m4/utime.m4: Likewise.
3059         * m4/utimes-null.m4: Likewise.
3060         * m4/utimes.m4: Likewise.
3061         * m4/vararrays.m4: Likewise.
3062         * m4/vasnprintf.m4: Likewise.
3063         * m4/vfprintf-posix.m4: Likewise.
3064         * m4/vprintf-posix.m4: Likewise.
3065         * m4/wait-process.m4: Likewise.
3066         * m4/wchar_t.m4: Likewise.
3067         * m4/wint_t.m4: Likewise.
3068         * m4/write-any-file.m4: Likewise.
3069         * m4/yield.m4: Likewise.
3070
3071 2009-01-13  Bruno Haible  <bruno@clisp.org>
3072
3073         Avoid test-copy-file.sh failures when ACL support insufficient.
3074         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
3075         TESTS_ENVIRONMENT.
3076         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
3077         Reported by Jim Meyering.
3078
3079 2009-01-13  Bruno Haible  <bruno@clisp.org>
3080
3081         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
3082         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
3083         * modules/unistdio/u8-printf-parse (Files): Likewise.
3084         * modules/unistdio/u32-printf-parse (Files): Likewise.
3085         * modules/unistdio/ulc-printf-parse (Files): Likewise.
3086
3087 2009-01-13  Simon Josefsson  <simon@josefsson.org>
3088
3089         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
3090         and m4/inttypes_h.m4 too.
3091
3092 2009-01-12  Eric Blake  <ebb9@byu.net>
3093
3094         tests: IRIX 6.2 cc can't compile -0.0 into .data
3095         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
3096         rather than at compile-time.
3097         * tests/test-floorl.c (minus_zero): Likewise.
3098         * tests/test-frexpl.c (minus_zero): Likewise.
3099         * tests/test-isnan.c (minus_zerol): Likewise.
3100         * tests/test-isnanl.h (minus_zero): Likewise.
3101         * tests/test-ldexpl.c (minus_zero): Likewise.
3102         * tests/test-roundl.c (minus_zero): Likewise.
3103         * tests/test-signbit.c (minus_zerol): Likewise.
3104         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
3105         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
3106         * tests/test-truncl.c (minus_zero): Likewise.
3107         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
3108         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
3109         Reported by Tom G. Christensen and Nelson H. F. Beebe.
3110
3111 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
3112
3113         regex: fix glibc bug 9697
3114         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
3115         handling.
3116
3117 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
3118
3119         regex: fix glibc bug 697
3120         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
3121         being NULL also if there are no backreferences.
3122
3123 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
3124
3125         regex: merge glibc changes
3126         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
3127         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
3128         re_string_skip_chars, re_string_reconstruct): Likewise.
3129         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
3130
3131 2009-01-07  Jim Meyering  <meyering@redhat.com>
3132
3133         poll: filter through cppi
3134         * lib/poll.c: Indent cpp directives to reflect nesting.
3135
3136 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
3137
3138         poll: don't return uninitialized
3139         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
3140
3141 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
3142
3143         avoid compile failure on AIX 6.1
3144         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
3145         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
3146
3147 2009-01-04  Jim Meyering  <meyering@redhat.com>
3148
3149         remove duplicate inclusion of <stdio.h>
3150         * tests/test-fprintf-posix.c: Likewise.
3151         * tests/test-printf-posix.c: Likewise.
3152         * tests/test-snprintf-posix.c: Likewise.
3153         * tests/test-sprintf-posix.c: Likewise.
3154         * tests/test-vasprintf-posix.c: Likewise.
3155         * tests/test-vfprintf-posix.c: Likewise.
3156         * tests/test-vprintf-posix.c: Likewise.
3157         * tests/test-vsnprintf-posix.c: Likewise.
3158         * tests/test-vsprintf-posix.c: Likewise.
3159
3160 2009-01-03  Jim Meyering  <meyering@redhat.com>
3161
3162         gnulib-tool: fix sed-based filtering
3163         * gnulib-tool (func_filter_filelist): Remove extra backslash
3164         in sed_fff_filter definition.
3165
3166 2009-01-02  Jim Meyering  <meyering@redhat.com>
3167
3168         strftime: avoid compilation failure on Solaris 2.6
3169         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
3170         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
3171         Don't #define mbrlen or mbsinit, since now they're guaranteed to
3172         be available.  Reported by Tom G. Christensen.  Details in
3173         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
3174
3175 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3176             Bruno Haible  <bruno@clisp.org>
3177
3178         Speed up gnulib-tool by doing more string processing through shell
3179         built-ins.
3180         * gnulib-tool (fast_func_append): New variable.
3181         (func_remove_prefix, func_remove_suffix): New functions.
3182         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
3183         (func_filter_filelist): New function.
3184         (func_get_dependencies): Use func_remove_suffix instead of sed.
3185         (func_get_automake_snippet): Use func_filter_filelist instead of a
3186         subshell and sed invocation.
3187
3188 2009-01-01  Bruno Haible  <bruno@clisp.org>
3189
3190         Fix a security bug.
3191         * gnulib-tool (func_import, import, update): Don't allow the characters
3192         '"', '$', '`', '\' in macro arguments that become part of commands that
3193         are evaluated.
3194
3195 2009-01-01  Bruno Haible  <bruno@clisp.org>
3196
3197         * gnulib-tool (func_reset_sigpipe): Add more comments.
3198
3199 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3200
3201         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
3202         func_emit_tests_Makefile_am, func_import): Abort loops early if we
3203         already know the answer.
3204
3205 2009-01-01  Jim Meyering  <meyering@redhat.com>
3206
3207         * lib/version-etc.c (version_etc_va): Update copyright year.
3208
3209 2008-12-30  Bruno Haible  <bruno@clisp.org>
3210
3211         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
3212         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
3213         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
3214
3215 2008-12-29  Eric Blake  <ebb9@byu.net>
3216
3217         multiarch: avoid autoconf AC_REQUIRE bug
3218         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
3219         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
3220         2.63 and older.
3221         Reported by Bruno Haible, and analyzed in
3222         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
3223
3224 2008-12-29  Bruno Haible  <bruno@clisp.org>
3225
3226         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
3227         files in subdirectories correctly.
3228         Reported by Ralf Wildenhues.
3229
3230 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3231
3232         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
3233         rather than 'join FILE -', for Solaris join.
3234
3235 2008-12-29  Bruno Haible  <bruno@clisp.org>
3236
3237         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
3238         quoting.
3239         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
3240         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
3241         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
3242         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
3243         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
3244         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
3245         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
3246         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
3247         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
3248         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
3249         * m4/nls.m4 (AM_NLS): Likewise.
3250         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
3251         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
3252         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
3253         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
3254         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
3255         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3256         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
3257         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
3258         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
3259         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
3260         * m4/xsize.m4 (gl_XSIZE): Likewise.
3261         Suggested by Jim Meyering.
3262
3263 2008-11-17  Bruce Korb  <bkorb@gnu.org>
3264
3265         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
3266         * lib/parse-duration.c: use a switch instead of cascading if's.
3267
3268 2008-12-29  Eric Blake  <ebb9@byu.net>
3269
3270         wchar.h: supply WEOF on Irix 5.3
3271         * lib/wchar.in.h (wint_t): Also supply WEOF.
3272         * lib/wctype.in.h (wint_t): Likewise.
3273         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
3274         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
3275         Reported by Tom G. Christensen.
3276
3277 2008-12-26  Bruno Haible  <bruno@clisp.org>
3278
3279         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
3280         i486, i586, i686.
3281
3282 2008-12-26  Bruno Haible  <bruno@clisp.org>
3283
3284         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
3285
3286 2008-12-26  Bruno Haible  <bruno@clisp.org>
3287
3288         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
3289         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
3290         not __STDC_CONSTANT_MACROS.
3291         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
3292
3293 2008-12-25  Bruno Haible  <bruno@clisp.org>
3294
3295         Add support for universal builds to vasnprintf.
3296         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
3297         universal builds, guess no.
3298         * modules/vasnprintf-posix (Depends-on): Add multiarch.
3299         * modules/vasprintf-posix (Depends-on): Likewise.
3300         * modules/fprintf-posix (Depends-on): Likewise.
3301         * modules/vfprintf-posix (Depends-on): Likewise.
3302         * modules/snprintf-posix (Depends-on): Likewise.
3303         * modules/vsnprintf-posix (Depends-on): Likewise.
3304         * modules/sprintf-posix (Depends-on): Likewise.
3305         * modules/vsprintf-posix (Depends-on): Likewise.
3306         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3307         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3308         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3309         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3310         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3311         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3312         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3313
3314         Add support for universal builds to <inttypes.h>.
3315         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
3316         _SCNu64_PREFIX): In Apple
3317         universal builds, define directly, using _LP64.
3318         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
3319         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
3320         * modules/inttypes (Depends-on): Add multiarch.
3321         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
3322
3323         Add support for universal builds to <stdint.h>.
3324         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
3325         universal builds, define directly, using _LP64.
3326         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
3327         Apple universal builds, don't test for the size and suffix of ptrdiff_t
3328         and size_t.
3329         * modules/stdint (Depends-on): Add multiarch.
3330         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
3331
3332         New module 'multiarch'.
3333         * modules/multiarch: New file.
3334         * m4/multiarch.m4: New file.
3335
3336 2008-12-25  Bruno Haible  <bruno@clisp.org>
3337
3338         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
3339
3340 2008-12-25  Bruno Haible  <bruno@clisp.org>
3341
3342         * modules/btowc (License): Relicense under LGPLv2+.
3343         * modules/mbsinit (License): Likewise.
3344         * modules/mbrtowc (License): Likewise.
3345         * modules/wcrtomb (License): Likewise.
3346         * modules/streq (License): Likewise.
3347         Reported by David Lutterkort <lutter@redhat.com>.
3348
3349 2008-12-23  Bruno Haible  <bruno@clisp.org>
3350
3351         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
3352
3353 2008-12-23  Bruno Haible  <bruno@clisp.org>
3354
3355         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
3356         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
3357         GETADDRINFO_LIB, not in LIBS.
3358         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
3359         * modules/canon-host (Link): Likewise.
3360         * NEWS: Mention the change.
3361         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
3362         GETADDRINFO_LIB.
3363
3364 2008-12-22  Bruno Haible  <bruno@clisp.org>
3365
3366         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
3367         * doc/posix-functions/iswalpha_l.texi: Likewise.
3368         * doc/posix-functions/iswblank_l.texi: Likewise.
3369         * doc/posix-functions/iswcntrl_l.texi: Likewise.
3370         * doc/posix-functions/iswctype_l.texi: Likewise.
3371         * doc/posix-functions/iswdigit_l.texi: Likewise.
3372         * doc/posix-functions/iswgraph_l.texi: Likewise.
3373         * doc/posix-functions/iswlower_l.texi: Likewise.
3374         * doc/posix-functions/iswprint_l.texi: Likewise.
3375         * doc/posix-functions/iswpunct_l.texi: Likewise.
3376         * doc/posix-functions/iswspace_l.texi: Likewise.
3377         * doc/posix-functions/iswupper_l.texi: Likewise.
3378         * doc/posix-functions/iswxdigit_l.texi: Likewise.
3379         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
3380         * doc/posix-functions/open_wmemstream.texi: Likewise.
3381         * doc/posix-functions/swscanf.texi: Likewise.
3382         * doc/posix-functions/towctrans_l.texi: Likewise.
3383         * doc/posix-functions/towlower.texi: Likewise.
3384         * doc/posix-functions/towlower_l.texi: Likewise.
3385         * doc/posix-functions/towupper.texi: Likewise.
3386         * doc/posix-functions/towupper_l.texi: Likewise.
3387         * doc/posix-functions/vfwprintf.texi: Likewise.
3388         * doc/posix-functions/vfwscanf.texi: Likewise.
3389         * doc/posix-functions/vswscanf.texi: Likewise.
3390         * doc/posix-functions/vwprintf.texi: Likewise.
3391         * doc/posix-functions/vwscanf.texi: Likewise.
3392         * doc/posix-functions/wcpcpy.texi: Likewise.
3393         * doc/posix-functions/wcpncpy.texi: Likewise.
3394         * doc/posix-functions/wcscasecmp.texi: Likewise.
3395         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
3396         * doc/posix-functions/wcscoll_l.texi: Likewise.
3397         * doc/posix-functions/wcsdup.texi: Likewise.
3398         * doc/posix-functions/wcsncasecmp.texi: Likewise.
3399         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
3400         * doc/posix-functions/wcsnlen.texi: Likewise.
3401         * doc/posix-functions/wcsnrtombs.texi: Likewise.
3402         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
3403         * doc/posix-functions/wctrans_l.texi: Likewise.
3404         * doc/posix-functions/wctype_l.texi: Likewise.
3405         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
3406         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
3407         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
3408         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
3409         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
3410         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
3411         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
3412         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
3413         * doc/glibc-functions/wcschrnul.texi: Likewise.
3414         * doc/glibc-functions/wcsftime_l.texi: Likewise.
3415         * doc/glibc-functions/wcstod_l.texi: Likewise.
3416         * doc/glibc-functions/wcstof_l.texi: Likewise.
3417         * doc/glibc-functions/wcstol_l.texi: Likewise.
3418         * doc/glibc-functions/wcstold_l.texi: Likewise.
3419         * doc/glibc-functions/wcstoll_l.texi: Likewise.
3420         * doc/glibc-functions/wcstoq.texi: Likewise.
3421         * doc/glibc-functions/wcstoul_l.texi: Likewise.
3422         * doc/glibc-functions/wcstoull_l.texi: Likewise.
3423         * doc/glibc-functions/wcstouq.texi: Likewise.
3424         * doc/glibc-functions/wmempcpy.texi: Likewise.
3425
3426 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
3427             Eric Blake  <ebb9@byu.net>
3428             Paolo Bonzini  <bonzini@gnu.org>
3429             Bruno Haible  <bruno@clisp.org>
3430
3431         Make c-stack work on Haiku.
3432         * lib/c-stack.c (SA_ONSTACK): Define fallback.
3433         (c_stack_action): Use SA_ONSTACK flag.
3434
3435 2008-12-22  Bruno Haible  <bruno@clisp.org>
3436
3437         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
3438
3439 2008-12-22  Bruno Haible  <bruno@clisp.org>
3440
3441         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
3442         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
3443         being overridden.
3444         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
3445         New macros.
3446         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
3447         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
3448         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
3449         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
3450
3451 2008-12-22  Bruno Haible  <bruno@clisp.org>
3452
3453         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
3454         from test code.
3455
3456 2008-12-22  Eric Blake  <ebb9@byu.net>
3457
3458         Avoid gcc warnings on cygwin.
3459         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
3460         Avoid unused variable.
3461         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
3462         Likewise.
3463
3464 2008-12-22  Bruno Haible  <bruno@clisp.org>
3465
3466         Remove HAVE_MBRTOWC conditionals.
3467         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
3468         (mbscasecmp): Assume mbrtowc function.
3469         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
3470         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
3471         * lib/mbschr.c: Include mbuiter.h unconditionally.
3472         (mbschr): Assume mbrtowc function.
3473         * lib/mbscspn.c: Include mbuiter.h unconditionally.
3474         (mbscspn): Assume mbrtowc function.
3475         * lib/mbslen.c: Include mbuiter.h unconditionally.
3476         (mbslen): Assume mbrtowc function.
3477         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
3478         (mbsncasecmp): Assume mbrtowc function.
3479         * lib/mbsnlen.c: Include mbiter.h unconditionally.
3480         (mbsnlen): Assume mbrtowc function.
3481         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
3482         (mbspbrk): Assume mbrtowc function.
3483         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
3484         (mbspcasecmp): Assume mbrtowc function.
3485         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
3486         (mbsrchr): Assume mbrtowc function.
3487         * lib/mbssep.c: Include mbuiter.h unconditionally.
3488         (mbssep): Assume mbrtowc function.
3489         * lib/mbsspn.c: Include mbuiter.h unconditionally.
3490         (mbsspn): Assume mbrtowc function.
3491         * lib/mbsstr.c: Include mbuiter.h unconditionally.
3492         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
3493         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
3494         (mbstok_r): Assume mbrtowc function.
3495         * lib/propername.c: Include mbuiter.h unconditionally.
3496         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
3497         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
3498         (trim2): Assume mbrtowc function.
3499         * lib/mbswidth.c (mbsinit): Remove fallback definition.
3500         (mbsnwidth): Assume mbrtowc function.
3501         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
3502         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
3503         fallback definitions.
3504         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
3505
3506 2008-12-22  Bruno Haible  <bruno@clisp.org>
3507
3508         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
3509
3510 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
3511
3512         * modules/regex: Request emulations for the mb*/wc* functions we need.
3513         * m4/regex.m4: Don't look for those functions here.
3514         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
3515
3516 2008-12-22  Bruno Haible  <bruno@clisp.org>
3517
3518         * modules/fnmatch (Depends-on): Remove duplicated dependency.
3519
3520 2008-12-21  Bruno Haible  <bruno@clisp.org>
3521
3522         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
3523         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
3524         (Include): Remove conditionalization.
3525         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
3526         (Include): Remove conditionalization.
3527         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
3528         (Include): Remove conditionalization.
3529         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
3530         * m4/mbfile.m4 (gl_MBFILE): Likewise.
3531         * NEWS: Mention the change.
3532         Reported by Alan Hourihane <alanh@fairlite.co.uk>
3533         via Sergey Poznyakoff <gray@gnu.org.ua>.
3534
3535 2008-12-21  Bruno Haible  <bruno@clisp.org>
3536
3537         * MODULES.html.sh (Extended multibyte and wide character utilities
3538         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
3539         wcrtomb, wcsrtombs.
3540         (Support for systems lacking POSIX:2008): Add accept, bind, close,
3541         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
3542         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
3543         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
3544
3545 2008-12-21  Bruno Haible  <bruno@clisp.org>
3546
3547         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
3548
3549 2008-12-21  Bruno Haible  <bruno@clisp.org>
3550
3551         * modules/wcsnrtombs-tests: New file.
3552         * tests/test-wcsnrtombs1.sh: New file.
3553         * tests/test-wcsnrtombs2.sh: New file.
3554         * tests/test-wcsnrtombs3.sh: New file.
3555         * tests/test-wcsnrtombs4.sh: New file.
3556         * tests/test-wcsnrtombs.c: New file.
3557
3558         New module 'wcsnrtombs'.
3559         * lib/wchar.in.h (wcsnrtombs): New declaration.
3560         * lib/wcsnrtombs.c: New file.
3561         * lib/wcsrtombs-state.c: New file.
3562         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
3563         (internal_state): Remove variable.
3564         * m4/wcsnrtombs.m4: New file.
3565         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
3566         compilation units.
3567         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
3568         HAVE_WCSNRTOMBS.
3569         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
3570         HAVE_WCSNRTOMBS.
3571         * modules/wcsnrtombs: New file.
3572         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
3573         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
3574
3575 2008-12-21  Bruno Haible  <bruno@clisp.org>
3576
3577         * modules/wcsrtombs-tests: New file.
3578         * tests/test-wcsrtombs1.sh: New file.
3579         * tests/test-wcsrtombs2.sh: New file.
3580         * tests/test-wcsrtombs3.sh: New file.
3581         * tests/test-wcsrtombs4.sh: New file.
3582         * tests/test-wcsrtombs.c: New file.
3583
3584         New module 'wcsrtombs'.
3585         * lib/wchar.in.h (wcsrtombs): New declaration.
3586         * lib/wcsrtombs.c: New file.
3587         * m4/wcsrtombs.m4: New file.
3588         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
3589         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
3590         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
3591         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
3592         * modules/wcsrtombs: New file.
3593         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
3594         bugs.
3595
3596 2008-12-21  Bruno Haible  <bruno@clisp.org>
3597
3598         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
3599         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
3600         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
3601         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
3602         if not correct.
3603         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
3604         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
3605         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
3606         m4/locale-zh.m4, m4/codeset.m4.
3607         * doc/posix-functions/wcrtomb.texi: Document the bug.
3608
3609 2008-12-21  Bruno Haible  <bruno@clisp.org>
3610
3611         Work around a btowc() bug on IRIX 6.5.
3612         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
3613         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
3614         REPLACE_WTOBC if not.
3615         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
3616         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
3617         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
3618
3619 2008-12-21  Bruno Haible  <bruno@clisp.org>
3620
3621         * modules/wcrtomb-tests: New file.
3622         * tests/test-wcrtomb.sh: New file.
3623         * tests/test-wcrtomb.c: New file.
3624
3625         New module 'wcrtomb'.
3626         * lib/wchar.in.h (wcrtomb): New declaration.
3627         * lib/wcrtomb.c: New file.
3628         * m4/wcrtomb.m4: New file.
3629         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
3630         HAVE_WCRTOMB.
3631         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
3632         HAVE_WCRTOMB.
3633         * modules/wcrtomb: New file.
3634         * doc/posix-functions/wcrtomb.texi: Mention the new module.
3635
3636 2008-12-21  Bruno Haible  <bruno@clisp.org>
3637
3638         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
3639         * modules/mbsrtowcs (Files): Likewise.
3640         * modules/wctob (Files): Likewise.
3641         * modules/c-strcase-tests (Files): Likewise.
3642         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
3643         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
3644         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
3645         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
3646         * modules/vasnprintf-posix-tests (Files): Likewise.
3647
3648 2008-12-21  William Pursell  <bill.pursell@gmail.com>
3649
3650         gitlog-to-changelog: pass all command-line arguments to git-log
3651         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
3652         it is sometimes convenient to filter the commits in various ways.
3653         gitlog-to-changelog only allows --since to specify a start date,
3654         but git-log itself supports many other filtering mechanisms.
3655         At the moment, I want to filter by branch name.  Rather than
3656         adding a --branch option to gitlog-to-changelog, it seems more
3657         flexible to simply pass all options directly to git-log and let
3658         git do the work.  Notice that this effectively makes --since a
3659         redundant option for gitlog-to-changelog, but removing it would
3660         require current usage to change since calls would then require
3661         an additional '--'.
3662
3663 2008-12-21  Bruno Haible  <bruno@clisp.org>
3664
3665         * modules/mbsnrtowcs-tests: New file.
3666         * tests/test-mbsnrtowcs1.sh: New file.
3667         * tests/test-mbsnrtowcs2.sh: New file.
3668         * tests/test-mbsnrtowcs3.sh: New file.
3669         * tests/test-mbsnrtowcs4.sh: New file.
3670         * tests/test-mbsnrtowcs.c: New file.
3671
3672         New module 'mbsnrtowcs'.
3673         * lib/wchar.in.h (mbsnrtowcs): New declaration.
3674         * lib/mbsnrtowcs.c: New file.
3675         * lib/mbsrtowcs-state.c: New file.
3676         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
3677         (internal_state): Remove variable.
3678         * m4/mbsnrtowcs.m4: New file.
3679         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
3680         compilation units.
3681         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
3682         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
3683         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
3684         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
3685         * modules/mbsnrtowcs: New file.
3686         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
3687         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
3688         portability problem.
3689
3690 2008-12-21  Bruno Haible  <bruno@clisp.org>
3691
3692         Work around mbsrtowcs bug.
3693         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
3694         (gl_FUNC_MBSRTOWCS): Invoke it.
3695         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
3696         m4/locale-zh.m4.
3697         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
3698
3699 2008-12-21  Bruno Haible  <bruno@clisp.org>
3700
3701         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
3702
3703 2008-12-21  Bruno Haible  <bruno@clisp.org>
3704
3705         Update doc for AIX.
3706         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
3707         16-bit wchar_t type.
3708         * doc/posix-functions/btowc.texi: Likewise.
3709         * doc/posix-functions/fgetwc.texi: Likewise.
3710         * doc/posix-functions/fgetws.texi: Likewise.
3711         * doc/posix-functions/fputwc.texi: Likewise.
3712         * doc/posix-functions/fputws.texi: Likewise.
3713         * doc/posix-functions/fwide.texi: Likewise.
3714         * doc/posix-functions/fwprintf.texi: Likewise.
3715         * doc/posix-functions/fwscanf.texi: Likewise.
3716         * doc/posix-functions/getwchar.texi: Likewise.
3717         * doc/posix-functions/getwc.texi: Likewise.
3718         * doc/posix-functions/iswalnum.texi: Likewise.
3719         * doc/posix-functions/iswalpha.texi: Likewise.
3720         * doc/posix-functions/iswblank.texi: Likewise.
3721         * doc/posix-functions/iswcntrl.texi: Likewise.
3722         * doc/posix-functions/iswctype.texi: Likewise.
3723         * doc/posix-functions/iswdigit.texi: Likewise.
3724         * doc/posix-functions/iswgraph.texi: Likewise.
3725         * doc/posix-functions/iswlower.texi: Likewise.
3726         * doc/posix-functions/iswprint.texi: Likewise.
3727         * doc/posix-functions/iswpunct.texi: Likewise.
3728         * doc/posix-functions/iswspace.texi: Likewise.
3729         * doc/posix-functions/iswupper.texi: Likewise.
3730         * doc/posix-functions/iswxdigit.texi: Likewise.
3731         * doc/posix-functions/mbrtowc.texi: Likewise.
3732         * doc/posix-functions/mbsrtowcs.texi: Likewise.
3733         * doc/posix-functions/mbstowcs.texi: Likewise.
3734         * doc/posix-functions/mbtowc.texi: Likewise.
3735         * doc/posix-functions/putwchar.texi: Likewise.
3736         * doc/posix-functions/putwc.texi: Likewise.
3737         * doc/posix-functions/swprintf.texi: Likewise.
3738         * doc/posix-functions/tolower.texi: Likewise.
3739         * doc/posix-functions/toupper.texi: Likewise.
3740         * doc/posix-functions/towctrans.texi: Likewise.
3741         * doc/posix-functions/ungetwc.texi: Likewise.
3742         * doc/posix-functions/vswprintf.texi: Likewise.
3743         * doc/posix-functions/wcrtomb.texi: Likewise.
3744         * doc/posix-functions/wcscat.texi: Likewise.
3745         * doc/posix-functions/wcschr.texi: Likewise.
3746         * doc/posix-functions/wcscmp.texi: Likewise.
3747         * doc/posix-functions/wcscoll.texi: Likewise.
3748         * doc/posix-functions/wcscpy.texi: Likewise.
3749         * doc/posix-functions/wcscspn.texi: Likewise.
3750         * doc/posix-functions/wcsftime.texi: Likewise.
3751         * doc/posix-functions/wcslen.texi: Likewise.
3752         * doc/posix-functions/wcsncat.texi: Likewise.
3753         * doc/posix-functions/wcsncmp.texi: Likewise.
3754         * doc/posix-functions/wcsncpy.texi: Likewise.
3755         * doc/posix-functions/wcspbrk.texi: Likewise.
3756         * doc/posix-functions/wcsrchr.texi: Likewise.
3757         * doc/posix-functions/wcsrtombs.texi: Likewise.
3758         * doc/posix-functions/wcsspn.texi: Likewise.
3759         * doc/posix-functions/wcsstr.texi: Likewise.
3760         * doc/posix-functions/wcstod.texi: Likewise.
3761         * doc/posix-functions/wcstof.texi: Likewise.
3762         * doc/posix-functions/wcstoimax.texi: Likewise.
3763         * doc/posix-functions/wcstok.texi: Likewise.
3764         * doc/posix-functions/wcstold.texi: Likewise.
3765         * doc/posix-functions/wcstoll.texi: Likewise.
3766         * doc/posix-functions/wcstol.texi: Likewise.
3767         * doc/posix-functions/wcstombs.texi: Likewise.
3768         * doc/posix-functions/wcstoull.texi: Likewise.
3769         * doc/posix-functions/wcstoul.texi: Likewise.
3770         * doc/posix-functions/wcstoumax.texi: Likewise.
3771         * doc/posix-functions/wcswidth.texi: Likewise.
3772         * doc/posix-functions/wcsxfrm.texi: Likewise.
3773         * doc/posix-functions/wctob.texi: Likewise.
3774         * doc/posix-functions/wctomb.texi: Likewise.
3775         * doc/posix-functions/wctrans.texi: Likewise.
3776         * doc/posix-functions/wctype.texi: Likewise.
3777         * doc/posix-functions/wcwidth.texi: Likewise.
3778         * doc/posix-functions/wmemchr.texi: Likewise.
3779         * doc/posix-functions/wmemcmp.texi: Likewise.
3780         * doc/posix-functions/wmemcpy.texi: Likewise.
3781         * doc/posix-functions/wmemmove.texi: Likewise.
3782         * doc/posix-functions/wmemset.texi: Likewise.
3783         * doc/posix-functions/wprintf.texi: Likewise.
3784         * doc/posix-functions/wscanf.texi: Likewise.
3785
3786 2008-12-21  Bruno Haible  <bruno@clisp.org>
3787
3788         Update doc for HP-UX 11.11.
3789         * doc/posix-functions/btowc.texi: Clarify that the function is missing
3790         in HP-UX version 11.00, not in all versions of HP-UX 11.
3791         * doc/posix-functions/fwide.texi: Likewise.
3792         * doc/posix-functions/fwprintf.texi: Likewise.
3793         * doc/posix-functions/fwscanf.texi: Likewise.
3794         * doc/posix-functions/inet_ntop.texi: Likewise.
3795         * doc/posix-functions/inet_pton.texi: Likewise.
3796         * doc/posix-functions/mbrlen.texi: Likewise.
3797         * doc/posix-functions/mbrtowc.texi: Likewise.
3798         * doc/posix-functions/mbsinit.texi: Likewise.
3799         * doc/posix-functions/mbsrtowcs.texi: Likewise.
3800         * doc/posix-functions/swprintf.texi: Likewise.
3801         * doc/posix-functions/swscanf.texi: Likewise.
3802         * doc/posix-functions/towctrans.texi: Likewise.
3803         * doc/posix-functions/vfwprintf.texi: Likewise.
3804         * doc/posix-functions/vswprintf.texi: Likewise.
3805         * doc/posix-functions/vwprintf.texi: Likewise.
3806         * doc/posix-functions/wcrtomb.texi: Likewise.
3807         * doc/posix-functions/wcsrtombs.texi: Likewise.
3808         * doc/posix-functions/wcsstr.texi: Likewise.
3809         * doc/posix-functions/wctob.texi: Likewise.
3810         * doc/posix-functions/wctrans.texi: Likewise.
3811         * doc/posix-functions/wmemchr.texi: Likewise.
3812         * doc/posix-functions/wmemcmp.texi: Likewise.
3813         * doc/posix-functions/wmemcpy.texi: Likewise.
3814         * doc/posix-functions/wmemmove.texi: Likewise.
3815         * doc/posix-functions/wmemset.texi: Likewise.
3816         * doc/posix-functions/wprintf.texi: Likewise.
3817         * doc/posix-functions/wscanf.texi: Likewise.
3818
3819 2008-12-21  Bruno Haible  <bruno@clisp.org>
3820
3821         Work around a portability problem.
3822         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
3823         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
3824
3825 2008-12-20  Bruno Haible  <bruno@clisp.org>
3826
3827         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
3828         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
3829         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
3830         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
3831         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
3832
3833         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
3834         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
3835         set.
3836         (GNULIB_defined_mbstate_t): New macro.
3837         (mbsinit): Redefine if REPLACE_MBSINIT is set.
3838         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
3839         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
3840         reuses the system's mbrtowc function but works around the bugs.
3841         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
3842         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
3843         macros.
3844         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
3845         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
3846         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
3847         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
3848         REPLACE_MBSINIT if mbsinit needs to be overridden.
3849         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
3850         REPLACE_MBSINIT, REPLACE_MBRTOWC.
3851         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
3852         REPLACE_MBSINIT, REPLACE_MBRTOWC.
3853         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
3854         m4/locale-zh.m4.
3855         (Depends): Add mbsinit.
3856         * modules/mbsinit (Depends): Add mbrtowc.
3857         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
3858
3859 2008-12-20  Bruno Haible  <bruno@clisp.org>
3860
3861         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
3862         so that there are no conversion errors on AIX.
3863         * tests/test-mbsrtowcs.c (main): LIkewise.
3864
3865 2008-12-20  Bruno Haible  <bruno@clisp.org>
3866
3867         Work around wctob bug on Solaris <= 9.
3868         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
3869         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
3870         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
3871         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
3872         * modules/wctob (Files): Add m4/locale-fr.m4.
3873         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
3874
3875 2008-12-20  Bruno Haible  <bruno@clisp.org>
3876
3877         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
3878         /dev/null.
3879         * tests/test-select-in.sh: Likewise.
3880         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3881
3882 2008-12-20  Bruno Haible  <bruno@clisp.org>
3883
3884         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
3885         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
3886         Cygwin 1.5.x.
3887
3888 2008-12-20  Bruno Haible  <bruno@clisp.org>
3889
3890         Ensure mbstate_t is defined on HP-UX 11.11.
3891         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
3892         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
3893         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
3894         AC_USE_SYSTEM_EXTENSIONS.
3895         * modules/fnmatch (Depends-on): Add extensions.
3896         * modules/mbrlen (Depends-on): Likewise.
3897         * modules/mbrtowc (Depends-on): Likewise.
3898         * modules/mbsinit (Depends-on): Likewise.
3899         * modules/mbsrtowcs (Depends-on): Likewise.
3900         * modules/mbswidth (Depends-on): Likewise.
3901         * modules/quotearg (Depends-on): Likewise.
3902         * modules/strftime (Depends-on): Likewise.
3903
3904 2008-12-20  Bruno Haible  <bruno@clisp.org>
3905
3906         Ensure wctob is declared on IRIX 6.5.
3907         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
3908         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
3909         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
3910         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
3911         of HAVE_WCTOB.
3912         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
3913         HAVE_WCTOB.
3914         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
3915
3916 2008-12-19  Bruno Haible  <bruno@clisp.org>
3917
3918         * modules/mbsrtowcs-tests: New file.
3919         * tests/test-mbsrtowcs1.sh: New file.
3920         * tests/test-mbsrtowcs2.sh: New file.
3921         * tests/test-mbsrtowcs3.sh: New file.
3922         * tests/test-mbsrtowcs4.sh: New file.
3923         * tests/test-mbsrtowcs.c: New file.
3924
3925         New module 'mbsrtowcs'.
3926         * lib/wchar.in.h (mbsrtowcs): New declaration.
3927         * lib/mbsrtowcs.c: New file.
3928         * m4/mbsrtowcs.m4: New file.
3929         * modules/mbsrtowcs: New file.
3930         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
3931         HAVE_MBSRTOWCS.
3932         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
3933         HAVE_MBSRTOWCS.
3934         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
3935
3936 2008-12-19  Bruno Haible  <bruno@clisp.org>
3937
3938         New module 'mbrlen'.
3939         * lib/wchar.in.h (mbrlen): New declaration.
3940         * lib/mbrlen.c: New file.
3941         * m4/mbrlen.m4: New file.
3942         * modules/mbrlen: New file.
3943         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
3944         HAVE_MBRLEN.
3945         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
3946         HAVE_MBRLEN.
3947         * doc/posix-functions/mbrlen.texi: Document the new module.
3948
3949 2008-12-19  Bruno Haible  <bruno@clisp.org>
3950
3951         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
3952         * modules/mbrtowc (Depends-on): Add verify.
3953         Suggested by Paul Eggert.
3954
3955 2008-12-18  Bruno Haible  <bruno@clisp.org>
3956
3957         * modules/mbsinit-tests: New file.
3958         * tests/test-mbsinit.sh: New file.
3959         * tests/test-mbsinit.c: New file.
3960
3961 2008-12-18  Bruno Haible  <bruno@clisp.org>
3962
3963         * modules/mbrtowc-tests: New file.
3964         * tests/test-mbrtowc1.sh: New file.
3965         * tests/test-mbrtowc2.sh: New file.
3966         * tests/test-mbrtowc3.sh: New file.
3967         * tests/test-mbrtowc4.sh: New file.
3968         * tests/test-mbrtowc.c: New file.
3969
3970         New module 'mbrtowc'.
3971         * lib/wchar.in.h (mbstate_t): Override when the system does not have
3972         mbsinit and mbrtowc.
3973         (mbrtowc): New declaration.
3974         * lib/mbrtowc.c: New file.
3975         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
3976         * modules/mbrtowc: New file.
3977         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
3978         HAVE_MBRTOWC.
3979         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
3980         HAVE_MBRTOWC.
3981         * doc/posix-functions/mbrtowc.texi: Document the new module.
3982
3983 2008-12-18  Bruno Haible  <bruno@clisp.org>
3984
3985         New module 'wctob'.
3986         * lib/wchar.in.h (wctob): New declaration.
3987         * lib/wctob.c: New file.
3988         * m4/wctob.m4: New file.
3989         * modules/wctob: New file.
3990         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
3991         HAVE_WCTOB.
3992         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
3993         * doc/posix-functions/wctob.texi: Document the new module.
3994
3995 2008-12-18  Bruno Haible  <bruno@clisp.org>
3996
3997         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
3998         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
3999
4000 2008-12-18  Simon Josefsson  <simon@josefsson.org>
4001
4002         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
4003         G. Christensen" <tgc@jupiterrise.com>.
4004
4005         * lib/flock.c: Need to include errno.h.  Reported by "Tom
4006         G. Christensen" <tgc@jupiterrise.com>.
4007
4008         * lib/flock.c: Need to include string.h.  Reported by "Tom
4009         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
4010         <ebb9@byu.net>.
4011
4012 2008-12-18  Bruno Haible  <bruno@clisp.org>
4013
4014         * m4/locale-ja.m4: New file, from GNU gettext.
4015
4016 2008-12-17  Bruno Haible  <bruno@clisp.org>
4017
4018         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
4019         Suggested by Eric Blake.
4020
4021 2008-12-17  Bruno Haible  <bruno@clisp.org>
4022
4023         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
4024
4025 2008-12-17  Bruno Haible  <bruno@clisp.org>
4026
4027         * lib/mbsinit.c: Include verify.h. Verify an assumption.
4028         * modules/mbsinit (Depends-on): Add verify.
4029         Suggested by Paul Eggert.
4030
4031 2008-12-17  Bruno Haible  <bruno@clisp.org>
4032
4033         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
4034         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
4035         gl_FUNC_MBRTOWC.
4036         * m4/mbiter.m4 (gl_MBITER): LIkewise.
4037         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
4038         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
4039         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
4040         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
4041         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
4042         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
4043         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
4044         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
4045         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
4046         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
4047         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
4048         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
4049         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
4050         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
4051         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
4052         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
4053         * modules/trim (configure.ac): Likewise.
4054
4055 2008-12-17  Bruno Haible  <bruno@clisp.org>
4056
4057         * modules/btowc-tests: New file.
4058         * tests/test-btowc1.sh: New file.
4059         * tests/test-btowc2.sh: New file.
4060         * tests/test-btowc.c: New file.
4061
4062         New module 'btowc'.
4063         * lib/wchar.in.h (btowc): New declaration.
4064         * lib/btowc.c: New file.
4065         * m4/btowc.m4: New file.
4066         * modules/btowc: New file.
4067         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
4068         HAVE_BTOWC.
4069         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
4070         * doc/posix-functions/btowc.texi: Document the new module.
4071
4072 2008-12-17  Bruno Haible  <bruno@clisp.org>
4073
4074         New module 'mbsinit'.
4075         * lib/wchar.in.h (mbsinit): New declaration.
4076         * lib/mbsinit.c: New file.
4077         * m4/mbsinit.m4: New file.
4078         * modules/mbsinit: New file.
4079         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
4080         HAVE_MBSINIT.
4081         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
4082         HAVE_MBSINIT.
4083         * doc/posix-functions/mbsinit.texi: Document the new module.
4084
4085 2008-12-16  Bruno Haible  <bruno@clisp.org>
4086
4087         * lib/unistd.in.h: Add comment.
4088         * tests/test-environ.c: Don't include <stdlib.h>.
4089
4090 2008-12-16  Bruno Haible  <bruno@clisp.org>
4091
4092         * lib/parse-duration.h (parse_duration): Document return value
4093         convention.
4094         * lib/parse-duration.c: Include specification header first. Add
4095         comments.
4096         (_): Remove macro.
4097         (parse_year_month_day, parse_hour_minute_second): Move side effects
4098         outside of strchr call.
4099         (parse_non_iso8601): Move side effects outside of isspace call.
4100         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
4101         call.
4102
4103 2008-12-16  Bruno Haible  <bruno@clisp.org>
4104
4105         * tests/test-parse-duration.sh: Produce no output when the test
4106         succeeds.
4107
4108 2008-12-16  Bruno Haible  <bruno@clisp.org>
4109
4110         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
4111         expressions.
4112
4113 2008-12-15  Bruno Haible  <bruno@clisp.org>
4114
4115         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
4116         * doc/glibc-functions/flistxattr.texi: Likewise.
4117         * doc/glibc-functions/fopencookie.texi: Likewise.
4118         * doc/glibc-functions/fremovexattr.texi: Likewise.
4119         * doc/glibc-functions/fsetxattr.texi: Likewise.
4120         * doc/glibc-functions/getxattr.texi: Likewise.
4121         * doc/glibc-functions/lgetxattr.texi: Likewise.
4122         * doc/glibc-functions/listxattr.texi: Likewise.
4123         * doc/glibc-functions/llistxattr.texi: Likewise.
4124         * doc/glibc-functions/lremovexattr.texi: Likewise.
4125         * doc/glibc-functions/lsetxattr.texi: Likewise.
4126         * doc/glibc-functions/removexattr.texi: Likewise.
4127         * doc/glibc-functions/setxattr.texi: Likewise.
4128         * doc/posix-functions/open_memstream.texi: Likewise.
4129
4130 2008-12-15  Eric Blake  <ebb9@byu.net>
4131
4132         Update doc for cygwin 1.7.
4133         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
4134         functions.
4135         * doc/posix-functions/fchmodat.texi: Likewise.
4136         * doc/posix-functions/fchownat.texi: Likewise.
4137         * doc/posix-functions/fdopendir.texi: Likewise.
4138         * doc/posix-functions/fmemopen.texi: Likewise.
4139         * doc/posix-functions/freeaddrinfo.texi: Likewise.
4140         * doc/posix-functions/fstatat.texi: Likewise.
4141         * doc/posix-functions/futimens.texi: Likewise.
4142         * doc/posix-functions/gai_strerror.texi: Likewise.
4143         * doc/posix-functions/getaddrinfo.texi: Likewise.
4144         * doc/posix-functions/getnameinfo.texi: Likewise.
4145         * doc/posix-functions/if_freenameindex.texi: Likewise.
4146         * doc/posix-functions/if_indextoname.texi: Likewise.
4147         * doc/posix-functions/if_nameindex.texi: Likewise.
4148         * doc/posix-functions/if_nametoindex.texi: Likewise.
4149         * doc/posix-functions/insque.texi: Likewise.
4150         * doc/posix-functions/linkat.texi: Likewise.
4151         * doc/posix-functions/llrint.texi: Likewise.
4152         * doc/posix-functions/llrintf.texi: Likewise.
4153         * doc/posix-functions/llrintl.texi: Likewise.
4154         * doc/posix-functions/lockf.texi: Likewise.
4155         * doc/posix-functions/lrintl.texi: Likewise.
4156         * doc/posix-functions/mkdirat.texi: Likewise.
4157         * doc/posix-functions/mkfifoat.texi: Likewise.
4158         * doc/posix-functions/mknodat.texi: Likewise.
4159         * doc/posix-functions/mq_close.texi: Likewise.
4160         * doc/posix-functions/mq_getattr.texi: Likewise.
4161         * doc/posix-functions/mq_notify.texi: Likewise.
4162         * doc/posix-functions/mq_open.texi: Likewise.
4163         * doc/posix-functions/mq_receive.texi: Likewise.
4164         * doc/posix-functions/mq_send.texi: Likewise.
4165         * doc/posix-functions/mq_setattr.texi: Likewise.
4166         * doc/posix-functions/mq_timedreceive.texi: Likewise.
4167         * doc/posix-functions/mq_timedsend.texi: Likewise.
4168         * doc/posix-functions/mq_unlink.texi: Likewise.
4169         * doc/posix-functions/open_memstream.texi: Likewise.
4170         * doc/posix-functions/openat.texi: Likewise.
4171         * doc/posix-functions/posix_fadvise.texi: Likewise.
4172         * doc/posix-functions/posix_fallocate.texi: Likewise.
4173         * doc/posix-functions/posix_madvise.texi: Likewise.
4174         * doc/posix-functions/posix_memalign.texi: Likewise.
4175         * doc/posix-functions/posix_openpt.texi: Likewise.
4176         * doc/posix-functions/readlinkat.texi: Likewise.
4177         * doc/posix-functions/remque.texi: Likewise.
4178         * doc/posix-functions/renameat.texi: Likewise.
4179         * doc/posix-functions/rintl.texi: Likewise.
4180         * doc/posix-functions/sem_unlink.texi: Likewise.
4181         * doc/posix-functions/shm_open.texi: Likewise.
4182         * doc/posix-functions/shm_unlink.texi: Likewise.
4183         * doc/posix-functions/signgam.texi: Likewise.
4184         * doc/posix-functions/sigset.texi: Likewise.
4185         * doc/posix-functions/stpcpy.texi: Likewise.
4186         * doc/posix-functions/stpncpy.texi: Likewise.
4187         * doc/posix-functions/strerror.texi: Likewise.
4188         * doc/posix-functions/strtod.texi: Likewise.
4189         * doc/posix-functions/symlinkat.texi: Likewise.
4190         * doc/posix-functions/unlinkat.texi: Likewise.
4191         * doc/posix-functions/utimensat.texi: Likewise.
4192         * doc/glibc-functions/bindresvport.texi: Likewise.
4193         * doc/glibc-functions/dn_expand.texi: Likewise.
4194         * doc/glibc-functions/exp10.texi: Likewise.
4195         * doc/glibc-functions/exp10f.texi: Likewise.
4196         * doc/glibc-functions/fgetxattr.texi: Likewise.
4197         * doc/glibc-functions/flistxattr.texi: Likewise.
4198         * doc/glibc-functions/fopencookie.texi: Likewise.
4199         * doc/glibc-functions/freeifaddrs.texi: Likewise.
4200         * doc/glibc-functions/fremovexattr.texi: Likewise.
4201         * doc/glibc-functions/fsetxattr.texi: Likewise.
4202         * doc/glibc-functions/getifaddrs.texi: Likewise.
4203         * doc/glibc-functions/getxattr.texi: Likewise.
4204         * doc/glibc-functions/lgetxattr.texi: Likewise.
4205         * doc/glibc-functions/listxattr.texi: Likewise.
4206         * doc/glibc-functions/llistxattr.texi: Likewise.
4207         * doc/glibc-functions/lremovexattr.texi: Likewise.
4208         * doc/glibc-functions/lsetxattr.texi: Likewise.
4209         * doc/glibc-functions/pow10.texi: Likewise.
4210         * doc/glibc-functions/pow10f.texi: Likewise.
4211         * doc/glibc-functions/rcmd_af.texi: Likewise.
4212         * doc/glibc-functions/removexattr.texi: Likewise.
4213         * doc/glibc-functions/res_init.texi: Likewise.
4214         * doc/glibc-functions/res_mkquery.texi: Likewise.
4215         * doc/glibc-functions/res_query.texi: Likewise.
4216         * doc/glibc-functions/res_querydomain.texi: Likewise.
4217         * doc/glibc-functions/res_send.texi: Likewise.
4218         * doc/glibc-functions/rresvport_af.texi: Likewise.
4219         * doc/glibc-functions/setxattr.texi: Likewise.
4220         * doc/glibc-functions/strcasestr.texi: Likewise.
4221
4222 2008-12-15  Bruno Haible  <bruno@clisp.org>
4223
4224         Fix compilation error on OSF/1 4.0.
4225         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
4226         <sys/time.h>, simply delegate to the system header.
4227         Reported by Daniel Richard G. <oss@teragram.com>.
4228
4229 2008-12-15  Bruno Haible  <bruno@clisp.org>
4230
4231         * doc/posix-functions/openat.texi: Mention the 'openat' module.
4232         * doc/posix-functions/fchmodat.texi: Likewise.
4233         * doc/posix-functions/fchownat.texi: Likewise.
4234         * doc/posix-functions/fdopendir.texi: Likewise.
4235         * doc/posix-functions/fstatat.texi: Likewise.
4236         * doc/posix-functions/mkdirat.texi: Likewise.
4237         * doc/posix-functions/unlinkat.texi: Likewise.
4238
4239 2008-12-14  Bruno Haible  <bruno@clisp.org>
4240
4241         Update doc for POSIX:2008.
4242         * doc/posix-functions/faccessat.texi: New file.
4243         * doc/posix-functions/fchmodat.texi: New file.
4244         * doc/posix-functions/fchownat.texi: New file.
4245         * doc/posix-functions/fdopendir.texi: New file.
4246         * doc/posix-functions/fstatat.texi: New file.
4247         * doc/posix-functions/futimens.texi: New file.
4248         * doc/posix-functions/linkat.texi: New file.
4249         * doc/posix-functions/mkdirat.texi: New file.
4250         * doc/posix-functions/mkfifoat.texi: New file.
4251         * doc/posix-functions/mknodat.texi: New file.
4252         * doc/posix-functions/open_wmemstream.texi: New file.
4253         * doc/posix-functions/openat.texi: New file.
4254         * doc/posix-functions/psiginfo.texi: New file.
4255         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
4256         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
4257         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
4258         * doc/posix-functions/readlinkat.texi: New file.
4259         * doc/posix-functions/renameat.texi: New file.
4260         * doc/posix-functions/strerror_l.texi: New file.
4261         * doc/posix-functions/symlinkat.texi: New file.
4262         * doc/posix-functions/unlinkat.texi: New file.
4263         * doc/posix-functions/utimensat.texi: New file.
4264         * doc/gnulib.texi (Function Substitutes): Add these subsections.
4265
4266 2008-12-14  Bruno Haible  <bruno@clisp.org>
4267
4268         Update doc for POSIX:2008.
4269         * doc/posix-functions/alphasort.texi: Renamed from
4270         doc/glibc-functions/alphasort.texi.
4271         * doc/posix-functions/dirfd.texi: Renamed from
4272         doc/glibc-functions/dirfd.texi.
4273         * doc/posix-functions/dprintf.texi: Renamed from
4274         doc/glibc-functions/dprintf.texi.
4275         * doc/posix-functions/duplocale.texi: Renamed from
4276         doc/glibc-functions/duplocale.texi.
4277         * doc/posix-functions/fexecve.texi: Renamed from
4278         doc/glibc-functions/fexecve.texi.
4279         * doc/posix-functions/fmemopen.texi: Renamed from
4280         doc/glibc-functions/fmemopen.texi.
4281         * doc/posix-functions/freelocale.texi: Renamed from
4282         doc/glibc-functions/freelocale.texi.
4283         * doc/posix-functions/getdate_err.texi: Renamed from
4284         doc/glibc-functions/getdate_err.texi.
4285         * doc/posix-functions/isalnum_l.texi: Renamed from
4286         doc/glibc-functions/isalnum_l.texi.
4287         * doc/posix-functions/isalpha_l.texi: Renamed from
4288         doc/glibc-functions/isalpha_l.texi.
4289         * doc/posix-functions/isblank_l.texi: Renamed from
4290         doc/glibc-functions/isblank_l.texi.
4291         * doc/posix-functions/iscntrl_l.texi: Renamed from
4292         doc/glibc-functions/iscntrl_l.texi.
4293         * doc/posix-functions/isdigit_l.texi: Renamed from
4294         doc/glibc-functions/isdigit_l.texi.
4295         * doc/posix-functions/isgraph_l.texi: Renamed from
4296         doc/glibc-functions/isgraph_l.texi.
4297         * doc/posix-functions/islower_l.texi: Renamed from
4298         doc/glibc-functions/islower_l.texi.
4299         * doc/posix-functions/isprint_l.texi: Renamed from
4300         doc/glibc-functions/isprint_l.texi.
4301         * doc/posix-functions/ispunct_l.texi: Renamed from
4302         doc/glibc-functions/ispunct_l.texi.
4303         * doc/posix-functions/isspace_l.texi: Renamed from
4304         doc/glibc-functions/isspace_l.texi.
4305         * doc/posix-functions/isupper_l.texi: Renamed from
4306         doc/glibc-functions/isupper_l.texi.
4307         * doc/posix-functions/iswalnum_l.texi: Renamed from
4308         doc/glibc-functions/iswalnum_l.texi.
4309         * doc/posix-functions/iswalpha_l.texi: Renamed from
4310         doc/glibc-functions/iswalpha_l.texi.
4311         * doc/posix-functions/iswblank_l.texi: Renamed from
4312         doc/glibc-functions/iswblank_l.texi.
4313         * doc/posix-functions/iswcntrl_l.texi: Renamed from
4314         doc/glibc-functions/iswcntrl_l.texi.
4315         * doc/posix-functions/iswctype_l.texi: Renamed from
4316         doc/glibc-functions/iswctype_l.texi.
4317         * doc/posix-functions/iswdigit_l.texi: Renamed from
4318         doc/glibc-functions/iswdigit_l.texi.
4319         * doc/posix-functions/iswgraph_l.texi: Renamed from
4320         doc/glibc-functions/iswgraph_l.texi.
4321         * doc/posix-functions/iswlower_l.texi: Renamed from
4322         doc/glibc-functions/iswlower_l.texi.
4323         * doc/posix-functions/iswprint_l.texi: Renamed from
4324         doc/glibc-functions/iswprint_l.texi.
4325         * doc/posix-functions/iswpunct_l.texi: Renamed from
4326         doc/glibc-functions/iswpunct_l.texi.
4327         * doc/posix-functions/iswspace_l.texi: Renamed from
4328         doc/glibc-functions/iswspace_l.texi.
4329         * doc/posix-functions/iswupper_l.texi: Renamed from
4330         doc/glibc-functions/iswupper_l.texi.
4331         * doc/posix-functions/iswxdigit_l.texi: Renamed from
4332         doc/glibc-functions/iswxdigit_l.texi.
4333         * doc/posix-functions/isxdigit_l.texi: Renamed from
4334         doc/glibc-functions/isxdigit_l.texi.
4335         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
4336         doc/glibc-functions/mbsnrtowcs.texi.
4337         * doc/posix-functions/mkdtemp.texi: Renamed from
4338         doc/glibc-functions/mkdtemp.texi.
4339         * doc/posix-functions/newlocale.texi: Renamed from
4340         doc/glibc-functions/newlocale.texi.
4341         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
4342         doc/glibc-functions/nl_langinfo_l.texi.
4343         * doc/posix-functions/open_memstream.texi: Renamed from
4344         doc/glibc-functions/open_memstream.texi.
4345         * doc/posix-functions/opterr.texi: Renamed from
4346         doc/glibc-functions/opterr.texi.
4347         * doc/posix-functions/optind.texi: Renamed from
4348         doc/glibc-functions/optind.texi.
4349         * doc/posix-functions/optopt.texi: Renamed from
4350         doc/glibc-functions/optopt.texi.
4351         * doc/posix-functions/psignal.texi: Renamed from
4352         doc/glibc-functions/psignal.texi.
4353         * doc/posix-functions/scandir.texi: Renamed from
4354         doc/glibc-functions/scandir.texi.
4355         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
4356         doc/glibc-functions/sched_get_priority_min.texi.
4357         * doc/posix-functions/signgam.texi: Renamed from
4358         doc/glibc-functions/signgam.texi.
4359         * doc/posix-functions/stpcpy.texi: Renamed from
4360         doc/glibc-functions/stpcpy.texi.
4361         * doc/posix-functions/stpncpy.texi: Renamed from
4362         doc/glibc-functions/stpncpy.texi.
4363         * doc/posix-functions/strcasecmp_l.texi: Renamed from
4364         doc/glibc-functions/strcasecmp_l.texi.
4365         * doc/posix-functions/strcoll_l.texi: Renamed from
4366         doc/glibc-functions/strcoll_l.texi.
4367         * doc/posix-functions/strfmon_l.texi: Renamed from
4368         doc/glibc-functions/strfmon_l.texi.
4369         * doc/posix-functions/strftime_l.texi: Renamed from
4370         doc/glibc-functions/strftime_l.texi.
4371         * doc/posix-functions/strncasecmp_l.texi: Renamed from
4372         doc/glibc-functions/strncasecmp_l.texi.
4373         * doc/posix-functions/strndup.texi: Renamed from
4374         doc/glibc-functions/strndup.texi.
4375         * doc/posix-functions/strnlen.texi: Renamed from
4376         doc/glibc-functions/strnlen.texi.
4377         * doc/posix-functions/strsignal.texi: Renamed from
4378         doc/glibc-functions/strsignal.texi.
4379         * doc/posix-functions/strxfrm_l.texi: Renamed from
4380         doc/glibc-functions/strxfrm_l.texi.
4381         * doc/posix-functions/timer_gettime.texi: Renamed from
4382         doc/glibc-functions/timer_gettime.texi.
4383         * doc/posix-functions/tolower_l.texi: Renamed from
4384         doc/glibc-functions/tolower_l.texi.
4385         * doc/posix-functions/toupper_l.texi: Renamed from
4386         doc/glibc-functions/toupper_l.texi.
4387         * doc/posix-functions/towctrans_l.texi: Renamed from
4388         doc/glibc-functions/towctrans_l.texi.
4389         * doc/posix-functions/towlower_l.texi: Renamed from
4390         doc/glibc-functions/towlower_l.texi.
4391         * doc/posix-functions/towupper_l.texi: Renamed from
4392         doc/glibc-functions/towupper_l.texi.
4393         * doc/posix-functions/uselocale.texi: Renamed from
4394         doc/glibc-functions/uselocale.texi.
4395         * doc/posix-functions/vdprintf.texi: Renamed from
4396         doc/glibc-functions/vdprintf.texi.
4397         * doc/posix-functions/wcpcpy.texi:
4398         Renamed from doc/glibc-functions/wcpcpy.texi.
4399         * doc/posix-functions/wcpncpy.texi: Renamed from
4400         doc/glibc-functions/wcpncpy.texi.
4401         * doc/posix-functions/wcscasecmp.texi: Renamed from
4402         doc/glibc-functions/wcscasecmp.texi.
4403         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
4404         doc/glibc-functions/wcscasecmp_l.texi.
4405         * doc/posix-functions/wcscoll_l.texi: Renamed from
4406         doc/glibc-functions/wcscoll_l.texi.
4407         * doc/posix-functions/wcsdup.texi: Renamed from
4408         doc/glibc-functions/wcsdup.texi.
4409         * doc/posix-functions/wcsncasecmp.texi: Renamed from
4410         doc/glibc-functions/wcsncasecmp.texi.
4411         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
4412         doc/glibc-functions/wcsncasecmp_l.texi.
4413         * doc/posix-functions/wcsnlen.texi: Renamed from
4414         doc/glibc-functions/wcsnlen.texi.
4415         * doc/posix-functions/wcsnrtombs.texi: Renamed from
4416         doc/glibc-functions/wcsnrtombs.texi.
4417         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
4418         doc/glibc-functions/wcsxfrm_l.texi.
4419         * doc/posix-functions/wctrans_l.texi: Renamed from
4420         doc/glibc-functions/wctrans_l.texi.
4421         * doc/posix-functions/wctype_l.texi: Renamed from
4422         doc/glibc-functions/wctype_l.texi.
4423         * doc/gnulib.texi (Function Substitutes): Add these subsections.
4424         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
4425         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
4426         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
4427         these subsections.
4428         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
4429         Remove sections.
4430
4431 2008-12-14  Bruno Haible  <bruno@clisp.org>
4432
4433         Update doc for POSIX:2008.
4434         * doc/posix-functions/*.texi: Update URL of POSIX specification.
4435
4436 2008-12-14  Bruno Haible  <bruno@clisp.org>
4437
4438         Update doc for POSIX:2008.
4439         * doc/pastposix-functions/bcmp.texi: Renamed from
4440         doc/posix-functions/bcmp.texi.
4441         * doc/pastposix-functions/bcopy.texi: Renamed from
4442         doc/posix-functions/bcopy.texi.
4443         * doc/pastposix-functions/bsd_signal.texi: Renamed from
4444         doc/posix-functions/bsd_signal.texi.
4445         * doc/pastposix-functions/bzero.texi: Renamed from
4446         doc/posix-functions/bzero.texi.
4447         * doc/pastposix-functions/ecvt.texi: Renamed from
4448         doc/posix-functions/ecvt.texi.
4449         * doc/pastposix-functions/fcvt.texi: Renamed from
4450         doc/posix-functions/fcvt.texi.
4451         * doc/pastposix-functions/ftime.texi: Renamed from
4452         doc/posix-functions/ftime.texi.
4453         * doc/pastposix-functions/gcvt.texi: Renamed from
4454         doc/posix-functions/gcvt.texi.
4455         * doc/pastposix-functions/getcontext.texi: Renamed from
4456         doc/posix-functions/getcontext.texi.
4457         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
4458         doc/posix-functions/gethostbyaddr.texi.
4459         * doc/pastposix-functions/gethostbyname.texi: Renamed from
4460         doc/posix-functions/gethostbyname.texi.
4461         * doc/pastposix-functions/getwd.texi: Renamed from
4462         doc/posix-functions/getwd.texi.
4463         * doc/pastposix-functions/h_errno.texi: Renamed from
4464         doc/posix-functions/h_errno.texi.
4465         * doc/pastposix-functions/index.texi: Renamed from
4466         doc/posix-functions/index.texi.
4467         * doc/pastposix-functions/makecontext.texi: Renamed from
4468         doc/posix-functions/makecontext.texi.
4469         * doc/pastposix-functions/mktemp.texi: Renamed from
4470         doc/posix-functions/mktemp.texi.
4471         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
4472         doc/posix-functions/pthread_attr_getstackaddr.texi.
4473         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
4474         doc/posix-functions/pthread_attr_setstackaddr.texi.
4475         * doc/pastposix-functions/rindex.texi: Renamed from
4476         doc/posix-functions/rindex.texi.
4477         * doc/pastposix-functions/scalb.texi: Renamed from
4478         doc/posix-functions/scalb.texi.
4479         * doc/pastposix-functions/setcontext.texi: Renamed from
4480         doc/posix-functions/setcontext.texi.
4481         * doc/pastposix-functions/swapcontext.texi: Renamed from
4482         doc/posix-functions/swapcontext.texi.
4483         * doc/pastposix-functions/ualarm.texi: Renamed from
4484         doc/posix-functions/ualarm.texi.
4485         * doc/pastposix-functions/usleep.texi: Renamed from
4486         doc/posix-functions/usleep.texi.
4487         * doc/pastposix-functions/vfork.texi: Renamed from
4488         doc/posix-functions/vfork.texi.
4489         * doc/pastposix-functions/wcswcs.texi: Renamed from
4490         doc/posix-functions/wcswcs.texi.
4491         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
4492         (Function Substitutes): Update.
4493
4494 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4495
4496         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
4497         m4/strerror.m4.
4498
4499 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4500             Bruno Haible  <bruno@clisp.org>
4501
4502         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
4503
4504 2008-12-13  Bruno Haible  <bruno@clisp.org>
4505
4506         * modules/strtoull (Depends-on): Remove unistd.
4507
4508 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4509
4510         * modules/strtoull (Depends-on): Add stdlib.
4511
4512 2008-12-11  Simon Josefsson  <simon@josefsson.org>
4513
4514         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
4515
4516 2008-12-10  Jim Meyering  <meyering@redhat.com>
4517
4518         gl_ASSERT: don't say assertions are disabled when they're not
4519         * m4/assert.m4 (gl_ASSERT): Do not make configure report
4520         "checking whether to enable assertions... no", when they are in
4521         fact enabled.  This is solely a bug in the output of configure.
4522         In spite of saying "no", NDEBUG was not defined in that case.
4523         Also, as noted by Eric Blake, leave assertions enabled upon
4524         --enable-assert=INVALID.
4525
4526 2008-12-10  Bruno Haible  <bruno@clisp.org>
4527
4528         Change MODULES.html to refer to POSIX:2008 where possible.
4529         * MODULES.html.sh (POSIX2008_URL): New variable.
4530         (posix_headers): Remove sys/timeb, ucontext.
4531         (posix2001_headers): New variable.
4532         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
4533         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
4534         index, makecontext, mktemp, pthread_attr_getstackaddr,
4535         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
4536         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
4537         (posix2001_functions): New variable.
4538         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
4539         otherwise.
4540
4541 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4542
4543         add missing include to parse-duration.c
4544         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
4545         * modules/parse-duration (Depends-on): Add xalloc.
4546
4547         fix sed script reading maint.mk
4548         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
4549         (syntax-check-rules): Use it.
4550
4551 2008-12-09  Bruno Haible  <bruno@clisp.org>
4552
4553         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
4554         MacOS X 10.4/PowerPC.
4555         Reported by Simon Josefsson.
4556
4557 2008-12-08  Jim Meyering  <meyering@redhat.com>
4558
4559         work around mingw's lack of some S_IF definitions
4560         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
4561         Reported by Simon Josefsson.
4562
4563 2008-12-08  Bruno Haible  <bruno@clisp.org>
4564
4565         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
4566         applied to variables. Needed on MacOS X 10.4/PowerPC.
4567         Reported by Simon Josefsson.
4568
4569 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
4570         and Eric Blake  <ebb9@byu.net>
4571
4572         assert: honor --enable-assert
4573         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
4574         order to honor --enable-assert, rather than treating it as a
4575         synonym for --disable-assert.
4576
4577 2008-12-08  Jim Meyering  <meyering@redhat.com>
4578
4579         * lib/posixtm.c: Remove now-useless declaration of mktime.
4580
4581         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
4582
4583 2008-12-07  Bruno Haible  <bruno@clisp.org>
4584
4585         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
4586         test_once): Mark functions as static.
4587         * tests/test-tls.c (test_tls): Likewise.
4588
4589 2008-12-07  Bruno Haible  <bruno@clisp.org>
4590
4591         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
4592         iconv_register_autodetect.
4593
4594 2008-12-07  Jim Meyering  <meyering@redhat.com>
4595
4596         posixtm.c: avoid a warning
4597         * lib/posixtm.c (posixtime): Don't initialize tm0.
4598         It's no longer needed to placate gcc4's -Wuninitialized,
4599         and the attempt to placate would elicit a new warning.
4600
4601         unicodeio.c: mark unused parameters
4602         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
4603         (fallback_failure_callback): Likewise.
4604
4605 2008-12-07  Bruno Haible  <bruno@clisp.org>
4606
4607         * gnulib-tool (func_create_testdir): When building the tests
4608         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
4609         Reported by Simon Josefsson.
4610
4611 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4612
4613         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
4614
4615 2008-12-06  Bruno Haible  <bruno@clisp.org>
4616
4617         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
4618         Suggested by Eric Blake.
4619
4620 2008-12-06  Bruno Haible  <bruno@clisp.org>
4621
4622         Fix a c-stack test failure on MacOS X.
4623         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
4624         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
4625         handler for SIGBUS as well.
4626         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
4627         install a signal handler for SIGBUS as well.
4628         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
4629
4630 2008-12-06  Bruno Haible  <bruno@clisp.org>
4631
4632         Advocacy documentation.
4633         * doc/gnulib-intro.texi (Benefits): New section.
4634         * doc/gnulib.texi: Update.
4635
4636 2008-12-06  Bruno Haible  <bruno@clisp.org>
4637
4638         Document the 'manywarnings' module.
4639         * doc/manywarnings.texi: New file.
4640         * doc/gnulib.texi: Include it.
4641
4642 2008-12-05  Eric Blake  <ebb9@byu.net>
4643
4644         tests: silence some gcc warnings
4645         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
4646         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
4647         type mismatches.
4648
4649 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4650             Bruno Haible  <bruno@clisp.org>
4651
4652         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
4653
4654 2008-11-29  Jim Meyering  <meyering@redhat.com>
4655
4656         unicodeio.c: mark unused parameters
4657         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
4658         (fallback_failure_callback): Likewise.
4659
4660         fts: fix a thinko
4661         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
4662         (set_stat_type): Return S_IF*-valued "type" directly.
4663         Prompted by James Youngman's spotting a related bug.
4664         Confirmed by further testing through find.
4665
4666         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
4667         * lib/fts.c (D_TYPE): Define.
4668         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
4669         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
4670         (s_ifmt_shift_bits): New function.
4671         (set_stat_type): New function.
4672         (fts_build): When not calling fts_stat, call set_stat_type
4673         to propagate dirent.d_type info to fts_read caller.
4674         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
4675         fts_statp->st_mode type information may be valid.
4676
4677 2008-11-28  Simon Josefsson  <simon@josefsson.org>
4678
4679         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
4680         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
4681         <sds@gnu.org>.
4682
4683 2008-11-20  Bruno Haible  <bruno@clisp.org>
4684
4685         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
4686         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
4687         INCLUDE_NEXT.
4688         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
4689         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
4690         * modules/math (Makefile.am): Substitute
4691         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
4692         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4693
4694 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
4695             Bruno Haible  <bruno@clisp.org>
4696
4697         * lib/stdint.in.h: Define all type macros so that their expansion is
4698         a single typedef'ed token. Fixes a compilation failure in Boost which
4699         does "using ::int8_t;".
4700
4701 2008-11-18  Simon Josefsson  <simon@josefsson.org>
4702
4703         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
4704         gl_MANYWARN_ALL_GCC.
4705         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
4706         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
4707         * modules/manywarnings: New file.
4708         * MODULES.html.sh: Mention manywarnings module.
4709
4710 2008-11-18  Bruno Haible  <bruno@clisp.org>
4711
4712         * doc/gnulib-tool.texi (Unit tests): New section.
4713
4714 2008-11-18  Simon Josefsson  <simon@josefsson.org>
4715
4716         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
4717         paths like 'lib/po/foo.po'.
4718
4719 2008-11-17  Simon Josefsson  <simon@josefsson.org>
4720
4721         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
4722         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
4723
4724 2008-11-17  Simon Josefsson  <simon@josefsson.org>
4725
4726         * m4/warnings.m4: Use CPPFLAGS to really check whether the
4727         parameter works.
4728
4729 2008-11-17  Simon Josefsson  <simon@josefsson.org>
4730
4731         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
4732
4733 2008-11-17  Bruce Korb  <bkorb@gnu.org>
4734
4735         * modules/parse-duration-tests: New file.
4736         * tests/test-parse-duration.sh: New file.
4737         * tests/test-parse-duration.c: New file.
4738
4739         New module 'parse-duration'.
4740         * lib/parse-duration.h: New file.
4741         * lib/parse-duration.c: New file.
4742         * modules/parse-duration: New file.
4743
4744 2008-11-17  Bruno Haible  <bruno@clisp.org>
4745
4746         * tests/test-select-out.sh: Comment out the first pipe test.
4747         Reported by Simon Josefsson.
4748
4749 2008-11-17  Bruno Haible  <bruno@clisp.org>
4750
4751         * modules/getaddrinfo (Depends-on): Add servent, hostent.
4752         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
4753         gl_HOSTENT.
4754
4755 2008-11-17  Bruno Haible  <bruno@clisp.org>
4756
4757         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
4758         -lnetwork and -lnet. Needed for Haiku and BeOS.
4759
4760 2008-11-16  Bruno Haible  <bruno@clisp.org>
4761
4762         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
4763
4764 2008-11-16  Bruno Haible  <bruno@clisp.org>
4765
4766         Avoid test failure on Haiku.
4767         * tests/test-fsync.c: Include <errno.h>.
4768         (main): Don't require that fsync (0) fails.
4769
4770 2008-11-15  Bruno Haible  <bruno@clisp.org>
4771
4772         New module 'hostent'.
4773         * modules/hostent: New file.
4774         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
4775
4776 2008-11-15  Bruno Haible  <bruno@clisp.org>
4777
4778         New module 'servent'.
4779         * modules/servent: New file.
4780         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
4781
4782 2008-11-15  Bruno Haible  <bruno@clisp.org>
4783
4784         Avoid generating same test program with two different rules.
4785         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
4786         test-frexp to test-frexp-nolibm.
4787         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
4788         test-frexpl to test-frexpl-nolibm.
4789
4790 2008-11-15  Bruno Haible  <bruno@clisp.org>
4791
4792         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
4793         $(FREXPL_LIBM).
4794
4795 2008-11-15  Bruno Haible  <bruno@clisp.org>
4796
4797         * lib/netdb.in.h: Activate the definitions also when the system's
4798         <netdb.h> has 'struct addrinfo'.
4799         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
4800         EAI_OVERFLOW or AI_NUMERICSERV.
4801         * doc/posix-headers/netdb.texi: Document the problem.
4802
4803 2008-11-15  Bruno Haible  <bruno@clisp.org>
4804
4805         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
4806
4807         Make the 'sched' module work on platforms where <sched.h> exists but
4808         is incomplete (such as Haiku).
4809         * lib/sched.in.h; Include the system's <sched.h> if it exists.
4810         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
4811         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
4812         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
4813         HAVE_STRUCT_SCHED_PARAM.
4814         * modules/sched (Depends-on): Add include_next.
4815         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
4816         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
4817         * doc/posix-headers/sched.texi: Document the issue.
4818
4819 2008-11-13  Jim Meyering  <meyering@redhat.com>
4820
4821         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
4822         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
4823         test would fail due to the difference in the Report bugs to ...
4824         line.  The expected address is empty, "<>", while the actual
4825         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
4826
4827 2008-11-12  Bruno Haible  <bruno@clisp.org>
4828
4829         lstat: don't compile lstat.c on systems lacking lstat
4830         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
4831         which don't have lstat; this is handled by lib/sys_stat.in.h already.
4832         Reported by Daniel P. Berrange via Jim Meyering.
4833
4834 2008-11-12  Jim Meyering  <meyering@redhat.com>
4835
4836         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
4837
4838 2008-11-12  Simon Josefsson  <simon@josefsson.org>
4839
4840         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
4841         instead.
4842
4843 2008-11-12  Bruno Haible  <bruno@clisp.org>
4844
4845         * lib/unicodeio.c: Include unistr.h.
4846         (utf8_wctomb): Remove function.
4847         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
4848
4849 2008-11-12  Simon Josefsson  <simon@josefsson.org>
4850
4851         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
4852         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
4853         <bruno@clisp.org>.
4854         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
4855
4856 2008-11-12  Simon Josefsson  <simon@josefsson.org>
4857
4858         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
4859         * doc/gnulib.texi: Add section for warnings.
4860
4861 2008-11-11  Bruno Haible  <bruno@clisp.org>
4862
4863         * lib/sockets.h: Add a comment.
4864
4865 2008-11-11  Karl Berry  <karl@gnu.org>
4866
4867         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
4868
4869 2008-11-11  Eric Blake  <ebb9@byu.net>
4870
4871         fdl.texi: avoid git symlinks
4872         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
4873
4874 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
4875
4876         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
4877
4878 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
4879
4880         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
4881         (gl_WARN_ADD): Substitute $2 if literal.
4882
4883 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
4884
4885         * m4/warning.m4: Remove.
4886
4887 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
4888
4889         * m4/warnings.m4: Almost complete rewrite. :-)
4890
4891 2008-11-10  Simon Josefsson  <simon@josefsson.org>
4892
4893         * modules/warnings: New module.
4894         * m4/warnings.m4: New file.
4895         * MODULES.html.sh: Mention warnings module.
4896         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
4897         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4898
4899 2008-11-10  Eric Blake  <ebb9@byu.net>
4900
4901         fdl.texi: make a symlink to the latest version
4902         * doc/standards.texi: Revert today's earlier change.
4903         * doc/fdl-1.2.texi: Rename from old fdl.texi...
4904         * doc/fdl.texi: ...and replace this with a symlink to the newer
4905         fdl-1.3.texi.
4906
4907 2008-11-10  Bruno Haible  <bruno@clisp.org>
4908
4909         * tests/test-select-fd.c (main): Accept the result file name as fourth
4910         argument.
4911         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
4912         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
4913
4914 2008-11-10  Bruno Haible  <bruno@clisp.org>
4915
4916         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
4917         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
4918         as autoconf-substituted macros.
4919         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
4920         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
4921         gl_NETDB_H_DEFAULTS. Set these variables.
4922         * modules/netdb (Makefile.am): Substitute these variables.
4923
4924 2008-11-10  Eric Blake  <ebb9@byu.net>
4925
4926         standards.texi: include correct file for FDL 1.3
4927         * doc/standards.texi (GNU Free Documentation License): Change
4928         include file to pull in FDL 1.3, not 1.2.
4929
4930         fdl.texi: revert accidental change to license
4931         * doc/fdl.texi: This is FDL 1.2, not 1.3.
4932
4933 2008-11-10  Bruno Haible  <bruno@clisp.org>
4934
4935         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
4936         cross-compiling guesses also when the native compile gives no result.
4937
4938 2008-11-10  Bruno Haible  <bruno@clisp.org>
4939
4940         * lib/spawni.c (__spawni): Force variable into the stack.
4941
4942 2008-11-10  Bruno Haible  <bruno@clisp.org>
4943
4944         Add support for Haiku.
4945         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
4946         glibc and BeOS, but also on Haiku.
4947         * lib/fpurge.c (fpurge): Likewise.
4948         * lib/freadable.c (freadable): Likewise.
4949         * lib/freadahead.c (freadahead): Likewise.
4950         * lib/freading.c (freading): Likewise.
4951         * lib/freadptr.c (freadptr): Likewise.
4952         * lib/freadseek.c (freadptrinc): Likewise.
4953         * lib/fseeko.c (rpl_fseeko): Likewise.
4954         * lib/fseterr.c (fseterr): Likewise.
4955         * lib/fwritable.c (fwritable): Likewise.
4956         * lib/fwriting.c (fwriting): Likewise.
4957         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
4958
4959 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
4960
4961         * lib/config.charset: Treat Haiku like BeOS.
4962
4963 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
4964
4965         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
4966         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
4967
4968 2008-11-08  Bruno Haible  <bruno@clisp.org>
4969
4970         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
4971         AC_CACHE_CHECK.
4972
4973 2008-11-08  Bruno Haible  <bruno@clisp.org>
4974
4975         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
4976
4977 2008-11-08  Bruno Haible  <bruno@clisp.org>
4978
4979         * tests/test-select-fd.c: New file.
4980         * tests/test-select-in.sh: New file.
4981         * tests/test-select-out.sh: New file.
4982         * tests/test-select-stdin.c: New file.
4983         * modules/select-tests (Files): Add the new files.
4984         (Depends-on): Add gettimeofday.
4985         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
4986         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
4987         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
4988
4989 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
4990             Bruno Haible  <bruno@clisp.org>
4991
4992         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
4993
4994 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
4995
4996         * build-aux/pmccabe2html: Added support for C++ source files.
4997
4998 2008-11-05  Ben Pfaff  <blp@gnu.org>
4999
5000         Fix lib/close.c build on Windows.
5001         * modules/close (Files): Add lib/w32sock.h.
5002
5003 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
5004
5005         Accept Bison's NEWS format.
5006         * build-aux/announce-gen (print_news_deltas): Tweak
5007         $re_prefix.
5008
5009 2008-11-04  Bruno Haible  <bruno@clisp.org>
5010
5011         * modules/random_r (Maintainer): Add glibc.
5012
5013 2008-11-04  Simon Josefsson  <simon@josefsson.org>
5014
5015         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
5016         by karl@freefriends.org (Karl Berry).
5017         * doc/alloca.texi: Likewise.
5018         * doc/c-ctype.texi: Likewise.
5019         * doc/c-strcase.texi: Likewise.
5020         * doc/c-strcaseeq.texi: Likewise.
5021         * doc/c-strcasestr.texi: Likewise.
5022         * doc/c-strstr.texi: Likewise.
5023         * doc/c-strtod.texi: Likewise.
5024         * doc/c-strtold.texi: Likewise.
5025         * doc/ctime.texi: Likewise.
5026         * doc/error.texi: Likewise.
5027         * doc/fdl.texi: Likewise.
5028         * doc/gcd.texi: Likewise.
5029         * doc/getdate.texi: Likewise.
5030         * doc/gnulib-intro.texi: Likewise.
5031         * doc/gnulib-tool.texi: Likewise.
5032         * doc/gnulib.texi: Likewise.
5033         * doc/inet_ntoa.texi: Likewise.
5034         * doc/maintain.texi: Likewise.
5035         * doc/make-stds.texi: Likewise.
5036         * doc/quote.texi: Likewise.
5037         * doc/regexprops-generic.texi: Likewise.
5038         * doc/standards.texi: Likewise.
5039         * doc/verify.texi: Likewise.
5040         * doc/visibility.texi: Likewise.
5041         * doc/gnulib.texi (GNU Free Documentation License): Include
5042         fdl-1.3.texi instead of fdl.texi.
5043
5044 2008-11-04  Simon Josefsson  <simon@josefsson.org>
5045
5046         * doc/fdl-1.3.texi: New file, from
5047         <http://www.gnu.org/licenses/fdl-1.3.texi>.
5048         * modules/fdl-1.3: Add.
5049         * MODULES.html.sh: Add fdl-1.3.
5050
5051 2008-11-03  Bruno Haible  <bruno@clisp.org>
5052
5053         Make determination of absolute name of header file work with AIX xlc.
5054         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
5055         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
5056         preprocessing.
5057         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
5058         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
5059
5060 2008-11-03  Simon Josefsson  <simon@josefsson.org>
5061
5062         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
5063         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
5064         <ludo@gnu.org>.
5065
5066 2008-11-02  Bruno Haible  <bruno@clisp.org>
5067
5068         Mark 'strpbrk' obsolete.
5069         * modules/strpbrk (Status, Notice): New sections.
5070         * modules/strtok_r (Depends-on): Add strpbrk.
5071
5072 2008-11-02  Bruno Haible  <bruno@clisp.org>
5073
5074         Mark 'strdup' obsolete.
5075         * modules/strdup (Status, Notice): New sections.
5076         * modules/findprog (Depends-on): Add strdup.
5077         * modules/getaddrinfo (Depends-on): Likewise.
5078         * modules/localename (Depends-on): Likewise.
5079         * modules/relocatable-lib (Depends-on): Likewise.
5080         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
5081         * modules/relocatable-prog (Depends-on): Likewise.
5082         * modules/trim (Depends-on): Likewise.
5083         * modules/unictype/gen-ctype (Depends-on): Likewise.
5084         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
5085
5086 2008-11-02  Bruno Haible  <bruno@clisp.org>
5087
5088         Mark 'strcspn' obsolete.
5089         * modules/strcspn (Status, Notice): New sections.
5090
5091 2008-11-02  Bruno Haible  <bruno@clisp.org>
5092
5093         Mark 'rmdir' obsolete.
5094         * modules/rmdir (Status, Notice): New sections.
5095         * modules/clean-temp (Depends-on): Add rmdir.
5096         * modules/openat (Depends-on): Likewise.
5097
5098 2008-11-02  Bruno Haible  <bruno@clisp.org>
5099
5100         Mark 'raise' obsolete.
5101         * modules/raise (Status, Notice): New sections.
5102         (Include): Specify <signal.h>.
5103         * modules/stdio (Depends-on): Add raise.
5104         * modules/write (Depends-on): Likewise.
5105
5106 2008-11-02  Bruno Haible  <bruno@clisp.org>
5107
5108         Mark 'memset' obsolete.
5109         * modules/memset (Status, Notice): New sections.
5110
5111 2008-11-02  Bruno Haible  <bruno@clisp.org>
5112
5113         Mark 'memmove' obsolete.
5114         * modules/memmove (Status, Notice): New sections.
5115         * modules/argp (Depends-on): Add memmove.
5116         * modules/argz (Depends-on): Likewise.
5117         * modules/canonicalize (Depends-on): Likewise.
5118         * modules/canonicalize-lgpl (Depends-on): Likewise.
5119         * modules/fts (Depends-on): Likewise.
5120         * modules/getcwd (Depends-on): Likewise.
5121         * modules/human (Depends-on): Likewise.
5122         * modules/regex (Depends-on): Likewise.
5123         * modules/striconveh (Depends-on): Likewise.
5124         * modules/trim (Depends-on): Likewise.
5125         * modules/unistr/u8-move (Depends-on): Likewise.
5126         * modules/unistr/u16-move (Depends-on): Likewise.
5127         * modules/unistr/u32-move (Depends-on): Likewise.
5128
5129 2008-11-02  Bruno Haible  <bruno@clisp.org>
5130
5131         Mark 'memcpy' obsolete.
5132         * modules/memcpy (Status, Notice): New sections.
5133
5134 2008-11-02  Bruno Haible  <bruno@clisp.org>
5135
5136         Mark 'memcmp' obsolete.
5137         * modules/memcmp (Status, Notice): New sections.
5138         * modules/argmatch (Depends-on): Add memchr.
5139         * modules/backupfile (Depends-on): Likewise.
5140         * modules/c-strcasestr (Depends-on): Likewise.
5141         * modules/crypto/des (Depends-on): Likewise.
5142         * modules/csharpcomp (Depends-on): Likewise.
5143         * modules/fnmatch (Depends-on): Likewise.
5144         * modules/git-merge-changelog (Depends-on): Likewise.
5145         * modules/isnand (Depends-on): Likewise.
5146         * modules/isnand-nolibm (Depends-on): Likewise.
5147         * modules/isnanf (Depends-on): Likewise.
5148         * modules/isnanf-nolibm (Depends-on): Likewise.
5149         * modules/isnanl (Depends-on): Likewise.
5150         * modules/isnanl-nolibm (Depends-on): Likewise.
5151         * modules/mbchar (Depends-on): Likewise.
5152         * modules/memcoll (Depends-on): Likewise.
5153         * modules/quotearg (Depends-on): Likewise.
5154         * modules/regex (Depends-on): Likewise.
5155         * modules/relocatable-prog (Depends-on): Likewise.
5156         * modules/same (Depends-on): Likewise.
5157         * modules/signbit (Depends-on): Likewise.
5158         * modules/strcasestr-simple (Depends-on): Likewise.
5159         * modules/unictype/gen-ctype (Depends-on): Likewise.
5160         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
5161         * modules/uniname/uniname (Depends-on): Likewise.
5162         * modules/unistr/u8-cmp (Depends-on): Likewise.
5163
5164 2008-11-02  Bruno Haible  <bruno@clisp.org>
5165
5166         Mark 'memchr' obsolete.
5167         * modules/memchr (Status, Notice): New sections.
5168         * modules/argp (Depends-on): Add memchr.
5169         * modules/base64 (Depends-on): Likewise.
5170         * modules/c-strcasestr (Depends-on): Likewise.
5171         * modules/chdir-long (Depends-on): Likewise.
5172         * modules/fnmatch (Depends-on): Likewise.
5173         * modules/getsubopt (Depends-on): Likewise.
5174         * modules/git-merge-changelog (Depends-on): Likewise.
5175         * modules/glob (Depends-on): Likewise.
5176         * modules/strcasestr-simple (Depends-on): Likewise.
5177         * modules/strnlen (Depends-on): Likewise.
5178
5179 2008-11-02  Bruno Haible  <bruno@clisp.org>
5180
5181         Mark 'atexit' obsolete.
5182         * modules/atexit (Status, Notice): New sections.
5183         * modules/chdir-long (Depends-on): Add atexit.
5184         * modules/wait-process (Depends-on): Likewise.
5185
5186 2008-11-02  Bruno Haible  <bruno@clisp.org>
5187
5188         * gnulib-tool: New option --with-obsolete.
5189         (func_usage): Document it.
5190         (func_modules_transitive_closure): Drop obsolete dependencies if
5191         incobsolete is not true.
5192         (func_import): Read and save the incobsolete variable to the cache.
5193
5194 2008-11-02  Bruno Haible  <bruno@clisp.org>
5195
5196         * modules/TEMPLATE-EXTENDED: New field 'Status'.
5197         * gnulib-tool: New option --extract-status.
5198         (func_usage): Document it.
5199         (sed_extract_prog): Recognize it.
5200         (func_get_status): New function.
5201
5202 2008-10-30  Simon Josefsson  <simon@josefsson.org>
5203
5204         * modules/sockets (License): Change from LGPL to LGPLv2+.
5205
5206 2008-10-28  Simon Josefsson  <simon@josefsson.org>
5207
5208         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
5209
5210 2008-10-28  Simon Josefsson  <simon@josefsson.org>
5211
5212         * MODULES.html.sh (Support for systems lacking POSIX:2001):
5213         Mention times and sys_times.
5214         * modules/sys_times, modules/sys_times-tests: New modules.
5215         * modules/times, modules/times-tests: Likewise
5216         * m4/sys_times_h.m4: New file.
5217         * lib/sys_times.in.h: Likewise
5218         * lib/times.c: Likewise.
5219         * tests/test-sys_times.c: Likewise.
5220         * tests/test-times.c: Likewise.
5221         * doc/posix-headers/sys_times.texi: Update.
5222         * doc/posix-functions/times.texi: Update.
5223
5224 2008-10-28  Jim Meyering  <meyering@redhat.com>
5225
5226         * modules/tempname (Depends-on): Add lstat.
5227
5228         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
5229
5230 2008-10-28  Simon Josefsson  <simon@josefsson.org>
5231
5232         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
5233         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
5234         using idiom used elsewhere in gnulib.
5235
5236 2008-10-27  Jim Meyering  <meyering@redhat.com>
5237
5238         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
5239
5240 2008-10-27  Simon Josefsson  <simon@josefsson.org>
5241
5242         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
5243         TESTS_ENVIRONMENT, for shell scripts that needs to call built
5244         programs.
5245         * tests/test-argp-2.sh: Use $EXEEXT when needed.
5246
5247 2008-10-27  Simon Josefsson  <simon@josefsson.org>
5248
5249         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
5250
5251 2008-10-27  Bruno Haible  <bruno@clisp.org>
5252
5253         * tests/test-lstat.c: Include <stdio.h>.
5254
5255 2008-10-27  Simon Josefsson  <simon@josefsson.org>
5256
5257         * modules/lstat-tests: New module.
5258         * tests/test-lstat.c: New file.
5259
5260 2008-10-26  Jim Meyering  <meyering@redhat.com>
5261
5262         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
5263
5264 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5265             Bruno Haible  <bruno@clisp.org>
5266
5267         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
5268         * modules/configmake (Include): Add a note that the include must come
5269         after all system headers.
5270         * lib/javaversion.c: Include configmake.h after all other includes.
5271
5272 2008-10-26  Bruno Haible  <bruno@clisp.org>
5273
5274         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
5275         HAVE_STRUCT_RANDOM_DATA to 1.
5276         (gl_STDLIB_H): Simplify.
5277
5278 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5279
5280         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
5281         substitute HAVE_STRUCT_RANDOM_DATA.
5282         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
5283         random_data.
5284         * modules/stdlib (Makefile.am): Substitute
5285         HAVE_STRUCT_RANDOM_DATA.
5286
5287 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5288
5289         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
5290         * doc/gnulib-intro.texi (Copyright): Likewise.
5291
5292 2008-10-26  Simon Josefsson  <simon@josefsson.org>
5293
5294         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
5295         findings.
5296
5297 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
5298             Bruno Haible  <bruno@clisp.org>
5299
5300         * lib/unistd.in.h: Include <winsock2.h>.
5301         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
5302         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
5303         Provide dummy declarations.
5304         (gethostname): Override.
5305         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
5306         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
5307         gl_PREREQ_SYS_H_WINSOCK2.
5308         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
5309         * doc/posix-functions/gethostname.texi: More details.
5310
5311 2008-10-25  Bruno Haible  <bruno@clisp.org>
5312
5313         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
5314         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
5315         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
5316
5317         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
5318         here ...
5319         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
5320         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
5321         gl_UNISTD_H_DEFAULTS.
5322
5323 2008-10-25  Eric Blake  <ebb9@byu.net>
5324
5325         signbit: avoid spurious compiler failure
5326         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
5327         declarations inside function.
5328
5329 2008-10-24  Simon Josefsson  <simon@josefsson.org>
5330             Bruno Haible  <bruno@clisp.org>
5331
5332         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
5333         * modules/random_r (Depends-on): Add stdint.
5334
5335 2008-10-24  Bruno Haible  <bruno@clisp.org>
5336
5337         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
5338         Eggert.
5339         * modules/strerror (License): Likewise.
5340
5341 2008-10-24  Jim Meyering  <meyering@redhat.com>
5342
5343         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
5344         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
5345
5346 2008-10-24  Eric Blake  <ebb9@byu.net>
5347
5348         getgroups: fix compilation when getgroups is available
5349         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
5350         but with <config.h> override of getgroups disabled.
5351
5352 2008-10-24  Simon Josefsson  <simon@josefsson.org>
5353
5354         * doc/gnulib.texi (Header files): Add note about C++ problems.
5355         Explained by Bruno Haible <bruno@clisp.org>.
5356
5357 2008-10-23  Bruno Haible  <bruno@clisp.org>
5358
5359         Define a dummy SA_NODEFER macro on Interix.
5360         * lib/signal.in.h (SA_NODEFER): Define fallback.
5361         Reported by Aleksey Cheusov <cheusov@tut.by> via
5362         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
5363
5364 2008-10-23  Bruno Haible  <bruno@clisp.org>
5365
5366         * modules/freadahead (License): Change to LGPLv2+.
5367         Suggested by Simon Josefsson.
5368
5369 2008-10-23  Jim Meyering  <meyering@redhat.com>
5370
5371         random_r: new module
5372         * modules/random_r: New file.
5373         * m4/random_r.m4: New file.
5374         * lib/random_r.c: New file, from glibc.
5375         * modules/random_r-tests: New file.
5376         * tests/test-random_r.c: New file.
5377         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
5378          Declare.
5379         (RAND_MAX): Define.
5380         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
5381         * modules/stdlib: Substitute them, too.
5382         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
5383         * doc/glibc-functions/initstate_r.texi: Mention the new module.
5384         * doc/glibc-functions/random_r.texi: Likewise.
5385         * doc/glibc-functions/setstate_r.texi: Likewise.
5386         * doc/glibc-functions/srandom_r.texi: Likewise.
5387         * config/srclist.txt: Mention it.
5388
5389 2008-10-23  David Lutterkort  <lutter@redhat.com>
5390
5391         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
5392         link requirement
5393
5394 2008-10-23  Jim Meyering  <meyering@redhat.com>
5395
5396         selinux-h: mark parameters of stub functions as intentionally unused
5397         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
5398         * lib/se-context.in.h: Likewise.
5399
5400 2008-10-22  Simon Josefsson  <simon@josefsson.org>
5401
5402         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
5403
5404 2008-10-22  Simon Josefsson  <simon@josefsson.org>
5405
5406         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
5407
5408 2008-10-22  Eric Blake  <ebb9@byu.net>
5409
5410         glthread/thread: avoid compiler warning
5411         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
5412         Add unreachable abort to silence compiler.
5413
5414 2008-10-22  Eric Blake  <ebb9@byu.net>
5415
5416         netdb: also supply struct addrinfo for cygwin 1.5.x
5417         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
5418         older cygwin.
5419         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
5420         cygwin.
5421         * doc/posix-headers/netdb.texi (netdb.h): Document this.
5422
5423 2008-10-22  Bruno Haible  <bruno@clisp.org>
5424
5425         * users.txt: Update entry about pspp.
5426
5427 2008-10-21  Bruno Haible  <bruno@clisp.org>
5428
5429         Simplification.
5430         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
5431         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
5432
5433         Simplification.
5434         * lib/ioctl.c (ioctl): Don't undefine.
5435         * lib/socket.c (socket): Don't undefine.
5436
5437         Remove unused module indicator macros.
5438         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
5439         GNULIB_$1 as a C macro.
5440
5441         * doc/posix-functions/close.texi: Undo last change.
5442         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
5443         Windows platforms.
5444
5445 2008-10-21  Bruno Haible  <bruno@clisp.org>
5446
5447         Add gethostname() declaration to <unistd.h>.
5448         * lib/unistd.in.h (gethostname): New declaration.
5449         * lib/gethostname.c: Include <unistd.h>.
5450         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
5451         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
5452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
5453         and HAVE_GETHOSTNAME.
5454         * modules/gethostname (Depends-on): Add unistd.
5455         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5456         (Include): Specify <unistd.h>.
5457         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
5458         HAVE_GETHOSTNAME.
5459         * tests/test-gethostname.c: Include <unistd.h> first.
5460
5461 2008-10-21  Bruno Haible  <bruno@clisp.org>
5462
5463         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
5464         * modules/select-tests (Depends-on): Likewise.
5465         Reported by Simon Josefsson.
5466
5467 2008-10-21  Simon Josefsson  <simon@josefsson.org>
5468
5469         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
5470         * lib/accept.c: New file, based on winsock.c.
5471         * lib/bind.c: New file, based on winsock.c.
5472         * lib/connect.c: New file, based on winsock.c.
5473         * lib/getpeername.c: New file, based on winsock.c.
5474         * lib/getsockname.c: New file, based on winsock.c.
5475         * lib/getsockopt.c: New file, based on winsock.c.
5476         * lib/ioctl.c: New file, based on winsock.c.
5477         * lib/listen.c: New file, based on winsock.c.
5478         * lib/recv.c: New file, based on winsock.c.
5479         * lib/recvfrom.c: New file, based on winsock.c.
5480         * lib/send.c: New file, based on winsock.c.
5481         * lib/sendto.c: New file, based on winsock.c.
5482         * lib/setsockopt.c: New file, based on winsock.c.
5483         * lib/shutdown.c: New file, based on winsock.c.
5484         * lib/socket.c: New file, based on winsock.c.
5485         * lib/w32sock.h: New file, based on winsock.c.
5486         * lib/winsock.c: Remove file.
5487         * modules/accept: Likewise.
5488         * modules/bind: Likewise.
5489         * modules/connect: Likewise.
5490         * modules/getpeername: Likewise.
5491         * modules/getsockname: Likewise.
5492         * modules/getsockopt: Likewise.
5493         * modules/ioctl: Likewise.
5494         * modules/listen: Likewise.
5495         * modules/recv: Likewise.
5496         * modules/recvfrom: Likewise.
5497         * modules/send: Likewise.
5498         * modules/sendto: Likewise.
5499         * modules/setsockopt: Likewise.
5500         * modules/shutdown: Likewise.
5501         * modules/socket: Use socket.c instead of winsock.c.
5502         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
5503         * doc/posix-functions/accept.texi: Doc fix.
5504         * doc/posix-functions/bind.texi: Doc fix.
5505         * doc/posix-functions/close.texi: Doc fix.
5506         * doc/posix-functions/connect.texi: Doc fix.
5507         * doc/posix-functions/getpeername.texi: Doc fix.
5508         * doc/posix-functions/getsockname.texi: Doc fix.
5509         * doc/posix-functions/getsockopt.texi: Doc fix.
5510         * doc/posix-functions/ioctl.texi: Doc fix.
5511         * doc/posix-functions/listen.texi: Doc fix.
5512         * doc/posix-functions/recv.texi: Doc fix.
5513         * doc/posix-functions/recvfrom.texi: Doc fix.
5514         * doc/posix-functions/send.texi: Doc fix.
5515         * doc/posix-functions/sendto.texi: Doc fix.
5516         * doc/posix-functions/setsockopt.texi: Doc fix.
5517         * doc/posix-functions/shutdown.texi: Doc fix.
5518         * doc/posix-functions/socket.texi: Doc fix.
5519
5520 2008-10-20  Bruno Haible  <bruno@clisp.org>
5521
5522         Take into account the role of SIGABRT_COMPAT on Windows 2008.
5523         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
5524         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
5525         as an alias for SIGABRT.
5526         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
5527         (sigaction): Map it to SIGABRT.
5528         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
5529
5530 2008-10-20  Bruno Haible  <bruno@clisp.org>
5531
5532         * lib/fts.c: Don't include lstat.h.
5533         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
5534
5535         Move the lstat() declaration to <sys/stat.h>.
5536         * lib/lstat.h: Remove file.
5537         * lib/sys_stat.in.h: Add special invocation convention.
5538         (lstat): New declaration.
5539         * lib/lstat.c (orig_lstat): New function.
5540         (rpl_lstat): Use orig_lstat instead of lstat.
5541         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
5542         AC_C_INLINE. Set REPLACE_LSTAT.
5543         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
5544         and REPLACE_LSTAT.
5545         * modules/lstat (Files): Remove lib/lstat.h.
5546         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
5547         (Include): Specify <sys/stat.h> instead of lstat.h.
5548         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
5549         REPLACE_LSTAT.
5550         * NEWS: Mention the change.
5551
5552 2008-10-20  Bruno Haible  <bruno@clisp.org>
5553
5554         * modules/posix_spawn-tests: New file.
5555         * tests/test-posix_spawn3.c: New file.
5556
5557 2008-10-20  Bruno Haible  <bruno@clisp.org>
5558
5559         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
5560         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
5561         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
5562         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
5563         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
5564
5565 2008-10-20  Bruno Haible  <bruno@clisp.org>
5566
5567         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
5568         of posix_spawn on AIX 5.3.
5569
5570 2008-10-20  Bruno Haible  <bruno@clisp.org>
5571
5572         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
5573
5574 2008-10-20  Bruno Haible  <bruno@clisp.org>
5575
5576         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
5577         of AC_LANG_PROGRAM.
5578
5579 2008-10-20  Simon Josefsson  <simon@josefsson.org>
5580
5581         * lib/netdb.in.h: Don't define GNU specific constants until they
5582         are supported or needed.  Reported by Bruno Haible
5583         <bruno@clisp.org>.
5584
5585 2008-10-20  Simon Josefsson  <simon@josefsson.org>
5586
5587         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
5588
5589 2008-10-20  Simon Josefsson  <simon@josefsson.org>
5590
5591         * lib/getaddrinfo.h: Remove file.
5592         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
5593         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
5594         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
5595         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
5596         * modules/netdb: Substitute GNULIB_GETADDRINFO.
5597         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
5598         * tests/test-getaddrinfo.c: Likewise.
5599         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
5600         * NEWS: Mention change.
5601
5602 2008-10-19  Bruno Haible  <bruno@clisp.org>
5603
5604         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
5605
5606 2008-10-19  Bruno Haible  <bruno@clisp.org>
5607
5608         * lib/wait-process.c: Include simply <sys/wait.h>.
5609         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
5610         WIFSTOPPED): Remove fallback definitions.
5611         * modules/wait-process (Depends-on): Add sys_wait.
5612
5613         New module 'sys_wait'.
5614         * modules/sys_wait: New file.
5615         * lib/sys_wait.in.h: New file, partially copied from
5616         lib/wait-process.c.
5617         * m4/sys_wait_h.m4: New file.
5618         * doc/posix-headers/sys_wait.texi: Mention the new module.
5619
5620 2008-10-19  Bruno Haible  <bruno@clisp.org>
5621
5622         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
5623
5624 2008-10-19  Bruno Haible  <bruno@clisp.org>
5625
5626         Assume that waitpid() fills an 'int' status, not a 'union wait'.
5627         * lib/wait-process.c (WAIT_T): Remove type.
5628         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
5629         (wait_subprocess): Update.
5630
5631 2008-10-19  Bruno Haible  <bruno@clisp.org>
5632
5633         New module 'atoll'.
5634         * modules/atoll: New file.
5635         * lib/stdlib.in.h (atoll): New declaration.
5636         * lib/atoll.c: New file, from glibc with modifications.
5637         * m4/atoll.m4: New file.
5638         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
5639         HAVE_ATOLL.
5640         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
5641         * doc/posix-functions/atoll.texi: Mention the new module.
5642
5643 2008-10-19  Bruno Haible  <bruno@clisp.org>
5644
5645         Add strtoull() declaration to <stdlib.h>.
5646         * lib/stdlib.in.h (strtoull): New declaration.
5647         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
5648         Set HAVE_STRTOULL.
5649         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
5650         HAVE_STRTOULL.
5651         * modules/strtoull (Depends-on): Add stdlib.
5652         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5653         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
5654         HAVE_STRTOULL.
5655
5656 2008-10-19  Bruno Haible  <bruno@clisp.org>
5657
5658         Add strtoll() declaration to <stdlib.h>.
5659         * lib/stdlib.in.h (strtoll): New declaration.
5660         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
5661         Set HAVE_STRTOLL.
5662         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
5663         HAVE_STRTOLL.
5664         * modules/strtoll (Depends-on): Add stdlib.
5665         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5666         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
5667
5668 2008-10-19  Bruno Haible  <bruno@clisp.org>
5669
5670         * modules/bcopy (Depends-on): Add strings.
5671         (Include): Specify <strings.h>.
5672
5673 2008-10-19  Bruno Haible  <bruno@clisp.org>
5674
5675         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
5676
5677 2008-10-19  Bruno Haible  <bruno@clisp.org>
5678
5679         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
5680         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
5681         mingw.
5682
5683 2008-10-19  Bruno Haible  <bruno@clisp.org>
5684
5685         * lib/atanl.c: Don't include isnanl.h.
5686         * lib/cosl.c: Likewise.
5687         * lib/ldexpl.c: Likewise.
5688         * lib/logl.c: Likewise.
5689         * lib/sinl.c: Likewise.
5690         * lib/sqrtl.c: Likewise.
5691         * lib/tanl.c: Likewise.
5692
5693         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
5694         * lib/isnanf.h: Remove file.
5695         * lib/isnand.h: Remove file.
5696         * lib/isnanl.h: Remove file.
5697         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
5698         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
5699         macros.
5700         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
5701         HAVE_ISNANF, don't define it as a C macro.
5702         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
5703         HAVE_ISNAND, don't define it as a C macro.
5704         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
5705         HAVE_ISNANL, don't define it as a C macro.
5706         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
5707         HAVE_ISNAN[FDL].
5708         * modules/isnanf (Files): Remove lib/isnanf.h.
5709         (Depends-on): Add math.
5710         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5711         (Include): Specify <math.h> instead of isnanf.h.
5712         * modules/isnand (Files): Remove lib/isnand.h.
5713         (Depends-on): Add math.
5714         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5715         (Include): Specify <math.h> instead of isnand.h.
5716         * modules/isnanl (Files): Remove lib/isnanl.h.
5717         (Depends-on): Add math.
5718         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
5719         (Include): Specify <math.h> instead of isnanl.h.
5720         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
5721         HAVE_ISNAN[FDL].
5722         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
5723         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
5724         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
5725         * NEWS: Mention the change.
5726
5727 2008-10-18  Bruno Haible  <bruno@clisp.org>
5728
5729         Add getusershell(), setusershell(), endusershell() declarations to
5730         <unistd.h>.
5731         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
5732         declarations.
5733         * lib/getusershell.c: Include unistd.h.
5734         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
5735         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
5736         HAVE_GETUSERSHELL.
5737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
5738         and HAVE_GETUSERSHELL.
5739         * modules/getusershell (Depends-on): Add unistd, extensions.
5740         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5741         (Include): Specify <unistd.h>.
5742         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
5743         HAVE_GETUSERSHELL.
5744
5745 2008-10-18  Bruno Haible  <bruno@clisp.org>
5746
5747         Add a getloadavg() declaration to <stdlib.h>.
5748         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
5749         getloadavg declaration.
5750         (getloadavg): New declaration.
5751         * lib/getloadavg.c: Include <stdlib.h> first.
5752         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
5753         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
5754         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
5755         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
5756         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
5757         * modules/getloadavg (Depends-on): Add stdlib, extensions.
5758         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5759         (Include): Specify <stdlib.h>.
5760         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
5761         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
5762
5763 2008-10-18  Bruno Haible  <bruno@clisp.org>
5764
5765         * lib/dirchownmod.c: Don't include lchmod.h.
5766
5767         Move the lchmod() declaration to <sys/stat.h>.
5768         * lib/lchmod.h: Remove file.
5769         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
5770         (lchmod): New declaration, moved here from lib/lchown.h.
5771         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
5772         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
5773         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
5774         and HAVE_LCHMOD.
5775         * modules/lchmod (Files): Remove lib/lchmod.h.
5776         (Depends-on): Add sys_stat, extensions.
5777         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
5778         (Include): Specify <sys/stat.h> instead of lchmod.h.
5779         * modules/sys_stat (Depends-on): Add link-warning.
5780         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
5781         definition of GL_LINK_WARNING.
5782         * NEWS: Mention the change.
5783
5784 2008-10-18  Bruno Haible  <bruno@clisp.org>
5785
5786         * lib/fchdir.c: Don't include dirfd.h.
5787         * lib/fts.c: Likewise.
5788         * lib/getcwd.c: Likewise.
5789         * lib/glob.c: Likewise.
5790
5791         Move the dirfd() declaration to <dirent.h>.
5792         * lib/dirfd.h: Remove file.
5793         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
5794         (dirfd): New declaration.
5795         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
5796         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
5797         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
5798         HAVE_DECL_DIRFD.
5799         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
5800         HAVE_DECL_DIRFD.
5801         * modules/dirfd (Files): Remove lib/dirfd.h.
5802         (Depends-on): Add dirent, extensions.
5803         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
5804         (Include): Specify <dirent.h> instead of dirfd.h.
5805         * modules/dirent (Depends-on): Add link-warning.
5806         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
5807         definition of GL_LINK_WARNING.
5808         * NEWS: Mention the change.
5809
5810 2008-10-18  Bruno Haible  <bruno@clisp.org>
5811
5812         Move the euidaccess() declaration to <unistd.h>.
5813         * lib/euidaccess.h: Remove file.
5814         * lib/unistd.in.h (euidaccess): New declaration.
5815         * lib/euidaccess.c: Don't include euidaccess.h.
5816         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
5817         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
5818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
5819         and HAVE_EUIDACCESS.
5820         * modules/euidaccess (Files): Remove lib/euidaccess.h.
5821         (Depends-on): Add unistd.
5822         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5823         (Include): Specify <unistd.h> instead of euidaccess.h.
5824         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
5825         HAVE_EUIDACCESS.
5826         * NEWS: Mention the change.
5827
5828 2008-10-18  Bruno Haible  <bruno@clisp.org>
5829
5830         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
5831
5832         Move the getdomainname() declaration to <unistd.h>.
5833         * lib/getdomainname.h: Remove file.
5834         * lib/unistd.in.h (getdomainname): New declaration.
5835         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
5836         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
5837         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
5838         HAVE_GETDOMAINNAME.
5839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5840         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
5841         * modules/getdomainname (Files): Remove lib/getdomainname.h.
5842         (Depends-on): Add unistd, extensions.
5843         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
5844         (Includes): Specify <unistd.h> instead of getdomainname.h.
5845         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
5846         HAVE_GETDOMAINNAME.
5847         * NEWS: Mention the change.
5848
5849 2008-10-18  Bruno Haible  <bruno@clisp.org>
5850
5851         * modules/dirent: New file.
5852         * m4/dirent_h.m4: New file.
5853         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
5854         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
5855         * modules/fchdir (Files): Remove lib/dirent.in.h.
5856         (Depends-on): Add dirent.
5857         (Makefile.am): Move rules to modules/dirent.
5858         * doc/posix-headers/dirent.texi: Mention the new module.
5859
5860 2008-10-18  Bruno Haible  <bruno@clisp.org>
5861
5862         Avoid -Wunused-parameter warnings in public gnulib header files.
5863         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
5864         macro.
5865         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
5866
5867 2008-10-18  Bruno Haible  <bruno@clisp.org>
5868
5869         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
5870         * doc/glibc-functions/error.texi: Mention the module 'error'.
5871         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
5872         * doc/glibc-functions/getdomainname.texi: Mention the module
5873         'getdomainname'.
5874         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
5875         * doc/glibc-functions/getpagesize.texi: Mention the module
5876         'getpagesize'.
5877         * doc/glibc-functions/getusershell.texi: Mention the module
5878         'getusershell'.
5879         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
5880         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
5881         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
5882         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
5883         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
5884         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
5885         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
5886         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
5887         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
5888         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
5889         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
5890         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
5891         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
5892         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
5893
5894 2008-10-17  Bruno Haible  <bruno@clisp.org>
5895
5896         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
5897         HP-UX and IRIX, use -0.0L.
5898         * tests/test-ceill.c (minus_zero): Likewise.
5899         * tests/test-floorl.c (minus_zero): Likewise.
5900         * tests/test-frexpl.c (minus_zero): Likewise.
5901         * tests/test-isnan.c (minus_zerol): Likewise.
5902         * tests/test-isnanl.h (minus_zero): Likewise.
5903         * tests/test-ldexpl.c (minus_zero): Likewise.
5904         * tests/test-roundl.c (minus_zero): Likewise.
5905         * tests/test-signbit.c (minus_zerol): Likewise.
5906         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
5907         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
5908         * tests/test-truncl.c (minus_zero): Likewise.
5909         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
5910         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
5911         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
5912         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
5913
5914 2008-10-17  Bruno Haible  <bruno@clisp.org>
5915
5916         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
5917         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
5918         that it gets activated only for gcc >= 3.0.
5919         * lib/dirent.in.h: Likewise.
5920         * lib/errno.in.h: Likewise.
5921         * lib/fcntl.in.h: Likewise.
5922         * lib/float.in.h: Likewise.
5923         * lib/iconv.in.h: Likewise.
5924         * lib/inttypes.in.h: Likewise.
5925         * lib/locale.in.h: Likewise.
5926         * lib/math.in.h: Likewise.
5927         * lib/netdb.in.h: Likewise.
5928         * lib/netinet_in.in.h: Likewise.
5929         * lib/search.in.h: Likewise.
5930         * lib/signal.in.h: Likewise.
5931         * lib/spawn.in.h: Likewise.
5932         * lib/stdarg.in.h: Likewise.
5933         * lib/stdint.in.h: Likewise.
5934         * lib/stdio.in.h: Likewise.
5935         * lib/stdlib.in.h: Likewise.
5936         * lib/string.in.h: Likewise.
5937         * lib/strings.in.h: Likewise.
5938         * lib/sys_file.in.h: Likewise.
5939         * lib/sys_ioctl.in.h: Likewise.
5940         * lib/sys_select.in.h: Likewise.
5941         * lib/sys_socket.in.h: Likewise.
5942         * lib/sys_stat.in.h: Likewise.
5943         * lib/sys_time.in.h: Likewise.
5944         * lib/sysexits.in.h: Likewise.
5945         * lib/time.in.h: Likewise.
5946         * lib/unistd.in.h: Likewise.
5947         * lib/wchar.in.h: Likewise.
5948         * lib/wctype.in.h: Likewise.
5949         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
5950
5951 2008-10-17  Jim Meyering  <meyering@redhat.com>
5952
5953         ignore-value: don't depend on inline module
5954         * modules/ignore-value (Depends-on): Remove 'inline'.
5955         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
5956         Suggestion from Bruno Haible.
5957
5958 2008-10-17  Bruno Haible  <bruno@clisp.org>
5959
5960         New implementation of condition variables for Win32.
5961         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
5962         (gl_linked_waitqueue_t): New type.
5963         (gl_cond_t): Use it.
5964         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
5965         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
5966         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
5967         (glthread_cond_init_func, glthread_cond_wait_func,
5968         glthread_cond_timedwait_func, glthread_cond_signal_func,
5969         glthread_cond_broadcast_func, glthread_cond_destroy_func):
5970         Reimplemented on the basis of gl_linked_waitqueue_t.
5971         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
5972         gl_waitqueue_t.
5973         (gl_rwlock_t): Update.
5974         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
5975
5976 2008-10-17  Simon Josefsson  <simon@josefsson.org>
5977
5978         * modules/recvfrom (Depends-on): Add dependency on getpeername.
5979         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
5980
5981 2008-10-17  Jim Meyering  <meyering@redhat.com>
5982
5983         ignore-value: new module
5984         * modules/ignore-value: New file.
5985         * lib/ignore-value.h: New file.
5986         * MODULES.html.sh (Compiler warning management): New section,
5987         just for this module.  More to come.
5988
5989 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
5990
5991         open-safer.c: avoid 'signed and unsigned in conditional...' warning
5992         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
5993         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
5994
5995 2008-10-16  Jim Meyering  <meyering@redhat.com>
5996
5997         openat-die.c: avoid 'no previous prototype' warning
5998         * lib/openat-die.c: Include "openat.h".
5999         Reported by Reuben Thomas <rrt@sc3d.org>.
6000
6001 2008-10-16  Simon Josefsson  <simon@josefsson.org>
6002
6003         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
6004         * lib/netdb.in.h: Fix typo.
6005         Reported by Bruno Haible  <bruno@clisp.org>
6006
6007         * lib/netdb.in.h: Include sys/socket.h for platforms without
6008         netdb.h, to get structures like hostent on MinGW.
6009         * modules/netdb (Depends-on): Add sys_socket.
6010
6011 2008-10-15  Simon Josefsson  <simon@josefsson.org>
6012
6013         * modules/netdb, modules/netdb-tests: New file.
6014         * m4/netdb_h.m4: New file.
6015         * lib/netdb.in.h: Add, currently just an empty file pending
6016         definitions.
6017         * tests/test-netdb.c: New file.
6018         * doc/posix-headers/netdb.texi: Mention that we replace it if
6019         needed.
6020         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
6021         netdb.
6022
6023 2008-10-15  Simon Josefsson  <simon@josefsson.org>
6024
6025         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
6026         with code.
6027
6028 2008-10-13  Bruno Haible  <bruno@clisp.org>
6029
6030         * lib/glthread/cond.c (glthread_cond_wait_func,
6031         glthread_cond_timedwait_func): Add a comment.
6032
6033 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
6034
6035         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
6036         * tests/test-select.c: Likewise,
6037
6038 2008-10-13  Bruno Haible  <bruno@clisp.org>
6039
6040         * lib/glthread/cond.c (glthread_cond_wait_func,
6041         glthread_cond_timedwait_func): Fix variable name.
6042         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
6043
6044 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
6045
6046         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
6047         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
6048         struct sockaddr.sa_len.
6049         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
6050
6051 2008-10-13  Simon Josefsson  <simon@josefsson.org>
6052
6053         * build-aux/pmccabe2html: Add css and css_url parameters.
6054
6055 2008-10-12  Bruno Haible  <bruno@clisp.org>
6056
6057         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
6058         calling aclx_get.
6059         Reported by Rainer Tammer <tammer@tammer.net>.
6060
6061 2008-10-12  Bruno Haible  <bruno@clisp.org>
6062
6063         Use msvcrt aware primitives for creation/termination of Win32 threads.
6064         * lib/glthread/thread.c: Include <process.h>.
6065         (glthread_create_func): Use _beginthreadex instead of CreateThread.
6066         (wrapper_func): Update signature.
6067         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
6068
6069 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
6070             Bruno Haible  <bruno@clisp.org>
6071
6072         Provide a Win32 implementation of the 'cond' module.
6073         * lib/glthread/cond.h [USE_WIN32]: New implementation.
6074         * lib/glthread/cond.c (glthread_cond_init_func,
6075         glthread_cond_wait_func, glthread_cond_timedwait_func,
6076         glthread_cond_signal_func, glthread_cond_broadcast_func,
6077         glthread_cond_destroy_func) [USE_WIN32]: New functions.
6078         * modules/cond (Dependencies): Add gettimeofday.
6079
6080 2008-10-11  Bruno Haible  <bruno@clisp.org>
6081
6082         Make sleep work on older versions of mingw.
6083         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
6084         only whether it exists.
6085         * doc/posix-functions/sleep.texi: Mention the problem with older
6086         versions of mingw.
6087
6088 2008-10-11  Bruno Haible  <bruno@clisp.org>
6089
6090         New module 'shutdown'.
6091         * modules/shutdown: New file.
6092         * lib/sys_socket.in.h (shutdown): New declaration.
6093         * lib/winsock.c (shutdown): New function.
6094         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
6095         GNULIB_SHUTDOWN.
6096         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
6097         * doc/posix-functions/shutdown.texi: Document the new module.
6098
6099 2008-10-11  Jim Meyering  <meyering@redhat.com>
6100
6101         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
6102
6103 2008-10-11  Bruno Haible  <bruno@clisp.org>
6104
6105         New module 'fclose'.
6106         * modules/fclose: New file.
6107         * lib/stdio.in.h (fclose): New declaration.
6108         * lib/fclose.c: New file.
6109         * m4/fclose.m4: New file.
6110         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
6111         REPLACE_FCLOSE.
6112         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
6113         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
6114         REPLACE_FCLOSE.
6115         * modules/close (Depends-on): fclose.
6116         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
6117
6118 2008-10-11  Bruno Haible  <bruno@clisp.org>
6119
6120         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
6121         set errno and don't call _close.
6122
6123 2008-10-10  Bruno Haible  <bruno@clisp.org>
6124
6125         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
6126         ACL, not afterwards. Fixes test failure on Cygwin.
6127
6128 2008-10-09  Ben Pfaff  <blp@gnu.org>
6129
6130         * build-aux/announce-gen: Fix gnulib version related part of usage
6131         message.  Die with a useful error message if no tarballs are
6132         found.
6133
6134 2008-10-10  Jim Meyering  <meyering@redhat.com>
6135
6136         bootstrap: use git's --depth=N option only if it's supported
6137         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
6138         recognize the --depth option.  Reported by Pádraig Brady.
6139
6140 2008-10-09  Bruno Haible  <bruno@clisp.org>
6141
6142         New module 'ioctl'.
6143         * modules/ioctl: New file.
6144         * lib/sys_socket.in.h (ioctl): Remove declaration.
6145         * lib/winsock.c: Include <sys/ioctl.h>.
6146         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
6147         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
6148         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
6149         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
6150         * doc/posix-functions/ioctl.texi: Mention the new module.
6151
6152 2008-10-09  Bruno Haible  <bruno@clisp.org>
6153
6154         New module 'sys_ioctl'.
6155         * lib/sys_ioctl.in.h: New file.
6156         * m4/sys_ioctl_h.m4: New file.
6157         * modules/sys_ioctl: New file.
6158         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
6159
6160 2008-10-09  Bruno Haible  <bruno@clisp.org>
6161
6162         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
6163         * lib/winsock.c: Include <stdarg.h>.
6164         (rpl_ioctl): Change to second argument 'int' and then varargs.
6165
6166 2008-10-09  Bruno Haible  <bruno@clisp.org>
6167
6168         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
6169         when the sys_socket module is present and the system has <winsock2.h>.
6170
6171 2008-10-09  Bruno Haible  <bruno@clisp.org>
6172
6173         * doc/posix-functions/close.texi: Mention module 'close' instead of
6174         module 'sys_socket'.
6175
6176 2008-10-09  Bruno Haible  <bruno@clisp.org>
6177
6178         * doc/glibc-headers/sys_ioctl.texi: New file.
6179         * doc/gnulib.texi: Include it.
6180
6181 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6182             Bruno Haible  <bruno@clisp.org>
6183
6184         Combine the two replacements of 'close'.
6185         * lib/sys_socket.in.h (close): Define to a reminder to include
6186         <unistd.h>.
6187         (_gl_close_fd_maybe_socket): New declaration.
6188         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
6189         * lib/winsock.c (close): Remove undefinition.
6190         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
6191         needed for the gnulib module 'close'.
6192         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
6193         define to an error symbol or to a warning, if suitable.
6194         * lib/close.c: Include <sys/socket.h>.
6195         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
6196         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
6197         UNISTD_H_HAVE_WINSOCK2_H.
6198         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
6199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6200         UNISTD_H_HAVE_WINSOCK2_H.
6201         * modules/sys_socket (Files): Add m4/unistd_h.m4.
6202         (configure.ac): Set a module indicator.
6203         (Makefile.am): Substitute GNULIB_CLOSE.
6204         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
6205         * modules/poll-tests (Depends-on): Add close.
6206         * modules/select-tests (Depends-on): Likewise.
6207
6208 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6209             Bruno Haible  <bruno@clisp.org>
6210
6211         New module 'close'.
6212         * modules/close: New file.
6213         * lib/unistd.in.h (close): Move declaration out of the
6214         FCHDIR_REPLACEMENT scope.
6215         (_gl_unregister_fd): New declaration.
6216         * lib/close.c: New file.
6217         * lib/fchdir.c (rpl_close): Remove function.
6218         * m4/close.m4: New file.
6219         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
6220         close.
6221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
6222         REPLACE_CLOSE.
6223         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
6224         REPLACE_CLOSE.
6225         * modules/fchdir (Depends-on): Add close.
6226
6227 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6228             Bruno Haible  <bruno@clisp.org>
6229
6230         * lib/fcntl.in.h (open): Simplify conditionals.
6231         (_gl_register_fd): New declaration.
6232         * lib/fchdir.c (rpl_open): Remove function.
6233         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
6234         also.
6235         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
6236         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
6237         open.
6238
6239 2008-10-09  Jim Meyering  <meyering@redhat.com>
6240
6241         GNUmakefile: use the more name-space-friendly "_version"
6242         * top/GNUmakefile (_dummy): Update.
6243         (_version): Rename from "version".
6244
6245 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6246             Bruno Haible  <bruno@clisp.org>
6247
6248         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
6249         rpl_close.
6250         (_gl_register_fd): New function, extracted from rpl_open.
6251         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
6252         (rpl_open, rpl_opendir): Use _gl_register_fd.
6253
6254 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
6255
6256         Fix organization of 'open' replacement.
6257         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
6258         (gl_FUNC_OPEN): Use it.
6259         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
6260
6261 2008-10-08  Bruno Haible  <bruno@clisp.org>
6262
6263         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
6264
6265 2008-10-08  Simon Josefsson  <simon@josefsson.org>
6266
6267         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
6268         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
6269         listen).
6270
6271 2008-10-08  Eric Blake  <ebb9@byu.net>
6272
6273         GNUmakefile: add 'make version' target
6274         * top/GNUmakefile (_curr-ver): Split version update rules...
6275         (version): ...into a target.
6276
6277 2008-10-07  Bruno Haible  <bruno@clisp.org>
6278
6279         Use a more portable replacement expression for -0.0L.
6280         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
6281         instead of -0.0L. Fix m4 quotation.
6282
6283         * tests/test-signbit.c: Include <float.h>.
6284         (minus_zero): New variable.
6285         (test_signbitl): Use minus_zero instead of -zero.
6286         * modules/signbit-tests (Depends-on): Add float.
6287
6288         * tests/test-ceill.c: Include <float.h>.
6289         (zero): Remove variable.
6290         (minus_zero): New variable.
6291         (main): Use minus_zero instead of -zero.
6292         * modules/ceill-tests (Depends-on): Add float.
6293
6294         * tests/test-floorl.c: Include <float.h>.
6295         (zero): Remove variable.
6296         (minus_zero): New variable.
6297         (main): Use minus_zero instead of -zero.
6298         * modules/floorl-tests (Depends-on): Add float.
6299
6300         * tests/test-roundl.c: Include <float.h>.
6301         (zero): Remove variable.
6302         (minus_zero): New variable.
6303         (main): Use minus_zero instead of -zero.
6304         * modules/roundl-tests (Depends-on): Add float.
6305
6306         * tests/test-truncl.c: Include <float.h>.
6307         (zero): Remove variable.
6308         (minus_zero): New variable.
6309         (main): Use minus_zero instead of -zero.
6310         * modules/truncl-tests (Depends-on): Add float.
6311
6312         * tests/test-frexpl.c (zero): Remove variable.
6313         (minus_zero): New variable.
6314         (main): Use minus_zero instead of -zero.
6315         * modules/frexpl-tests (Depends-on): Add float.
6316
6317         * tests/test-isnan.c (zerol): Remove variable.
6318         (minus_zerol): New variable.
6319         (test_long_double): Use minus_zerol instead of -zerol.
6320         * modules/isnan-tests (Depends-on): Add float.
6321
6322         * tests/test-isnanl.h (zero): Remove variable.
6323         (minus_zero): New variable.
6324         (main): Use minus_zero instead of -zero.
6325         * modules/isnanl-nolibm-tests (Depends-on): Add float.
6326         * modules/isnanl-tests (Depends-on): Add float.
6327
6328         * tests/test-ldexpl.c (zero): Remove variable.
6329         (minus_zero): New variable.
6330         (main): Use minus_zero instead of -zero.
6331         * modules/ldexpl-tests (Depends-on): Add float.
6332
6333         * tests/test-snprintf-posix.h (zerol): Remove variable.
6334         (minus_zerol): New variable.
6335         (test_function): Use minus_zerol instead of -zerol.
6336         * modules/snprintf-posix-tests (Depends-on): Add float.
6337         * modules/vsnprintf-posix-tests (Depends-on): Add float.
6338
6339         * tests/test-sprintf-posix.h (zerol): Remove variable.
6340         (minus_zerol): New variable.
6341         (test_function): Use minus_zerol instead of -zerol.
6342         * modules/sprintf-posix-tests (Depends-on): Add float.
6343         * modules/vsprintf-posix-tests (Depends-on): Add float.
6344
6345         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
6346         (minus_zerol): New variable.
6347         (test_function): Use minus_zerol instead of -zerol.
6348         * modules/vasnprintf-posix-tests (Depends-on): Add float.
6349
6350         * tests/test-vasprintf-posix.c (zerol): Remove variable.
6351         (minus_zerol): New variable.
6352         (test_function): Use minus_zerol instead of -zerol.
6353         * modules/vasprintf-posix-tests (Depends-on): Add float.
6354
6355 2008-10-07  Simon Josefsson  <simon@josefsson.org>
6356
6357         * MODULES.html.sh (Support for building documentation): Mention
6358         pmccabe2html.  Sort entries.
6359
6360         Add pmccabe2html module, from gnupdf.
6361         * build-aux/pmccabe.css: New file.
6362         * build-aux/pmccabe2html: New file.
6363         * m4/pmccabe2html.m4: New file.
6364         * modules/pmccabe2html: New file.
6365
6366 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
6367
6368         flock: new module
6369         * MODULES.html.sh: Add to list of modules.
6370         * lib/flock.c: flock implementation for Windows and Unix systems
6371         which have fcntl.
6372         * doc/glibc-functions/flock.texi: Update documentation.
6373         * lib/sys_file.in.h: <sys/file.h> header file.
6374         * m4/flock.m4: M4 macros.
6375         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
6376         * modules/flock: flock module.
6377         * modules/flock-tests: flock tests module.
6378         * modules/sys_file: sys/file.h module.
6379         * tests/test-flock.c: test suite for flock.
6380
6381 2008-10-06  Jim Meyering  <meyering@redhat.com>
6382
6383         bootstrap: check for LT_INIT more portably still ;-)
6384         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
6385         Spotted by Bruno Haible.
6386
6387 2008-10-06  Eric Blake  <ebb9@byu.net>
6388
6389         test-signbit: avoid tripping Irix cc bug on -0.0L
6390         * tests/test-signbit.c (minus_zerol): Delete, and replace with
6391         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
6392         entire testsuite consistent and avoids an Irix 6.2 bug.
6393
6394 2008-10-05  Bruno Haible  <bruno@clisp.org>
6395             Jim Meyering  <jim@meyering.net>
6396
6397         Add an option for ignoring EPIPE during close_stdout.
6398         * lib/closeout.h: Include <stdbool.h>.
6399         (close_stdout_set_ignore_EPIPE): New declaration.
6400         * lib/closeout.c: Include <stdbool.h>.
6401         (ignore_EPIPE): New variable.
6402         (close_stdout_set_ignore_EPIPE): New function.
6403         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
6404         * lib/close-stream.c (close_stream): Mention the possible EPIPE
6405         failure.
6406         * modules/closeout (Depends-on): Add stdbool.
6407
6408 2008-10-05  Bruno Haible  <bruno@clisp.org>
6409
6410         * modules/accept: New file.
6411         * modules/bind: New file.
6412         * modules/connect: New file.
6413         * modules/getpeername: New file.
6414         * modules/getsockname: New file.
6415         * modules/getsockopt: New file.
6416         * modules/listen: New file.
6417         * modules/recv: New file.
6418         * modules/recvfrom: New file.
6419         * modules/send: New file.
6420         * modules/sendto: New file.
6421         * modules/setsockopt: New file.
6422         * modules/socket: New file.
6423         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
6424         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6425         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
6426         the particular module is requested. Add a link warning when the
6427         particular module is not requested.
6428         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
6429         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
6430         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
6431         the particular module is requested.
6432         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
6433         gl_SYS_SOCKET_H_DEFAULTS): New macros.
6434         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
6435         * modules/sys_socket (Depends-on): Add link-warning.
6436         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
6437         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
6438         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
6439         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
6440         GL_LINK_WARNING.
6441         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
6442         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
6443         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
6444         * doc/posix-functions/getpeername.texi: Mention the new module
6445         'getpeername'.
6446         * doc/posix-functions/getsockname.texi: Mention the new module
6447         'getsockname'.
6448         * doc/posix-functions/getsockopt.texi: Mention the new module
6449         'getsockopt'.
6450         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
6451         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
6452         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
6453         * doc/posix-functions/send.texi: Mention the new module 'send'.
6454         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
6455         * doc/posix-functions/setsockopt.texi: Mention the new module
6456         'setsockopt'.
6457         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
6458         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
6459         listen, connect, accept.
6460         * modules/select-tests (Depends-on): Likewise.
6461
6462 2008-10-05  Bruno Haible  <bruno@clisp.org>
6463
6464         * lib/winsock.c (strerror): Remove unused #undef.
6465         (rpl_close): Remove unused local variable.
6466
6467         * modules/sys_socket (Depends-on); Add errno.
6468
6469 2008-10-05  Bruno Haible  <bruno@clisp.org>
6470
6471         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
6472         (select): Add a link warning when the 'select' module is not used.
6473         * modules/sys_select (Depends-on): Add link-warning.
6474         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
6475         Suggested by Paolo Bonzini.
6476
6477 2008-10-05  Jim Meyering  <meyering@redhat.com>
6478
6479         bootstrap: check for LT_INIT more portably
6480         * build-aux/bootstrap: Avoid using grep -E, since it's not
6481         portable enough.  Suggestion from Bruno Haible.
6482
6483 2008-10-05  Bruno Haible  <bruno@clisp.org>
6484
6485         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
6486         as being fixed by gnulib.
6487
6488 2008-10-05  Bruno Haible  <bruno@clisp.org>
6489
6490         * modules/select-tests: New file, mostly copied from
6491         modules/sys_select-tests.
6492         * tests/test-select.c: New file, mostly copied from
6493         tests/test-sys_select.c.
6494         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
6495         * modules/sys_select-tests (Depends-on): Remove all dependencies.
6496         (Makefile.am): Remove test_sys_select_LDADD.
6497
6498         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
6499         to an undefined symbol, for an error message.
6500         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
6501         (gl_SYS_SELECT_H_DEFAULTS): New macro.
6502         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
6503         winsock-select.c here.
6504         * modules/sys_select (Files): Remove lib/winsock-select.c.
6505         (Depends-on): Remove alloca.
6506         (Makefile.am): Substitute GNULIB_SELECT.
6507         * modules/select: New file.
6508         * doc/posix-functions/select.texi: Update.
6509
6510 2008-10-05  Bruno Haible  <bruno@clisp.org>
6511
6512         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
6513         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
6514         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
6515         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
6516         getdtablesize.
6517         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
6518         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
6519
6520 2008-10-05  Bruno Haible  <bruno@clisp.org>
6521
6522         * modules/getdtablesize-tests: New file.
6523         * tests/test-getdtablesize.c: New file.
6524
6525         New module 'getdtablesize'.
6526         * lib/unistd.in.h (getdtablesize): New declaration.
6527         * lib/getdtablesize.c: New file.
6528         * m4/getdtablesize.m4: New file.
6529         * modules/getdtablesize: New file.
6530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6531         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
6532         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
6533         HAVE_GETDTABLESIZE.
6534         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
6535
6536 2008-10-05  Bruno Haible  <bruno@clisp.org>
6537
6538         * modules/sched (Makefile.am): Fix typo.
6539         Reported by Simon Josefsson.
6540
6541 2008-10-05  Jim Meyering  <meyering@redhat.com>
6542
6543         bootstrap: check for LT_INIT, too
6544         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
6545         are deprecated.  Suggestion from Ralf Wildenhues.
6546
6547 2008-10-05  Bruno Haible  <bruno@clisp.org>
6548
6549         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
6550         overriding them by ours.
6551         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
6552
6553 2008-10-05  Jim Meyering  <meyering@redhat.com>
6554
6555         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
6556         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
6557         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
6558
6559 2008-10-04  Bruno Haible  <bruno@clisp.org>
6560
6561         * modules/dup2 (License): Change to LGPLv2+.
6562         * modules/sleep (License): Likewise.
6563         * modules/perror (License): Likewise.
6564         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
6565         Blake.
6566         * modules/signal (License): Likewise.
6567         * modules/sigprocmask (License): Likewise.
6568         * modules/raise (License): Change to LGPLv2+, with approval by Jim
6569         Meyering.
6570
6571 2008-10-04  Bruno Haible  <bruno@clisp.org>
6572
6573         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
6574         Reported by Rainer Tammer <tammer@tammer.net>.
6575
6576 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
6577             Bruno Haible  <bruno@clisp.org>
6578
6579         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
6580         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
6581         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
6582
6583 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
6584
6585         filevercmp: new module
6586         * lib/filevercmp.h: New function filevercmp comparing version strings.
6587         * lib/filevercmp.c: Implementation of filevercmp function.
6588         * modules/filevercmp: Module metadata.
6589         * tests/test-filevercmp.c: Unit test for new module.
6590         * modules/filevercmp-tests: Unit test metadata.
6591         * MODULES.html.sh: Add filevercmp module.
6592
6593 2008-10-03  Bruno Haible  <bruno@clisp.org>
6594
6595         * lib/c-ctype.h: Add comment.
6596         Reported by Jim Meyering.
6597
6598 2008-10-02  Bruno Haible  <bruno@clisp.org>
6599
6600         * modules/posix_spawn-internal (Depends-on): Add 'open'.
6601
6602 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
6603
6604         * build-aux/bootstrap: Allow renaming bootstrap, and change the
6605         name of bootstrap.conf accordingly.
6606
6607 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
6608
6609         * build-aux/bootstrap: Install git-merge-changelog configuration
6610         items into .gitconfig if needed.
6611
6612 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
6613
6614         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
6615         git repository, and initialize/update it accordingly.
6616
6617 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
6618
6619         * modules/fsync-tests: New file.
6620         * tests/test-fsync.c: New file.
6621
6622         New module 'fsync'.
6623         * lib/fsync.c: New file.
6624         * m4/fsync.m4: New file.
6625         * modules/fsync: New file.
6626         * lib/unistd.in.h (fsync): New declaration.
6627         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
6628         GNULIB_FSYNC and HAVE_FSYNC.
6629         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
6630         * MODULES.html.sh (posix_functions): Add fsync.
6631         * doc/posix-functions/fsync.texi: Mention the new module.
6632
6633 2008-10-02  Jim Meyering  <meyering@redhat.com>
6634
6635         fts.c: sync with similar code from coreutils' remove.c
6636         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
6637         Guard also with "#if defined __linux__", since for now at least,
6638         this code is Linux-kernel-specific.
6639
6640 2008-10-02  Jim Meyering  <meyering@redhat.com>
6641
6642         fts: bug fixes
6643         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
6644         Include <sys/vfs.h>, not <sys/statfs.h>.
6645
6646         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
6647         Include <sys/vfs.h>, not <sys/statfs.h>.
6648
6649 2008-10-01  Bruno Haible  <bruno@clisp.org>
6650
6651         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
6652         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
6653         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
6654         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
6655         * doc/posix-functions/posix_spawnp.texi: Likewise.
6656         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
6657         whether posix_spawn actually works.
6658         * m4/pipe.m4 (gl_PIPE): Likewise.
6659         * modules/execute (Files): Add m4/posix_spawn.m4.
6660         * modules/pipe (Files): Add m4/posix_spawn.m4.
6661         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
6662
6663 2008-10-01  Jim Meyering  <meyering@redhat.com>
6664
6665         remove trailing spaces
6666         * NEWS: Likewise.
6667         * lib/poll.c (poll): Likewise.
6668         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
6669         * lib/winsock.c (rpl_close): Likewise.
6670         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
6671         * modules/yield: Likewise.
6672         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
6673         * tests/test-sys_select.c (connect_to_socket): Likewise.
6674
6675         fts.c: adjust a new interface to be more generally useful
6676         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
6677         (fts_build): Adjust caller.
6678
6679 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6680
6681         * modules/cond-tests: New file.
6682         * tests/test-cond.c: New file.
6683
6684 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6685             Bruno Haible  <bruno@clisp.org>
6686
6687         * modules/cond (Dependencies): Add errno, time.
6688         * lib/glthread/cond.h: Include <time.h>.
6689         (gl_cond_define, gl_cond_define_initialized): Use the same definition
6690         across platforms.
6691
6692 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6693             Bruno Haible  <bruno@clisp.org>
6694
6695         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
6696
6697 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6698             Bruno Haible  <bruno@clisp.org>
6699
6700         * modules/tls-tests (Depends-on): Add thread, yield.
6701         (configure.ac): Remove all checks.
6702         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
6703         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
6704         gl_thread_self): Remove definitions. Include glthread/thread.h and
6705         glthread/yield.h instead.
6706         (test_tls): Pass an additional NULL argument to gl_thread_join.
6707
6708 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6709             Bruno Haible  <bruno@clisp.org>
6710
6711         * modules/lock-tests (Depends-on): Add thread, yield.
6712         (configure.ac): Remove all checks.
6713         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
6714         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
6715         gl_thread_self): Remove definitions. Include glthread/thread.h and
6716         glthread/yield.h instead.
6717         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
6718         additional NULL argument to gl_thread_join.
6719
6720 2008-09-30  Bruno Haible  <bruno@clisp.org>
6721
6722         Fix the Win32 implementation of the 'thread' module.
6723         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
6724         pointer type.
6725         (gl_thread_self): Invoke gl_thread_self_func.
6726         (gl_thread_self_func): New declaration.
6727         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
6728         (do_init_self_key, init_self_key): New functions.
6729         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
6730         Remove some fields.
6731         (running_threads, running_lock): Remove variables.
6732         (get_current_thread_handle): New function.
6733         (gl_thread_self_func, wrapper_func, glthread_create_func,
6734         glthread_join_func, gl_thread_exit_func): Largely rewritten and
6735         simplified.
6736
6737 2008-09-30  Bruno Haible  <bruno@clisp.org>
6738
6739         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
6740         files.
6741
6742 2008-09-30  Jim Meyering  <meyering@redhat.com>
6743
6744         fts.m4: correct the test for statfs.f_type
6745         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
6746         when checking for statfs.f_type.
6747
6748 2008-09-15  Simon Josefsson  <simon@josefsson.org>
6749
6750         tests: avoid some compiler warnings
6751         * tests/test-memchr.c (main): Pass NULL indirectly.
6752         * tests/test-getdate.c (main): Remove unused variable 'ret'.
6753
6754 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
6755
6756         getdate.y: disallow countable dayshifts like "4 yesterday ago"
6757         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
6758         exactly specified dayshifts.
6759         (dayshift): New rule.
6760         (rel): Add dayshift.
6761         (relative_time_table) [tomorrow, yesterday, today, now]:
6762         Use tDAY_SHIFT in place of tDAY_UNIT.
6763         * tests/test-getdate.c: Add tests for now-disallowed countable
6764         dayshifts, e.g., "4 yesterday ago".
6765
6766 2008-09-29  Bruno Haible  <bruno@clisp.org>
6767
6768         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
6769         * tests/test-posix_spawn1.in.sh: Renamed from
6770         tests/test-posix_spawn.in.sh.
6771         * tests/test-posix_spawn2.c: New file.
6772         * tests/test-posix_spawn2.in.sh: New file.
6773         * modules/posix_spawnp-tests (Files): Update.
6774         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
6775
6776 2008-09-29  Bruno Haible  <bruno@clisp.org>
6777
6778         Propagate effects of putenv/setenv/unsetenv to child processes.
6779         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
6780         * lib/pipe.c (create_pipe): Likewise.
6781
6782 2008-09-29  Bruno Haible  <bruno@clisp.org>
6783
6784         Enable use of shell scripts as executables in mingw.
6785         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
6786         run the program as a shell script.
6787         * lib/pipe.c (create_pipe): Likewise.
6788         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
6789         resulting array.
6790
6791 2008-09-29  Eric Blake  <ebb9@byu.net>
6792
6793         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
6794
6795 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
6796
6797         * doc/posix-functions/accept.texi: Update mingw problems.
6798         * doc/posix-functions/bind.texi: Update mingw problems.
6799         * doc/posix-functions/close.texi: Update mingw problems.
6800         * doc/posix-functions/connect.texi: Update mingw problems.
6801         * doc/posix-functions/getpeername.texi: Update mingw problems.
6802         * doc/posix-functions/getsockname.texi: Update mingw problems.
6803         * doc/posix-functions/getsockopt.texi: Update mingw problems.
6804         * doc/posix-functions/ioctl.texi: Update mingw problems.
6805         * doc/posix-functions/listen.texi: Update mingw problems.
6806         * doc/posix-functions/recv.texi: Update mingw problems.
6807         * doc/posix-functions/recvfrom.texi: Update mingw problems.
6808         * doc/posix-functions/select.texi: Update mingw problems.
6809         * doc/posix-functions/send.texi: Update mingw problems.
6810         * doc/posix-functions/sendto.texi: Update mingw problems.
6811         * doc/posix-functions/setsockopt.texi: Update mingw problems.
6812         * doc/posix-functions/socket.texi: Update mingw problems.
6813
6814 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
6815             Bruno Haible  <bruno@clisp.org>
6816
6817         * lib/sys_select.in.h: Include sys/time.h.
6818         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
6819         * modules/sys_select: Depend on sys_time.
6820         * tests/test-sys_select.c: Test that sys/select.h defines struct
6821         timeval fully.
6822
6823 2008-09-29  Bruno Haible  <bruno@clisp.org>
6824
6825         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
6826         * lib/sys_select.in.h: Likewise.
6827
6828 2008-09-29  Bruno Haible  <bruno@clisp.org>
6829
6830         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
6831
6832 2008-09-29  Bruno Haible  <bruno@clisp.org>
6833
6834         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
6835         Set LIBSOCKET instead of augmenting LIBS.
6836         * modules/sockets (Link): New section.
6837         * modules/sockets-tests (test_sockets_LDADD): New variable.
6838         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
6839         * modules/poll-tests (test_poll_LDADD): New variable.
6840         * NEWS: Document the change.
6841
6842 2008-09-29  Bruno Haible  <bruno@clisp.org>
6843
6844         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
6845         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
6846         ARPA_INET_H directly.
6847         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
6848
6849 2008-09-28  Bruno Haible  <bruno@clisp.org>
6850
6851         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
6852         from gl_HEADER_SYS_SOCKET.
6853         (gl_HEADER_SYS_SOCKET): Invoke it.
6854         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6855
6856 2008-09-28  Bruno Haible  <bruno@clisp.org>
6857
6858         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
6859         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
6860         Needed on OSF/1 4.0.
6861
6862 2008-09-28  Bruno Haible  <bruno@clisp.org>
6863
6864         Override open more carefully.
6865         * lib/open.c (orig_open): New function.
6866         (rpl_open): Use orig_open instead of open.
6867         * lib/fcntl.in.h: Add special invocation convention.
6868         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
6869         (gl_FUNC_OPEN): Invoke it.
6870
6871         Override freopen more carefully.
6872         * lib/freopen.c (orig_freopen): New function.
6873         (rpl_freopen): Use orig_freopen instead of freopen.
6874         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
6875         (gl_FUNC_FREOPEN): Invoke it.
6876
6877         Override fopen more carefully.
6878         * lib/fopen.c (orig_fopen): New function.
6879         (rpl_fopen): Use orig_fopen instead of fopen.
6880         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
6881         (gl_FUNC_FOPEN): Invoke it.
6882         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
6883
6884 2008-09-28  Bruno Haible  <bruno@clisp.org>
6885
6886         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
6887         SIGPIPE.
6888
6889 2008-09-28  Bruno Haible  <bruno@clisp.org>
6890
6891         * tests/test-sigaction.c (handler, main): Disable the check whether
6892         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
6893         glibc systems with LinuxThreads.
6894
6895 2008-09-28  Bruno Haible  <bruno@clisp.org>
6896
6897         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
6898
6899         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
6900         with AIX xlc.
6901         * lib/fcntl.in.h (open): Likewise.
6902         Reported by Rainer Tammer <tammer@tammer.net>.
6903
6904 2008-09-28  Bruno Haible  <bruno@clisp.org>
6905
6906         * modules/posix_spawnp-tests: New file.
6907         * tests/test-posix_spawn.c: New file.
6908         * tests/test-posix_spawn.in.sh: New file.
6909
6910         New module 'posix_spawnp'.
6911         * modules/posix_spawnp: New file.
6912         * lib/spawnp.c: New file, from GNU libc with modifications.
6913         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
6914
6915         New module 'posix_spawn'.
6916         * modules/posix_spawn: New file.
6917         * lib/spawn.c: New file, from GNU libc with modifications.
6918         * doc/posix-functions/posix_spawn.texi: Mention the new module.
6919
6920         New module 'posix_spawnattr_destroy'.
6921         * modules/posix_spawnattr_destroy: New file.
6922         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
6923         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
6924         module.
6925
6926         New module 'posix_spawnattr_setsigmask'.
6927         * modules/posix_spawnattr_setsigmask: New file.
6928         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
6929         modifications.
6930         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
6931         new module.
6932
6933         New module 'posix_spawnattr_getsigmask'.
6934         * modules/posix_spawnattr_getsigmask: New file.
6935         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
6936         modifications.
6937         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
6938         new module.
6939
6940         New module 'posix_spawnattr_setsigdefault'.
6941         * modules/posix_spawnattr_setsigdefault: New file.
6942         * lib/spawnattr_setdefault.c: New file, from GNU libc with
6943         modifications.
6944         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
6945         new module.
6946
6947         New module 'posix_spawnattr_getsigdefault'.
6948         * modules/posix_spawnattr_getsigdefault: New file.
6949         * lib/spawnattr_getdefault.c: New file, from GNU libc with
6950         modifications.
6951         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
6952         new module.
6953
6954         New module 'posix_spawnattr_setschedpolicy'.
6955         * modules/posix_spawnattr_setschedpolicy: New file.
6956         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
6957         modifications.
6958         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
6959         new module.
6960
6961         New module 'posix_spawnattr_getschedpolicy'.
6962         * modules/posix_spawnattr_getschedpolicy: New file.
6963         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
6964         modifications.
6965         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
6966         new module.
6967
6968         New module 'posix_spawnattr_setschedparam'.
6969         * modules/posix_spawnattr_setschedparam: New file.
6970         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
6971         modifications.
6972         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
6973         new module.
6974
6975         New module 'posix_spawnattr_getschedparam'.
6976         * modules/posix_spawnattr_getschedparam: New file.
6977         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
6978         modifications.
6979         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
6980         new module.
6981
6982         New module 'posix_spawnattr_setpgroup'.
6983         * modules/posix_spawnattr_setpgroup: New file.
6984         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
6985         modifications.
6986         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
6987         module.
6988
6989         New module 'posix_spawnattr_getpgroup'.
6990         * modules/posix_spawnattr_getpgroup: New file.
6991         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
6992         modifications.
6993         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
6994         module.
6995
6996         New module 'posix_spawnattr_setflags'.
6997         * modules/posix_spawnattr_setflags: New file.
6998         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
6999         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
7000         module.
7001
7002         New module 'posix_spawnattr_getflags'.
7003         * modules/posix_spawnattr_getflags: New file.
7004         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
7005         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
7006         module.
7007
7008         New module 'posix_spawnattr_init'.
7009         * modules/posix_spawnattr_init: New file.
7010         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
7011         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
7012         module.
7013
7014         New module 'posix_spawn_file_actions_destroy'.
7015         * modules/posix_spawn_file_actions_destroy: New file.
7016         * lib/spawn_faction_destroy.c: New file, from GNU libc with
7017         modifications.
7018         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
7019         the new module.
7020
7021         New module 'posix_spawn_file_actions_addopen'.
7022         * modules/posix_spawn_file_actions_addopen: New file.
7023         * lib/spawn_faction_addopen.c: New file, from GNU libc with
7024         modifications.
7025         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
7026         the new module.
7027
7028         New module 'posix_spawn_file_actions_adddup2'.
7029         * modules/posix_spawn_file_actions_adddup2: New file.
7030         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
7031         modifications.
7032         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
7033         the new module.
7034
7035         New module 'posix_spawn_file_actions_addclose'.
7036         * modules/posix_spawn_file_actions_addclose: New file.
7037         * lib/spawn_faction_addclose.c: New file, from GNU libc with
7038         modifications.
7039         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
7040         the new module.
7041
7042         New module 'posix_spawn_file_actions_init'.
7043         * modules/posix_spawn_file_actions_init: New file.
7044         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
7045         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
7046         new module.
7047
7048         New module 'posix_spawn-internal'.
7049         * modules/posix_spawn-internal: New file.
7050         * lib/spawn_int.h: New file, from GNU libc with modifications.
7051         * lib/spawni.c: New file, from GNU libc with modifications.
7052         * m4/posix_spawn.m4: New file.
7053
7054         New module 'spawn'.
7055         * modules/spawn: New file.
7056         * lib/spawn.in.h: New file, from GNU libc with modifications.
7057         * m4/spawn_h.m4: New file.
7058         * doc/posix-headers/spawn.texi: Mention the new module.
7059
7060 2008-09-28  Bruno Haible  <bruno@clisp.org>
7061
7062         * modules/sched-tests: New file.
7063         * tests/test-sched.c: New file.
7064
7065         New module 'sched'.
7066         * modules/sched: New file.
7067         * lib/sched.in.h: New file.
7068         * m4/sched_h.m4: New file.
7069         * doc/posix-headers/sched.texi: Mention the new module.
7070
7071 2008-09-27  Eric Blake  <ebb9@byu.net>
7072
7073         Fix previous patch, and tweak references to $0.
7074         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
7075         (func_version, func_gnulib_dir): Don't call this program
7076         gnulib-tool.
7077         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
7078         with using $0 in function.
7079         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
7080         (func_fatal_error): Reuse the name the user invoked us with.
7081
7082 2008-09-27  Bruno Haible  <bruno@clisp.org>
7083
7084         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
7085         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
7086         (gl_ICONV_H): Not here.
7087         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
7088         instead of assigning ICONV_H directly.
7089
7090         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
7091         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
7092         WCHAR_H directly.
7093
7094 2008-09-27  Bruno Haible  <bruno@clisp.org>
7095
7096         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
7097         * modules/arpa_inet (Depends-on): Add link-warning.
7098         (Makefile.am): Insert the definition of GL_LINK-WARNING.
7099         * modules/unistd (Makefile.am): Likewise.
7100
7101 2008-09-26  Bruno Haible  <bruno@clisp.org>
7102
7103         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
7104         variables.
7105         (func_version): Essentially copied from gnulib-tool.
7106         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
7107         func_readlink): Copied from gnulib-tool.
7108
7109 2008-09-26  Bruno Haible  <bruno@clisp.org>
7110
7111         * gnulib-tool (func_version): Change directory to $gnulib_dir before
7112         invoking git-version-gen.
7113
7114 2008-09-26  Bruno Haible  <bruno@clisp.org>
7115
7116         * posix-modules: Update to directory names changed on 2008-01-19.
7117         Remove commas in output before splitting into words. No more need to
7118         avoid 'ftruncate' since 2007-02-19.
7119
7120 2008-09-26  Bruno Haible  <bruno@clisp.org>
7121
7122         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
7123
7124 2008-09-26  Bruno Haible  <bruno@clisp.org>
7125
7126         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
7127         * modules/fwriteerror (Depends-on): Add errno.
7128
7129 2008-09-26  Bruno Haible  <bruno@clisp.org>
7130
7131         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
7132         * tests/test-vc-list-files-cvs.sh: Likewise.
7133
7134 2008-09-26  Bruno Haible  <bruno@clisp.org>
7135
7136         * doc/posix-headers/sys_resource.texi: Reorder items.
7137
7138 2008-09-26  Jim Meyering  <meyering@redhat.com>
7139
7140         fts: tweak inode comparison function
7141         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
7142         inode numbers, as documented.
7143
7144         fts: sort dirent entries on inode number before traversing
7145         This avoids a quadratic, seek-related performance penalty when
7146         operating on a directory containing many entries (measurable at 10k;
7147         3.5 hours at 2 million entries with a cold cache) on certain types
7148         of file systems, including ext3 and ext4, but not tmpfs.
7149         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
7150         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
7151         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
7152         (fs_handles_readdir_ordered_dirents_efficiently): New function.
7153         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
7154         (fts_build): Set the stat.st_ino member from D_INO.
7155         If it is likely to be useful, sort dirent entries on inode number.
7156
7157         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
7158         and the struct statfs.f_type member.
7159         * modules/fts (Depends-on): Add d-ino.
7160
7161 2008-09-26  Bruno Haible  <bruno@clisp.org>
7162
7163         * modules/sigpipe-die (Depends-on): Add sigpipe.
7164
7165         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
7166         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
7167         and GNULIB_STDIO_H_SIGPIPE are set.
7168         * lib/stdio-write.c: New file.
7169         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
7170         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
7171         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
7172         REPLACE_STDIO_WRITE_FUNCS.
7173         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
7174         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
7175         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
7176         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
7177         * modules/stdio (Files): Add lib/stdio-write.c.
7178         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
7179         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
7180         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
7181         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
7182         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
7183         REPLACE_FPRINTF_POSIX.
7184         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
7185         REPLACE_PRINTF_POSIX.
7186         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
7187         REPLACE_VFPRINTF_POSIX.
7188         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
7189         REPLACE_VPRINTF_POSIX.
7190         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
7191         SIGPIPE issue.
7192         * doc/posix-functions/fputc.texi: Likewise.
7193         * doc/posix-functions/fputs.texi: Likewise.
7194         * doc/posix-functions/fwrite.texi: Likewise.
7195         * doc/posix-functions/printf.texi: Likewise.
7196         * doc/posix-functions/putc.texi: Likewise.
7197         * doc/posix-functions/putchar.texi: Likewise.
7198         * doc/posix-functions/puts.texi: Likewise.
7199         * doc/posix-functions/vfprintf.texi: Likewise.
7200         * doc/posix-functions/vprintf.texi: Likewise.
7201
7202         * modules/safe-write (Depends-on): Add write.
7203
7204         * modules/sigpipe-tests: New file.
7205         * tests/test-sigpipe.c: New file.
7206         * tests/test-sigpipe.sh: New file.
7207
7208         * modules/write: New file.
7209         * lib/unistd.in.h: Include <sys/types.h>.
7210         (write): New declaration.
7211         * lib/write.c: New file.
7212         * m4/write.m4: New file.
7213         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7214         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
7215         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
7216         GNULIB_WRITE, REPLACE_WRITE.
7217         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
7218         and the SIGPIPE issue.
7219
7220         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
7221         (raise): New declaration.
7222         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
7223         (ext_signal): New function.
7224         (rpl_raise): New function.
7225         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7226         GNULIB_SIGNAL_H_SIGPIPE.
7227         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
7228         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
7229
7230         * modules/sigpipe: New file.
7231         * m4/sigpipe.m4: New file.
7232
7233 2008-09-25  Derek Price  <derek@ximbiot.com>
7234             Bruno Haible  <bruno@clisp.org>
7235
7236         * gnulib-tool (func_import): Report all license incompatibilities, not
7237         just the first one.
7238
7239 2008-09-25  Bruno Haible  <bruno@clisp.org>
7240
7241         * gnulib-tool (func_import): When computing the edits, consider not
7242         only the Makefile.ams that exist but also those that will be generated.
7243
7244 2008-09-25  Simon Josefsson  <simon@josefsson.org>
7245
7246         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
7247         fixes gnulib-tool --test warning about duplicate dependency.
7248
7249 2008-09-25  Bruno Haible  <bruno@clisp.org>
7250
7251         * gnulib-tool: Don't ask the user to perform edits in the generated
7252         Makefile.ams.
7253         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
7254         apply to the Makefile.am being generated.
7255         (func_emit_tests_Makefile_am): Execute edits that apply to the
7256         Makefile.am being generated.
7257         (func_import): Setup list of Makefile.am edits before emitting the
7258         Makefile.ams, not at the end.
7259         (func_create_testdir): Update.
7260         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7261
7262 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7263
7264         * gnulib-tool (func_import): Store the --tests-base option in the
7265         comment in gnulib-cache.m4.
7266
7267 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
7268
7269         * NEWS: Document increased portability that sys_select now provides.
7270
7271         * lib/sys_select.in.h: Install select wrapper.
7272         * lib/sys_socket.in.h: Use more descriptive name when there is no
7273         select wrapper.
7274         * lib/winsock-select.c: New.
7275         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
7276         Require gl_HEADER_SYS_SOCKET.
7277         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
7278         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
7279         * tests/test-sys_select.c: Add functional tests.
7280
7281 2008-09-24  Eric Blake  <ebb9@byu.net>
7282
7283         open, fopen: close fd leak in last patch
7284         * lib/open.c (rpl_open): Close fd before returning error.
7285         * lib/fopen.c (rpl_fopen): Close fd before returning error.
7286         * doc/posix-functions/open.texi (open): Document that Irix also
7287         has the bug.
7288         * doc/posix-functions/fopen.texi (fopen): Likewise.
7289         Reported by Paolo Bonzini.
7290
7291 2008-09-24  Bruno Haible  <bruno@clisp.org>
7292
7293         Ensure that a filename ending in a slash cannot be used to access a
7294         non-directory.
7295         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
7296         to check whether it's really a directory.
7297         * lib/fopen.c: Include fcntl.h, unistd.h.
7298         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
7299         and fdopen().
7300         * modules/fopen (Depends-on): Add unistd.
7301         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
7302         * tests/test-fopen.c (main): Likewise.
7303         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
7304         * doc/posix-functions/fopen.texi: Likewise.
7305         Reported by Eric Blake.
7306
7307 2008-09-23  Eric Blake  <ebb9@byu.net>
7308
7309         c-stack: avoid compiler optimizations when provoking overflow
7310         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
7311         recursion harder to optimize, to ensure a stack overflow occurs.
7312         * tests/test-c-stack.c (recurse): Likewise.
7313         Borrowed from libsigsegv.
7314
7315         c-stack: work around Irix sigaltstack bug
7316         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
7317         whether sigaltstack uses wrong end of stack_t (copied in part from
7318         libsigsegv).
7319         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
7320         Irix bug, without requiring an over-allocation.
7321         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
7322         bug.
7323
7324         fopen: document mingw bug on directories
7325         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
7326         not allowing a stream visiting a directory, even though reading
7327         from such a stream is not portable.
7328
7329 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
7330
7331         * lib/poll.c: Rewrite.
7332         * modules/poll: Depend on alloca.
7333
7334 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
7335
7336         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
7337         instead define prototypes for a full set of wrappers.  Ensure
7338         that Cygwin does not use the compatibility code, which is only
7339         for MinGW.
7340         * lib/winsock.c: New.
7341         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
7342         * modules/sys_socket: Add lib/winsock.c.
7343
7344         * modules/poll-tests: Add errno and perror.
7345         * tests/test-poll.c: Use ioctl, not ioctlsocket.
7346
7347 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
7348
7349         * tests/test-poll.c: Downgrade minimum needed Winsock version.
7350
7351 2008-09-23  Bruno Haible  <bruno@clisp.org>
7352
7353         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
7354         * doc/glibc-functions/*: Likewise.
7355
7356 2008-09-23  Simon Josefsson  <simon@josefsson.org>
7357
7358         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
7359         success.
7360
7361 2008-09-22  Eric Blake  <ebb9@byu.net>
7362             Bruno Haible  <bruno@clisp.org>
7363
7364         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
7365         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
7366         supply %A but mishandle pseudo-NaN.
7367         Reported by Simon Josefsson.
7368
7369 2008-09-21  Bruno Haible  <bruno@clisp.org>
7370
7371         * tests/test-lock.c (main): Tweak skip message.
7372         * tests/test-tls.c (main): Likewise.
7373
7374 2008-09-21  Bruno Haible  <bruno@clisp.org>
7375
7376         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
7377         whether 'struct sigaction' has sa_sigaction here...
7378         (gl_PREREQ_SIG_HANDLER_H): ... not here.
7379         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
7380
7381 2008-09-21  Bruno Haible  <bruno@clisp.org>
7382
7383         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
7384         section.
7385         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
7386         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
7387         the new section.
7388         (Support for obsolete systems lacking POSIX:2001): New section.
7389         (String handling <string.h>): Move strdup to the new section.
7390         Suggested by Simon Josefsson and Paolo Bonzini.
7391
7392 2008-09-21  Bruno Haible  <bruno@clisp.org>
7393
7394         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
7395         exponents in %e and %g results on 'long double'. Needed for mingw's
7396         improved *printf functions.
7397         * tests/test-vasprintf-posix.c (test_function): Likewise.
7398         * tests/test-snprintf-posix.h (test_function): Likewise.
7399         * tests/test-sprintf-posix.h (test_function): Likewise.
7400         Reported by Eric Blake.
7401
7402 2008-09-21  Bruno Haible  <bruno@clisp.org>
7403
7404         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
7405         * tests/test-sprintf-posix.h (test_function): Likewise.
7406
7407 2008-09-21  Bruno Haible  <bruno@clisp.org>
7408
7409         * modules/getpass (Depends-on): Add strdup-posix.
7410
7411         New module 'strdup-posix'.
7412         * modules/strdup-posix: New file.
7413         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
7414         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
7415         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7416         REPLACE_STRDUP.
7417         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
7418         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
7419         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
7420         strdup-posix.
7421
7422         * modules/strdup (Depends-on): Remove malloc-posix.
7423
7424 2008-09-20  Bruno Haible  <bruno@clisp.org>
7425
7426         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
7427         Wildenhues.
7428
7429 2008-09-20  Bruno Haible  <bruno@clisp.org>
7430
7431         Ensure that wint_t gets defined on IRIX 5.3.
7432         * lib/wchar.in.h (wint_t): Define if not defined by the system.
7433         * lib/wctype.in.h (wint_t): Likewise.
7434         (__wctype_wint_t): Remove type.
7435         (isw*): Use wint_t instead of __wctype_wint_t.
7436         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
7437         * modules/wchar (Files): Add m4/wint_t.m4.
7438         (Makefile.am): Substitute HAVE_WINT_T.
7439         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
7440         * tests/test-wctype.c: Check that wint_t is defined.
7441         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
7442         * doc/posix-headers/wctype.texi: Likewise.
7443         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7444
7445 2008-09-18  Bruno Haible  <bruno@clisp.org>
7446
7447         * gnulib-tool (func_exit): Update comment.
7448
7449 2008-09-18  Simon Josefsson  <simon@josefsson.org>
7450
7451         * modules/getaddrinfo (Depends-on): Remove strdup, this module
7452         assumes strdup exists and does not depend on strdup to return
7453         ENOMEM on out of memory conditions.
7454
7455 2008-09-18  Bruno Haible  <bruno@clisp.org>
7456
7457         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
7458         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
7459         digits for the exponent.
7460
7461 2008-09-18  Jim Meyering  <meyering@redhat.com>
7462             Bruno Haible  <bruno@clisp.org>
7463
7464         * lib/vasnprintf.c (decimal_point_char): Define also if
7465         NEED_PRINTF_INFINITE_LONG_DOUBLE.
7466
7467 2008-09-16  Bruno Haible  <bruno@clisp.org>
7468         and Eric Blake  <ebb9@byu.net>
7469
7470         vasnprintf: support Irix 5.3
7471         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
7472         that mishandle long double infinity.
7473         Reported by Tom G. Christensen.
7474
7475 2008-09-16  Bruno Haible  <bruno@clisp.org>
7476
7477         * doc/glibc-functions/scandir.texi: Mention the function is missing on
7478         Solaris 9.
7479         * doc/glibc-functions/alphasort.texi: Likewise.
7480         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
7481
7482 2008-09-16  Jim Meyering  <meyering@redhat.com>
7483
7484         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
7485         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
7486         a umask modification leak out of a subshell.  Otherwise, the
7487         opensolaris /bin/sh would be accepted and thus cause unwarranted
7488         failures in the coreutils test suite.
7489
7490 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
7491
7492         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
7493         to succeed.
7494
7495 2008-09-16  Jim Meyering  <meyering@redhat.com>
7496
7497         avoid spurious test failure when library is built without ACL support
7498         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
7499         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
7500         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
7501         * tests/test-copy-acl.sh: Likewise.
7502
7503 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7504
7505         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
7506         based on character occurrence counts.
7507
7508 2008-09-15  Eric Blake  <ebb9@byu.net>
7509
7510         tests: avoid some compiler warnings
7511         * tests/test-memchr.c (main): Pass NULL indirectly.
7512         * tests/test-closein.c (main): Avoid unused variable.
7513
7514 2008-09-15  Bruno Haible  <bruno@clisp.org>
7515
7516         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
7517         are missing on OpenBSD 4.0 individually.
7518         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7519
7520 2008-09-15  Bruno Haible  <bruno@clisp.org>
7521
7522         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
7523         * doc/posix-functions/strerror.texi: Mention also Cygwin.
7524         * doc/posix-functions/perror.texi: Likewise.
7525         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
7526         is missing.
7527         Reported by Eric Blake.
7528
7529         * lib/errno.in.h: Use replacement values >= 2000.
7530         Reported by Eric Blake.
7531
7532 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7533
7534         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
7535         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
7536         limit.
7537         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
7538         compareseq was aborted.
7539
7540 2008-09-14  Bruno Haible  <bruno@clisp.org>
7541
7542         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
7543         yvec_edit_count.
7544         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
7545         (fstrcmp_bounded): Simplify result computation accordingly.
7546
7547 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7548
7549         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
7550         (fstrcmp): Define in terms of fstrcmp_bounded.
7551         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
7552         lower_bound argument.
7553         Return quickly if the result is certainly < lower_bound.
7554         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
7555
7556 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7557
7558         * lib/diffseq.h (EARLY_ABORT): New macro.
7559         (compareseq): Change return type to bool. Return true when EARLY_ABORT
7560         evaluates to true.
7561
7562 2008-09-14  Bruno Haible  <bruno@clisp.org>
7563
7564         * modules/perror-tests: New file.
7565         * tests/test-perror.sh: New file.
7566         * tests/test-perror.c: New file.
7567
7568         New module 'perror'.
7569         * lib/stdio.in.h (perror): New declaration.
7570         * lib/perror.c: New file.
7571         * m4/perror.m4: New file.
7572         * modules/perror: New file.
7573         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
7574         * doc/posix-functions/perror.texi: Mention the perror module.
7575         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
7576         REPLACE_PERROR.
7577         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
7578         REPLACE_PERROR.
7579
7580 2008-09-14  Bruno Haible  <bruno@clisp.org>
7581
7582         * modules/stdio (Makefile.am): Reorder to match the order in
7583         lib/stdio.in.h.
7584         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
7585
7586 2008-09-13  Bruno Haible  <bruno@clisp.org>
7587
7588         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
7589
7590 2008-09-13  Bruno Haible  <bruno@clisp.org>
7591
7592         Extend strerror to cover the added errno values.
7593         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
7594         (rpl_strerror): Provide error messages for the added errno values and
7595         for the WSA* values.
7596         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
7597         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
7598         strerror.
7599         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
7600         * modules/strerror (Depends-on): Add errno.
7601         * doc/posix-functions/strerror.texi: Document the change.
7602         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
7603         and EOVERFLOW.
7604
7605 2008-09-13  Bruno Haible  <bruno@clisp.org>
7606
7607         * modules/EOVERFLOW: Remove file.
7608         * m4/eoverflow.m4: Remove file.
7609         * modules/EOVERFLOW-tests: Remove file.
7610         * tests/test-EOVERFLOW.c: Remove file.
7611         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
7612         * modules/ftell (Depends-on): Likewise.
7613         * modules/getdelim (Depends-on): Likewise.
7614         * modules/getugroups (Depends-on): Likewise.
7615         * modules/poll (Depends-on): Likewise.
7616         * modules/snprintf (Depends-on): Likewise.
7617         * modules/sprintf-posix (Depends-on): Likewise.
7618         * modules/vasnprintf (Depends-on): Likewise.
7619         * modules/vasprintf (Depends-on): Likewise.
7620         * modules/vfprintf-posix (Depends-on): Likewise.
7621         * modules/vsnprintf (Depends-on): Likewise.
7622         * modules/vsprintf-posix (Depends-on): Likewise.
7623         * modules/xvasprintf (Depends-on): Likewise.
7624         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
7625         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
7626         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
7627         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
7628         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7629         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
7630         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
7631         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
7632         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7633         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
7634         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
7635         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
7636         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7637         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
7638         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
7639         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
7640         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7641         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
7642         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
7643         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
7644         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7645         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
7646         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
7647         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
7648         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
7649         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7650         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
7651         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
7652         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
7653         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
7654         * MODULES.html.sh: Remove EOVERFLOW.
7655         * NEWS: Mention the change.
7656
7657 2008-09-13  Bruno Haible  <bruno@clisp.org>
7658
7659         * modules/errno-tests: New file.
7660         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
7661
7662         * lib/errno.in.h: New file.
7663         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
7664         * modules/errno: New file.
7665         * doc/posix-headers/errno.texi: Update documentation.
7666         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
7667
7668 2008-09-13  Bruno Haible  <bruno@clisp.org>
7669
7670         * tests/test-poll.c: Use #if for native Windows, rather than testing
7671         __MSVCRT__.
7672
7673 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7674             Bruno Haible  <bruno@clisp.org>
7675
7676         * lib/glob.c: Don't include <pwd.h> on native Windows.
7677         (WINDOWS32): New macro.
7678         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
7679
7680 2008-09-13  Bruno Haible  <bruno@clisp.org>
7681
7682         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
7683         (ETIMEDOUT): Remove macro.
7684         (glthread_cond_timedwait_multithreaded): New declaration.
7685         (glthread_cond_timedwait): Use it.
7686         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
7687         (glthread_cond_timedwait_multithreaded): New function.
7688
7689 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
7690
7691         * modules/poll-tests: Do not check for io.h.
7692         * tests/test-poll.c: Check for __MSVCRT__ instead.
7693
7694 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
7695
7696         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
7697         * modules/poll-tests: Add inet_pton, stdbool, sockets.
7698         * tests/test-poll.c: Use them.  Use _pipe on Windows.
7699
7700 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
7701
7702         * modules/poll-tests: New.
7703         * tests/test-poll.c: New.
7704
7705 2008-09-12  Eric Blake  <ebb9@byu.net>
7706
7707         frexp: test for NetBSD failure on -0.0
7708         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
7709         not all, bugs from NetBSD 3.0 have been fixed.
7710         * doc/posix-functions/frexp.texi (frexp): Document bug.
7711         Reported by Thomas Klausner.
7712
7713         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
7714         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
7715         literal -0.0.
7716         Reported by Jonathan C. Patschke <jp@centtech.com>.
7717
7718 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7719
7720         * lib/glthread/cond.h: Use dummy implementation also if
7721         USE_WIN32_THREADS.
7722
7723 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7724
7725         * modules/fnmatch-posix (License): Change to LGPLv2+.
7726         * modules/fnmatch-gnu (License): Likewise.
7727
7728 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7729
7730         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
7731
7732 2008-09-11  Jim Meyering  <meyering@redhat.com>
7733
7734         * users.txt: Add gtk-vnc.
7735
7736 2008-09-08  Simon Josefsson  <simon@josefsson.org>
7737
7738         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
7739         rotate amounts.
7740
7741         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
7742         required for 16-bit and 8-bit rotates.
7743         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
7744         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
7745         UINT8_MAX instead of hard-coded constants.
7746         Suggested by Paul Eggert.
7747
7748 2008-09-07  Bruno Haible  <bruno@clisp.org>
7749
7750         * tests/test-striconveh.c (main): Check behaviour when converting from
7751         UTF-7.
7752
7753         Make striconveh work better with stateful encodings.
7754         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
7755         that iconv does not increment the inptr when returning -1/EINVAL.
7756
7757 2008-09-07  Bruno Haible  <bruno@clisp.org>
7758
7759         * build-aux/config.rpath: Update according to libtool-2.2.6.
7760         * build-aux/config.libpath: Likewise.
7761
7762 2008-09-06  Bruno Haible  <bruno@clisp.org>
7763
7764         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
7765         * lib/freadptr.c (freadptr): Likewise.
7766         * lib/freadseek.c (freadptrinc): Likewise.
7767         Reported by Simon Josefsson.
7768
7769 2008-09-06  Bruno Haible  <bruno@clisp.org>
7770
7771         * modules/freadptr (License): Change to LGPLv2+.
7772         * modules/freadseek (License): Likewise.
7773         Suggested by Eric Blake.
7774
7775         * modules/memchr2 (License): Change to LGPLv2+.
7776         Approved by Eric Blake.
7777
7778 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7779             Bruno Haible  <bruno@clisp.org>
7780
7781         Make gnulib-tool work with native 'sed' on AIX.
7782         * gnulib-tool (sed_noop): New variable.
7783         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
7784         func_add_or_update, func_create_testdir): Use it to initialize sed
7785         script variables.
7786         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7787
7788 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
7789             Bruno Haible  <bruno@clisp.org>
7790
7791         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
7792         also works after #include directives.
7793
7794 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
7795
7796         getdate.y: reject an out-of-range timezone value
7797         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
7798         the range [-24...+24].  When specified with only one or two digits,
7799         * tests/test-getdate.c: Tests for the fix.
7800         * doc/getdate.texi: Document this change.
7801
7802 2008-09-03  Bruno Haible  <bruno@clisp.org>
7803
7804         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
7805
7806 2008-09-02  Simon Josefsson  <simon@josefsson.org>
7807
7808         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
7809         <bruce.korb@gmail.com> with ideas from Ben Pfaff
7810         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
7811         Blake <ebb9@byu.net>.
7812
7813         * tests/test-bitrotate.c: Add more test vectors.
7814
7815 2008-09-02  Eric Blake  <ebb9@byu.net>
7816
7817         vasnprintf-posix: handle large precision via %.*d
7818         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
7819         when handling it ourselves.
7820         * tests/test-vasnprintf-posix.c (test_function): Add test.
7821         * tests/test-snprintf-posix.h (test_function): Likewise.
7822         * tests/test-sprintf-posix.h (test_function): Likewise.
7823         * tests/test-vasprintf-posix.c (test_function): Likewise.
7824         Reported by Alain Guibert.
7825
7826 2008-09-01  Eric Blake  <ebb9@byu.net>
7827
7828         c-stack: make configure-time check more robust
7829         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
7830         successful sigaction call.
7831         Reported by Tom G. Christensen.
7832
7833 2008-09-01  Bruno Haible  <bruno@clisp.org>
7834
7835         New module 'findprog-lgpl'.
7836         * modules/findprog-lgpl: New file.
7837         * lib/findprog-lgpl.c: New file.
7838         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
7839         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
7840         to decide whether to use strdup or xstrdup, concatenated_filename or
7841         xconcatenated_filename.
7842
7843 2008-09-01  Bruno Haible  <bruno@clisp.org>
7844
7845         Split module 'concat-filename' into 'concat-filename' (LGPL) and
7846         'xconcat-filename' (GPL).
7847         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
7848         (License): Change to LGPLv2+.
7849         * modules/xconcat-filename: New file.
7850         * lib/concat-filename.h (concatenated_filename): Change specification.
7851         (xconcatenated_filename): New declaration.
7852         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
7853         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
7854         memory situations.
7855         * lib/xconcat-filename.c: New file.
7856         * NEWS: Mention the change.
7857         * lib/findprog.c: Include concat-filename.h, not filename.h.
7858         (find_in_path): Use xconcatenated_filename instead of
7859         concatenated_filename.
7860         * lib/javacomp.c: Include concat-filename.h, not filename.h.
7861         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
7862         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
7863         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
7864         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
7865         instead of concatenated_filename.
7866         * lib/javaexec.c: Include concat-filename.h, not filename.h.
7867         (execute_java_class): Use xconcatenated_filename instead of
7868         concatenated_filename.
7869         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
7870         * modules/javacomp (Depends-on): Likewise.
7871         * modules/javaexec (Depends-on): Likewise.
7872
7873 2008-09-01  Bruno Haible  <bruno@clisp.org>
7874
7875         Split module 'filename' into 'filename' and 'concat-filename'.
7876         * modules/filename: Keep only lib/filename.h.
7877         (License): Change to LGPLv2+.
7878         * modules/concat-filename: New file, extracted from modules/filename.
7879         * lib/filename.h (concatenated_filename): Remove declaration.
7880         * lib/concat-filename.h: New file, extracted from lib/filename.h.
7881         * lib/concat-filename.c: Include concat-filename.h.
7882         * NEWS: Mention the change.
7883
7884 2008-09-01  Simon Josefsson  <simon@josefsson.org>
7885
7886         * lib/bitrotate.h (rotl8, rotr8): Add.
7887
7888         * modules/bitrotate (configure.ac): Need
7889         AC_REQUIRE([AC_C_INLINE]).
7890         (Description): Mention stdint.h.  Reported by Bruno Haible
7891         <bruno@clisp.org>.
7892
7893         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
7894         Paolo Bonzini <bonzini@gnu.org>.
7895
7896 2008-08-31  Bruno Haible  <bruno@clisp.org>
7897
7898         Assume Solaris specific bi-arch conventions on Solaris systems.
7899         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
7900         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
7901         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
7902         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
7903         like acl_libdirstem.
7904         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
7905         acl_libdirstem.
7906         * NEWS: Mention the change.
7907         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
7908
7909 2008-08-31  Jim Meyering  <meyering@redhat.com>
7910
7911         * lib/strftime.h: Add comments describing the two added arguments.
7912
7913         remove duplicate #include directives
7914         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
7915         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
7916
7917 2008-08-31  Bruno Haible  <bruno@clisp.org>
7918
7919         New module 'sigpipe-die'.
7920         * modules/sigpipe-die: New file.
7921         * lib/sigpipe-die.h: New file.
7922         * lib/sigpipe-die.c: New file.
7923         * MODULES.html.sh (Signal handling): Add sigpipe-die.
7924
7925 2008-08-31  Bruno Haible  <bruno@clisp.org>
7926
7927         Don't override previously installed signal handlers.
7928         * lib/fatal-signal.c (saved_sigactions): New variable.
7929         (uninstall_handlers): Reset the signal to the saved handler, not
7930         to SIG_DFL (except when ignored).
7931         (install_handlers): Save the previous handlers.
7932
7933 2008-08-30  Bruno Haible  <bruno@clisp.org>
7934
7935         * gnulib-tool (func_reset_sigpipe): New function.
7936         (func_get_automake_snippet, func_modules_transitive_closure,
7937         func_import): Invoke it before a join command that reads from stdin,
7938         to avoid "echo: write error: Broken pipe" error messages on stderr.
7939         Reported by Sam Steingold <sds@gnu.org>.
7940
7941 2008-08-30  Bruno Haible  <bruno@clisp.org>
7942
7943         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
7944         Code copied from m4/open.m4.
7945         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
7946         access and the filename ends in a slash. Code copied from lib/open.c.
7947         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
7948         * tests/test-fopen.c (main): Check against bug with trailing slash.
7949
7950 2008-08-29  Bruno Haible  <bruno@clisp.org>
7951
7952         Avoid some "gcc -pedantic" warnings.
7953         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
7954         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
7955         * lib/dirent.in.h: Likewise.
7956         * lib/fcntl.in.h: Likewise.
7957         * lib/float.in.h: Likewise.
7958         * lib/iconv.in.h: Likewise.
7959         * lib/inttypes.in.h: Likewise.
7960         * lib/locale.in.h: Likewise.
7961         * lib/math.in.h: Likewise.
7962         * lib/netinet_in.in.h: Likewise.
7963         * lib/search.in.h: Likewise.
7964         * lib/signal.in.h: Likewise.
7965         * lib/stdarg.in.h: Likewise.
7966         * lib/stdint.in.h: Likewise.
7967         * lib/stdio.in.h: Likewise.
7968         * lib/stdlib.in.h: Likewise.
7969         * lib/string.in.h: Likewise.
7970         * lib/strings.in.h: Likewise.
7971         * lib/sys_select.in.h: Likewise.
7972         * lib/sys_socket.in.h: Likewise.
7973         * lib/sys_stat.in.h: Likewise.
7974         * lib/sys_time.in.h: Likewise.
7975         * lib/sysexits.in.h: Likewise.
7976         * lib/time.in.h: Likewise.
7977         * lib/unistd.in.h: Likewise.
7978         * lib/wchar.in.h: Likewise.
7979         * lib/wctype.in.h: Likewise.
7980         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
7981         * modules/fchdir (Makefile.am): Likewise.
7982         * modules/fcntl (Makefile.am): Likewise.
7983         * modules/float (Makefile.am): Likewise.
7984         * modules/iconv_open (Makefile.am): Likewise.
7985         * modules/inttypes (Makefile.am): Likewise.
7986         * modules/locale (Makefile.am): Likewise.
7987         * modules/math (Makefile.am): Likewise.
7988         * modules/netinet_in (Makefile.am): Likewise.
7989         * modules/search (Makefile.am): Likewise.
7990         * modules/signal (Makefile.am): Likewise.
7991         * modules/stdarg (Makefile.am): Likewise.
7992         * modules/stdint (Makefile.am): Likewise.
7993         * modules/stdio (Makefile.am): Likewise.
7994         * modules/stdlib (Makefile.am): Likewise.
7995         * modules/string (Makefile.am): Likewise.
7996         * modules/strings (Makefile.am): Likewise.
7997         * modules/sys_select (Makefile.am): Likewise.
7998         * modules/sys_socket (Makefile.am): Likewise.
7999         * modules/sys_stat (Makefile.am): Likewise.
8000         * modules/sys_time (Makefile.am): Likewise.
8001         * modules/sysexits (Makefile.am): Likewise.
8002         * modules/time (Makefile.am): Likewise.
8003         * modules/unistd (Makefile.am): Likewise.
8004         * modules/wchar (Makefile.am): Likewise.
8005         * modules/wctype (Makefile.am): Likewise.
8006         Reported by Reuben Thomas <rrt@sc3d.org>.
8007
8008 2008-08-29  Bruno Haible  <bruno@clisp.org>
8009
8010         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
8011         any more.
8012
8013 2008-08-29  Simon Josefsson  <simon@josefsson.org>
8014
8015         * MODULES.html.sh (Misc): Add bitrotate.
8016
8017         * modules/bitrotate: New file.
8018
8019         * lib/bitrotate.h: New file.
8020
8021         * modules/bitrotate-tests: New file.
8022
8023         * tests/test-bitrotate.c: New file.
8024
8025         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
8026         on the bitrotate module.
8027
8028         * lib/arctwo.c: Use new bitrotate module.
8029
8030 2008-08-29  Jim Meyering  <meyering@redhat.com>
8031
8032         bootstrap: merge changes from coreutils
8033         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
8034         of copied files.  Remove a kludge, now that this is fixed.
8035         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
8036         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
8037         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
8038
8039 2008-08-29  Bruno Haible  <bruno@clisp.org>
8040
8041         * MODULES.html.sh: Remove --cvs-urls option.
8042
8043 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
8044
8045         maint.mk: adjust to file name change
8046         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
8047
8048 2008-08-28  Jim Meyering  <meyering@redhat.com>
8049
8050         * modules/getndelim2 (License): Relicense to LGPLv2+.
8051         Approved by Richard Stallman for the version of 1995, and by
8052         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
8053
8054 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
8055
8056         * lib/getdelim.c (flockfile, funlockfile): Make all of them
8057         dummy if one is not available.  Do not touch them if
8058         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
8059         (getc_maybe_unlocked): New.
8060         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
8061
8062 2008-08-26  Eric Blake  <ebb9@byu.net>
8063
8064         doc/INSTALL: resync from autoconf
8065         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
8066         (INSTALL_PRELUDE): Delete; this is done more efficiently by
8067         moving...
8068         * install.texi [!autoconf]: ...here.  Resync from autoconf.
8069         * INSTALL: Regenerate.
8070         * INSTALL.ISO: New file.
8071         * INSTALL.UTF-8: Likewise.
8072
8073 2008-08-26  Jim Meyering  <meyering@redhat.com>
8074
8075         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
8076         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
8077         these definitions conditional, so that they may be overridden, too.
8078
8079 2008-08-26  Bruno Haible  <bruno@clisp.org>
8080
8081         Generate INSTALL file variants with prettier quotes.
8082         * doc/Makefile (INSTALL_PRELUDE): New macro.
8083         (INSTALL): Use it.
8084         (INSTALL.ISO, INSTALL.UTF-8): New rules.
8085
8086 2008-08-26  Bruno Haible  <bruno@clisp.org>
8087
8088         Run makeinfo in an English locale.
8089         * doc/Makefile (MAKEINFO): New variable.
8090
8091 2008-08-26  Bruno Haible  <bruno@clisp.org>
8092
8093         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
8094         Suggested by Eric Blake.
8095
8096 2008-08-25  Bruno Haible  <bruno@clisp.org>
8097
8098         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
8099
8100 2008-08-25  Eric Blake  <ebb9@byu.net>
8101
8102         c-stack: test that stack overflow can be caught
8103         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
8104         that platform allows handling stack overflow; at least OS/2 EMX
8105         has sigaltstack, but crashes before transferring control to
8106         handler on stack overflow.
8107         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
8108         check for HAVE_STACK_OVERFLOW_HANDLING.
8109         Reported by Elbert Pol.
8110
8111 2008-08-25  Bruno Haible  <bruno@clisp.org>
8112
8113         * doc/posix-functions/strftime.texi: Fix description of strftime
8114         module.
8115
8116 2008-08-24  Bruno Haible  <bruno@clisp.org>
8117
8118         * tests/uniwidth/test-uc_width2.c: New file.
8119         * tests/uniwidth/test-uc_width2.sh: New file.
8120         * modules/uniwidth/width-tests (Files): Add the new files.
8121         (TESTS): Add uniwidth/test-uc_width2.sh.
8122         (TESTS_ENVIRONMENT): New variable.
8123         (check_PROGRAMS): Add test-uc_width2.
8124         (test_uc_width2_SOURCES): New variable.
8125
8126         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
8127         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
8128         not 0x00AB.
8129         Reported by Alexander V. Lukyanov <lav@netis.ru>.
8130
8131 2008-08-22  Eric Blake  <ebb9@byu.net>
8132
8133         test-lock, test-tls: mention why a test is skipped
8134         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
8135         skipped.
8136         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
8137
8138         count-one-bits: relax license
8139         * modules/count-one-bits (License): Relicense to LGPLv2+.
8140         Suggested by Ludovic Courtès, approved by Ben Pfaff.
8141
8142 2008-08-22  Andreas Schwab  <schwab@suse.de>
8143
8144         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
8145         Remove spurious space in assignment.
8146
8147 2008-08-21  Simon Josefsson  <simon@josefsson.org>
8148
8149         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
8150         Paul Eggert <eggert@CS.UCLA.EDU>.
8151
8152 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
8153
8154         * modules/gettext: Add m4/threadlib.m4.
8155
8156 2008-08-19  Eric Blake  <ebb9@byu.net>
8157
8158         test-c-stack: fix compilation failure on FreeBSD 5.0
8159         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
8160         headers before <sys/resource.h>.
8161         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
8162         the bug.
8163         Reported by Nelson H. F. Beebe.
8164
8165         strverscmp: migrate from "strverscmp.h" to <string.h>
8166         * modules/string (Makefile.am): Add new hooks.
8167         * modules/strverscmp (Files): Remove strverscmp.h.
8168         (Depends-on): Add string.
8169         (configure.ac): Add indicator.
8170         (Include): Mention new header.
8171         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
8172         defaults.
8173         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
8174         results.
8175         * lib/strverscmp.h: Delete.
8176         * lib/string.in.h (strverscmp): Provide declaration, when needed.
8177         * tests/test-strverscmp.c (includes): Adjust client.
8178         * lib/check-version.c (includes): Likewise.
8179         * NEWS: Document the change.
8180
8181         strverscmp: add unit test
8182         * modules/strverscmp-tests: New file.
8183         * tests/test-strverscmp.c: Likewise.
8184
8185 2008-08-19  Simon Josefsson  <simon@josefsson.org>
8186
8187         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
8188         regarding Windows crypto stuff, from Mono.
8189
8190 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
8191
8192         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
8193         if present, for intel RND.  Return error on failures.
8194
8195 2008-08-18  Ben Pfaff  <blp@gnu.org>
8196
8197         gitlog-to-changelog: give better diagnostic for failed pipe-open
8198         * build-aux/gitlog-to-changelog: Improve error message: suggest
8199         that the version of Git may be too old.
8200
8201 2008-08-18  Simon Josefsson  <simon@josefsson.org>
8202
8203         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
8204         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
8205
8206 2008-08-18  Bruno Haible  <bruno@clisp.org>
8207
8208         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
8209         pthread_in_use().
8210
8211 2008-08-18  Bruno Haible  <bruno@clisp.org>
8212
8213         * lib/glthread/threadlib.c: Include <pthread.h>.
8214
8215 2008-08-18  Bruno Haible  <bruno@clisp.org>
8216
8217         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
8218         glthread_recursive_lock_* macros.
8219         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
8220         Fix syntax error.
8221
8222 2008-08-18  Bruno Haible  <bruno@clisp.org>
8223
8224         * lib/glthread/thread.c: Avoid forcing a context switch right after
8225         thread creation.
8226
8227 2008-08-17  Bruno Haible  <bruno@clisp.org>
8228
8229         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
8230         * lib/glthread/thread.h: Provide Win32 specific implementation.
8231         * modules/thread (Files): Add lib/glthread/thread.c.
8232         (Depends-on): Add lock.
8233         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
8234
8235 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8236
8237         New module 'yield'.
8238         * modules/yield: New file.
8239         * lib/glthread/yield.h: New file.
8240         * m4/yield.m4: New file.
8241         * MODULES.html.sh (Multithreading): Add yield.
8242
8243 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8244
8245         New module 'thread'.
8246         * modules/thread: New file.
8247         * lib/glthread/thread.h: New file.
8248         * m4/thread.m4: New file.
8249         * MODULES.html.sh (Multithreading): Add thread.
8250
8251 2008-08-17  Bruno Haible  <bruno@clisp.org>
8252
8253         * lib/glthread/lock.h: Include <stdlib.h> always.
8254         * lib/glthread/tls.h: Likewise.
8255         * lib/glthread/cond.h: Likewise.
8256
8257 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8258
8259         New module 'cond'.
8260         * modules/cond: New file.
8261         * lib/glthread/cond.h: New file.
8262         * lib/glthread/cond.c: New file.
8263         * m4/cond.m4: New file.
8264         * MODULES.html.sh (Multithreading): Add cond.
8265
8266 2008-08-16  Eric Blake  <ebb9@byu.net>
8267
8268         c-stack: fix regression on Irix 5.3 from 2008-06-21
8269         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
8270         sa_sigaction...
8271         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
8272         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
8273         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
8274         * modules/signal (Makefile.am): Use the value.
8275         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
8276         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
8277         * doc/posix-headers/signal.texi (signal.h): Document this
8278         portability issue.
8279         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
8280         Reported by Tom G. Christensen.
8281
8282 2008-08-17  Bruno Haible  <bruno@clisp.org>
8283
8284         New module 'threadlib'.
8285         * modules/threadlib: New file.
8286         * lib/glthread/threadlib.c: New file, extracted from
8287         lib/glthread/lock.c.
8288         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
8289         functions.
8290         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
8291         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
8292         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
8293         macros.
8294         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
8295         (gl_DISABLE_THREADS): Remove macro.
8296         * modules/lock (Files): Remove build-aux/config.rpath.
8297         (Depends-on): Remove havelib. Add threadlib.
8298         (configure.ac-early): Remove section.
8299         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
8300         * modules/tls (Depends-on): Remove lock. Add threadlib.
8301         (Link): New section, copied from threadlib.
8302         * MODULES.html.sh (Multithreading): Add threadlib.
8303
8304 2008-08-14  Bruno Haible  <bruno@clisp.org>
8305
8306         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
8307         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
8308         glthread_rwlock_unlock, glthread_rwlock_destroy,
8309         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
8310         glthread_recursive_lock_destroy): Define as macros always.
8311         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
8312         glthread_lock_lock.
8313         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
8314         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
8315         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
8316         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
8317         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
8318         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
8319         (glthread_recursive_lock_lock_func): Renamed from
8320         glthread_recursive_lock_lock.
8321         (glthread_recursive_lock_unlock_func): Renamed from
8322         glthread_recursive_lock_unlock.
8323         (glthread_recursive_lock_destroy_func): Renamed from
8324         glthread_recursive_lock_destroy.
8325
8326 2008-08-14  Bruno Haible  <bruno@clisp.org>
8327
8328         * lib/glthread/lock.h: Renamed from lib/lock.h.
8329         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
8330         * lib/glthread/tls.h: Renamed from lib/tls.h.
8331         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
8332         * lib/fstrcmp.c: Update includes.
8333         * lib/strsignal.c: Update includes.
8334         * modules/lock (Files, Makefile.am): Update.
8335         (Include): Change to "glthread/lock.h".
8336         * modules/tls (Files, Makefile.am): Update.
8337         (Include): Change to "glthread/tls.h".
8338         * tests/test-lock.c: Update includes.
8339         * tests/test-tls.c: Update includes.
8340         * NEWS: Mention the renamed header files.
8341
8342 2008-08-11  Jim Meyering  <meyering@redhat.com>
8343
8344         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
8345
8346 2008-08-11  Eric Blake  <ebb9@byu.net>
8347
8348         test-c-stack: avoid C99-ism
8349         * tests/test-c-stack.c (main): Fix whitespace, move declaration
8350         before statement.
8351         Reported by Alain Guibert.
8352
8353 2008-08-10  Jim Meyering  <meyering@redhat.com>
8354
8355         ensure that return value of uinttostr et al are not ignored
8356         * lib/inttostr.h (__GNUC_PREREQ): Define.
8357         (__attribute_warn_unused_result__): Define.
8358         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
8359
8360 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
8361
8362         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
8363         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
8364
8365 2008-08-07  Jim Meyering  <meyering@redhat.com>
8366
8367         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
8368
8369         * modules/mkstemp (License): Relicense under LGPLv2+.
8370         * modules/tempname (License): Likewise.
8371
8372 2008-08-06  Bruno Haible  <bruno@clisp.org>
8373
8374         * lib/poll.c (poll): Further micro-optimization.
8375
8376 2008-08-06  Jim Meyering  <meyering@redhat.com>
8377
8378         inet_pton.c: use locale-independent tolower
8379         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
8380         (inet_pton6): Use c_tolower rather than tolower.
8381         * modules/inet_pton (Depends-on): Add c-ctype.
8382
8383 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
8384
8385         * lib/poll.c (poll): Avoid division when timeout is 0, cache
8386         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
8387
8388 2008-08-06  Jim Meyering  <meyering@redhat.com>
8389
8390         * modules/inet_pton (License): Relicense under LGPLv2+.
8391
8392 2008-08-03  Bruno Haible  <bruno@clisp.org>
8393
8394         Additional non-aborting API for lock and tls.
8395         * lib/lock.h: Include <errno.h>.
8396         (glthread_lock_init): New macro/function.
8397         (gl_lock_init): Define as wrapper around glthread_lock_init.
8398         (glthread_lock_lock): New macro/function.
8399         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
8400         (glthread_lock_unlock): New macro/function.
8401         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
8402         (glthread_lock_destroy): New macro/function.
8403         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
8404         (glthread_rwlock_init): New macro/function.
8405         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
8406         (glthread_rwlock_rdlock): New macro/function.
8407         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
8408         (glthread_rwlock_wrlock): New macro/function.
8409         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
8410         (glthread_rwlock_unlock): New macro/function.
8411         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
8412         (glthread_rwlock_destroy): New macro/function.
8413         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
8414         (glthread_recursive_lock_init): New macro/function.
8415         (gl_recursive_lock_init): Define as wrapper around
8416         glthread_recursive_lock_init.
8417         (glthread_recursive_lock_lock): New macro/function.
8418         (gl_recursive_lock_lock): Define as wrapper around
8419         glthread_recursive_lock_lock.
8420         (glthread_recursive_lock_unlock): New macro/function.
8421         (gl_recursive_lock_unlock): Define as wrapper around
8422         glthread_recursive_lock_unlock.
8423         (glthread_recursive_lock_destroy): New macro/function.
8424         (gl_recursive_lock_destroy): Define as wrapper around
8425         glthread_recursive_lock_destroy.
8426         (glthread_once): New macro/function.
8427         (gl_once): Define as wrapper around glthread_once.
8428         Update function declarations.
8429         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
8430         glthread_rwlock_init. Return error code.
8431         (glthread_rwlock_rdlock_multithreaded): Renamed from
8432         glthread_rwlock_rdlock. Return error code.
8433         (glthread_rwlock_wrlock_multithreaded): Renamed from
8434         glthread_rwlock_wrlock. Return error code.
8435         (glthread_rwlock_unlock_multithreaded): Renamed from
8436         glthread_rwlock_unlock. Return error code.
8437         (glthread_rwlock_destroy_multithreaded): Renamed from
8438         glthread_rwlock_destroy. Return error code.
8439         (glthread_recursive_lock_init_multithreaded): Renamed from
8440         glthread_recursive_lock_init. Return error code.
8441         (glthread_recursive_lock_lock_multithreaded): Renamed from
8442         glthread_recursive_lock_lock. Return error code.
8443         (glthread_recursive_lock_unlock_multithreaded): Renamed from
8444         glthread_recursive_lock_unlock. Return error code.
8445         (glthread_recursive_lock_destroy_multithreaded): Renamed from
8446         glthread_recursive_lock_destroy. Return error code.
8447         (glthread_once_call): Make static.
8448         (glthread_once_multithreaded): Renamed from glthread_once.
8449         * lib/tls.h: Include <errno.h>.
8450         (glthread_tls_key_init): New macro/function.
8451         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
8452         (glthread_tls_set): New macro/function.
8453         (gl_tls_set): Define as wrapper around glthread_tls_set.
8454         (glthread_tls_key_destroy): New macro/function.
8455         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
8456         Update function declarations.
8457         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
8458         glthread_tls_get.
8459         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
8460
8461 2008-08-04  Eric Blake  <ebb9@byu.net>
8462
8463         gnumakefile: use space, not TAB, outside of targets
8464         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
8465
8466 2008-08-02  Jim Meyering  <meyering@redhat.com>
8467
8468         getdate.y: avoid locale-dependent date parsing failure
8469         In Turkish locales, getdate would fail to recognize keywords
8470         containing a lowercase "i".  The solution is not to rely on
8471         locale-sensitive case-conversion.
8472         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
8473         (lookup_word): Use c_toupper in place of toupper.
8474         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
8475         Reported by Vefa Bicakci <bicave@superonline.com> in
8476         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
8477         * modules/getdate (Depends-on): Add c-ctype.
8478
8479 2008-08-02  Bruno Haible  <bruno@clisp.org>
8480
8481         * gnulib-tool (func_import): When updating or creating a .gitignore
8482         file, prepend each added line with a slash, and ignore leading slashes
8483         from the existing lines.
8484         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
8485
8486 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8487
8488         Portability fix for GNU make 3.79.1.
8489         * top/GNUmakefile: Avoid 'else COND', which older GNU make
8490         versions do not understand.
8491
8492 2008-08-01  Bruno Haible  <bruno@clisp.org>
8493
8494         Work around bug of HP-UX 10.20 cc with -0.0 literal.
8495         * tests/test-isnanf.h (zero): New variable.
8496         (main): Avoid literal -0.0f.
8497         * tests/test-isnand.h (zero): New variable.
8498         (main): Avoid literal -0.0.
8499         * tests/test-isnanl.h (zero): New variable.
8500         (main): Avoid literal -0.0L.
8501         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
8502         (test_float, test_double, test_long_double): Avoid literals -0.0f,
8503         -0.0, -0.0L.
8504         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
8505         (test_signbitd): Avoid literal -0.0.
8506         (test_signbitl): Avoid literal -0.0L.
8507         * tests/test-ceilf1.c (zero): New variable.
8508         (main): Avoid literal -0.0f.
8509         * tests/test-ceill.c (zero): New variable.
8510         (main): Avoid literal -0.0L.
8511         * tests/test-floorf1.c (zero): New variable.
8512         (main): Avoid literal -0.0f.
8513         * tests/test-floorl.c (zero): New variable.
8514         (main): Avoid literal -0.0L.
8515         * tests/test-roundf1.c (zero): New variable.
8516         (main): Avoid literal -0.0f.
8517         * tests/test-round1.c (zero): New variable.
8518         (main): Avoid literal -0.0.
8519         * tests/test-roundl.c (zero): New variable.
8520         (main): Avoid literal -0.0L.
8521         * tests/test-truncf1.c (zero): New variable.
8522         (main): Avoid literal -0.0f.
8523         * tests/test-trunc1.c (zero): New variable.
8524         (main): Avoid literal -0.0.
8525         * tests/test-truncl.c (zero): New variable.
8526         (main): Avoid literal -0.0L.
8527         * tests/test-frexp.c (zero): New variable.
8528         (main): Avoid literal -0.0.
8529         * tests/test-frexpl.c (zero): New variable.
8530         (main): Avoid literal -0.0L.
8531         * tests/test-ldexpl.c (zero): New variable.
8532         (main): Avoid literal -0.0L.
8533         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
8534         (zerod, zerol): New variables.
8535         (test_function): Avoid literals -0.0, -0.0L.
8536         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
8537         (zerod, zerol): New variables.
8538         (test_function): Avoid literals -0.0, -0.0L.
8539         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
8540         (zerod, zerol): New variables.
8541         (test_function): Avoid literals -0.0, -0.0L.
8542         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
8543         (zerod, zerol): New variables.
8544         (test_function): Avoid literals -0.0, -0.0L.
8545         * tests/test-strtod.c (zero): New variable.
8546         (main): Avoid literal -0.0.
8547         Reported by Jonathan C. Patschke <jp@centtech.com>.
8548
8549 2008-07-31  Jim Meyering  <meyering@redhat.com>
8550
8551         sha256.h: correct definition of SHA224_DIGEST_SIZE
8552         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
8553         Reported by Paulie Pena IV <paulie4@gmail.com>.
8554         Define as 224 / 8, rather than as a literal.
8555         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
8556         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
8557         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
8558
8559 2008-07-31  Bruno Haible  <bruno@clisp.org>
8560
8561         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
8562         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
8563         Reported by Jonathan Patschke <jp@centtech.com>.
8564
8565 2008-07-31  Bruno Haible  <bruno@clisp.org>
8566
8567         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
8568         Reported by Paolo Bonzini <bonzini@gnu.org>.
8569
8570 2008-07-30  Eric Blake  <ebb9@byu.net>
8571
8572         test-strtod: allow compilation without -lm
8573         * tests/test-strtod.c (main): Avoid link dependence on fabs.
8574         Reported by Dennis Clarke <blastwave@gmail.com>.
8575
8576 2008-07-28  Jim Meyering  <meyering@redhat.com>
8577
8578         bootstrap: work also when there are no .po files in po/
8579         * build-aux/bootstrap (update_po_files): Complete the change
8580         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
8581
8582 2008-07-27  Jim Meyering  <meyering@redhat.com>
8583
8584         * users.txt: Add zile.
8585
8586 2008-07-26  Ben Pfaff  <blp@gnu.org>
8587
8588         Add missing dependencies on new m4/exponent[fdl].m4 files.
8589         * modules/isnanf-nolibm: Add m4/exponentf.m4.
8590         * modules/isnand-nolibm: Add m4/exponentd.m4.
8591         * modules/isnanl-nolibm: Add m4/exponentl.m4.
8592         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
8593         m4/isnan[fdl].m4, because the macros actually used moved.
8594         Reported by Jim Meyering.
8595
8596 2008-07-14  Ben Pfaff  <blp@gnu.org>
8597
8598         Add isinf module.
8599         * lib/isinf.c: New file.
8600         * lib/math.in.h: Define isinf macro if we have decided to replace
8601         it.
8602         * m4/isinf.m4: New file.
8603         * m4/math_h.m4: Initialize and substitute variables for isinf
8604         module.
8605         * modules/isinf: New file.
8606         * modules/isinf-tests: New file.
8607         * modules/math: Add substitutions for new module.
8608         * tests/test-isinf.c: New file.
8609         * doc/posix-functions/isinf.texi: Mention new module.
8610         * MODULES.html.sh: Mention new module.
8611
8612 2008-07-14  Ben Pfaff  <blp@gnu.org>
8613
8614         Factor out some macros for use by additional modules.
8615         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
8616         exponentf.m4.
8617         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
8618         exponentd.m4.
8619         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
8620         file exponentl.m4.
8621         * m4/exponentf.m4: New file.
8622         * m4/exponentd.m4: New file.
8623         * m4/exponentl.m4: New file.
8624         * modules/isnanf: Use new file m4/exponentf.m4.
8625         * modules/isnand: Use new file m4/exponentd.m4.
8626         * modules/isnanl: Use new file m4/exponentl.m4.
8627
8628 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
8629
8630         mktime.c: normalize tp->tm_isdst value to -1/0/1.
8631         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
8632         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
8633         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
8634
8635         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
8636         readlink on platforms without PATH_MAX.
8637
8638 2008-07-21  Eric Blake  <ebb9@byu.net>
8639
8640         Warn, not fail, on stale version.
8641         * top/GNUmakefile (_curr-ver): Tone down previous patch.
8642
8643         Don't allow installation with stale devel version number.
8644         * top/GNUmakefile (_is-install-target): New macro.
8645         (_curr-ver): Forbid installation with stale version number.
8646
8647 2008-07-20  Bruno Haible  <bruno@clisp.org>
8648
8649         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
8650         TESTS_ENVIRONMENT.
8651         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
8652
8653 2008-07-20  Bruno Haible  <bruno@clisp.org>
8654
8655         * lib/c-stack.h (c_stack_action): Add documentation.
8656         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
8657
8658 2008-07-20  Bruno Haible  <bruno@clisp.org>
8659
8660         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
8661         * modules/readlink (License): Likewise.
8662
8663 2008-07-17  Eric Blake  <ebb9@byu.net>
8664
8665         * modules/c-stack (Link): Fix typo.
8666
8667         Make c-stack use libsigsegv, when available.
8668         * modules/c-stack (Depends-on): Add libsigsegv.
8669         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
8670         needed.
8671         * lib/c-stack.c (SIGSTKSZ): Define fallback.
8672         (segv_handler, overflow_handler, c_stack_action)
8673         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
8674         implementation when libsigsegv is available, but only when using
8675         the library is necessary.
8676         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
8677         comment, explaining why XSI check fails on Linux.
8678         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
8679         * tests/test-c-stack2.sh: Tweak skip message.
8680         * NEWS: Document new link-time requirements.
8681
8682 2008-07-16  Eric Blake  <ebb9@byu.net>
8683
8684         c-stack: Expose false positives when not using libsigsegv.
8685         * modules/c-stack-tests (Files): Expand test.
8686         * tests/test-c-stack.c (main): Add means to conditionally trigger
8687         non-overflow SIGSEGV.
8688         * tests/test-c-stack2.sh: New file.
8689
8690 2008-07-14  Bruno Haible  <bruno@clisp.org>
8691
8692         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
8693         Reported by Eric Blake.
8694
8695 2008-07-14  Sam Steingold  <sds@gnu.org>
8696             Bruno Haible  <bruno@clisp.org>
8697
8698         New module libsigsegv.
8699         * modules/libsigsegv: New file.
8700         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
8701         modifications.
8702         * MODULES.html.sh (Signal handling): New section.
8703
8704 2008-07-14  Bruno Haible  <bruno@clisp.org>
8705
8706         * modules/unictype/ctype-* (Description): Add the word "function".
8707         Improves the resulting doc in MODULES.html.
8708
8709 2008-07-12  Ben Pfaff  <blp@gnu.org>
8710
8711         Add longlong module.
8712         * modules/longlong: New file.
8713
8714 2008-07-12  Bruno Haible  <bruno@clisp.org>
8715
8716         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
8717         to empty.
8718
8719 2008-07-10  Ben Pfaff  <blp@gnu.org>
8720
8721         Add isnan module.
8722         * doc/posix-functions/isnan.texi: Mention new module.
8723         * lib/math.in.h: Define isnan macro if we have decided to replace
8724         it.
8725         * m4/isnan.m4: New file.
8726         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
8727         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
8728         also.
8729         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
8730         redundancy.
8731         * m4/math_h.m4: Initialize and substitute variables for isnan
8732         module.
8733         * modules/isnan: New file.
8734         * modules/isnan-tests: New file.
8735         * modules/math: Add substitutions for new module.
8736         * tests/test-isnan.c: New file.
8737         * MODULES.html.sh: Mention new module.
8738
8739 2008-07-10  Ben Pfaff  <blp@gnu.org>
8740
8741         Add isnanf module.
8742         * lib/isnanf.m4: New file.
8743         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
8744         (gl_HAVE_ISNANF_IN_LIBM): New macro.
8745         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
8746         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
8747         * modules/isnanf: New file.
8748         * modules/isnanf-tests: New file.
8749         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
8750         files.
8751         * tests/test-isnanf-nolibm.c: factored most of its contents into
8752         new file tests/test-isnanf.h.
8753         * tests/test-isnanf.h: New file.
8754         * tests/test-isnanf.c: New file.
8755         * MODULES.html.sh: Mention new module.
8756         * doc/glibc-functions/isnanf.texi: Mention new module.
8757
8758 2008-07-10  Ben Pfaff  <blp@gnu.org>
8759
8760         Add isnand module.
8761         * lib/isnand.h: New file.
8762         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
8763         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
8764         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
8765         functionality also.
8766         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
8767         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
8768         (gl_HAVE_ISNAND_IN_LIBM): New macro.
8769         * modules/isnand: New file.
8770         * modules/isnand-tests: New file.
8771         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
8772         files.
8773         * tests/test-isnand-nolibm.c: factored most of its contents into
8774         new file tests/test-isnand.h.
8775         * tests/test-isnand.h: New file.
8776         * tests/test-isnand.c: New file.
8777         * MODULES.html.sh: Mention new module.
8778
8779 2008-07-10  Ben Pfaff  <blp@gnu.org>
8780
8781         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
8782         * lib/isnand.h: Rename lib/isnand-nolibm.h.
8783         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
8784         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
8785         * modules/isnanf-nolibm: Update references to renamed files.
8786         * modules/isnand-nolibm: Likewise.
8787         * modules/isnanf-nolibm-tests: Likewise.
8788         * modules/isnand-nolibm-tests: Likewise.
8789         * lib/frexp.c: Likewise.
8790         * lib/isfinite.c: Likewise.
8791         * lib/signbitd.c: Likewise.
8792         * lib/signbitf.c: Likewise.
8793         * lib/vasnprintf.c: Likewise.
8794         * tests/test-ceilf1.c: Likewise.
8795         * tests/test-ceilf2.c: Likewise.
8796         * tests/test-floorf1.c: Likewise.
8797         * tests/test-floorf2.c: Likewise.
8798         * tests/test-frexp.c: Likewise.
8799         * tests/test-round1.c: Likewise.
8800         * tests/test-round2.c: Likewise.
8801         * tests/test-roundf1.c: Likewise.
8802         * tests/test-strtod.c: Likewise.
8803         * tests/test-trunc1.c: Likewise.
8804         * tests/test-trunc2.c: Likewise.
8805         * tests/test-truncf1.c: Likewise.
8806         * tests/test-truncf2.c: Likewise.
8807         * NEWS: Mention the renamed header files.
8808
8809 2008-07-11  Jim Meyering  <meyering@redhat.com>
8810
8811         vc-list-files: make the last-resort awk code more portable
8812         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
8813         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
8814         does not support it.
8815
8816 2008-07-10  Eric Blake  <ebb9@byu.net>
8817
8818         Work with tar's bootstrap.
8819         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
8820         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
8821         an m4 comment.
8822
8823 2008-07-09  Jim Meyering  <meyering@redhat.com>
8824
8825         posix-shell.m4: fix typo that made this test malfunction
8826         * m4/posix-shell.m4: Remove capitalization in variable name.
8827
8828 2008-07-08  Bruno Haible  <bruno@clisp.org>
8829
8830         * m4/onceonly.m4: Update comments.
8831         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8832
8833 2008-07-04  Jim Meyering  <meyering@redhat.com>
8834
8835         * users.txt: Add vc-dwim.
8836         (bison, coreutils): Use the gitweb URL.
8837
8838 2008-07-03  Jim Meyering  <meyering@redhat.com>
8839
8840         * users.txt: Add libffcall.  From Sam Steingold.
8841
8842 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
8843
8844         getdate.y: do not ignore TZ with relative day, month or year offset
8845         * lib/getdate.y (get_date): Move the tz-handling block to follow the
8846         relative-date-handling, since otherwise, the latter would clobber the
8847         sole output (an updated Start value) of the tz-handling block.
8848         * tests/test-getdate.c: Tests for the fix
8849
8850 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8851
8852         Recognize 'foo_LIBRARIES += libgnu.a'.
8853         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
8854         makefile snippet has already specified an installation location,
8855         also using '+='.
8856
8857 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
8858
8859         getdate.y: factor out common actions
8860         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
8861         Use them in place of open-coded actions.
8862
8863 2008-07-01  Simon Josefsson  <simon@josefsson.org>
8864
8865         Add self-test for getdate module.
8866         * modules/getdate-tests: New file.
8867         * tests/test-getdate.c: New file.
8868
8869 2008-06-29  Bruno Haible  <bruno@clisp.org>
8870
8871         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
8872         .gitignore.
8873         Reported by Sylvain Beucler <beuc@beuc.net>.
8874
8875 2008-06-29  Bruno Haible  <bruno@clisp.org>
8876
8877         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
8878         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
8879
8880 2008-06-29  Bruno Haible  <bruno@clisp.org>
8881
8882         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
8883         EXTRA_DIST.
8884         Reported by Sylvain Beucler <beuc@beuc.net>.
8885
8886 2008-06-26  Jim Meyering  <meyering@redhat.com>
8887
8888         make several modules depend on the "open" module
8889         This provides slightly increased consistency when opening-for-write
8890         the name of a non-directory spelled with a trailing slash.
8891         * modules/chdir-safer: Likewise.
8892         * modules/chown: Likewise.
8893         * modules/clean-temp: Likewise.
8894         * modules/copy-file: Likewise.
8895         * modules/fchdir: Likewise.
8896         * modules/fcntl-safer: Likewise.
8897         * modules/pipe: Likewise.
8898         * modules/utime: Likewise.
8899         Prompted by Eric Blake and Bruno Haible.
8900
8901 2008-06-24  Andreas Schwab  <schwab@suse.de>
8902
8903         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
8904         literals can be used as initializers for global variables.
8905
8906 2008-06-23  Eric Blake  <ebb9@byu.net>
8907
8908         Make gnulib-cache.m4 easier to diff.
8909         * gnulib-tool (func_import): Allow newlines when reading cached
8910         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
8911
8912 2008-06-23  Bruno Haible  <bruno@clisp.org>
8913
8914         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
8915         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
8916         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
8917         m4/signalblocking.m4.
8918         (gl_PREREQ_SIGACTION): Don't invoke it.
8919         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
8920         gl_PREREQ_SIG_HANDLER_H.
8921         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
8922         Don't check for sigaction here.
8923
8924 2008-06-23  Bruno Haible  <bruno@clisp.org>
8925
8926         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
8927         (install_handlers): Don't set the SA_RESETHAND flag.
8928
8929 2008-06-23  Bruno Haible  <bruno@clisp.org>
8930
8931         * m4/sigaction.m4: Comment fixes.
8932         * lib/signal.in.h: Likewise.
8933
8934 2008-06-23  Eric Blake  <ebb9@byu.net>
8935
8936         Fix typo.
8937         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
8938
8939         Avoid SA_ namespace.
8940         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
8941         Reported by Ralf Wildenhues.
8942
8943         Avoid test failure due to SA_RESTORER.
8944         * tests/test-sigaction.c (SA_MASK): New macro.
8945         (main): Avoid failing due to extension flags being set.
8946         Reported by Jim Meyering.
8947
8948         Revert use of sig-handler.h in sigprocmask.c.
8949         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
8950         it requires the existence of struct sigaction.
8951         * lib/sigprocmask.c (handler_t): Restore typedef.
8952         (rpl_signal, old_handlers): Use local type.
8953
8954 2008-06-22  Bruno Haible  <bruno@clisp.org>
8955
8956         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
8957         conditionally.
8958         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8959
8960 2008-06-22  Bruno Haible  <bruno@clisp.org>
8961
8962         * doc/posix-functions/siginterrupt.texi: Move note.
8963
8964         * lib/signal.in.h (SA_RESTART): New macro.
8965         * lib/sigaction.c: Update comment.
8966
8967         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
8968
8969         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
8970         (gl_PREREQ_SIGPROCMASK): Invoke it.
8971         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
8972
8973         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
8974
8975         * lib/sigprocmask.c: Update a comment.
8976
8977 2008-06-21  Eric Blake  <ebb9@byu.net>
8978
8979         Use sigaction module rather than signal().
8980         * modules/c-stack (Depends-on): Add sigaction.
8981         * modules/fatal-signal (Depends-on): Likewise.
8982         * modules/nanosleep (Depends-on): Likewise.
8983         * modules/sigprocmask (Files): Add sig-handler.h.
8984         * modules/sigaction (Files): Likewise.
8985         * lib/sig-handler.h (get_handler): New file, suggested by Paul
8986         Eggert.
8987         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
8988         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
8989         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
8990         (init_fatal_signals): Likewise.
8991         * lib/nanosleep.c (rpl_nanosleep): Likewise.
8992         (siginterrupt): Delete fallback.
8993         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
8994         instead.
8995         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
8996         siginterrupt.
8997
8998         New module sigaction, for mingw.
8999         * modules/sigaction: New module...
9000         * modules/sigaction-tests: ...and its test.
9001         * m4/sigaction.m4: New file.
9002         * lib/sigaction.c: Likewise.
9003         * tests/test-sigaction.c: Likewise.
9004         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
9005         * modules/signal (Makefile.am): Likewise.
9006         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
9007         needed.
9008         * doc/posix-headers/signal.texi (signal.h): Mention provided
9009         types.
9010         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
9011         that sigaction is preferable.
9012         * doc/posix-functions/sigaction.texi (sigaction): Mention new
9013         module.
9014         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
9015         sigaction.
9016
9017         Improve robustness of sigprocmask by overriding signal.
9018         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
9019         is in use.
9020         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
9021         (SIGKILL, SIGSTOP): Provide fallbacks.
9022         (rpl_signal): Implement.
9023         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
9024         signal can be called inside handlers.
9025
9026         Fix nanosleep module on mingw.
9027         * modules/nanosleep (Depends-on): Add sys_select.
9028         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
9029
9030         Fix licensing of sigprocmask.
9031         * modules/raise (License): Relicense as LGPL.
9032
9033 2008-06-21  Bruno Haible  <bruno@clisp.org>
9034
9035         * lib/propername.c (proper_name_utf8): Don't use the transliterated
9036         result if it contains question marks.
9037         Reported by Michael Geng <linux@michaelgeng.de>.
9038
9039 2008-06-19  Bruno Haible  <bruno@clisp.org>
9040
9041         Fix CVS-ism.
9042         * doc/gnulib.texi: Include updated-stamp.texi.
9043         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
9044         (updated-stamp.texi): New rule.
9045         (gnulib.info): Depend on it.
9046         * doc/.gitignore: Add updated-stamp.texi.
9047         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
9048
9049 2008-06-19  Bruno Haible  <bruno@clisp.org>
9050
9051         * doc/Makefile (gnulib.info): Update and simplify dependencies.
9052         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
9053
9054 2008-06-19  Eric Blake  <ebb9@byu.net>
9055
9056         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
9057         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
9058         Reported by Stepan Kasal.
9059
9060 2008-06-18  Bruno Haible  <bruno@clisp.org>
9061
9062         * lib/fatal-signal.c (init_fatal_signals): Add comment.
9063         Reported by Eric Blake.
9064
9065 2008-06-18  Eric Blake  <ebb9@byu.net>
9066
9067         Work around cygwin 1.5.25 strsignal bug.
9068         * tests/test-strsignal.c: Allow for const char *.
9069         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
9070
9071 2008-06-18  Simon Josefsson  <simon@josefsson.org>
9072
9073         * users.txt: Update URL to article and add author/date
9074         information.
9075
9076 2008-06-17  Bruno Haible  <bruno@clisp.org>
9077
9078         New macro gl_DISABLE_THREADS.
9079         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
9080         if the user did not pass --enable-threads or --disable-threads option.
9081         (gl_DISABLE_THREADS): New macro.
9082         Reported by Eric Blake <ebb9@byu.net>.
9083
9084 2008-06-17  Bruno Haible  <bruno@clisp.org>
9085
9086         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
9087         when the macro ignores it.
9088         Based on a patch by Eric Blake <ebb9@byu.net>.
9089
9090 2008-06-17  Bruno Haible  <bruno@clisp.org>
9091
9092         * modules/tls (License): Change to LGPLv2+.
9093         Reported by Eric Blake.
9094
9095 2008-06-17  Eric Blake  <ebb9@byu.net>
9096
9097         Simplify c-stack prerequisites.
9098         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
9099         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
9100         no longer requires <ucontext.h> to exist.  Optimize setrlimit
9101         check.
9102         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
9103         <sys/resource.h>.
9104
9105         Move c-stack test into testsuite.
9106         * modules/c-stack-tests: New file.
9107         * lib/c-stack.c [DEBUG]: Move test program...
9108         * tests/test-c-stack.c: ...into this new file.  Skip rather than
9109         fail test if sigaltstack is lacking.
9110         * tests/test-c-stack.sh: New driver file.
9111
9112 2008-06-16  Eric Blake  <ebb9@byu.net>
9113
9114         Use raise module consistently.
9115         * modules/fatal-signal (Depends-on): Add raise.
9116         * modules/sigprocmask (Depends-on): Likewise.
9117         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
9118         * lib/sigprocmask.c (sigprocmask): Likewise.
9119         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
9120         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
9121
9122         Fix compliance bug in sigpending.
9123         * lib/sigprocmask.c (sigpending): Return pending array via
9124         parameter, not return value.
9125
9126 2008-06-14  Eric Blake  <ebb9@byu.net>
9127
9128         Improve obstack-printf test code.
9129         * tests/test-obstack-printf.c (test_function): Fix comment, and
9130         simplify usage of obstack_* in macros.  Add a test for coverage.
9131         Reported by Bruno Haible.
9132
9133 2008-06-14  Bruno Haible  <bruno@clisp.org>
9134
9135         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
9136         array size as a constant, not as a const variable.
9137         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
9138         AC_USE_SYSTEM_EXTENSIONS.
9139         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
9140         Test whether the obstack_printf function actually exists.
9141         * modules/obstack-printf (Depends-on): Add extensions.
9142         (Include): Remove obstack.h.
9143         * modules/obstack-printf-posix (Depends-on): Add extensions.
9144         (Include): Remove obstack.h.
9145
9146 2008-06-13  Eric Blake  <ebb9@byu.net>
9147
9148         Add obstack-printf and obstack-printf-posix modules.
9149         * modules/obstack-printf: New file.
9150         * modules/obstack-printf-posix: Likewise.
9151         * MODULES.html.sh (Misc): Mention them.
9152         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
9153         Likewise.
9154         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
9155         Likewise.
9156         * modules/stdio (Makefile.am): Accomodate new modules.
9157         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9158         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
9159         Declare.
9160         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
9161         functions.
9162         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
9163         (gl_REPLACE_OBSTACK_PRINTF): New macros
9164         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
9165         * tests/test-obstack-printf.c: New file.
9166         * modules/obstack-printf-tests: Likewise.
9167         * modules/obstack-printf-posix-tests: Likewise.
9168
9169 2008-06-11  Bruno Haible  <bruno@clisp.org>
9170
9171         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
9172         * lib/open.c: Include errno.h.
9173         (open): Fail when attempting to write to a file that has a trailing
9174         slash.
9175         * tests/test-open.c (main): Test against trailing slash bug.
9176         * doc/posix-functions/open.texi: Mention the trailing slash bug.
9177
9178 2008-06-10  Bruno Haible  <bruno@clisp.org>
9179
9180         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
9181         for $? to work inside the trap command, with various /bin/sh-s.
9182         * tests/test-vc-list-files-cvs.sh: Likewise.
9183
9184 2008-06-10  Bruno Haible  <bruno@clisp.org>
9185
9186         * lib/acl-internal.h: Don't include gettext.h here.
9187         * lib/set-mode-acl.c: Include gettext.h here.
9188         * lib/copy-acl.c: Likewise.
9189
9190 2008-06-10  Bruno Haible  <bruno@clisp.org>
9191
9192         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
9193         * lib/wait-process.c (wait_subprocess): Likewise.
9194         * lib/execute.h (execute): Add termsigp argument.
9195         * lib/execute.c (execute): Likewise.
9196         * lib/csharpcomp.c (compile_csharp_using_pnet,
9197         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
9198         * lib/csharpexec.c (execute_csharp_using_pnet,
9199         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
9200         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
9201         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
9202         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
9203         is_jikes_present): Update.
9204         * lib/javaexec.c (execute_java_class): Update.
9205         * lib/javaversion.c (execute_and_read_line): Update.
9206         * NEWS: Document the changes.
9207         Reported by Eric Blake.
9208
9209 2008-06-10  Eric Blake  <ebb9@byu.net>
9210
9211         Add missing include.
9212         * tests/test-strstr.c (includes): Add <signal.h>.
9213         * tests/test-strcasestr.c (includes): Likewise.
9214         * tests/test-memmem.c (includes): Likewise.
9215
9216 2008-06-10  Bruno Haible  <bruno@clisp.org>
9217
9218         * lib/wait-process.c (wait_subprocess): Add an assertion.
9219
9220 2008-06-10  Bruno Haible  <bruno@clisp.org>
9221
9222         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
9223
9224 2008-06-10  Bruno Haible  <bruno@clisp.org>
9225
9226         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
9227         using alarm().
9228         * tests/test-strcasestr.c (main): Likewise.
9229         * tests/test-strstr.c (main): Likewise.
9230
9231 2008-06-09  Bruno Haible  <bruno@clisp.org>
9232
9233         Work around the Solaris 10 ACE ACLs ABI change.
9234         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
9235         declare if ACL_NO_TRIVIAL is present.
9236         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
9237         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
9238         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
9239         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
9240         define if ACL_NO_TRIVIAL is present.
9241         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
9242         and use the current ABI.
9243         (file_has_acl): Use same #if condition as elsewhere.
9244         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
9245         in use, and use the current ABI.
9246         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
9247         Reported by Jim Meyering.
9248
9249 2008-06-09  Eric Blake  <ebb9@byu.net>
9250
9251         Work around environments that (stupidly) ignore SIGALRM.
9252         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
9253         before using alarm().
9254         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9255         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9256         Reported by Ian Beckwith <ianb@erislabs.net>.
9257
9258         Produce autobuild blurb earlier in log.
9259         * modules/autobuild (configure.ac-early): Move AB_INIT here.
9260
9261 2008-06-09  Jim Meyering  <meyering@redhat.com>
9262         and OndÅ™ej Vašík  <ovasik@redhat.com>
9263
9264         utimens.c: correct kernel bug work-around
9265         OndÅ™ej Vašík found that the invalid return value of 280 indicates
9266         failure, not success, and the kernel bug we're trying to work
9267         around affects not just the utimensat call, but also the fallback
9268         futimens call.
9269         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
9270         not success.
9271         [HAVE_FUTIMENS]: Use the same work-around, here.
9272
9273 2008-06-09  Jim Meyering  <meyering@redhat.com>
9274
9275         add more guards around definition of ACE_-related code
9276         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
9277         ALLOW and ACE_OWNER are also defined.
9278
9279 2008-06-08  Bruno Haible  <bruno@clisp.org>
9280
9281         * lib/acl-internal.h: Add me as co-author.
9282         * lib/file-has-acl.c: Likewise.
9283         * lib/set-mode-acl.c: Likewise.
9284         * lib/copy-acl.c: Likewise.
9285
9286 2008-06-08  Bruno Haible  <bruno@clisp.org>
9287
9288         Add support for AIX ACLs.
9289         * lib/acl-internal.h (acl_nontrivial): New declaration.
9290         * lib/file-has-acl.c (acl_nontrivial): New function.
9291         (file_has_acl): Add implementation using AIX 4 ACL API.
9292         * lib/set-mode-acl.c (qset_acl): Likewise.
9293         * lib/copy-acl.c (qcopy_acl): Likewise.
9294
9295 2008-06-08  Bruno Haible  <bruno@clisp.org>
9296
9297         Add support for HP-UX ACLs.
9298         * lib/acl-internal.h (acl_nontrivial): New declaration.
9299         * lib/file-has-acl.c (acl_nontrivial): New function.
9300         (file_has_acl): Add implementation using HP-UX 11 ACL API.
9301         * lib/set-mode-acl.c (qset_acl): Likewise.
9302         * lib/copy-acl.c (qcopy_acl): Likewise.
9303
9304 2008-06-08  Bruno Haible  <bruno@clisp.org>
9305
9306         Add support for Cygwin ACLs.
9307         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
9308         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
9309         the chmod_or_fchmod call.
9310         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
9311
9312 2008-06-08  Bruno Haible  <bruno@clisp.org>
9313
9314         Fix bug with setuid modes in Solaris 10+ code.
9315         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
9316         succeeded, when the mode contains some special bits.
9317
9318 2008-06-08  Bruno Haible  <bruno@clisp.org>
9319
9320         Add support for Solaris 7..10 ACLs.
9321         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
9322         declarations.
9323         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
9324         functions.
9325         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
9326         * lib/set-mode-acl.c (qset_acl): Likewise.
9327         * lib/copy-acl.c (qcopy_acl): Likewise.
9328
9329 2008-06-08  Bruno Haible  <bruno@clisp.org>
9330
9331         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
9332         declaration.
9333         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
9334         (acl_access_nontrivial): Remove MacOS X case.
9335         (file_has_acl): Use acl_extended_nontrivial.
9336         * lib/copy-acl.c (qcopy_acl): Likewise.
9337
9338 2008-06-08  Bruno Haible  <bruno@clisp.org>
9339
9340         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
9341
9342 2008-06-08  Jim Meyering  <meyering@redhat.com>
9343
9344         * modules/acl (Maintainer): Add Bruno Haible.
9345
9346 2008-06-07  Bruno Haible  <bruno@clisp.org>
9347
9348         Improve support for Tru64 ACLs.
9349         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
9350         ACL on OSF/1.
9351
9352 2008-06-07  Bruno Haible  <bruno@clisp.org>
9353
9354         Add support for MacOS X ACLs.
9355         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
9356         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
9357         * lib/set-mode-acl.c (qset_acl): Likewise.
9358         * lib/copy-acl.c (qcopy_acl): Likewise.
9359
9360 2008-06-07  Bruno Haible  <bruno@clisp.org>
9361
9362         Fix memory leak introduced on 2008-05-22.
9363         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
9364         use.
9365
9366 2008-06-07  Bruno Haible  <bruno@clisp.org>
9367
9368         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
9369         to construct an empty ACL.
9370
9371 2008-06-07  Bruno Haible  <bruno@clisp.org>
9372
9373         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
9374         precisely.
9375         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
9376
9377 2008-06-07  Bruno Haible  <bruno@clisp.org>
9378
9379         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
9380         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
9381
9382 2008-06-07  Bruno Haible  <bruno@clisp.org>
9383
9384         * doc/posix-functions/_setjmp.texi: Explain the use of this function
9385         regardless of POSIX.
9386         * doc/posix-functions/_longjmp.texi: Likewise.
9387         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
9388         SystemV platform in this case.
9389
9390 2008-06-06  Eric Blake  <ebb9@byu.net>
9391
9392         Document abort() bugs.
9393         * doc/posix-functions/abort.texi (abort): Mention anomalies.
9394
9395         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
9396         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
9397         sigsetjmp.
9398         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
9399         siglongjmp, but only as a macro.
9400         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
9401         is obsolete.
9402         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
9403
9404         Tweak documentation to cover cygwin argz bugs.
9405         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
9406         argz bug fix; no code change needed since no cygwin releases
9407         occurred between the last fix and the bug being tested.
9408         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
9409         module and recently fixed cygwin bugs.
9410         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
9411         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
9412         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
9413         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
9414         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
9415         Likewise.
9416         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
9417         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
9418         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
9419         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
9420         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
9421         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
9422         Likewise.
9423
9424         Avoid gcc warning on cygwin.
9425         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
9426         !ACL_NO_TRIVIAL]: Avoid unused variable.
9427
9428 2008-06-05  Eric Blake  <ebb9@byu.net>
9429
9430         Be tolerant of UNKNOWN version in gnulib-tool test dir.
9431         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
9432         git-version-gen fails to come up with a version.
9433         Reported by Simon Josefsson.
9434
9435 2008-06-05  Jim Meyering  <meyering@redhat.com>
9436             Paul Eggert  <eggert@cs.ucla.edu>
9437
9438         utimens.c: work around a probable Linux kernel bug
9439         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
9440         appears to be a kernel bug that causes utimensat to return 280
9441         instead of 0, indicating success.
9442
9443 2008-06-04  Bruno Haible  <bruno@clisp.org>
9444
9445         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
9446         2008-06-01 commit.
9447
9448 2008-06-04  Bruno Haible  <bruno@clisp.org>
9449
9450         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
9451         * lib/file-has-acl.c (acl_access_nontrivial): New function.
9452         (file_has_acl): Use it. Save errno afterwards.
9453         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
9454
9455 2008-06-03  Bruno Haible  <bruno@clisp.org>
9456
9457         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
9458         draft code. Simplify #ifs.
9459         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
9460         Put Solaris code after POSIX-draft code. Fix comments regarding
9461         Solaris 10, HP-UX. Mention Cygwin.
9462         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
9463
9464 2008-06-03  Eric Blake  <ebb9@byu.net>
9465
9466         Provide fallback for older kernels.
9467         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
9468         Provide runtime fallback if kernel lacks support.
9469         Reported by Mike Frysinger.
9470
9471 2008-06-02  Bruno Haible  <bruno@clisp.org>
9472
9473         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
9474         it exists.
9475
9476 2008-06-02  Bruno Haible  <bruno@clisp.org>
9477
9478         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
9479         * lib/copy-acl.c (qcopy_acl): Update comment.
9480
9481 2008-06-02  Bruno Haible  <bruno@clisp.org>
9482
9483         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
9484         like ACL APIs.
9485
9486 2008-06-02  Bruno Haible  <bruno@clisp.org>
9487
9488         * tests/test-file-has-acl.sh: Use different code for Cygwin.
9489         * tests/test-set-mode-acl.sh: Likewise.
9490         * tests/test-copy-acl.sh: Likewise.
9491         * tests/test-copy-file.sh: Likewise.
9492
9493 2008-06-02  Bruno Haible  <bruno@clisp.org>
9494
9495         * tests/test-file-has-acl.sh: Remove unused code.
9496
9497 2008-06-01  Bruno Haible  <bruno@clisp.org>
9498
9499         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
9500         (copy_acl): Just a wrapper around qcopy_acl that emits the error
9501         messages.
9502         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
9503
9504 2008-06-01  Bruno Haible  <bruno@clisp.org>
9505
9506         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
9507         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
9508         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
9509         APIs.
9510         * modules/acl-tests (configure.ac): Remove tests now contained in
9511         m4/acl.m4.
9512
9513 2008-06-02  Jim Meyering  <meyering@redhat.com>
9514
9515         announce-gen: use a better key-server host name
9516         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
9517         it may be more consistently reliable.  Suggested by Werner Koch
9518         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
9519
9520 2008-06-01  Bruno Haible  <bruno@clisp.org>
9521
9522         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
9523         Reported by Voroskoi Andras <voroskoi@gmail.com>.
9524
9525 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
9526
9527         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
9528
9529 2008-06-01  Bruno Haible  <bruno@clisp.org>
9530
9531         New ACL tests.
9532         * tests/test-file-has-acl.sh: New file.
9533         * tests/test-file-has-acl.c: New file.
9534         * tests/test-set-mode-acl.sh: New file.
9535         * tests/test-set-mode-acl.c: New file.
9536         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
9537         * tests/test-copy-acl.c: New file.
9538         * modules/acl-tests: New file, based on modules/copy-file-tests.
9539         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
9540         (Depends-on): Add acl-tests.
9541         (configure.ac): Remove checks.
9542         (Makefile.am): Don't create test-sameacls program here any more.
9543
9544 2008-06-01  Bruno Haible  <bruno@clisp.org>
9545
9546         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
9547         * tests/test-sameacls.c: Include progname.h.
9548         (main): Invoke set_program_name. Portability fixes for MacOS X,
9549         Solaris, HP-UX.
9550
9551 2008-06-01  Bruno Haible  <bruno@clisp.org>
9552
9553         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
9554         function.
9555         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
9556
9557 2008-06-01  Bruno Haible  <bruno@clisp.org>
9558
9559         * modules/rpmatch (Depends-on): Add strdup.
9560
9561 2008-06-01  Bruno Haible  <bruno@clisp.org>
9562
9563         * lib/pipe.c: Include unistd-safer.h.
9564         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
9565         * modules/pipe (Depends-on): Add unistd-safer.
9566
9567 2008-05-30  Simon Josefsson  <simon@josefsson.org>
9568
9569         * modules/autobuild (configure.ac): Call AB_INIT.
9570
9571 2008-05-30  Simon Josefsson  <simon@josefsson.org>
9572
9573         * tests/test-getaddrinfo.c: Don't print debug messages by default.
9574         Suggested by Bruno Haible <bruno@clisp.org>.
9575
9576 2008-05-30  Simon Josefsson  <simon@josefsson.org>
9577
9578         * tests/test-base64.c: Cast size_t to unsigned long when invoking
9579         printf.  Use %lu instead of %d.  Reported by Bruno Haible
9580         <bruno@clisp.org>.
9581
9582 2008-05-29  Eric Blake  <ebb9@byu.net>
9583
9584         Prefer new POSIX 200x interfaces over futimesat.
9585         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
9586         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
9587         when available.
9588         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
9589
9590 2008-05-28  Bruno Haible  <bruno@clisp.org>
9591
9592         * modules/stpcpy (License): Change to LGPLv2+.
9593         Requested by David Lutterkort <dlutter@redhat.com>.
9594
9595 2008-05-27  Bruno Haible  <bruno@clisp.org>
9596
9597         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
9598         current mingw.
9599         Reported by Jose E. Marchesi <jemarch@gnu.org>.
9600
9601 2008-05-27  Bruno Haible  <bruno@clisp.org>
9602
9603         * modules/iconv_open (Link): New section, from module 'iconv'.
9604         * modules/striconv (Link): Likewise.
9605         * modules/striconveh (Link): Likewise.
9606         * modules/xstriconv (Link): Likewise.
9607         * modules/unicodeio (Link): Likewise.
9608         * modules/propername (Link): Likewise.
9609         Reported by Jim Meyering.
9610
9611 2008-05-26  Jim Meyering  <meyering@redhat.com>
9612
9613         sha256: do not artificially restrict buffer length to be < 2^32
9614         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
9615         uint32_t to size_t.
9616         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
9617         to match.
9618
9619         avoid unaligned access errors, e.g., on sparc
9620         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
9621         direct access through a possibly-unaligned uint64* pointer.
9622         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
9623         direct access through a possibly-unaligned uint32* pointer.
9624         Prompted by this patch from Tom "spot" Callaway:
9625         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
9626
9627         sha512.c: fix typo in comment
9628         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
9629
9630 2008-05-25  Bruno Haible  <bruno@clisp.org>
9631
9632         * lib/set-mode-acl.c: Renamed from lib/acl.c.
9633         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
9634         (Makefile.am): Update lib_SOURCES.
9635
9636 2008-05-25  Bruno Haible  <bruno@clisp.org>
9637
9638         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
9639
9640 2008-05-25  Jim Meyering  <meyering@redhat.com>
9641
9642         useless-if-before-free: freed expr may have white-space differences
9643         * build-aux/useless-if-before-free: Recognize cases in which the
9644         freed expression differs from the tested one in embedded white
9645         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
9646         $1 was used, so we can't make any regexp shy.  Improved tests now
9647         detect this.
9648
9649         useless-if-before-free: accept white space in the expression.
9650         * build-aux/useless-if-before-free: For now, any white space
9651         in the expression must be identical in the free argument.
9652
9653         useless-if-before-free: efficiency tweak
9654         * build-aux/useless-if-before-free: Make the expression-matching
9655         regexp "shy".
9656         Make the *outer* regexp shy, not the expr-matching one.
9657
9658         update code-in-comment to accept cast of free arg
9659         * build-aux/useless-if-before-free: Update regexp.
9660
9661 2008-05-25  Bruno Haible  <bruno@clisp.org>
9662
9663         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
9664         * modules/copy-file-tests (Files, Makefile.am): Update.
9665         * tests/test-copy-file.c (func_test_copy): Update.
9666
9667 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
9668
9669         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
9670
9671 2008-05-23  Bruno Haible  <bruno@clisp.org>
9672
9673         Improve support for ACLs on OSF/1.
9674         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
9675         Remove fallback for unknown flavors of ACLs.
9676
9677 2008-05-22  Bruno Haible  <bruno@clisp.org>
9678
9679         Add support for ACLs on OSF/1.
9680         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
9681         replacements.
9682         (acl_free_text): New macro fallback.
9683         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
9684         acl_free.
9685         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
9686         acl_free_text function. Require AC_C_INLINE.
9687
9688 2008-05-22  Bruno Haible  <bruno@clisp.org>
9689
9690         Make copy_acl work on MacOS X 10.5.
9691         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
9692         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
9693         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
9694         If MODE_INSIDE_ACL, don't assume that every system has the same text
9695         representation for ACLs as FreeBSD.
9696         * lib/copy-acl.c (copy_acl): Add support for platforms with
9697         !MODE_INSIDE_ACL.
9698         * lib/file-has-acl.c (file_has_acl): Likewise.
9699         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
9700         FreeBSD, MacOS X, or IRIX, respectively.
9701
9702 2008-05-22  Bruno Haible  <bruno@clisp.org>
9703
9704         * lib/acl.h: Don't include <sys/acl.h>.
9705         (GETACLCNT): Move fallback to lib/acl-internal.h.
9706         * lib/acl-internal.h: Include <sys/acl.h> here.
9707         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
9708
9709 2008-05-22  Bruno Haible  <bruno@clisp.org>
9710
9711         Split off copy_acl function to separate file.
9712         * lib/copy-acl.c: New file, extracted from lib/acl.c.
9713         * lib/acl.c (copy_acl): Moved function to separate file.
9714         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
9715         * modules/acl (Files): Add lib/copy-acl.c.
9716         (Makefiles.am): Augment lib_SOURCES.
9717
9718 2008-05-22  Bruno Haible  <bruno@clisp.org>
9719
9720         * modules/copy-file-tests: New file.
9721         * tests/test-copy-file.sh: New file.
9722         * tests/test-copy-file.c: New file.
9723         * tests/test-copy-file-sameacls.c: New file.
9724
9725 2008-05-22  Eric Blake  <ebb9@byu.net>
9726
9727         Avoid gcc warning.
9728         * tests/test-memcmp.c (main): Pass NULL indirectly.
9729
9730 2008-05-21  Bruno Haible  <bruno@clisp.org>
9731
9732         Add reference doc about ACLs.
9733         * doc/acl-resources.txt: New file.
9734         * doc/acl-cygwin.txt: New file.
9735
9736 2008-05-21  Bruno Haible  <bruno@clisp.org>
9737
9738         Avoid one more warning from gcc.
9739         * lib/vasnprintf.c (IF_LINT): Update comments.
9740         (VASNPRINTF): Use it also for the 'prefix' array initializer.
9741
9742 2008-05-21  Jim Meyering  <meyering@redhat.com>
9743
9744         avoid a warning from gcc
9745         * lib/vasnprintf.c (IF_LINT): Define.
9746         (scale10_round_decimal_long_double):
9747         Use it to avoid a "may be used uninitialized" warning.
9748         (scale10_round_decimal_double): Likewise.
9749
9750 2008-05-21  Simon Josefsson  <simon@josefsson.org>
9751
9752         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
9753         declared.
9754
9755 2008-05-20  Bruno Haible  <bruno@clisp.org>
9756
9757         * tests/test-memcmp.c (main): Test also the sign of the result. Test
9758         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
9759
9760 2008-05-20  Simon Josefsson  <simon@josefsson.org>
9761
9762         * modules/memcmp-tests: New file.
9763         * tests/test-memcmp.c: New file.
9764
9765 2008-05-19  Bruno Haible  <bruno@clisp.org>
9766
9767         * modules/propername (Notice, configure.ac): Put quoted "..." into
9768         --keyword option.
9769         * lib/propername.h: Update comments accordingly.
9770         Reported by Eric Blake.
9771
9772 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
9773
9774         * modules/getpass-gnu (Depends-on): Add fseeko.
9775
9776 2008-05-19  Simon Josefsson  <simon@josefsson.org>
9777
9778         * modules/base64-tests: New file.
9779
9780 2008-05-19  Bo Borgerson <gigabo@gmail.com>
9781
9782         * lib/base64.c (base64_decode_ctx): If a decode context structure
9783         was passed in use it to ignore newlines.  If a context structure
9784         was _not_ passed in, continue to treat newlines as garbage (this
9785         is the historical behavior).  Formerly base64_decode.
9786         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
9787         takes a decode context structure.
9788         * lib/base64.h (base64_decode): Macro for four-argument calls.
9789         (base64_decode_alloc): Likewise.
9790         * lib/base64.c (base64_decode_ctx): If a decode context structure
9791         was passed in use it to ignore newlines.  If a context structure
9792         was _not_ passed in, continue to treat newlines as garbage (this
9793         is the historical behavior).  Formerly base64_decode.
9794         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
9795         takes a decode context structure.
9796         * lib/base64.h (base64_decode): Macro for four-argument calls.
9797         (base64_decode_alloc): Likewise.
9798
9799 2008-05-19  Jim Meyering  <meyering@redhat.com>
9800
9801         avoid a warning from gcc
9802         * lib/trim.c (IF_LINT): Define.
9803         (trim2): Use it to avoid a "may be used uninitialized" warning.
9804
9805         Fix doc typo.
9806         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
9807
9808 2008-05-19  Bruno Haible  <bruno@clisp.org>
9809
9810         * doc/glibc-functions/getpass.texi: Document limits of other
9811         implementations.
9812
9813 2008-05-19  Simon Josefsson  <simon@josefsson.org>
9814             Bruno Haible <bruno@clisp.org>
9815
9816         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
9817
9818 2008-05-18  Bruno Haible  <bruno@clisp.org>
9819
9820         * modules/propername: New file, from GNU gettext.
9821         * lib/propername.h: New file, from GNU gettext.
9822         * lib/propername.c: New file, from GNU gettext.
9823         * MODULES.html.sh (Internationalization functions): Add propername.
9824
9825 2008-05-16  Jim Meyering  <meyering@redhat.com>
9826             Bruno Haible  <bruno@clisp.org>
9827
9828         Avoid some warnings from "gcc -Wshadow".
9829         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
9830
9831 2008-05-15  Eric Blake  <ebb9@byu.net>
9832
9833         Extend previous patch to cygwin 1.7.0.
9834         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
9835         fast implementation in cygwin >= 1.7.0.
9836         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
9837         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9838
9839 2008-05-15  Bruno Haible  <bruno@clisp.org>
9840
9841         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
9842         implementation in glibc >= 2.9.
9843         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
9844         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9845
9846 2008-05-15  Bruno Haible  <bruno@clisp.org>
9847
9848         * MODULES.html.sh (Internationalization functions): Remove linebreak.
9849         (Unicode string functions): Add unilbrk/*.
9850         Reported by Karl Berry.
9851
9852 2008-05-15  Eric Blake  <ebb9@byu.net>
9853
9854         Fix violation of <stdbool.h> replacement in regex.
9855         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
9856         * lib/regexec.c (re_search_internal): Likewise.
9857         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
9858
9859 2008-05-15  Jim Meyering  <meyering@redhat.com>
9860
9861         avoid distracting test output when git or cvs is not found
9862         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
9863         * tests/test-vc-list-files-git.sh: Likewise.
9864
9865 2008-05-15  Eric Blake  <ebb9@byu.net>
9866
9867         Glibc finally accepted the memmem speedup code, bugzilla #5514.
9868         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
9869         glibc version.
9870         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9871         * doc/posix-functions/strstr.texi (strstr): Likewise.
9872         * lib/str-two-way.h (MAX): Sychronize with glibc.
9873
9874 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
9875
9876         * lib/regcomp.c (optimize_utf8): Add a note on why we test
9877         opr.ctx_type.
9878         (calc_first): Initialize constraint field.
9879         (duplicate_node_closure): Use it instead of special casing ANCHORS.
9880         Fix grammar.
9881         (duplicate_node): Merge constraint field for all node types.
9882         (calc_eclosure_iter): Look at constraint field for all node types.
9883         * lib/regex_internal.c (create_cd_newstate): Don't look at
9884         opr.ctx_type.
9885
9886 2008-05-14  Bruno Haible  <bruno@clisp.org>
9887
9888         Help GCC to do better code generation.
9889         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
9890         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
9891         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
9892         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
9893         Declare with attribute 'malloc' if supported.
9894
9895 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
9896
9897         use "echo STR|wc -c" rather than unportable "expr length STR"
9898         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
9899         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
9900
9901 2008-05-14  Jim Meyering  <meyering@redhat.com>
9902
9903         use dd ibs=$n count=1 ... rather than less-portable head -c$n
9904         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
9905         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
9906         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
9907         via Collin Lasse.
9908
9909 2008-05-14  Eric Blake  <ebb9@byu.net>
9910
9911         Avoid quadratic growth in gl_LIBSOURCES.
9912         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
9913         Suggested by Bruno Haible.
9914
9915         Test xmemdup0.
9916         * modules/xmemdup0-tests: New file.
9917         * tests/test-xmemdup0.c: Likewise.
9918
9919 2008-05-13  Eric Blake  <ebb9@byu.net>
9920
9921         Split xmemdup0 into its own module.
9922         * modules/xmemdup0: New file.
9923         * lib/xmemdup0.h: Likewise.
9924         * lib/xmemdup0.c: Likewise.
9925         * MODULES.html.sh (Memory management functions): Add xmemdup0.
9926         * lib/xalloc.h (xmemdup0): Remove.
9927         * lib/xmalloc.c (xmemdup0): Likewise.
9928
9929 2008-05-13  Eric Blake  <ebb9@byu.net>
9930             Bruno Haible  <bruno@clisp.org>
9931
9932         Reduce number of forks required during autoconf.
9933         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
9934         and gl_LIBSOURCES_DIR.
9935         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
9936         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
9937         m4_syscmd per file.
9938         <m4_foreach_w>: Move...
9939         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
9940
9941 2008-05-13  Eric Blake  <ebb9@byu.net>
9942
9943         * gnulib-tool: Fix various comment typos.
9944
9945 2008-05-12  Bruno Haible  <bruno@clisp.org>
9946
9947         Tailor the linebreaking algorithm.
9948         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
9949
9950 2008-05-12  Bruno Haible  <bruno@clisp.org>
9951
9952         Update to Unicode 5.0.0.
9953         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
9954         LBP_JV, LBP_JT. Redistribute values.
9955         (unilbrk_table): Change size.
9956         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
9957         Unicode TR#14 rev. 22.
9958         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
9959         LBP_JV, LBP_JT. Redistribute values.
9960         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
9961         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
9962         Update.
9963         * lib/unilbrk/lbrkprop1.h: Regenerated.
9964         * lib/unilbrk/lbrkprop2.h: Regenerated.
9965         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
9966         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
9967         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
9968         Likewise.
9969         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
9970         Likewise.
9971         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
9972         result.
9973         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
9974         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
9975         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
9976         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
9977         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
9978         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
9979
9980 2008-05-11  Bruno Haible  <bruno@clisp.org>
9981
9982         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
9983
9984 2008-05-11  Bruno Haible  <bruno@clisp.org>
9985
9986         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
9987         * modules/unilbrk/gen-lbrk: New file.
9988
9989 2008-05-11  Bruno Haible  <bruno@clisp.org>
9990
9991         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
9992         * m4/sha512.m4 (gl_SHA512): Likewise.
9993
9994 2008-05-11  Jim Meyering  <meyering@redhat.com>
9995
9996         New modules: crypto/sha256, crypto/sha512 (from coreutils)
9997         * modules/crypto/sha256: New file.
9998         * modules/crypto/sha512: Likewise.
9999         * lib/sha256.c: Likewise.
10000         * lib/sha256.h: Likewise.
10001         * lib/sha512.c: Likewise.
10002         * lib/sha512.h: Likewise.
10003         * lib/u64.h: Likewise.
10004         * m4/sha256.m4: Likewise.
10005         * m4/sha512.m4: Likewise.
10006         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
10007
10008 2008-05-10  Bruno Haible  <bruno@clisp.org>
10009
10010         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
10011         (Input/Output <stdio.h>): Add xprintf.
10012         (Signal handling <signal.h>): Add strsignal.
10013         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
10014         (Core language properties): Add func.
10015         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
10016         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
10017         strings.
10018         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
10019         (Input/output): New section.
10020         (File system functions): Add openat-die, stat-macros.
10021         (Networking functions): Add sockets.
10022         (Unicode string functions): Add unictype/*.
10023         (Support for building libraries and executables): Add gperf.
10024         (Support for building documentation): Add agpl-3.0.
10025         (Misc): Add nocrash.
10026
10027 2008-05-10  Bruno Haible  <bruno@clisp.org>
10028
10029         * modules/unictype/gen-ctype: New file.
10030
10031 2008-05-10  Jim Meyering  <meyering@redhat.com>
10032
10033         Make chdir-safer.c more efficient on a system with no symlinks.
10034         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
10035         also if ELOOP is zero.  Suggested by Bruno Haible.
10036
10037         Make chdir-safer.c slightly safer.
10038         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
10039         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
10040
10041         Avoid compile failure on systems without ELOOP (like mingw).
10042         * lib/chdir-safer.c (ELOOP): Define if not already defined.
10043         Reported by Bruno Haible.
10044
10045 2008-05-10  Bruno Haible  <bruno@clisp.org>
10046
10047         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
10048         (is_utf8_encoding): Use a case-insensitive comparison.
10049         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
10050         streq.
10051
10052 2008-05-10  Bruno Haible  <bruno@clisp.org>
10053
10054         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
10055         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
10056         * lib/unilbrk/ulc-common.h (iconv_string_length,
10057         iconv_string_keeping_offsets): Remove declarations.
10058         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
10059         Don't include <iconv.h>, streq.h, xsize.h.
10060         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
10061         conversion.
10062         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
10063         <iconv.h>, streq.h, xsize.h.
10064         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
10065         conversion.
10066         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
10067         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
10068         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
10069         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
10070
10071 2008-05-10  Bruno Haible  <bruno@clisp.org>
10072
10073         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
10074         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
10075
10076         * modules/unilbrk/u32-width-linebreaks-tests: New file.
10077         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
10078
10079         * modules/unilbrk/u16-width-linebreaks-tests: New file.
10080         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
10081
10082         * modules/unilbrk/u8-width-linebreaks-tests: New file.
10083         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
10084
10085         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
10086         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
10087
10088         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
10089         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
10090
10091         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
10092         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
10093
10094         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
10095         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
10096
10097 2008-05-10  Bruno Haible  <bruno@clisp.org>
10098
10099         Split up 'linebreak' module.
10100         * lib/unilbrk.h: New file, based on lib/linebreak.h.
10101         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
10102         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
10103         modifications.
10104         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
10105         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
10106         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
10107         lib/linebreak.c.
10108         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
10109         lib/linebreak.c.
10110         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
10111         lib/linebreak.c.
10112         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
10113         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
10114         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
10115         lib/linebreak.c.
10116         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
10117         lib/linebreak.c.
10118         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
10119         lib/linebreak.c.
10120         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
10121         lib/linebreak.c.
10122         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
10123         lib/linebreak.c.
10124         * modules/unilbrk/base: New file.
10125         * modules/unilbrk/tables: New file.
10126         * modules/unilbrk/u8-possible-linebreaks: New file.
10127         * modules/unilbrk/u16-possible-linebreaks: New file.
10128         * modules/unilbrk/u32-possible-linebreaks: New file.
10129         * modules/unilbrk/ulc-common: New file.
10130         * modules/unilbrk/ulc-possible-linebreaks: New file.
10131         * modules/unilbrk/u8-width-linebreaks: New file.
10132         * modules/unilbrk/u16-width-linebreaks: New file.
10133         * modules/unilbrk/u32-width-linebreaks: New file.
10134         * modules/unilbrk/ulc-width-linebreaks: New file.
10135         * lib/linebreak.h: Remove file.
10136         * lib/linebreak.c: Remove file.
10137         * m4/linebreak.m4: Remove file.
10138         * modules/linebreak: Remove file.
10139         * NEWS: Mention the changes.
10140
10141 2008-05-09  Eric Blake  <ebb9@byu.net>
10142
10143         Add xmemdup0.
10144         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
10145         implementation.
10146         * lib/xmalloc.c (xmemdup0): New C implementation.
10147
10148 2008-05-08  Bruno Haible  <bruno@clisp.org>
10149
10150         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
10151
10152 2008-05-07  Eric Blake  <ebb9@byu.net>
10153
10154         Support cross-compilation of <wctype.h>.
10155         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
10156         AC_CACHE_CHECK.
10157
10158 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
10159
10160         * build-aux/vc-list-files: Add support for bzr.
10161
10162 2008-05-03  Jim Meyering  <meyering@redhat.com>
10163
10164         avoid failed assertion with tight malloc
10165         * tests/test-getndelim2.c: Correct an off-by-one assertion.
10166
10167 2008-05-03  Simon Josefsson  <simon@josefsson.org>
10168
10169         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
10170         are needed from arpa/inet.h.
10171         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
10172         Reported by Bruno Haible.
10173
10174 2008-05-02  Jim Meyering  <meyering@redhat.com>
10175
10176         avoid compilation error on FreeBSD 6
10177         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
10178
10179 2008-05-01  Jim Meyering  <meyering@redhat.com>
10180
10181         useless-if-before-free: correct --help's exit status description
10182         * build-aux/useless-if-before-free (usage): Like grep, exit 0
10183         for one or more matches, etc.  Reported by Bruno Haible.
10184
10185         vc-list-files: make the stand-alone gnulib test work
10186         * modules/vc-list-files-tests (configure.ac):
10187         Define and AC_SUBST abs_aux_dir.
10188         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
10189         $(abs_top_srcdir) to each script and having each of them
10190         duplicate the work of setting PATH, set PATH here, using
10191         the new variable, abs_aux_dir instead.
10192         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
10193         * tests/test-vc-list-files-git.sh: Likewise.
10194         Reported by Bruno Haible.
10195
10196 2008-05-01  Bruno Haible  <bruno@clisp.org>
10197
10198         * lib/getndelim2.c (getndelim2): Fix newsize computation during
10199         reallocation. Rename 'done' to 'found_delimiter'.
10200
10201 2008-05-01  Jim Meyering  <meyering@redhat.com>
10202
10203         vc-list-files: accommodate /bin/sh like the one from Solaris 10
10204         * build-aux/vc-list-files: Use `...`, not $(...).
10205
10206 2008-04-30  Jim Meyering  <meyering@redhat.com>
10207
10208         add tests for vc-list-files
10209         * modules/vc-list-files-tests: New module.
10210         * tests/test-vc-list-files-cvs.sh: New file.
10211         * tests/test-vc-list-files-git.sh: New file.
10212
10213         avoid a warning from gcc
10214         * lib/getndelim2.c (IF_LINT): Define.
10215         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
10216
10217         vc-list-files: work properly with build-aux/cvsu, too
10218         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
10219         to all cvs-based clauses.
10220
10221         vc-list-files: work properly in the CVS+awk case, too
10222         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
10223
10224         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
10225         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
10226         take more than one file argument, so .  Add quotes, just in case $dir
10227         ever contains a shell meta-character.  Prompted by Soren Hansen in
10228         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
10229
10230 2008-04-29  Eric Blake  <ebb9@byu.net>
10231
10232         Optimize getndelim2 to use block operations when possible.
10233         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
10234         freadseek, and memchr2.
10235         * lib/getndelim2.c (getndelim2): Use them for block reads.
10236
10237 2008-04-29  Bruno Haible  <bruno@clisp.org>
10238
10239         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
10240         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
10241         * modules/inet_ntop (Depends-on): Add extensions.
10242         * modules/inet_pton (Depends-on): Likewise.
10243         Reported by Simon Josefsson.
10244
10245 2008-04-29  Jim Meyering  <meyering@redhat.com>
10246
10247         When the is more than one match in a block, match all of them.
10248         * build-aux/useless-if-before-free: Iterate through each block
10249         until there are no more matches.
10250
10251         Fix broken useless-if-before-free script.
10252         * build-aux/useless-if-before-free: Fix typo: missing "?" after
10253         the expression to match cast of argument to free-like function.
10254
10255 2008-04-29  Eric Blake  <ebb9@byu.net>
10256
10257         Use new header.
10258         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
10259
10260 2008-04-29  Jim Meyering  <meyering@redhat.com>
10261
10262         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
10263         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
10264         by gnulib to exist and to declare e.g., inet_ntop.
10265         Don't include "inet_ntop.h", now removed.
10266
10267         * m4/arpa_inet_h.m4: Remove trailing blanks.
10268
10269 2008-04-29  Eric Blake  <ebb9@byu.net>
10270
10271         Silence valgrind on safe reads beyond potential array bounds.
10272         * lib/rawmemchr.valgrind: New file.
10273         * lib/strchrnul.valgrind: Likewise.
10274         * modules/rawmemchr (Files): Distribute new file.
10275         * modules/strchrnul (Files): Likewise.
10276         Suggested by Bruno Haible.
10277
10278 2008-04-29  Bruno Haible  <bruno@clisp.org>
10279
10280         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
10281         (inet_ntop, inet_pton): Change portability warning's wording.
10282         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
10283         Invoke gl_CHECK_NEXT_HEADERS.
10284         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
10285         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
10286         set ARPA_INET_H.
10287         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
10288         * modules/arpa_inet (Description): No longer only for systems that
10289         lack it.
10290         (Depends-on): Add include_next.
10291         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
10292         HAVE_ARPA_INET_H.
10293
10294 2008-04-29  Jim Meyering  <meyering@redhat.com>
10295
10296         * modules/mkdir (License): Re-license as LGPLv2+.
10297
10298 2008-04-29  Bruno Haible  <bruno@clisp.org>
10299
10300         * modules/rawmemchr (Maintainer): Set to Eric.
10301         * modules/strchrnul (Maintainer): Likewise.
10302
10303 2008-04-29  Simon Josefsson  <simon@josefsson.org>
10304
10305         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
10306         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
10307
10308         * modules/arpa_inet (arpa/inet.h): Use them.
10309
10310 2008-04-28  Eric Blake  <ebb9@byu.net>
10311
10312         Test getndelim2.
10313         * modules/getndelim2-tests: New file.
10314         * tests/test-getndelim2.c: Likewise.
10315         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
10316         stream.
10317         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
10318
10319         * MODULES.html.sh: Document new module.
10320
10321 2008-04-20  Bruno Haible  <bruno@clisp.org>
10322
10323         * lib/c-stack.c (die): Use raise.
10324         * modules/c-stack (Depends-on): Add raise.
10325
10326 2008-04-28  Bruno Haible  <bruno@clisp.org>
10327
10328         Expect rpmatch to be declared.
10329         * lib/yesno.c (rpmatch): Remove declaration.
10330
10331         Declare rpmatch.
10332         * lib/stdlib.in.h (rpmatch): New declaration.
10333         * lib/rpmatch.c: Include <stdlib.h> first.
10334         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
10335         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
10336         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
10337         HAVE_RPMATCH.
10338         * modules/rpmatch (Depends-on): Add stdlib, extensions.
10339         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10340         (Include): Set to <stdlib.h>.
10341         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
10342         HAVE_RPMATCH.
10343         * NEWS: Document the change.
10344
10345 2008-04-28  Bruno Haible  <bruno@clisp.org>
10346
10347         Change rpmatch to use nl_langinfo when appropriate.
10348         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
10349         (N_): New macro.
10350         (localized_pattern): New function/macro.
10351         (try): Remove match, nomatch arguments. Copy the pattern into safe
10352         memory before caching it.
10353         (rpmatch): Use localized_pattern. Add translator comments.
10354         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
10355         Suggested by Eric Blake.
10356         * modules/rpmatch (Depends-on): Add stdbool.
10357
10358 2008-04-28  Eric Blake  <ebb9@byu.net>
10359
10360         Add rawmemchr module, matching glibc.
10361         * modules/string (Makefile.am): New indicator.
10362         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
10363         * lib/string.in.h (rawmemchr): Declare when appropriate.
10364         * modules/rawmemchr: New file.
10365         * m4/rawmemchr.m4: Likewise.
10366         * lib/rawmemchr.c: Likewise.
10367         * modules/rawmemchr-tests: Likewise.
10368         * tests/test-rawmemchr.c: Likewise.
10369         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
10370         module.
10371         * modules/strchrnul (Depends-on): Add rawmemchr.
10372         * lib/strchrnul.c (strchrnul): Optimize a corner case.
10373
10374         Whitespace cleanup.
10375         * tests/test-strchrnul.c: Reindent.
10376         * lib/strchrnul.c: Likewise.
10377
10378         Optimize and test strchrnul.
10379         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
10380         * modules/strchrnul-tests: New file.
10381         * tests/test-strchrnul.c: Likewise.
10382
10383         Remove intprops dependency.
10384         * modules/memchr (Depends-on): Remove intprops.
10385         * modules/memrchr (Depends-on): Likewise.
10386         * modules/memchr2 (Depends-on): Likewise.
10387         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
10388         * lib/memrchr.c (__memrchr): Likewise.
10389         * lib/memrchr2.c (memchr2): Likewise.
10390         Reported by Simon Josefsson.
10391
10392 2008-04-28  Simon Josefsson  <simon@josefsson.org>
10393
10394         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
10395         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10396
10397 2008-04-28  Simon Josefsson  <simon@josefsson.org>
10398
10399         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
10400
10401         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
10402
10403         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
10404
10405         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
10406         declarations.
10407         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
10408
10409         * m4/inet_pton.m4: Don't check for header files.
10410
10411         * m4/inet_ntop.m4: Don't check for header files.
10412
10413 2008-04-28  Simon Josefsson  <simon@josefsson.org>
10414
10415         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
10416         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
10417         trigger for cygwin).
10418         Reported by Bruno Haible  <bruno@clisp.org>.
10419
10420 2008-04-28  Bruno Haible  <bruno@clisp.org>
10421
10422         * doc/posix-functions/strdup.texi: Mention mingw problem.
10423
10424 2008-04-27  Bruno Haible  <bruno@clisp.org>
10425
10426         * modules/stat-time-tests (Depends-on): Add sleep.
10427         * tests/test-stat-time.c (force_unlink): New function.
10428         (cleanup): Use it.
10429         (test_mtime): Remove the ctime related tests.
10430         (test_ctime): New function, containing the ctime related tests.
10431         (main): Call test_ctime, except on native Windows platforms.
10432
10433 2008-04-27  Bruno Haible  <bruno@clisp.org>
10434
10435         * lib/rpmatch.c (rpmatch): Add some comments.
10436         Reported by James Youngman <jay@gnu.org>.
10437
10438 2008-04-27  Bruno Haible  <bruno@clisp.org>
10439
10440         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
10441         quiet NaNs.
10442
10443 2008-04-27  Bruno Haible  <bruno@clisp.org>
10444
10445         Make test-yesno.sh work on mingw.
10446         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
10447         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
10448         (main): Set stdin to binary mode.
10449         * modules/yesno-tests (Depends-on): Add binary-io.
10450
10451 2008-04-27  Bruno Haible  <bruno@clisp.org>
10452
10453         Fix 'isfinite' on x86, x86_64, ia64 platforms.
10454         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
10455         argument that lie outside the IEEE 854 domain.
10456         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
10457         (gl_ISFINITE): Use it.
10458         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
10459
10460 2008-04-27  Bruno Haible  <bruno@clisp.org>
10461
10462         Allow local renaming in config.h.
10463         * lib/memrchr.c (memrchr): Don't undefine outside libc.
10464
10465 2008-04-27  Bruno Haible  <bruno@clisp.org>
10466
10467         * lib/memchr.c (__memchr): Change type of 'i'.
10468         * lib/memchr2.c (memchr2): Likewise.
10469
10470 2008-04-26  Eric Blake  <ebb9@byu.net>
10471         and Bruno Haible  <bruno@clisp.org>
10472
10473         Optimize and test memrchr.
10474         * modules/memrchr (Depends-on): Add intprops.
10475         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
10476         * modules/memrchr-tests: New file.
10477         * tests/test-memrchr.c: New file.
10478
10479 2008-04-26  Bruno Haible  <bruno@clisp.org>
10480
10481         Add tentative support for DragonFly BSD.
10482         * lib/stdio-impl.h: Add macros for DragonFly BSD.
10483         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
10484         fp.
10485         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
10486         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
10487         * lib/fpurge.c (fpurge): Likewise.
10488         * lib/freadable.c (freaadable): Likewise.
10489         * lib/freadahead.c (freadahead): Likewise.
10490         * lib/freading.c (freading): Likewise.
10491         * lib/freadptr.c (freadptr): Likewise.
10492         * lib/freadseek.c (freadptrinc): Likewise.
10493         * lib/fseeko.c (fseeko): Likewise.
10494         * lib/fseterr.c (fseterr): Likewise.
10495         * lib/fwritable.c (fwritable): Likewise.
10496         * lib/fwriting.c (fwriting): Likewise.
10497
10498 2008-04-26  Bruno Haible  <bruno@clisp.org>
10499
10500         * lib/stdio-impl.h: New file.
10501         * lib/fbufmode.c: Include stdio-impl.h.
10502         (fbufmode): Use fp_, remove redundant #defines.
10503         * lib/fflush.c: Include stdio-impl.h.
10504         (clear_ungetc_buffer): Remove redundant #defines.
10505         * lib/fpurge.c: Include stdio-impl.h.
10506         (fpurge): Remove redundant #defines.
10507         * lib/freadable.c: Include stdio-impl.h.
10508         (freadable): Remove redundant #defines.
10509         * lib/freadahead.c: Include stdio-impl.h.
10510         (freadahead): Remove redundant #defines.
10511         * lib/freading.c: Include stdio-impl.h.
10512         (freading): Remove redundant #defines.
10513         * lib/freadptr.c: Include stdio-impl.h.
10514         (freadptr): Remove redundant #defines.
10515         * lib/freadseek.c: Include stdio-impl.h.
10516         (freadptrinc): Remove redundant #defines.
10517         * lib/fseeko.c: Include stdio-impl.h.
10518         (rpl_fseeko): Remove redundant #defines.
10519         * lib/fseterr.c: Include stdio-impl.h.
10520         (fseterr): Remove redundant #defines.
10521         * lib/fwritable.c: Include stdio-impl.h.
10522         (fwritable: Remove redundant #defines.
10523         * lib/fwriting.c: Include stdio-impl.h.
10524         (fwriting): Remove redundant #defines.
10525         * modules/fbufmode (Files): Add lib/stdio-impl.h.
10526         * modules/fflush (Files): Likewise.
10527         * modules/fpurge (Files): Likewise.
10528         * modules/freadable (Files): Likewise.
10529         * modules/freadahead (Files): Likewise.
10530         * modules/freading (Files): Likewise.
10531         * modules/freadptr (Files): Likewise.
10532         * modules/freadseek (Files): Likewise.
10533         * modules/fseeko (Files): Likewise.
10534         * modules/fseterr (Files): Likewise.
10535         * modules/fwritable (Files): Likewise.
10536         * modules/fwriting (Files): Likewise.
10537
10538 2008-04-26  Bruno Haible  <bruno@clisp.org>
10539
10540         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
10541         restore_seek_optimization, update_fpos_cache): New functions, extracted
10542         from rpl_fflush.
10543         (rpl_fflush): Use them.
10544         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
10545         (gl_REPLACE_FFLUSH): Use it.
10546
10547 2008-04-26  Bruno Haible  <bruno@clisp.org>
10548
10549         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
10550         on Solaris.
10551         * tests/test-xstrtoimax.sh: Likewise.
10552         * tests/test-xstrtoumax.sh: Likewise.
10553         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10554
10555 2008-04-26  Bruno Haible  <bruno@clisp.org>
10556
10557         * modules/memchr-tests: New file.
10558         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
10559
10560 2008-04-26  Eric Blake  <ebb9@byu.net>
10561             Bruno Haible  <bruno@clisp.org>
10562
10563         * lib/memchr.c: Include intprops.h.
10564         (__memchr): Optimize parallel detection of matching bytes. Rename local
10565         variables. Add explanatory comments.
10566
10567 2008-04-26  Bruno Haible  <bruno@clisp.org>
10568
10569         Fix module 'memchr', broken since 2000-10-28.
10570         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
10571
10572 2008-04-26  Bruno Haible  <bruno@clisp.org>
10573
10574         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
10575         comments.
10576
10577 2008-04-25  Eric Blake  <ebb9@byu.net>
10578
10579         Use native fstatat on cygwin 1.7.0.
10580         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
10581         first.
10582
10583 2008-04-23  Eric Blake  <ebb9@byu.net>
10584
10585         Improve memchr2 performance.
10586         * lib/memchr2.c (memchr2): Further optimize parallel detection of
10587         NUL bytes.
10588         * modules/memchr2 (Depends-on): Use intprops.h.
10589
10590 2008-04-23  Simon Josefsson  <simon@josefsson.org>
10591
10592         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
10593         an inline function instead of a CPP macro.  Patch by Ben Pfaff
10594         <blp@cs.stanford.edu>.
10595
10596 2008-04-23  Simon Josefsson  <simon@josefsson.org>
10597
10598         * lib/arpa_inet.in.h: New file.
10599
10600         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
10601         (Makefile.am): Sed in substitute header file.
10602
10603         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
10604         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
10605
10606         * modules/inet_ntop (configure.ac): Use
10607         gl_ARPA_INET_MODULE_INDICATOR.
10608
10609         * modules/inet_pton (configure.ac): Use
10610         gl_ARPA_INET_MODULE_INDICATOR.
10611
10612 2008-04-22  Jim Meyering  <meyering@redhat.com>
10613
10614         * modules/verify (License): Re-license as LGPLv2+.
10615
10616 2008-04-22  Simon Josefsson  <simon@josefsson.org>
10617
10618         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
10619         parameter to void* as per POSIX standard (MinGW uses char*).
10620
10621 2008-04-21  Bruno Haible  <bruno@clisp.org>
10622
10623         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
10624         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
10625         Define to replacements if REPLACE_ISWCNTRL is 1.
10626         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
10627         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
10628         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
10629         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
10630         what it fixes.
10631         * doc/posix-functions/iswalpha.texi: Likewise.
10632         * doc/posix-functions/iswblank.texi: Likewise.
10633         * doc/posix-functions/iswcntrl.texi: Likewise.
10634         * doc/posix-functions/iswdigit.texi: Likewise.
10635         * doc/posix-functions/iswgraph.texi: Likewise.
10636         * doc/posix-functions/iswlower.texi: Likewise.
10637         * doc/posix-functions/iswprint.texi: Likewise.
10638         * doc/posix-functions/iswpunct.texi: Likewise.
10639         * doc/posix-functions/iswspace.texi: Likewise.
10640         * doc/posix-functions/iswupper.texi: Likewise.
10641         * doc/posix-functions/iswxdigit.texi: Likewise.
10642         Reported by Alain Guibert.
10643
10644 2008-04-21  Bruno Haible  <bruno@clisp.org>
10645
10646         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
10647         Patch by Alain Guibert.
10648
10649 2008-04-21  Bruno Haible  <bruno@clisp.org>
10650
10651         Fix test failures on mingw.
10652         * tests/test-xstrtol.c (print_no_progname): New function.
10653         (main): Install it in error_print_progname hook.
10654         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
10655         * tests/test-xstrtoimax.sh: Likewise.
10656         * tests/test-xstrtoumax.sh: Likewise.
10657
10658 2008-04-21  Bruno Haible  <bruno@clisp.org>
10659
10660         Fix test failure on mingw.
10661         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
10662
10663 2008-04-21  Bruno Haible  <bruno@clisp.org>
10664
10665         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
10666         Actually assign a value.
10667
10668 2008-04-20  Bruno Haible  <bruno@clisp.org>
10669
10670         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
10671         take 2.
10672         * lib/canonicalize.c (canonicalize_file_name): Elide if the
10673         'canonicalize-lgpl' module is also used.
10674         * lib/canonicalize-lgpl.c: Undo last change.
10675         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
10676
10677 2008-04-20  Bruno Haible  <bruno@clisp.org>
10678
10679         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
10680         config.h. Provide _mkdir based fallback for mingw.
10681         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
10682         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
10683         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
10684         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
10685         rather than defining mkdir in config.h.
10686         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
10687         (gl_SYS_STAT_H_DEFAULTS): New macro.
10688         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
10689         HAVE_IO_H any more.
10690         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
10691         HAVE_DECL_MKDIR and HAVE_IO_H.
10692
10693 2008-04-20  Bruno Haible  <bruno@clisp.org>
10694
10695         * lib/isapipe.c: Port to native Windows platforms.
10696
10697 2008-04-20  Bruno Haible  <bruno@clisp.org>
10698
10699         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
10700
10701 2008-04-21  Eric Blake  <ebb9@byu.net>
10702
10703         Work around preprocessors that don't handle UINTMAX_MAX.
10704         * lib/memchr2.c (memchr2): Avoid embedded #if.
10705         Reported by Alain Guibert, fix suggested by Bruno Haible.
10706
10707 2008-04-21  Simon Josefsson  <simon@josefsson.org>
10708
10709         * doc/posix-functions/strftime.texi (strftime): Explain better
10710         Windows incompatibility.  Suggested by Micah Cowan
10711         <micah@cowan.name>.
10712
10713 2008-04-20  Bruno Haible  <bruno@clisp.org>
10714
10715         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
10716         unistr/u8-mblen.
10717
10718 2008-04-20  Bruno Haible  <bruno@clisp.org>
10719
10720         Fix test failure on platforms with non-GNU iconv.
10721         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
10722         (U_TO_U8): Use it, rather than u16_to_u8.
10723         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
10724         units at the end of the input string.
10725         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
10726
10727 2008-04-20  Bruno Haible  <bruno@clisp.org>
10728
10729         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
10730         when the resulting length is 0.
10731         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
10732
10733 2008-04-20  Bruno Haible  <bruno@clisp.org>
10734
10735         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
10736         works.
10737         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
10738
10739 2008-04-20  Bruno Haible  <bruno@clisp.org>
10740
10741         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
10742         * modules/tsearch-tests (configure.ac): Test for initstate function.
10743
10744 2008-04-20  Bruno Haible  <bruno@clisp.org>
10745
10746         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
10747         for nlink_t if missing.
10748         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
10749
10750 2008-04-19  Bruno Haible  <bruno@clisp.org>
10751
10752         Work around snprintf bug on Linux libc5.
10753         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
10754         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
10755         gl_SNPRINTF_SIZE1.
10756         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10757         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
10758         that test failed.
10759         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
10760         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
10761         * modules/snprintf (Files): Add m4/printf.m4.
10762         * modules/vsnprintf (Files): Likewise.
10763         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
10764         * doc/posix-functions/vsnprintf.texi: Likewise.
10765
10766 2008-04-19  Bruno Haible  <bruno@clisp.org>
10767
10768         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
10769         from 0.0058 to less than 10^-7.
10770
10771 2008-04-19  Bruno Haible  <bruno@clisp.org>
10772
10773         Fix rounding when a precision is given.
10774         * lib/vasnprintf.c (is_borderline): New function.
10775         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
10776         9...9x.
10777         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
10778         %e, %g.
10779         * tests/test-vasprintf-posix.c (test_function): Likewise.
10780         * tests/test-snprintf-posix.h (test_function): Likewise.
10781         * tests/test-sprintf-posix.h (test_function): Likewise.
10782         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
10783         * tests/test-printf-posix.h (test_function): Likewise.
10784         * tests/test-printf-posix.output: Update.
10785         Reported by John Darrington <john@darrington.wattle.id.au> via
10786         Ben Pfaff <blp@cs.stanford.edu>.
10787
10788 2008-04-18  Simon Josefsson  <simon@josefsson.org>
10789
10790         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
10791         Suggested by Bruno Haible <bruno@clisp.org>.
10792
10793 2008-04-17  Bruno Haible  <bruno@clisp.org>
10794
10795         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
10796         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
10797         implementation.
10798         Patch by Bruce Merry <bmerry@gmail.com>.
10799
10800 2008-04-17  Simon Josefsson  <simon@josefsson.org>
10801
10802         * doc/posix-functions/strftime.texi (strftime): Mention that %e
10803         doesn't work under Windows.
10804
10805 2008-04-16  Bruno Haible  <bruno@clisp.org>
10806
10807         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
10808         New macros.
10809         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
10810         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
10811         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
10812         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
10813         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
10814         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
10815         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
10816         macros.
10817         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
10818         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
10819         Northern Sotho, Uighur.
10820
10821 2008-04-16  Bruno Haible  <bruno@clisp.org>
10822
10823         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
10824         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
10825         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
10826         Reported by Daniel Bergström <daniel@octocode.com>.
10827
10828 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
10829             Bruno Haible  <bruno@clisp.org>
10830
10831         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
10832         function.
10833         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
10834         New functions, mostly extracted from gl_locale_name_default.
10835         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
10836
10837 2008-04-16  Eric Blake  <ebb9@byu.net>
10838
10839         Adjust strtod detection to catch glibc 2.7 bug.
10840         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
10841         Reported by John Gatewood Ham.
10842
10843 2008-04-16  Bruno Haible  <bruno@clisp.org>
10844
10845         Add tentative support for Linux libc5.
10846         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
10847         * lib/fpurge.c (fpurge): Likewise.
10848         * lib/freadable.c (freadable): Likewise.
10849         * lib/freadahead.c (freadahead): Likewise.
10850         * lib/freading.c (freading): Likewise.
10851         * lib/freadptr.c (freadptr): Likewise.
10852         * lib/freadseek.c (freadptrinc): Likewise.
10853         * lib/fseeko.c (rpl_fseeko): Likewise.
10854         * lib/fseterr.c (fseterr): Likewise.
10855         * lib/fwritable.c (fwritable): Likewise.
10856         * lib/fwriting.c (fwriting): Likewise.
10857         Reported by Alain Guibert <alguibert+bts@free.fr>.
10858
10859 2008-04-15  Bruno Haible  <bruno@clisp.org>
10860
10861         * modules/mathl (configure.ac): Define module indicator.
10862
10863 2008-04-15  Bruno Haible  <bruno@clisp.org>
10864
10865         * lib/logl.c (logl): Remove unused variables.
10866
10867 2008-04-15  Bruno Haible  <bruno@clisp.org>
10868
10869         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
10870         fails.
10871
10872 2008-04-15  Bruno Haible  <bruno@clisp.org>
10873
10874         * lib/trim.c (trim2): Fix argument of isspace() macro.
10875
10876 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
10877
10878         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
10879         to 0.
10880         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
10881
10882 2008-04-14  Bruno Haible  <bruno@clisp.org>
10883
10884         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
10885         AC_LANG_PROGRAM argument.
10886         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
10887         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
10888         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10889         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
10890         * m4/math_h.m4 (gl_MATH_H): Likewise.
10891         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
10892         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10893         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
10894         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
10895         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10896         * m4/regex.m4 (gl_REGEX): Likewise.
10897         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
10898         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
10899         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10900         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
10901         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
10902         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10903         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10904         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10905
10906 2008-04-14  Jim Meyering  <meyering@redhat.com>
10907
10908         test-strtod: fix typos: s/abs/fabs/
10909         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
10910
10911 2008-04-13  Bruno Haible  <bruno@clisp.org>
10912
10913         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
10914         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
10915         module is also used and while not building the reloc-wrapper.
10916
10917 2008-04-13  Bruno Haible  <bruno@clisp.org>
10918
10919         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
10920
10921 2008-04-13  Bruno Haible  <bruno@clisp.org>
10922
10923         Fix AIX compilation failure introduced on 2008-04-02.
10924         * tests/test-frexp.c (exp): Undefine before redefining.
10925         * tests/test-frexpl.c (exp): Likewise.
10926
10927 2008-04-13  Bruno Haible  <bruno@clisp.org>
10928
10929         Work around a HP-UX stdio bug.
10930         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
10931         * tests/test-ftello.c (main): Likewise.
10932         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
10933         * doc/posix-functions/ftello.texi: Likewise.
10934
10935 2008-04-13  Bruno Haible  <bruno@clisp.org>
10936
10937         Make test-signbit pass on HP-UX/hppa.
10938         * tests/test-signbit.c (minus_zerol): New variable.
10939         (test_signbitl): Use it.
10940
10941 2008-04-13  Bruno Haible  <bruno@clisp.org>
10942
10943         Make truncl work on OSF/1 4.0.
10944         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
10945         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
10946         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
10947         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
10948         HAVE_DECL_TRUNCL.
10949         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
10950         HAVE_DECL_TRUNCL.
10951         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
10952
10953 2008-04-13  Bruno Haible  <bruno@clisp.org>
10954
10955         * lib/unictype.h: Remove trailing comma from enumeration definitions.
10956
10957 2008-04-13  Bruno Haible  <bruno@clisp.org>
10958
10959         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
10960         expression, so as to avoid HP-UX 11 cc compiler bug.
10961
10962 2008-04-13  Bruno Haible  <bruno@clisp.org>
10963
10964         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
10965
10966 2008-04-13  Bruno Haible  <bruno@clisp.org>
10967
10968         * lib/git-merge-changelog.c: Remove empty declaration outside of
10969         functions.
10970
10971 2008-04-13  Bruno Haible  <bruno@clisp.org>
10972
10973         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
10974
10975 2008-04-13  Bruno Haible  <bruno@clisp.org>
10976
10977         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
10978         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
10979         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
10980         also if it exists but lacks definitions of the SHUT_* macros.
10981         * modules/sys_socket (Description): Update.
10982         Reported by Elbert Pol <e.pol@chello.nl>.
10983
10984 2008-04-13  Bruno Haible  <bruno@clisp.org>
10985
10986         * lib/localcharset.c (OS2): Don't redefine if already defined.
10987         Reported by Elbert Pol <e.pol@chello.nl>.
10988
10989 2008-04-13  Bruno Haible  <bruno@clisp.org>
10990
10991         * lib/binary-io.h [__EMX__]: Include <io.h>.
10992         Reported by Elbert Pol <e.pol@chello.nl>.
10993
10994 2008-04-12  Bruno Haible  <bruno@clisp.org>
10995
10996         * lib/fpucw.h: Enable the definitions also for x86_64.
10997         Needed for NetBSD/x86_64.
10998         Reported by Thomas Klausner <tk@giga.or.at>.
10999
11000 2008-04-12  Bruno Haible  <bruno@clisp.org>
11001
11002         * tests/test-strtod.c: Include isnand.h.
11003         (main): Use isnand instead of isnan.
11004         Reported by Jim Meyering.
11005
11006 2008-04-12  Bruno Haible  <bruno@clisp.org>
11007
11008         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
11009         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
11010
11011 2008-04-12  Jim Meyering  <meyering@redhat.com>
11012
11013         * m4/math_h.m4 (gl_MATH_H): Fix typos.
11014
11015 2008-04-12  Bruno Haible  <bruno@clisp.org>
11016
11017         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
11018         Reported by Elbert Pol <e.pol@chello.nl>.
11019
11020 2008-04-12  Eric Blake  <ebb9@byu.net>
11021
11022         Work around Solaris 10 math.h bug.
11023         * m4/math_h.m4 (gl_MATH_H): Check for bug.
11024         (gl_MATH_H_DEFAULTS): Set up default.
11025         * modules/math (Makefile.am): Replace new indicators.
11026         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
11027         * tests/test-math.c (main): Test this.
11028         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
11029         * doc/posix-headers/math.texi (math.h): Mention bug.
11030         Reported by Nelson H. F. Beebe and Jim Meyering.
11031
11032 2008-04-11  Bruno Haible  <bruno@clisp.org>
11033
11034         Adapt to future versions of Apple GCC.
11035         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
11036         Reported by Peter O'Gorman <peter@pogma.com>.
11037
11038 2008-04-11  Bruno Haible  <bruno@clisp.org>
11039
11040         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
11041
11042 2008-04-11  Bruno Haible  <bruno@clisp.org>
11043
11044         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
11045
11046         * modules/getaddrinfo-tests (Makefile.am): Define
11047         test_getaddrinfo_LDADD.
11048
11049 2008-04-11  Bruno Haible  <bruno@clisp.org>
11050
11051         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
11052         (init): Fix syntax error.
11053         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
11054         is declared.
11055
11056 2008-04-11  Bruno Haible  <bruno@clisp.org>
11057
11058         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
11059         * modules/glob (Depends-on): Add stdbool.
11060
11061 2008-04-11  Bruno Haible  <bruno@clisp.org>
11062
11063         * lib/trim.c: Include <string.h>.
11064
11065 2008-04-11  Eric Blake  <ebb9@byu.net>
11066
11067         Avoid compile failure on OS/2.
11068         * lib/regex_internal.h (internal_function): Disable optimization
11069         on OS/2 (__EMX__), where it caused compiler error.
11070         Reported by Elbert Pol.
11071
11072 2008-04-11  Bruno Haible  <bruno@clisp.org>
11073
11074         Flush the standard error stream before aborting. Needed on mingw.
11075         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
11076         * tests/test-array_list.c (ASSERT): Likewise.
11077         * tests/test-array_oset.c (ASSERT): Likewise.
11078         * tests/test-avltree_list.c (ASSERT): Likewise.
11079         * tests/test-avltree_oset.c (ASSERT): Likewise.
11080         * tests/test-avltreehash_list.c (ASSERT): Likewise.
11081         * tests/test-binary-io.c (ASSERT): Likewise.
11082         * tests/test-byteswap.c (ASSERT): Likewise.
11083         * tests/test-c-ctype.c (ASSERT): Likewise.
11084         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
11085         * tests/test-c-strcasestr.c (ASSERT): Likewise.
11086         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
11087         * tests/test-c-strstr.c (ASSERT): Likewise.
11088         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
11089         * tests/test-canonicalize.c (ASSERT): Likewise.
11090         * tests/test-carray_list.c (ASSERT): Likewise.
11091         * tests/test-ceilf1.c (ASSERT): Likewise.
11092         * tests/test-ceilf2.c (ASSERT): Likewise.
11093         * tests/test-ceill.c (ASSERT): Likewise.
11094         * tests/test-count-one-bits.c (ASSERT): Likewise.
11095         * tests/test-fbufmode.c (ASSERT): Likewise.
11096         * tests/test-fflush2.c (ASSERT): Likewise.
11097         * tests/test-floorf1.c (ASSERT): Likewise.
11098         * tests/test-floorf2.c (ASSERT): Likewise.
11099         * tests/test-floorl.c (ASSERT): Likewise.
11100         * tests/test-fopen.c (ASSERT): Likewise.
11101         * tests/test-fpending.c (ASSERT): Likewise.
11102         * tests/test-fprintf-posix.c (ASSERT): Likewise.
11103         * tests/test-fpurge.c (ASSERT): Likewise.
11104         * tests/test-freadable.c (ASSERT): Likewise.
11105         * tests/test-freadahead.c (ASSERT): Likewise.
11106         * tests/test-freading.c (ASSERT): Likewise.
11107         * tests/test-freadptr.c (ASSERT): Likewise.
11108         * tests/test-freadptr2.c (ASSERT): Likewise.
11109         * tests/test-freadseek.c (ASSERT): Likewise.
11110         * tests/test-freopen.c (ASSERT): Likewise.
11111         * tests/test-frexp.c (ASSERT): Likewise.
11112         * tests/test-frexpl.c (ASSERT): Likewise.
11113         * tests/test-fseek.c (ASSERT): Likewise.
11114         * tests/test-fseeko.c (ASSERT): Likewise.
11115         * tests/test-fstrcmp.c (ASSERT): Likewise.
11116         * tests/test-ftell.c (ASSERT): Likewise.
11117         * tests/test-ftello.c (ASSERT): Likewise.
11118         * tests/test-func.c (ASSERT): Likewise.
11119         * tests/test-fwritable.c (ASSERT): Likewise.
11120         * tests/test-fwriting.c (ASSERT): Likewise.
11121         * tests/test-getdelim.c (ASSERT): Likewise.
11122         * tests/test-getline.c (ASSERT): Likewise.
11123         * tests/test-i-ring.c (ASSERT): Likewise.
11124         * tests/test-iconv-utf.c (ASSERT): Likewise.
11125         * tests/test-iconv.c (ASSERT): Likewise.
11126         * tests/test-isfinite.c (ASSERT): Likewise.
11127         * tests/test-isnand.c (ASSERT): Likewise.
11128         * tests/test-isnanf.c (ASSERT): Likewise.
11129         * tests/test-isnanl.h (ASSERT): Likewise.
11130         * tests/test-ldexpl.c (ASSERT): Likewise.
11131         * tests/test-linked_list.c (ASSERT): Likewise.
11132         * tests/test-linkedhash_list.c (ASSERT): Likewise.
11133         * tests/test-localename.c (ASSERT): Likewise.
11134         * tests/test-lseek.c (ASSERT): Likewise.
11135         * tests/test-mbscasecmp.c (ASSERT): Likewise.
11136         * tests/test-mbscasestr1.c (ASSERT): Likewise.
11137         * tests/test-mbscasestr2.c (ASSERT): Likewise.
11138         * tests/test-mbscasestr3.c (ASSERT): Likewise.
11139         * tests/test-mbscasestr4.c (ASSERT): Likewise.
11140         * tests/test-mbschr.c (ASSERT): Likewise.
11141         * tests/test-mbscspn.c (ASSERT): Likewise.
11142         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
11143         * tests/test-mbspbrk.c (ASSERT): Likewise.
11144         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
11145         * tests/test-mbsrchr.c (ASSERT): Likewise.
11146         * tests/test-mbsspn.c (ASSERT): Likewise.
11147         * tests/test-mbsstr1.c (ASSERT): Likewise.
11148         * tests/test-mbsstr2.c (ASSERT): Likewise.
11149         * tests/test-mbsstr3.c (ASSERT): Likewise.
11150         * tests/test-memchr2.c (ASSERT): Likewise.
11151         * tests/test-memmem.c (ASSERT): Likewise.
11152         * tests/test-open.c (ASSERT): Likewise.
11153         * tests/test-printf-frexp.c (ASSERT): Likewise.
11154         * tests/test-printf-frexpl.c (ASSERT): Likewise.
11155         * tests/test-printf-posix.c (ASSERT): Likewise.
11156         * tests/test-quotearg.c (ASSERT): Likewise.
11157         * tests/test-rbtree_list.c (ASSERT): Likewise.
11158         * tests/test-rbtree_oset.c (ASSERT): Likewise.
11159         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
11160         * tests/test-round1.c (ASSERT): Likewise.
11161         * tests/test-roundf1.c (ASSERT): Likewise.
11162         * tests/test-roundl.c (ASSERT): Likewise.
11163         * tests/test-signbit.c (ASSERT): Likewise.
11164         * tests/test-sleep.c (ASSERT): Likewise.
11165         * tests/test-snprintf-posix.c (ASSERT): Likewise.
11166         * tests/test-snprintf.c (ASSERT): Likewise.
11167         * tests/test-sprintf-posix.c (ASSERT): Likewise.
11168         * tests/test-stat-time.c (ASSERT): Likewise.
11169         * tests/test-strcasestr.c (ASSERT): Likewise.
11170         * tests/test-strerror.c (ASSERT): Likewise.
11171         * tests/test-striconv.c (ASSERT): Likewise.
11172         * tests/test-striconveh.c (ASSERT): Likewise.
11173         * tests/test-striconveha.c (ASSERT): Likewise.
11174         * tests/test-strsignal.c (ASSERT): Likewise.
11175         * tests/test-strstr.c (ASSERT): Likewise.
11176         * tests/test-strtod.c (ASSERT): Likewise.
11177         * tests/test-trunc1.c (ASSERT): Likewise.
11178         * tests/test-trunc2.c (ASSERT): Likewise.
11179         * tests/test-truncf1.c (ASSERT): Likewise.
11180         * tests/test-truncf2.c (ASSERT): Likewise.
11181         * tests/test-truncl.c (ASSERT): Likewise.
11182         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
11183         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
11184         * tests/test-vasnprintf.c (ASSERT): Likewise.
11185         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
11186         * tests/test-vasprintf.c (ASSERT): Likewise.
11187         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
11188         * tests/test-vprintf-posix.c (ASSERT): Likewise.
11189         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
11190         * tests/test-vsnprintf.c (ASSERT): Likewise.
11191         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
11192         * tests/test-wcwidth.c (ASSERT): Likewise.
11193         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
11194         * tests/test-xprintf-posix.c (ASSERT): Likewise.
11195         * tests/test-xvasprintf.c (ASSERT): Likewise.
11196         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
11197         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
11198         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
11199         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
11200         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
11201         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
11202         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
11203         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
11204         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
11205         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
11206         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
11207         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
11208         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
11209         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
11210         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
11211         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
11212         * tests/unictype/test-block_list.c (ASSERT): Likewise.
11213         * tests/unictype/test-block_of.c (ASSERT): Likewise.
11214         * tests/unictype/test-block_test.c (ASSERT): Likewise.
11215         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
11216         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
11217         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
11218         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
11219         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
11220         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
11221         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
11222         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
11223         * tests/unictype/test-combining.c (ASSERT): Likewise.
11224         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
11225         * tests/unictype/test-digit.c (ASSERT): Likewise.
11226         * tests/unictype/test-mirror.c (ASSERT): Likewise.
11227         * tests/unictype/test-numeric.c (ASSERT): Likewise.
11228         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
11229         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
11230         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
11231         * tests/unictype/test-scripts.c (ASSERT): Likewise.
11232         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
11233         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
11234         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
11235         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
11236         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
11237         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
11238         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
11239         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
11240         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
11241         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
11242         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
11243         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
11244         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
11245         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
11246         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
11247         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
11248         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
11249         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
11250         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
11251         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
11252         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
11253         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
11254         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
11255         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
11256         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
11257         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
11258         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
11259         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
11260         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
11261         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
11262         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
11263         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
11264         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
11265         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
11266         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
11267         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
11268         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
11269         Reported by Eric Blake.
11270
11271 2008-04-11  Bruno Haible  <bruno@clisp.org>
11272
11273         * lib/wchar.in.h: Tweak comment.
11274
11275 2008-04-11  Bruno Haible  <bruno@clisp.org>
11276
11277         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
11278         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
11279         gl_COMMON.
11280         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
11281
11282 2008-04-11  Bruno Haible  <bruno@clisp.org>
11283
11284         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
11285
11286 2008-04-11  Simon Josefsson  <simon@josefsson.org>
11287
11288         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
11289         of attempting to use non-existing /dev/*random.  Based on patch
11290         from Adam Strzelecki <ono@java.pl> in
11291         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
11292
11293 2008-04-08  Bruno Haible  <bruno@clisp.org>
11294
11295         Add tentative support for emx+gcc.
11296         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
11297         * lib/fpurge.c (fpurge): Likewise.
11298         * lib/freadable.c (freadable): Likewise.
11299         * lib/freadahead.c (freadahead): Likewise.
11300         * lib/freading.c (freading): Likewise.
11301         * lib/freadptr.c (freadptr): Likewise.
11302         * lib/freadseek.c (freadptrinc): Likewise.
11303         * lib/fseeko.c (rpl_fseeko): Likewise.
11304         * lib/fseterr.c (fseterr): Likewise.
11305         * lib/fwritable.c (fwritable): Likewise.
11306         * lib/fwriting.c (fwriting): Likewise.
11307         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
11308
11309 2008-04-09  Eric Blake  <ebb9@byu.net>
11310
11311         Avoid some autoconf warnings.
11312         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
11313         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
11314         * m4/afs.m4 (gl_AFS): Likewise.
11315         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
11316         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
11317         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
11318         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
11319         (gl_INTEGER_TYPE_SUFFIX): Likewise.
11320         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
11321         (AC_CHECK_DECLS_ONCE): Likewise.
11322         Rename file...
11323         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
11324         gnulib-tool requires autoconf 2.59 or better.
11325         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
11326
11327 2008-04-08  Eric Blake  <ebb9@byu.net>
11328
11329         Use 'git describe --match' if present (added in git 1.5.5).
11330         * build-aux/git-version-gen: Limit result to tags that match 'v*'
11331         if possible.
11332
11333 2008-04-08  Bruno Haible  <bruno@clisp.org>
11334
11335         Add tentative support for OpenServer.
11336         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
11337         _ptr, _cnt.
11338         * lib/fpurge.c (fpurge): Likewise.
11339         * lib/freadable.c (freadable): Likewise.
11340         * lib/freadahead.c (freadahead): Likewise.
11341         * lib/freading.c (freading): Likewise.
11342         * lib/freadptr.c (freadptr): Likewise.
11343         * lib/freadseek.c (freadptrinc): Likewise.
11344         * lib/fseeko.c (rpl_fseeko): Likewise.
11345         * lib/fseterr.c (fseterr): Likewise.
11346         * lib/fwritable.c (fwritable): Likewise.
11347         * lib/fwriting.c (fwriting): Likewise.
11348         Reported by Roger Cornelius <rac@tenzing.org> and
11349         Brian K. White <brian@aljex.com>.
11350
11351 2008-04-06  Jim Meyering  <meyering@redhat.com>
11352
11353         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
11354
11355 2008-04-06  Bruno Haible  <bruno@clisp.org>
11356
11357         Avoid possible error with non-ASCII bytes in UTF-8 locales.
11358         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
11359         * tests/test-printf-posix.sh: Likewise.
11360         * tests/test-vfprintf-posix.sh: Likewise.
11361         * tests/test-vprintf-posix.sh: Likewise.
11362         * tests/test-xprintf-posix.sh: Likewise.
11363
11364 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11365
11366         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
11367         hide error from 'ls', needed on OS/2.
11368         Report by Elbert Pol <elbert.pol@gmail.com>.
11369
11370 2008-04-04  Eric Blake  <ebb9@byu.net>
11371
11372         Make test-fseeko.c failures meaningful.
11373         * tests/test-fseeko.c: Print line number on failure.
11374         * tests/test-fseek.c: Likewise.
11375         Reported by Nelson H. F. Beebe.
11376
11377         Improve strtod bug detection check.
11378         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
11379         required for Solaris 10.
11380         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
11381
11382 2008-04-04  Bruno Haible  <bruno@clisp.org>
11383
11384         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
11385         by m4/setenv.m4.
11386
11387 2008-04-03  Eric Blake  <ebb9@byu.net>
11388
11389         Ensure sane .version contents.
11390         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
11391         version string.
11392         * build-aux/git-version-gen: Improve documentation.
11393
11394         Make GNU make output nicer.
11395         * top/GNUmakefile [!_have-Makefile]: Add dependency on
11396         MAKECMDGOALS to enforce message for all command line targets.  Set
11397         srcdir for use in maint.mk.
11398
11399         Another maintainer tweak.
11400         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
11401         a target that regenerates version.
11402
11403 2008-04-03  Jim Meyering  <meyering@redhat.com>
11404
11405         vc-list-files: don't cause coreutils "make po-check" failure
11406         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
11407
11408 2008-04-03  Eric Blake  <ebb9@byu.net>
11409
11410         Allow VPATH usage of vc-list-files.
11411         * build-aux/vc-list-files (scriptversion): Add timestamp.
11412         (options): Add --help, --version, -C.
11413         (CVS): Support installed cvsu.
11414
11415 2008-04-02  Bruno Haible  <bruno@clisp.org>
11416
11417         Avoid some "statement with no effect" warnings from gcc.
11418         * tests/test-wctype.c (main): Explicitly ignore unused values.
11419         Reported by Jim Meyering.
11420
11421 2008-04-02  Jim Meyering  <meyering@redhat.com>
11422
11423         Avoid some warnings from "gcc -Wshadow".
11424         * tests/test-frexp.c (exp): Define to a different identifier.
11425         * tests/test-frexpl.c (exp): Likewise.
11426
11427 2008-04-03  Jim Meyering  <meyering@redhat.com>
11428
11429         bootstrap: remove dangling *.[ch] symlinks from lib
11430         * build-aux/bootstrap [dangling symlink removal]: Move find's
11431         -depth option to precede all others, to avoid a warning.
11432         Remove *.[ch] files too, and from "$source_base" (usually lib/).
11433
11434 2008-04-02  Bruno Haible  <bruno@clisp.org>
11435
11436         Avoid some warnings from "gcc -Wshadow".
11437         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
11438         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
11439         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
11440         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
11441         Reported by Jim Meyering.
11442
11443 2008-04-01  Bruno Haible  <bruno@clisp.org>
11444
11445         Fix test to work on IRIX 6.5 with cc.
11446         * tests/test-math.c (numeric_equal): New function.
11447         (main): Use it.
11448
11449 2008-04-01  Bruno Haible  <bruno@clisp.org>
11450
11451         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
11452
11453 2008-04-01  Bruno Haible  <bruno@clisp.org>
11454
11455         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
11456         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11457         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
11458         (Depends-on): Remove math.
11459
11460         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
11461         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11462         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
11463         (Depends-on): Remove math.
11464
11465         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
11466         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11467         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
11468         (Depends-on): Remove math.
11469         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
11470         (Depends-on): Remove math.
11471
11472         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
11473         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
11474         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
11475         (Depends-on): Remove math.
11476         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
11477         (Depends-on): Remove math.
11478
11479         * tests/test-round1.c: Include nan.h.
11480         (main): Use NaNd instead of NAN.
11481         * modules/round-tests (Files): Add tests/nan.h.
11482
11483         * tests/test-trunc1.c: Include nan.h.
11484         (main): Use NaNd instead of NAN.
11485         * modules/trunc-tests (Files): Add tests/nan.h.
11486
11487         * tests/test-roundf1.c: Include nan.h.
11488         (main): Use NaNf instead of NAN.
11489         * modules/roundf-tests (Files): Add tests/nan.h.
11490
11491         * tests/test-truncf1.c: Include nan.h.
11492         (main): Use NaNf instead of NAN.
11493         * modules/truncf-tests (Files): Add tests/nan.h.
11494
11495         * tests/test-ceilf1.c: Include nan.h.
11496         (main): Use NaNf instead of NAN.
11497         * modules/ceilf-tests (Files): Add tests/nan.h.
11498
11499         * tests/test-floorf1.c: Include nan.h.
11500         (main): Use NaNf instead of NAN.
11501         * modules/floorf-tests (Files): Add tests/nan.h.
11502
11503         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
11504         (main): Use NaNf instead of NAN.
11505         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
11506
11507         * tests/test-isnand.c: Include nan.h instead of <math.h>.
11508         (main): Use NaNd instead of NAN.
11509         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
11510
11511         * tests/test-frexp.c: Include nan.h.
11512         (main): Use NaNd instead of NAN.
11513         * modules/frexp-tests (Files): Add tests/nan.h.
11514
11515         * lib/isnan.c: Don't include <math.h>.
11516         (FUNC): Don't use NAN macro.
11517         * modules/isnand-nolibm (Depends-on): Remove math.
11518         * modules/isnanf-nolibm (Depends-on): Remove math.
11519         * modules/isnanl (Depends-on): Remove math.
11520         * modules/isnanl-nolibm (Depends-on): Remove math.
11521
11522         * tests/nan.h: New file.
11523
11524 2008-04-01  Eric Blake  <ebb9@byu.net>
11525
11526         Fix typos.
11527         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
11528         values to be the right type.
11529
11530         For now, cater to gnulib strtod inaccuracies.
11531         * tests/test-strtod.c (main): Allow 1-ulp error on expected
11532         fractional results.  While not as nice from a QoI perspective, it
11533         is a quicker patch than correctly implementing decimal to binary
11534         rounding.
11535
11536 2008-03-31  Eric Blake  <ebb9@byu.net>
11537
11538         Guarantee a definition of NAN.
11539         * lib/math.in.h (NAN): Define if missing.
11540         * tests/test-math.c (main): Test it.
11541         * doc/posix-headers/math.texi (math.h): Document this.
11542         * lib/isnan.c (rpl_isnand): Use it.
11543         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
11544         * tests/test-floorf1.c (NaN): Likewise.
11545         * tests/test-frexp.c (NaN): Likewise.
11546         * tests/test-isnand.c (NaN): Likewise.
11547         * tests/test-isnanf.c (NaN): Likewise.
11548         * tests/test-round1.c (NaN): Likewise.
11549         * tests/test-roundf1.c (NaN): Likewise.
11550         * tests/test-snprintf-posix.h (NaN): Likewise.
11551         * tests/test-sprintf-posix.h (NaN): Likewise.
11552         * tests/test-trunc1.c (NaN): Likewise.
11553         * tests/test-truncf1.c (NaN): Likewise.
11554         * tests/test-vasnprintf-posix.c (NaN): Likewise.
11555         * tests/test-vasprintf-posix.c (NaN): Likewise.
11556         * modules/isnand-nolibm (Depends-on): Add math.
11557         * modules/isnanf-nolibm (Depends-on): Likewise.
11558         * modules/isnanl (Depends-on): Likewise.
11559         * modules/isnanl-nolibm (Depends-on): Likewise.
11560         * modules/snprintf-posix-tests (Depends-on): Likewise.
11561         * modules/sprintf-posix-tests (Depends-on): Likewise.
11562         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
11563         * modules/vsprintf-posix-tests (Depends-on): Likewise.
11564         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
11565         * modules/vasprintf-posix-tests (Depends-on): Likewise.
11566
11567 2008-03-31  Bruno Haible  <bruno@clisp.org>
11568
11569         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
11570         * doc/posix-functions/strtod.texi: Likewise.
11571
11572 2008-03-31  Bruno Haible  <bruno@clisp.org>
11573
11574         * tests/test-strtod.c (main): Don't use C99 syntax.
11575
11576 2008-03-31  Bruno Haible  <bruno@clisp.org>
11577
11578         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
11579         Reported by Eric Blake.
11580
11581 2008-03-31  Jim Meyering  <meyering@redhat.com>
11582
11583         Don't compare actual signbit return values.
11584         * tests/test-strtod.c (main): Rather, compare only their
11585         zero/non-zero nature.
11586
11587 2008-03-31  Eric Blake  <ebb9@byu.net>
11588
11589         More strtod documentation.
11590         * doc/posix-functions/strtod.texi (strtod): Interpret more test
11591         failures as distinct bugs.
11592
11593 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
11594
11595         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
11596         Problem reported by Erik Benada in
11597         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
11598
11599 2008-03-30  Bruno Haible  <bruno@clisp.org>
11600
11601         * tests/test-strtod.c: Add comments about which assertion fails on which
11602         platform.
11603         * doc/posix-functions/strtod.texi: Add info about many more platforms.
11604
11605 2008-03-30  Eric Blake  <ebb9@byu.net>
11606
11607         Test signbit behavior on zeros.
11608         * tests/test-signbit.c (test_signbitf): Add tests for zero.
11609         (test_signbitd, test_signbitl): Likewise.
11610
11611         More strtod touchups.
11612         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
11613         sign of negative underflow, for now.  Use .5, not .1.
11614         * doc/posix-functions/strtod.texi (strtod): Mention these
11615         limitations.
11616         Reported by Jim Meyering.
11617
11618 2008-03-30  Bruno Haible  <bruno@clisp.org>
11619
11620         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
11621         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
11622
11623 2008-03-30  Bruno Haible  <bruno@clisp.org>
11624
11625         Avoid failure when attempting to return empty iconv results on some
11626         platforms.
11627         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
11628         allocation, don't report ENOMEM when the resulting string is empty.
11629
11630 2008-03-30  Bruno Haible  <bruno@clisp.org>
11631
11632         Fix buffer overrun.
11633         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
11634         Don't consider the width for tmp_length. Check count against tmp_length
11635         before doing the padding. Ensure enough allocation during padding.
11636
11637 2008-03-30  Eric Blake  <ebb9@byu.net>
11638
11639         strtod touchups.
11640         * lib/strtod.c (strtod): Avoid compiler warnings.
11641         Reported by Jim Meyering.
11642
11643 2008-03-30  Bruno Haible  <bruno@clisp.org>
11644
11645         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
11646         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
11647         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
11648         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
11649         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
11650         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
11651         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
11652         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
11653
11654         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
11655         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
11656         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
11657         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
11658         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
11659         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
11660         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
11661         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
11662
11663         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
11664         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
11665         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
11666         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
11667         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
11668         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
11669         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
11670         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
11671
11672         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
11673         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
11674
11675         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
11676         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
11677
11678         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
11679         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
11680
11681         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
11682         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
11683         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
11684
11685         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
11686         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
11687         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
11688
11689         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
11690         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
11691         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
11692
11693         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
11694         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
11695         * modules/vasprintf (Depends-on): Add EOVERFLOW.
11696
11697         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
11698         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
11699         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
11700         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
11701         (Depends-on): Add EOVERFLOW.
11702         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
11703         (Depends-on): Add EOVERFLOW.
11704         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
11705         (Depends-on): Add EOVERFLOW.
11706         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
11707         (Depends-on): Add EOVERFLOW.
11708         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
11709         (Depends-on): Add EOVERFLOW.
11710         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
11711         (Depends-on): Add EOVERFLOW.
11712         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
11713         (Depends-on): Add EOVERFLOW.
11714         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
11715         (Depends-on): Add EOVERFLOW.
11716
11717         * lib/sprintf.c (EOVERFLOW): Remove fallback.
11718         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
11719         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
11720
11721         * lib/snprintf.c (EOVERFLOW): Remove fallback.
11722         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
11723         * modules/snprintf (Depends-on): Add EOVERFLOW.
11724
11725         * lib/poll.c (EOVERFLOW): Remove fallback.
11726         * modules/poll (Depends-on): Add EOVERFLOW.
11727
11728         * lib/getugroups.c (EOVERFLOW): Remove fallback.
11729         * modules/getugroups (Depends-on): Add EOVERFLOW.
11730
11731         * lib/getdelim.c (EOVERFLOW): Remove fallback.
11732         * modules/getdelim (Depends-on): Add EOVERFLOW.
11733
11734         * lib/ftell.c (EOVERFLOW): Remove fallback.
11735         * modules/ftell (Depends-on): Add EOVERFLOW.
11736
11737         * lib/fprintf.c (EOVERFLOW): Remove fallback.
11738         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
11739         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
11740
11741         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
11742
11743         * modules/EOVERFLOW-tests: New file.
11744         * tests/test-EOVERFLOW.c: New file.
11745
11746         * modules/EOVERFLOW: New file.
11747         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
11748
11749 2008-03-30  Bruno Haible  <bruno@clisp.org>
11750
11751         Fix bug introduced on 2007-06-10.
11752         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
11753         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
11754
11755 2008-03-30  Bruno Haible  <bruno@clisp.org>
11756
11757         Improve freadseek's efficiency after ungetc.
11758         * lib/freadseek.c: Include freadahead.h.
11759         (freadptrinc): New function, extracted from freadseek.
11760         (freadseek): Use it in a loop. Use freadahead to determine the number
11761         of loop iterations.
11762         * modules/freadseek (Depends-on): Add freadahead.
11763         (configure.ac): Require AC_C_INLINE.
11764
11765 2008-03-30  Bruno Haible  <bruno@clisp.org>
11766
11767         * lib/freadseek.c (freadseek): Don't ignore the return value of
11768         freadptr.
11769
11770 2008-03-29  Eric Blake  <ebb9@byu.net>
11771
11772         Add hex float support.
11773         * modules/strtod (Depends-on): Add c-ctype.
11774         (Link): Mention POW_LIB.
11775         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
11776         whitespace between 'e' and exponent.
11777         * tests/test-strtod.c (main): Enable hex float tests.
11778         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
11779         now provides.
11780
11781         Document various strtod bugs, with some fixes.
11782         * doc/posix-functions/strtod.texi (strtod): Document bugs with
11783         "-0x", "inf", "nan", and hex constants.
11784         * doc/posix-functions/atof.texi (atof): Likewise.
11785         * modules/stdlib (Makefile.am): Support strtod.
11786         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
11787         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
11788         detect additional strtod bugs.
11789         * lib/stdlib.in.h (rpl_strtod): Add declarations.
11790         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
11791         bool where appropriate.  Parse 'inf' and 'nan'.
11792         * tests/test-strtod.c: New file.
11793         * modules/strtod (Depends-on): Add stdbool, stdlib.
11794         (configure.ac): Turn on module indicator.
11795         * modules/strtod-tests: New module.
11796
11797 2008-03-29  Eric Blake  <ebb9@byu.net>
11798
11799         Fix ftell on mingw.
11800         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
11801         * modules/ftell-tests (Depends-on): Add binary-io.
11802         * modules/ftello-tests (Depends-on): Likewise.
11803         * tests/test-ftell.c (main): Enhance test to cover behavior after
11804         ungetc.  Enforce binary mode.
11805         * tests/test-ftello.c (main): Likewise.
11806
11807         Pass test-freadseek on cygwin.
11808         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
11809         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
11810         ungetc buffer.
11811
11812         * tests/test-fflush2.c (main): Fix typo.
11813
11814 2008-03-29  Bruno Haible  <bruno@clisp.org>
11815
11816         * tests/test-fflush2.c (main): Temporarily disable the contents of
11817         this test.
11818         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
11819         Reported by Eric Blake.
11820
11821 2008-03-28  Simon Josefsson  <simon@josefsson.org>
11822
11823         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
11824         (GC_SHA224_DIGEST_SIZE): Add.
11825
11826         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
11827         (gc_hash_digest_length): Likewise.
11828         (gc_hash_buffer): Likewise.
11829
11830 2008-03-25  Bruno Haible  <bruno@clisp.org>
11831
11832         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
11833         detail which gettext release to use.
11834         Reported by Simon Josefsson.
11835
11836 2008-03-26  Jim Meyering  <meyering@redhat.com>
11837
11838         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
11839         * modules/gnumakefile (clean-GNUmakefile): Also, use
11840         test ... && ... || : syntax rather than if-then ... fi.
11841
11842         gnumakefile: Don't double-quote-expand $(VPATH) value.
11843         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
11844
11845 2008-03-24  Eric Blake  <ebb9@byu.net>
11846
11847         Alter GNUmakefile to install into top directory.
11848         * modules/maintainer-makefile: Split, and add dependency...
11849         * modules/gnumakefile: to this new module.
11850         * build-aux/GNUmakefile: Move...
11851         * top/GNUmakefile: ...here.
11852         * build-aux/maint.mk: Move...
11853         * top/maint.mk: ...here.
11854         * MODULES.html.sh (Support for maintaining...): Document new
11855         module.
11856
11857 2008-03-23  Bruno Haible  <bruno@clisp.org>
11858
11859         * gnulib-tool: New options --vc-files, --no-vc-files.
11860         (func_usage): Document them.
11861         (vc_files): New variable.
11862         (func_import): Consider vc_files.
11863         (func_create_testdir): Set vc_files to empty.
11864         Suggested by Jim Meyering and Karl Berry.
11865
11866 2008-03-23  Bruno Haible  <bruno@clisp.org>
11867
11868         Fix regex compilation error on HP-UX 11.
11869         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
11870         * modules/regex (Files): Add m4/mbstate_t.m4.
11871         Reported by Ton Voon <ton.voon@altinity.com>.
11872
11873 2008-03-23  Bruno Haible  <bruno@clisp.org>
11874
11875         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
11876
11877 2008-03-23  Eric Blake  <ebb9@byu.net>
11878             Bruno Haible  <bruno@clisp.org>
11879
11880         Install files from top/ in the destination directory.
11881         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
11882         augmentation also for the files from top/.
11883         (func_import, func_create_testdir): Rewrite file names:
11884         top/filename -> filename.
11885
11886 2008-03-23  Bruno Haible  <bruno@clisp.org>
11887
11888         Tweak "gnulib --version" output.
11889         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
11890
11891 2008-03-23  Bruno Haible  <bruno@clisp.org>
11892
11893         Tweak "gnulib --version" output.
11894         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
11895         rather than contents of ChangeLog, when possible.
11896
11897 2008-03-21  Eric Blake  <ebb9@byu.net>
11898
11899         More --version tweaks.
11900         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
11901         date of last ChangeLog entry.
11902
11903 2008-03-21  Jim Meyering  <meyering@redhat.com>
11904
11905         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
11906
11907 2008-03-20  Eric Blake  <ebb9@byu.net>
11908
11909         VPATH fix.
11910         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
11911
11912 2008-03-20  Simon Josefsson  <simon@josefsson.org>
11913
11914         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
11915         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
11916
11917 2008-03-20  Eric Blake  <ebb9@byu.net>
11918
11919         Sync GNUmakefile with coreutils.
11920         * build-aux/GNUmakefile (have-Makefile): Rename...
11921         (_have-Makefile): ...to this, for namespace consideration.
11922         (GNUmakefile.cfg): Include, if present.
11923         (_autoreconf): Define a default.
11924         (_is-dist-target): New rule for rebuilds to pick up intra-release
11925         version.
11926         (maint-cfg.mk): Rename...
11927         (cfg.mk): ...to this.
11928
11929 2008-03-18  Jim Meyering  <meyering@redhat.com>
11930
11931         New script and module: mktempd
11932         * MODULES.html.sh (maint+release support): Add mktempd.
11933         * build-aux/mktempd: New file.
11934         * modules/mktempd: New file.
11935
11936 2008-03-15  Jim Meyering  <meyering@redhat.com>
11937
11938         Undo last change.
11939         * lib/sha1.c, lib/md5.c: 63 != ~63.
11940         Reported by Andreas Schwab.
11941
11942         sha1.c, md5.c: Hoist a redundant expression.
11943         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
11944         "ctx->buflen" only once, before calling *_process_block.
11945         * lib/md5.c (md5_process_bytes): Likewise.
11946
11947 2008-03-14  Eric Blake  <ebb9@byu.net>
11948
11949         Bump copyright year in files generated by gnulib-tool.
11950         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
11951         gnulib-tool, rather than hard-coding it.
11952
11953         Fix 'gnulib-tool --version' output to work with git.
11954         * gnulib-tool (func_gnulib_dir): New function, extracted from...
11955         (startup): ...here.
11956         (func_version): Use it to invoke git-version-gen, rather than
11957         relying on CVS keyword expansion.  Modernize wording.
11958         (cvsdatestamp, last_checkin_date, version): Kill unused
11959         variables.
11960
11961 2008-03-12  Jim Meyering  <meyering@redhat.com>
11962
11963         Recognize optional cast of the argument to free.
11964         * build-aux/useless-if-before-free: Update regexps.
11965
11966         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
11967
11968 2008-03-11  Bruno Haible  <bruno@clisp.org>
11969
11970         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
11971         by a single package.
11972         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
11973         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
11974         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
11975         Reported by Sam Steingold <sds@gnu.org>.
11976
11977 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
11978
11979         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
11980         repositories.
11981
11982 2008-03-11  Bruno Haible  <bruno@clisp.org>
11983
11984         Avoid conflicts between local macro definitions.
11985         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
11986         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
11987
11988 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
11989             Bruno Haible  <bruno@clisp.org>
11990
11991         Make va_copy work with some version of xlc on AIX 5.1.
11992         * lib/stdarg.in.h: New file.
11993         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
11994         On AIX, use a <stdarg.h> file substitute.
11995         * modules/stdarg (Files): Add lib/stdarg.in.h.
11996         (Depends-on): Add include_next.
11997         (Makefile.am): Build a stdarg.h substitute if requested.
11998         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
11999
12000 2008-03-10  Bruno Haible  <bruno@clisp.org>
12001
12002         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
12003         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12004         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
12005
12006 2008-03-10  Bruno Haible  <bruno@clisp.org>
12007
12008         * modules/stdlib (Depends-on): Add include_next, remove
12009         absolute-header.
12010
12011 2008-03-09  Bruno Haible  <bruno@clisp.org>
12012
12013         * lib/freadahead.h (freadahead): Document more precisely.
12014         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
12015         the sum of both buffer sizes.
12016         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
12017         * NEWS: Document the change.
12018
12019 2008-03-09  Bruno Haible  <bruno@clisp.org>
12020
12021         Extend freadptr to return also the buffer size.
12022         * lib/freadptr.h (freadptr): Add sizep argument.
12023         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
12024         (freadptr): Add sizep argument. Determine buffer size like freadahead
12025         does.
12026         * tests/test-freadptr.c: Don't include freadahead.h.
12027         (main): Adapt for new calling convention of freadptr.
12028         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
12029         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
12030         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
12031         tests/test-freadptr2.sh.
12032         (Depends): Remove freadahead.
12033         (TESTS): Add test-freadptr2.sh.
12034         (check_PROGRAMS): Add test-freadptr2.
12035
12036 2008-03-09  Bruno Haible  <bruno@clisp.org>
12037
12038         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
12039         Report and solution by Simon Josefsson.
12040
12041 2008-03-06  Bruno Haible  <bruno@clisp.org>
12042
12043         Make fflush after ungetc work on BSD platforms.
12044         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
12045         * tests/test-fflush2.c: New file.
12046         * tests/test-fflush2.sh: New file.
12047         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
12048         tests/test-fflush2.c.
12049         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
12050         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
12051
12052 2008-03-06  Eric Blake  <ebb9@byu.net>
12053
12054         Likewise for ftello.
12055         * modules/ftello (Dependencies): Add extensions.
12056         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
12057
12058 2008-03-06  Bruno Haible  <bruno@clisp.org>
12059
12060         * modules/fseeko (Dependencies): Add extensions.
12061         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
12062         Needed on glibc systems.
12063
12064 2008-03-06  Bruno Haible  <bruno@clisp.org>
12065
12066         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
12067         email address.
12068         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12069
12070 2008-03-06  Bruno Haible  <bruno@clisp.org>
12071
12072         * users.txt: Add libgnupdf.
12073
12074 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12075
12076         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
12077         (Header File Substitutes, Function Substitutes,
12078         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
12079         (Build robot for gnulib): Fix typo.
12080
12081 2008-03-06  Bruno Haible  <bruno@clisp.org>
12082
12083         * doc/gnulib-tool.texi (VCS Issues): Small updates.
12084         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12085
12086 2008-03-06  Bruno Haible  <bruno@clisp.org>
12087
12088         * doc/func.texi: New file, extracted from doc/gnulib.texi.
12089         * doc/gnulib.texi: Include it.
12090
12091 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12092
12093         * modules/func (License): Change license to unlimited; there was
12094         no LGPL parts in the module anyway.
12095
12096 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12097
12098         * modules/__func__: Renamed to modules/func.
12099         * modules/__func__-tests: Renamed to modules/func-tests.
12100         * tests/test-__func__.c: Renamed to tests/test-func.c.
12101         * m4/__func__.m4: Renamed to m4/func.m4.
12102         * doc/gnulib.texi (__func__): Section renamed to func.
12103         Suggested by Eric Blake <ebb9@byu.net>.
12104
12105 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12106
12107         * doc/gnulib.texi (__func__): Use C99 terminology when talking
12108         about __func__.  Make example self-contained.  Suggested by Eric
12109         Blake <ebb9@byu.net>.
12110
12111         * tests/test-__func__.c (main): Avoid extraneous () around __func.
12112         Suggested by Eric Blake <ebb9@byu.net>.
12113
12114 2008-03-06  Simon Josefsson  <simon@josefsson.org>
12115
12116         * modules/__func__: New file.
12117         * modules/__func__-tests: New file.
12118         * tests/test-__func__.c: New file.
12119         * m4/__func__.m4: New file.
12120         * doc/gnulib.texi (__func__): Document __func__ module.
12121
12122 2008-03-05  Simon Josefsson  <simon@josefsson.org>
12123
12124         * modules/byteswap (License): Re-license as LGPLv2+.
12125
12126 2008-03-05  Simon Josefsson  <simon@josefsson.org>
12127
12128         * doc/Makefile: Add pdf target.
12129
12130 2008-03-05  Simon Josefsson  <simon@josefsson.org>
12131
12132         * modules/inline (License): Use 'unlimited', since there are only
12133         *.m4 files in this module.
12134
12135 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
12136             Bruno Haible  <bruno@clisp.org>
12137
12138         Add support for HP C 7.1 on OpenVMS 8.3.
12139         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
12140
12141 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
12142
12143         Update VMS specifics.
12144         * lib/getopt.c [VMS]: Remove include of unixlib.h.
12145
12146 2008-03-02  Jim Meyering  <meyering@redhat.com>
12147
12148         Remove the last dependency on the "free" module.
12149         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
12150         Reported by Bob Proulx.
12151
12152         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
12153
12154         Remove useless "if" tests before free.  Deprecate "free" module.
12155         * doc/posix-functions/free.texi: Mention that this
12156         module is no longer useful.
12157         * modules/free (Notice): Say this module is obsolete.
12158         * modules/readutmp (Depends-on): Remove free.
12159         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
12160         * lib/putenv.c (putenv): Likewise.
12161         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
12162         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
12163         * tests/test-c-strcasestr.c (main): Likewise.
12164         * tests/test-c-strstr.c (main): Likewise.
12165         * tests/test-mbscasestr1.c (main): Likewise.
12166         * tests/test-mbscasestr2.c (main): Likewise.
12167         * tests/test-mbsstr1.c (main): Likewise.
12168         * tests/test-mbsstr2.c (main): Likewise.
12169         * tests/test-memmem.c (main): Likewise.
12170         * tests/test-strcasestr.c (main): Likewise.
12171         * tests/test-striconv.c (main): Likewise.
12172         * tests/test-striconveh.c (main): Likewise.
12173         * tests/test-striconveha.c (main): Likewise.
12174         * tests/test-strstr.c (main): Likewise.
12175
12176         * build-aux/git-version-gen: Adjust a comment and the Usage string.
12177
12178         bootstrap: sync from coreutils again
12179         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
12180
12181 2008-03-01  Jim Meyering  <meyering@redhat.com>
12182
12183         bootstrap: sync from coreutils
12184         * build-aux/bootstrap (update_po_files): Copy a .po file into place
12185         also when the target doesn't exist.
12186
12187 2008-03-01  Eric Blake  <ebb9@byu.net>
12188
12189         Fix bugs in last patch.
12190         * lib/memchr2.c (memchr2): Fix typo.
12191         * tests/test-memchr2.c: Test previous bug, and don't use GNU
12192         extension.
12193         Reported by Bruce Korb.
12194
12195         New module 'memchr2'.
12196         * modules/memchr2: New file.
12197         * modules/memchr2-tests: Likewise.
12198         * lib/memchr2.h: Likewise.
12199         * lib/memchr2.c: Likewise, based on memchr.c.
12200         * tests/test-memchr2.c: New test.
12201         * MODULES.html.sh (String handling): Add memchr2.
12202
12203 2008-02-29  Bruno Haible  <bruno@clisp.org>
12204
12205         * modules/freadseek-tests: New file.
12206         * tests/test-freadseek.sh: New file.
12207         * tests/test-freadseek.c: New file.
12208
12209         New module 'freadseek'.
12210         * modules/freadseek: New file.
12211         * lib/freadseek.h: New file.
12212         * lib/freadseek.c: New file.
12213         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
12214
12215 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
12216
12217         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
12218         wydawca.
12219
12220         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
12221         program_invocation_name and program_invocation_short_name are
12222         present.
12223
12224 2008-02-28  Bruno Haible  <bruno@clisp.org>
12225
12226         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
12227         * tests/test-freadptr.sh: Also test non-seekable stdin.
12228
12229 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
12230
12231         * build-aux/bootstrap (source_base, m4_base)
12232         (doc_base, tests_base): New variables.
12233         (gnulib_tool_options): Do not hardcode base directories, use
12234         the above variables instead.
12235
12236 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
12237
12238         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
12239
12240 2008-02-28  Bruno Haible  <bruno@clisp.org>
12241
12242         * modules/freadptr-tests: New file.
12243         * tests/test-freadptr.sh: New file.
12244         * tests/test-freadptr.c: New file.
12245
12246         New module 'freadptr'.
12247         * modules/freadptr: New file.
12248         * lib/freadptr.h: New file.
12249         * lib/freadptr.c: New file.
12250         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
12251
12252 2008-02-26  Karl Berry  <karl@freefriends.org>
12253
12254         Sync from Libtool:
12255         * libltdl/argz.c (argz_add, argz_count): New functions.
12256         * libltdl/argz.in.h: Declare them.
12257         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
12258
12259 2008-02-22  Bruno Haible  <bruno@clisp.org>
12260
12261         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
12262         is a pointer type.  Needed for HP-UX 10.
12263         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
12264         * doc/posix-functions/gmtime_r.texi: Likewise.
12265         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
12266
12267 2008-02-24  Bruno Haible  <bruno@clisp.org>
12268
12269         * modules/environ-tests: New file.
12270         * tests/test-environ.c: New file.
12271
12272         New module 'environ'.
12273         * modules/environ: New file.
12274         * lib/unistd.in.h (environ): New declaration.
12275         * m4/environ.m4: New file.
12276         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
12277         after use.
12278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
12279         HAVE_DECL_ENVIRON.
12280         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
12281         HAVE_DECL_ENVIRON.
12282         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
12283         wrong claim that 'environ' is missing on some systems.
12284         * modules/execute (Depends-on): Add environ.
12285         * lib/execute.c (environ): Remove fallback declaration.
12286         * modules/pipe (Depends-on): Add environ.
12287         * lib/pipe.c (environ): Remove fallback declaration.
12288         * modules/setenv (Depends-on): Add environ.
12289         * lib/setenv.c (environ): Remove fallback declaration.
12290         * modules/unsetenv (Depends-on): Add environ.
12291         * lib/unsetenv.c (environ): Remove fallback declaration.
12292         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
12293         m4/environ.m4.
12294         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
12295         (gl_PREREQ_UNSETENV): Likewise.
12296
12297 2008-02-24  Bruno Haible  <bruno@clisp.org>
12298
12299         * doc/posix-functions/environ.texi: Document the MacOS X problem.
12300
12301 2008-02-20  Bob Proulx  <bob@proulx.com>
12302
12303         Enable use of older two part flavor 'git describe'.
12304         * build-aux/git-version-gen: If using the older two part flavor of
12305         git version then recreate the third part now present in the
12306         newer three part flavor of git describe.
12307
12308 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
12309
12310         * lib/fts.c (fts_build): Typo correction to comment.
12311
12312 2008-02-17  Bruno Haible  <bruno@clisp.org>
12313
12314         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
12315         generating no-op conflicts.
12316
12317 2008-02-17  Bruno Haible  <bruno@clisp.org>
12318
12319         Speed up by 10%.
12320         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
12321         result_entries, rather than an index-based loop.
12322
12323 2008-02-17  Bruno Haible  <bruno@clisp.org>
12324
12325         Speed up by 25%.
12326         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
12327         'hashcode_cached'.
12328         (entry_create): New function.
12329         (entry_hashcode): Use the cached hashcode if possible.
12330         (read_changelog_file, try_split_merged_entry): Use entry_create.
12331
12332 2008-02-17  Bruno Haible  <bruno@clisp.org>
12333
12334         Speed up from O(n^2) to O(n) for long ChangeLog files.
12335         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
12336         (read_changelog_file): Change implementation of entries_reversed list
12337         to rbtreehash.
12338         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
12339
12340 2008-02-17  Bruno Haible  <bruno@clisp.org>
12341
12342         New option --split-merged-entry.
12343         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
12344         (find_paragraph_end, try_split_merged_entry): New functions.
12345         (long_options): Add option --split-merged-entry.
12346         (usage): Document option --split-merged-entry.
12347         (main): Implement option --split-merged-entry.
12348         Reported by Eric Blake.
12349
12350 2008-02-17  Bruno Haible  <bruno@clisp.org>
12351
12352         * lib/git-merge-changelog.c: Include c-strstr.h.
12353         (main): Support the "git pull --rebase" situation.
12354         * modules/git-merge-changelog (Depends-on): Add c-strstr.
12355         Reported by Eric Blake.
12356
12357 2008-02-16  Eric Blake  <ebb9@byu.net>
12358
12359         Avoid doubling \ in common case of "c-maybe" quoting style.
12360         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
12361         eliding outer quotes.
12362         * lib/quotearg.h: Document this.
12363         * tests/test-quotearg.c (result_strings, inputs, results_g)
12364         (flag_results, locale_results): Test it by adding a new string to
12365         each test group.
12366         (compare_strings): Test new string.
12367
12368 2008-02-13  Eric Blake  <ebb9@byu.net>
12369
12370         Avoid trigraph quoting in default output.
12371         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
12372         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
12373         unless explicitly requested.
12374         * tests/test-quotearg.c (flag_results, main): Add additional tests.
12375
12376 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
12377
12378         Don't rely on signed integer overflowing to negative value.
12379         * lib/getugroups.c (getugroups): Include <limits.h>.
12380         Instead, compare against INT_MAX, and increment only if the test passes.
12381
12382 2008-02-13  Jim Meyering  <meyering@redhat.com>
12383         and Eric Blake  <ebb9@byu.net>
12384
12385         Avoid shadowing warning and compile errors on Linux.
12386         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
12387         forwarding macros on Linux.
12388         (dcgettext): Define a stub, for Linux.
12389         (results_g, main): Avoid warnings.
12390
12391 2008-02-12  Eric Blake  <ebb9@byu.net>
12392
12393         Silence warning in last patch.
12394         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
12395
12396         Quotearg part 4: add tests, fix c-maybe colon quoting.
12397         * lib/quotearg.h: Improve documentation.
12398         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
12399         escapes when adding outer quotes.  When quoting trigraphs, use
12400         valid C notation.  When quoting NUL, omit extra characters if next
12401         character is not digit.  Alter prototype.
12402         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
12403         callers.
12404         * modules/quotearg-tests: New module.
12405         * tests/test-quotearg.c: New test.
12406
12407 2008-02-07  Eric Blake  <ebb9@byu.net>
12408
12409         Quotearg part 3: add flag to control outer quote elision.
12410         * lib/quotearg.h (c_maybe_quoting_style): New style.
12411         (enum quoting_flags): Better documentation of flags.
12412         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
12413         c-maybe style.
12414         (quotearg_buffer_restyled): Handle new flag to elide outer
12415         quotes.
12416
12417         Quotearg part 2: add flag that can control NUL elision.
12418         * lib/quotearg.h (set_quoting_flags): New prototype.
12419         * lib/quotearg.c (struct quoting_options): Add flag field.
12420         (set_quoting_flags): New function.
12421         (quotearg_buffer_restyled): Add flags parameter.
12422         (quotearg_alloc_mem): Set the flag if length cannot be returned.
12423         (quotearg_n_options): Set the flag, since length cannot be
12424         returned.
12425         (quoting_options_from_style): Default flags correctly.
12426
12427         Quotearg part 1: more wrappers, restore quotearg_char state.
12428         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
12429         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
12430         (quotearg_colon_mem): New wrappers.
12431         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
12432         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
12433         functions.
12434         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
12435         (quotearg_colon_mem): New functions.
12436
12437 2008-02-11  Bruno Haible  <bruno@clisp.org>
12438
12439         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
12440         library in the current directory: it does not work with parallel make.
12441         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12442
12443 2008-02-11  Bruno Haible  <bruno@clisp.org>
12444
12445         * .gitattributes: New file.
12446
12447 2008-02-11  Jim Meyering  <meyering@redhat.com>
12448
12449         useless-if-before-free: Fix reversed exit values.
12450         * build-aux/useless-if-before-free: Use correct values
12451         for EXIT_MATCH and EXIT_NO_MATCH.
12452
12453         * build-aux/useless-if-before-free: Close stdout carefully.
12454
12455 2008-02-10  Bruno Haible  <bruno@clisp.org>
12456
12457         New module 'git-merge-changelog'.
12458         * modules/git-merge-changelog: New file.
12459         * lib/git-merge-changelog.c: New file.
12460
12461 2008-02-10  Jim Meyering  <meyering@redhat.com>
12462
12463         useless-if-before-free: New option: --list (-l).
12464
12465         useless-if-before-free: Don't exit immediately upon open failure.
12466         * build-aux/useless-if-before-free: Exit 2 for errors.
12467         Upon failure to open a file, don't exit immediately.
12468         Rather, just warn and continue with any remaining files.
12469
12470 2008-02-10  Bruno Haible  <bruno@clisp.org>
12471
12472         New abstract list operation 'node_set_value'.
12473         * lib/gl_list.h (gl_list_node_set_value): New function.
12474         (struct gl_list_implementation): New field node_set_value.
12475         * lib/gl_list.c (gl_list_node_set_value): New function.
12476         * lib/gl_array_list.c (gl_array_node_set_value): New function.
12477         (gl_array_list_implementation): Update.
12478         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
12479         (gl_carray_list_implementation): Update.
12480         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
12481         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
12482         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
12483         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
12484         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
12485         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
12486         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
12487         Update.
12488         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
12489         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
12490         (gl_sublist_list_implementation): Update.
12491
12492 2008-02-10  Bruno Haible  <bruno@clisp.org>
12493
12494         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
12495         Needed when ELEMENT is #defined to 'some_type *'.
12496
12497 2008-02-10  Jim Meyering  <meyering@redhat.com>
12498
12499         New script and module: useless-if-before-free
12500         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
12501         * build-aux/useless-if-before-free: New file.
12502         * modules/useless-if-before-free: New file.
12503
12504         * build-aux/gitlog-to-changelog: Use committer date, not author date.
12505
12506         xstrtol_error: Fix typo.
12507         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
12508         s/exit_failure/exit_status/.
12509
12510 2008-02-09  Jim Meyering  <meyering@redhat.com>
12511
12512         New script and module: gitlog-to-changelog
12513         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
12514         * modules/gitlog-to-changelog: New file.
12515         * build-aux/gitlog-to-changelog: New file.
12516
12517 2008-02-08  Jim Meyering  <meyering@redhat.com>
12518
12519         Avoid two "parameter unused" warnings.
12520         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
12521         Mark "st" as used.
12522
12523         Use "git COMMAND", not "git-COMMAND".
12524         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
12525         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
12526         * build-aux/git-version-gen: Use "git status", not "git-status".
12527
12528 2008-02-07  Bruno Haible  <bruno@clisp.org>
12529
12530         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
12531         Avoids a crash on Windows Vista.
12532         Reported by Adam Strzelecki <ono@java.pl> via
12533         Simon Josefsson <simon@josefsson.org>.
12534
12535 2008-02-06  Bruno Haible  <bruno@clisp.org>
12536
12537         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
12538         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
12539         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
12540         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
12541         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
12542         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12543         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
12544         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
12545         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12546         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12547         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12548         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12549         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12550         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12551         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12552         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
12553         left-adjust flag.
12554         * tests/test-snprintf-posix.h (test_function): Likewise.
12555         * tests/test-sprintf-posix.h (test_function): Likewise.
12556         * tests/test-vasprintf-posix.c (test_function): Likewise.
12557         * doc/posix-functions/fprintf.texi: Update.
12558         * doc/posix-functions/printf.texi: Update.
12559         * doc/posix-functions/snprintf.texi: Update.
12560         * doc/posix-functions/sprintf.texi: Update.
12561         * doc/posix-functions/vfprintf.texi: Update.
12562         * doc/posix-functions/vprintf.texi: Update.
12563         * doc/posix-functions/vsnprintf.texi: Update.
12564         * doc/posix-functions/vsprintf.texi: Update.
12565         Reported by Peter Fales <psfales@alcatel-lucent.com>.
12566
12567 2008-02-06  Bruno Haible  <bruno@clisp.org>
12568
12569         Fix bug introduced on 2008-01-26.
12570         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
12571
12572 2008-02-06  Bruno Haible  <bruno@clisp.org>
12573
12574         Fix bug introduced on 2007-06-10.
12575         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
12576         !NEED_PRINTF_FLAG_ZERO.
12577
12578 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
12579
12580         getloadavg: use libperfstat on AIX5
12581         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
12582
12583 2008-02-03  Bruno Haible  <bruno@clisp.org>
12584
12585         * lib/diffseq.h: Add comments about required #includes.
12586         Reported by Michael Biggs <gnulib@doubleplum.net>.
12587
12588 2008-02-01  Bruno Haible  <bruno@clisp.org>
12589
12590         * users.txt: Add gnuit.
12591
12592 2008-01-31  Bruno Haible  <bruno@clisp.org>
12593
12594         * lib/md4.c (set_uint32): Mark as inline.
12595         * lib/md5.c (set_uint32): Likewise.
12596         * lib/sha1.c (set_uint32): Likewise.
12597         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
12598         * m4/md5.m4 (gl_MD5): Likewise.
12599         * m4/sha1.m4 (gl_SHA1): Likewise.
12600
12601 2008-01-31  Jim Meyering  <meyering@redhat.com>
12602
12603         Use "sizeof VAR", rather than a literal "4".
12604         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
12605         * lib/md4.c (md4_read_ctx): Likewise.
12606         * lib/sha1.c (sha1_read_ctx): Likewise.
12607
12608 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12609
12610         * tests/test-sha1.c: New file, based on test-md5.c.
12611
12612         * modules/crypto/sha1-tests: New file.
12613
12614 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12615
12616         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
12617
12618 2008-01-31  Jim Meyering  <meyering@redhat.com>
12619
12620         Prefer "sizeof v" over the equivalent "4".
12621         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
12622         * lib/md5.c (set_uint32): Likewise.
12623         * lib/sha1.c (set_uint32): Likewise.
12624
12625 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12626
12627         * lib/sha1.c (set_uint32): Mark function as static.
12628
12629 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12630
12631         md2: clarify comments to say that alignment is not required.
12632         * lib/md2.h: Remove warning about alignment in comment.
12633         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
12634         never been required.
12635
12636 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12637
12638         md4: adapt alignment constraint fix from sha1.
12639         * lib/md4.c (set_uint32): New function, from sha1.c
12640         (md4_read_ctx): Use it.
12641         (md4_finish_ctx): Doc fix.
12642         * lib/md4.h: Doc fix.
12643
12644 2008-01-31  Simon Josefsson  <simon@josefsson.org>
12645
12646         md5: adapt alignment constraint fix from sha1.
12647         * lib/md5.c (set_uint32): New function, from sha1.c
12648         (md5_read_ctx): Use it.
12649         (md5_finish_ctx): Doc fix.
12650         * lib/md5.h: Doc fix.
12651
12652 2008-01-30  Peter Palfrader  <weasel@debian.org>
12653
12654         sha1: remove the result buffer alignment constraint
12655         * lib/sha1.c (set_uint32): New function.
12656         (sha1_read_ctx): Rewrite to remove the result buffer alignment
12657         constraint.
12658         (sha1_finish_ctx): Remove comment warning about alignment constraint.
12659         * lib/sha1.h: Likewise.
12660
12661 2008-01-30  Andreas Schwab  <schwab@suse.de>
12662             Bruno Haible  <bruno@clisp.org>
12663
12664         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
12665         correct definition of LDBL_MIN_EXP.
12666
12667 2008-01-30  Karl Berry  <karl@gnu.org>
12668
12669         * config/srclist-update: try to preserve x bit on updates.
12670         * config/srclistvars.sh: update for karl.
12671
12672 2008-01-29  Jim Meyering  <meyering@redhat.com>
12673
12674         vasnprintf.c: Avoid warning about unused label
12675         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
12676         "overflow" label definition and associated code with the
12677         same cpp condition that guards the sole use of that label.
12678
12679 2008-01-26  Bruno Haible  <bruno@clisp.org>
12680
12681         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
12682         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
12683         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
12684         * lib/isnanl-nolibm.h (isnanl): Likewise.
12685         Reported by Paul Eggert <eggert@cs.ucla.edu>.
12686
12687 2008-01-26  Bruno Haible  <bruno@clisp.org>
12688
12689         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
12690         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
12691
12692 2008-01-26  Bruno Haible  <bruno@clisp.org>
12693
12694         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
12695         GCC >= 4.0 built-in.
12696         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
12697
12698 2008-01-26  Bruno Haible  <bruno@clisp.org>
12699
12700         Rename isnan, applicable to 'double' only, to isnand.
12701         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
12702         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
12703         (configure.ac): Update.
12704         (Include): Replace "isnan.h" with "isnand.h".
12705         * m4/isnand.m4: Renamed from m4/isnan.m4.
12706         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
12707         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
12708         instead of isnan.c.
12709         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
12710         instead of HAVE_ISNAN_IN_LIBC.
12711         (isnand): Renamed from isnan.
12712         * lib/isnand.c: New file.
12713         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
12714         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
12715         (Makefile.am): Update.
12716         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
12717         Include isnand.h instead of isnan.h.
12718         (main): Test isnand instead of isnan.
12719         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
12720         isnan-nolibm.
12721         * modules/frexp (Depends-on): Likewise.
12722         * modules/frexp-tests (Depends-on): Likewise.
12723         * modules/frexp-nolibm (Depends-on): Likewise.
12724         * modules/frexp-nolibm-tests (Depends-on): Likewise.
12725         * modules/isfinite (Depends-on): Likewise.
12726         * modules/round-tests (Depends-on): Likewise.
12727         * modules/signbit (Depends-on): Likewise.
12728         * modules/signbit-tests (Depends-on): Likewise.
12729         * modules/snprintf-posix (Depends-on): Likewise.
12730         * modules/sprintf-posix (Depends-on): Likewise.
12731         * modules/trunc-tests (Depends-on): Likewise.
12732         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
12733         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12734         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12735         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12736         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12737         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12738         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12739         * modules/vasnprintf-posix (Depends-on): Likewise.
12740         * modules/vasprintf-posix (Depends-on): Likewise.
12741         * modules/vfprintf-posix (Depends-on): Likewise.
12742         * modules/vsnprintf-posix (Depends-on): Likewise.
12743         * modules/vsprintf-posix (Depends-on): Likewise.
12744         * lib/frexp.c: Include isnand.h instead of isnan.h.
12745         (ISNAN): Set to isnand instead of isnan.
12746         * lib/isfinite.c: Include isnand.h instead of isnan.h.
12747         (gl_isfinited): Use isnand instead of isnan.
12748         * lib/signbitd.c: Include isnand.h instead of isnan.h.
12749         (gl_signbitd): Use isnand instead of isnan.
12750         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
12751         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
12752         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
12753         (main): Use isnand instead of isnan.
12754         * tests/test-round1.c: Include isnand.h.
12755         (main): Use isnand instead of isnan.
12756         * tests/test-round2.c: Include isnand.h instead of isnan.h.
12757         (ISNAN): Set to isnand instead of isnan.
12758         * tests/test-trunc1.c: Include isnand.h.
12759         (main): Use isnand instead of isnan.
12760         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
12761         (equal): Use isnand instead of isnan.
12762         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
12763         isnand-nolibm.
12764         * NEWS: Mention the change.
12765
12766 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
12767             Bruno Haible  <bruno@clisp.org>
12768
12769         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
12770         the GCC builtins for signbits are present and set
12771         REPLACE_SIGNBIT_USING_GCC if so.
12772         * lib/math.in.h (signbit): Define using GCC builtins if
12773         REPLACE_SIGNBIT_USING_GCC is set.
12774         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
12775         REPLACE_SIGNBIT_USING_GCC.
12776         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
12777
12778 2008-01-25  Jim Meyering  <meyering@redhat.com>
12779
12780         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
12781         * lib/poll.c: Include <config.h>, not "config.h".
12782         * tests/test-getaddrinfo.c: Likewise.
12783
12784 2008-01-25  Simon Josefsson  <simon@josefsson.org>
12785
12786         * modules/sockets-tests: New file.
12787
12788 2008-01-24  Simon Josefsson  <simon@josefsson.org>
12789
12790         * modules/sockets: New module, can be used to call WSA_Startup and
12791         WSA_Cleanup when needed.
12792
12793         * lib/sockets.h, lib/sockets.c: New files.
12794
12795         * m4/sockets.m4: New file.
12796
12797         * tests/test-sockets.c: New file.
12798
12799 2008-01-19  Bruno Haible  <bruno@clisp.org>
12800
12801         * doc/posix-headers: Renamed from doc/headers.
12802         * doc/posix-functions: Renamed from doc/functions.
12803         * doc/gnulib.texi: Update.
12804
12805 2008-01-19  Bruno Haible  <bruno@clisp.org>
12806
12807         * doc/glibc-functions/strcasestr.texi: Include contents of
12808         doc/functions/strcasestr.texi, fixing the list of platforms.
12809         * doc/functions/strcasestr.texi: Remove file.
12810
12811 2008-01-19  Bruno Haible  <bruno@clisp.org>
12812
12813         * doc/glibc-functions/memmem.texi: Include contents of
12814         doc/functions/memmem.texi.
12815         * doc/functions/memmem.texi: Remove file.
12816
12817 2008-01-18  Bruno Haible  <bruno@clisp.org>
12818
12819         * doc/glibc-functions/*.texi: New files.
12820         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
12821         to use the new files.
12822
12823 2008-01-17  Bruno Haible  <bruno@clisp.org>
12824
12825         * tests/test-gethostname.c (main): Fix printf statement.
12826
12827 2008-01-17  Simon Josefsson  <simon@josefsson.org>
12828
12829         * modules/gethostname-tests: New file.
12830
12831         * tests/test-gethostname.c: New file.
12832
12833 2008-01-17  Simon Josefsson  <simon@josefsson.org>
12834
12835         * lib/gethostname.c: Include string.h unconditionally, strncpy is
12836         used by the UNAME case.  Reported by Bruno Haible
12837         <bruno@clisp.org>.
12838
12839 2008-01-17  Eric Blake  <ebb9@byu.net>
12840
12841         Convert c-strcasestr to be more efficient.
12842         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
12843         (Depends-on): Add c-strcase, remove malloca, strnlen.
12844         * tests/test-c-strcasestr.c (main): Enhance test.
12845         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
12846
12847 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
12848
12849         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
12850         Use it in creating po/Makevars.
12851
12852 2008-01-15  Simon Josefsson  <simon@josefsson.org>
12853
12854         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
12855         Applications that requires it should initialize libgcrypt
12856         manually.
12857
12858 2008-01-16  Simon Josefsson  <simon@josefsson.org>
12859
12860         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
12861
12862 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
12863
12864         Fix problem with getdate on mingw32 reported by Simon Josefsson
12865         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
12866         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
12867         tzname", when deciding whether to declare tzname.
12868         * lib/strftime.c (tzname): Likewise.
12869
12870 2008-01-15  Bruno Haible  <bruno@clisp.org>
12871
12872         Work around a MacOS X 10.5 bug in frexpl().
12873         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
12874         * doc/functions/frexpl.texi: Document the bug.
12875         Reported by Elias Pipping <pipping@gentoo.org>.
12876
12877 2008-01-14  Eric Blake  <ebb9@byu.net>
12878
12879         Touch up previous patch.
12880         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
12881         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
12882
12883         Convert strcasestr module to use Two-Way algorithm.
12884         * modules/strcasestr-simple: New module, based on the old
12885         strcasestr, but with Two-Way rather than KMP.
12886         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
12887         * lib/string.in.h (rpl_strcasestr): Declare.
12888         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
12889         performance.
12890         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
12891         * modules/string (Makefile.am): Support strcasestr.
12892         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
12893         * modules/strcasestr-tests (Depends-on): Check for alarm.
12894         * tests/test-strcasestr.c: Augment test.
12895         * lib/str-two-way.h: Clean up stray macro.
12896         * NEWS: Document new module.
12897         * MODULES.html.sh (string handling): Likewise.
12898         * doc/functions/strcasestr.texi: New file.
12899         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
12900         here, since it is not a POSIX function.
12901
12902 2008-01-14  Colin Watson  <cjwatson@debian.org>
12903             Bruno Haible  <bruno@clisp.org>
12904
12905         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
12906         works fine; if not, set REPLACE_STRSIGNAL.
12907         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
12908         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12909         REPLACE_STRSIGNAL.
12910         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
12911         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
12912         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
12913
12914 2008-01-14  Bruno Haible  <bruno@clisp.org>
12915
12916         * modules/strsignal (Include): Change to <string.h>.
12917
12918 2008-01-14  Colin Watson  <cjwatson@debian.org>
12919
12920         * modules/argp (Notice): Add a notice recommending to change
12921         XGETTEXT_OPTIONS.
12922         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
12923
12924 2008-01-13  Colin Watson  <cjwatson@debian.org>
12925
12926         * modules/strsignal-tests: New file.
12927         * tests/test-strsignal.c: New file.
12928
12929         * lib/strsignal.c: New file, from glibc with modifications.
12930         * lib/siglist.h: New file, from glibc with modifications.
12931         * lib/string.in.h (strsignal): New declaration.
12932         * m4/strsignal.m4: New file.
12933         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12934         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
12935         * modules/strsignal: New file.
12936         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
12937         HAVE_DECL_STRSIGNAL.
12938
12939 2008-01-13  Bruno Haible  <bruno@clisp.org>
12940
12941         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
12942         locale encoding is not ASCII. Needed for OpenBSD 4.0.
12943         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
12944         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12945
12946 2008-01-13  Bruno Haible  <bruno@clisp.org>
12947
12948         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
12949         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
12950         * lib/argp.h (__attribute__): Likewise.
12951         * lib/c-stack.c (__attribute__): Likewise.
12952         * lib/error.h (__attribute__): Likewise.
12953         * lib/fts.c (__attribute__): Likewise.
12954         * lib/openat.h (__attribute__): Likewise.
12955         * lib/stdio.in.h (__attribute__): Likewise.
12956         * lib/string.in.h (__attribute__): Likewise.
12957         * lib/utimens.c (__attribute__): Likewise.
12958         * lib/vasnprintf.h (__attribute__): Likewise.
12959         * lib/xalloc.h (__attribute__): Likewise.
12960         * lib/xprintf.h (__attribute__): Likewise.
12961         * lib/xstrtol.h (__attribute__): Likewise.
12962         * lib/xvasprintf.h (__attribute__): Likewise.
12963
12964 2008-01-12  Bruno Haible  <bruno@clisp.org>
12965
12966         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
12967         * doc/glibc-headers/a.out.texi: New file.
12968         * doc/glibc-headers/aliases.texi: New file.
12969         * doc/glibc-headers/alloca.texi: New file.
12970         * doc/glibc-headers/ar.texi: New file.
12971         * doc/glibc-headers/argp.texi: New file.
12972         * doc/glibc-headers/argz.texi: New file.
12973         * doc/glibc-headers/byteswap.texi: New file.
12974         * doc/glibc-headers/crypt.texi: New file.
12975         * doc/glibc-headers/endian.texi: New file.
12976         * doc/glibc-headers/envz.texi: New file.
12977         * doc/glibc-headers/err.texi: New file.
12978         * doc/glibc-headers/error.texi: New file.
12979         * doc/glibc-headers/execinfo.texi: New file.
12980         * doc/glibc-headers/fpu_control.texi: New file.
12981         * doc/glibc-headers/fstab.texi: New file.
12982         * doc/glibc-headers/fts.texi: New file.
12983         * doc/glibc-headers/getopt.texi: New file.
12984         * doc/glibc-headers/ieee754.texi: New file.
12985         * doc/glibc-headers/ifaddrs.texi: New file.
12986         * doc/glibc-headers/libintl.texi: New file.
12987         * doc/glibc-headers/mcheck.texi: New file.
12988         * doc/glibc-headers/mntent.texi: New file.
12989         * doc/glibc-headers/obstack.texi: New file.
12990         * doc/glibc-headers/paths.texi: New file.
12991         * doc/glibc-headers/printf.texi: New file.
12992         * doc/glibc-headers/pty.texi: New file.
12993         * doc/glibc-headers/resolv.texi: New file.
12994         * doc/glibc-headers/shadow.texi: New file.
12995         * doc/glibc-headers/sysexits.texi: New file.
12996         * doc/glibc-headers/ttyent.texi: New file.
12997
12998 2008-01-12  Jim Meyering  <meyering@redhat.com>
12999
13000         announce-gen: emit Gnulib's git-based version string.
13001         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
13002         New option --gnulib-version=V, where V is expected to be
13003         the output of running git describe in the gnulib directory.
13004         (get_tool_versions): Request feedback on xdelta.  I suspect it's
13005         not useful, and plan to stop publishing an xdelta file with each
13006         coreutils release.
13007
13008         * build-aux/announce-gen: Also check for lzma-compressed files.
13009
13010 2008-01-11  Bruno Haible  <bruno@clisp.org>
13011
13012         * tests/test-memmem.c (main): Increase maximum allowed time.
13013         * tests/test-strstr.c (main): Likewise.
13014
13015 2008-01-11  Bruno Haible  <bruno@clisp.org>
13016
13017         * doc/functions/memmem.texi: Add more precisions about platforms.
13018         * doc/functions/strstr.texi: Likewise.
13019
13020 2008-01-10  Eric Blake  <ebb9@byu.net>
13021
13022         * m4/strstr.m4: Delete cruft from copy-n-paste.
13023         Reported by Bruno Haible.
13024
13025 2008-01-10  Bruno Haible  <bruno@clisp.org>
13026
13027         Make c-strstr rely on strstr.
13028         * lib/c-strstr.c: Don't include str-kmp.h.
13029         (c_strstr): Define in terms of strstr.
13030         * modules/c-strstr (Files): Remove lib/str-kmp.h.
13031         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
13032
13033 2008-01-10  Bruno Haible  <bruno@clisp.org>
13034
13035         * doc/gnulib.texi (String Functions in C Locale): New section.
13036         * doc/c-ctype.texi: New file.
13037         * doc/c-strcase.texi: New file.
13038         * doc/c-strcaseeq.texi: New file.
13039         * doc/c-strcasestr.texi: New file.
13040         * doc/c-strstr.texi: New file.
13041         * doc/c-strtod.texi: New file.
13042         * doc/c-strtold.texi: New file.
13043
13044 2008-01-10  Eric Blake  <ebb9@byu.net>
13045
13046         * lib/relocatable.h: Fix a comment.
13047
13048 2008-01-10  Eric Blake  <ebb9@byu.net>
13049
13050         Share two-way algorithm.
13051         * lib/str-two-way.h: New file, merged from...
13052         * lib/memmem.c: ...here...
13053         * lib/strstr.c: ...and here.
13054         * modules/memmem (Files): Use it.
13055         * modules/strstr (Files): Likewise.
13056
13057         Avoid quadratic strstr implementations.
13058         * lib/strstr.c: New file.
13059         * m4/strstr.m4: Likewise.
13060         * modules/strstr: Likewise.
13061         * modules/strstr-tests: Likewise.
13062         * tests/test-strstr.c: Likewise.
13063         * lib/string.in.h (rpl_strstr): Declare.
13064         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
13065         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
13066         * modules/string (Makefile.am): Likewise.
13067         * MODULES.html.sh (string handling): Mention new module.
13068         * doc/functions/strstr.texi (strstr): Document the bug.
13069
13070 2008-01-10  Bruno Haible  <bruno@clisp.org>
13071
13072         * lib/relocatable.h (relocate): State whether result is freshly
13073         allocated or not.
13074         * lib/relocatable.c (relocate): Return a freshly allocated string
13075         instead of a pointer to a privately held string.
13076         Reported by Sylvain Beucler <beuc@gnu.org>.
13077
13078 2008-01-10  Colin Watson  <cjwatson@debian.org>
13079
13080         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
13081         s/S_ISNLK/S_ISLNK/.
13082
13083 2008-01-09  Bruno Haible  <bruno@clisp.org>
13084
13085         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
13086         and other files.
13087         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
13088         if it's only a guess.
13089         * modules/memmem: Simplify by depending on memmem-simple.
13090
13091 2008-01-09  Bruno Haible  <bruno@clisp.org>
13092
13093         Work around OpenBSD 4.0 tdelete() bug.
13094         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
13095         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
13096         macros and don't redefine the enum values.
13097         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
13098         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
13099         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
13100
13101 2008-01-09  Bruno Haible  <bruno@clisp.org>
13102
13103         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
13104         (main): Don't perform the tests if setlocale did not install a UTF-8
13105         locale. Needed on OpenBSD 4.0.
13106         * modules/wcwidth-tests (Depends-on): Add localcharset.
13107
13108 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
13109
13110         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
13111         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
13112         * NEWS: announce this.
13113         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
13114
13115 2008-01-09  Simon Josefsson  <simon@josefsson.org>
13116         and Eric Blake  <ebb9@byu.net>
13117
13118         Add memmem-simple module.
13119         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
13120         (gl_FUNC_MEMMEM): Separate performance from presence checks.
13121         * modules/memmem-simple: New file.
13122         * modules/memmem (Description): Tweak.
13123         * MODULES.html.sh (string handling): Mention new module.
13124         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
13125         addressed by memmem-simple.
13126         * NEWS: Document the difference.
13127
13128 2008-01-09  Eric Blake  <ebb9@byu.net>
13129
13130         Give gcc some memmem optimization hints.
13131         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
13132         (strcasestr): Declare as pure.
13133         * modules/memmem (Maintainer): Claim my implementation.
13134
13135 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13136
13137         Support AIX 6.1 and higher.
13138         * build-aux/config.libpath: Likewise.
13139         * build-aux/config.rpath: Likewise.
13140
13141 2008-01-08  Jim Meyering  <meyering@redhat.com>
13142             Bruno Haible  <bruno@clisp.org>
13143
13144         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
13145         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
13146         Reported by Peter Fales in
13147         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
13148
13149 2008-01-08  Bruno Haible  <bruno@clisp.org>
13150
13151         * modules/unictype/category-of (Depends-on): Add
13152         unictype/category-none.
13153         * modules/unictype/category-and-tests (Depends-on): Add
13154         unictype/category-{L,N,Lu,Nd}.
13155         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
13156         * modules/unictype/category-or-tests (Depends-on): Add
13157         unictype/category-{L,N}.
13158         * modules/unictype/category-name-tests (Depends-on): Add
13159         unictype/category-{Z,Nl}.
13160         Reported by Simon Josefsson.
13161
13162 2008-01-08  Bruno Haible  <bruno@clisp.org>
13163
13164         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
13165         convention better.
13166         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
13167         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
13168         Reported by Peter Miller <millerp@canb.auug.org.au>.
13169
13170 2008-01-08  Eric Blake  <ebb9@byu.net>
13171
13172         Rewrite memmem to guarantee linear complexity without malloc.
13173         * lib/memmem.c (memmem): Use Two-Way rather than
13174         Knuth-Morris-Pratt, to allow O(1) space usage.
13175         (critical_factorization, two_way_short_needle)
13176         (two_way_long_needle): New functions.
13177         (knuth_morris_pratt): Delete.
13178         * modules/memmem (Depends-on): No longer need malloca or stdbool.
13179         Add stdint.
13180         * tests/test-memmem.c (main): Add tests for periodic needle and
13181         sublinear performance.
13182         * doc/functions/memmem.texi (memmem): Document other deficiencies
13183         in cygwin and older glibc.
13184
13185 2008-01-08  Bruno Haible  <bruno@clisp.org>
13186
13187         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
13188         augmentation.
13189
13190 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
13191
13192         Add a configure time option: --disable-acl.
13193         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
13194         AC_ARG_ENABLE(acl).
13195
13196 2008-01-06  Simon Josefsson  <simon@josefsson.org>
13197
13198         * tests/test-localename.c: Don't include obsolete "setenv.h".
13199
13200         * modules/localename-tests (Depends-on): Need unsetenv.
13201
13202 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13203
13204         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
13205
13206 2008-01-06  Colin Watson  <cjwatson@debian.org>
13207
13208         * users.txt: Add man-db.
13209
13210 2008-01-07  Bruno Haible  <bruno@clisp.org>
13211
13212         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
13213         previous section name.
13214
13215 2008-01-07  Bruno Haible  <bruno@clisp.org>
13216
13217         * lib/progname.c (set_program_name): Don't strip off a leading
13218         "lt-" prefix outside a .libs directory.
13219         Suggested by Paul Eggert.
13220
13221 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
13222             Bruno Haible  <bruno@clisp.org>
13223
13224         Improve memory cleanup in 'relocatable' module.
13225         * lib/relocatable.h (compute_curr_prefix): Change return type to
13226         'char *'.
13227         * lib/relocatable.c (compute_curr_prefix): Change return type to
13228         'char *'. Free curr_installdir after use.
13229         (relocate): Free curr_prefix_better after use.
13230         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
13231
13232 2008-01-01  Bruno Haible  <bruno@clisp.org>
13233
13234         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
13235         failure on older glibc systems.
13236         Reported by Peter Fales <psfales@alcatel-lucent.com>.
13237
13238 2008-01-05  Eric Blake  <ebb9@byu.net>
13239
13240         Avoid quadratic system memmem.
13241         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
13242         Reported by Ralf Wildenhues.
13243
13244         Fix memmem test for mingw.
13245         * modules/memmem-tests (configure.ac): Check for alarm.
13246         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
13247         it.
13248         * doc/functions/memmem.texi: New file.
13249         * doc/gnulib.texi (Function Substitutes): Add memmem.
13250         Reported by Bruno Haible.
13251
13252 2008-01-04  Bruno Haible  <bruno@clisp.org>
13253
13254         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
13255         Require gl_HEADER_STRINGS_H_DEFAULTS, not
13256         gl_HEADER_STRING_H_DEFAULTS.
13257
13258 2008-01-04  Eric Blake  <ebb9@byu.net>
13259
13260         Shorten duration of memmem test.
13261         * tests/test-memmem.c (main): Use alarm to declare failure if test
13262         is taking too long.
13263         Reported by Ralf Wildenhues.
13264
13265 2007-12-21  Simon Josefsson  <simon@josefsson.org>
13266
13267         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
13268         string, needed by strerror.
13269
13270 2008-01-03  Colin Watson  <cjwatson@debian.org>
13271             Bruno Haible  <bruno@clisp.org>
13272
13273         * doc/gnulib-tool.texi (Localization): New section.
13274
13275 2008-01-02  Bruno Haible  <bruno@clisp.org>
13276
13277         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
13278         variables to 'unsigned char *' type.
13279         Reported by Paul Eggert.
13280
13281 2008-01-02  Jim Meyering  <jim@meyering.net>
13282
13283         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
13284
13285 2007-12-31  Jim Meyering  <jim@meyering.net>
13286
13287         Avoid use of private FTS type name.
13288         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
13289
13290 2007-12-30  Karl Berry  <karl@gnu.org>
13291
13292         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
13293         work around defect in Texinfo and/or the standalone Info browser.
13294
13295 2007-12-30  Bruno Haible  <bruno@clisp.org>
13296
13297         Unify 5 copies of the KMP code.
13298         * lib/str-kmp.h: New file.
13299         * lib/c-strcasestr.c: Include str-kmp.h.
13300         (knuth_morris_pratt): Remove function.
13301         (c_strcasestr): Update.
13302         * lib/c-strstr.c: Include str-kmp.h.
13303         (knuth_morris_pratt): Remove function.
13304         (c_strcasestr): Update.
13305         * lib/mbscasestr.c: Include str-kmp.h.
13306         (knuth_morris_pratt_unibyte): Remove function.
13307         * lib/mbsstr.c: Include str-kmp.h.
13308         (knuth_morris_pratt_unibyte): Remove function.
13309         * lib/strcasestr.c: Include str-kmp.h.
13310         (knuth_morris_pratt): Remove function.
13311         (strcasestr): Update.
13312         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
13313         * modules/c-strstr (Files): Likewise.
13314         * modules/mbscasestr (Files): Likewise.
13315         * modules/mbsstr (Files): Likewise.
13316         * modules/strcasestr (Files): Likewise.
13317         Suggested by Paul Eggert.
13318
13319 2007-12-30  Bruno Haible  <bruno@clisp.org>
13320
13321         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
13322         defined.
13323
13324 2007-12-30  Bruno Haible  <bruno@clisp.org>
13325
13326         * lib/xmalloca.h: Include xalloc.h.
13327         (xnmalloca): New macro.
13328
13329 2007-12-30  Bruno Haible  <bruno@clisp.org>
13330
13331         * lib/malloca.h (nmalloca): New macro.
13332         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
13333         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
13334         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
13335         knuth_morris_pratt_multibyte): Likewise.
13336         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
13337         knuth_morris_pratt_multibyte): Likewise.
13338         * lib/memmem.c (knuth_morris_pratt): Likewise.
13339         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
13340
13341 2007-12-25  Bruno Haible  <bruno@clisp.org>
13342
13343         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
13344         * lib/glob.c: Don't include openat.h.
13345         (link_exists2_p): Add back the code that deals with the
13346         !GLOB_ALTDIRFUNC case.
13347         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
13348         let it do the filename concatenation.
13349         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
13350         * modules/glob (Depends-on): Remove openat.
13351
13352 2007-12-31  Bruno Haible  <bruno@clisp.org>
13353
13354         * modules/dirfd (License): Change to LGPLv2+.
13355         Approved by Jim Meyering.
13356
13357 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13358
13359         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
13360         when multiplying M by sizeof (size_t).
13361
13362 2007-12-10  Martin Lambers  <marlam@marlam.de>
13363
13364         Override getpagesize on mingw.
13365         * lib/getpagesize.c: New file.
13366         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
13367         * modules/getpagesize (Files): Add lib/getpagesize.c.
13368         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
13369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13370         REPLACE_GETPAGESIZE.
13371         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
13372
13373 2007-12-25  Bruno Haible  <bruno@clisp.org>
13374
13375         * modules/localcharset (Notice): New field.
13376         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
13377         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
13378
13379 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13380             Bruno Haible  <bruno@clisp.org>
13381
13382         Avoid using the syntax symbol() in formatted documentation.
13383         * MODULES.html.sh (func_module): When replacing symbol() with a
13384         hyperlink, remove the parentheses. Show an error if some remain.
13385         Recognize and render the '...' syntax.
13386         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
13387         Rework. Add paragraph about GCC's inlining.
13388         * doc/alloca.texi: Likewise.
13389         * doc/error.texi: Remove parentheses from symbol reference.
13390         * doc/gnulib-intro.texi: Likewise.
13391         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
13392         * modules/fnmatch (Description): Reword to say "the ... function".
13393         * modules/full-read (Description): Likewise.
13394         * modules/full-write (Description): Likewise.
13395         * modules/safe-read (Description): Likewise.
13396         * modules/safe-write (Description): Likewise.
13397         * modules/strchrnul (Description): Likewise.
13398         * modules/trim (Description): Likewise.
13399         * modules/error (Description): Remove parentheses from symbol
13400         references.
13401         * modules/verror (Description): Likewise.
13402         Reported by Karl Berry.
13403
13404 2007-12-25  Bruno Haible  <bruno@clisp.org>
13405
13406         Fixup after 2007-10-16 commit.
13407         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
13408
13409 2007-12-24  Bruno Haible  <bruno@clisp.org>
13410
13411         Make --enable-relocatable work with DESTDIR.
13412         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
13413         to compute installdir from destprog.
13414         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
13415         also set the RELOC_DESTDIR variable.
13416         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
13417
13418 2007-12-24  Bruno Haible  <bruno@clisp.org>
13419
13420         Fix link error due to xalloc_die().
13421         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
13422         of xreadlink.
13423         * lib/relocwrapper.c: Update comments.
13424         * build-aux/install-reloc: Remove xreadlink.c from file list.
13425         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
13426         xreadlink.c.
13427         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
13428
13429 2007-12-24  Bruno Haible  <bruno@clisp.org>
13430
13431         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
13432         * lib/setenv.h: Remove file.
13433         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
13434         lib/setenv.h.
13435         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
13436         (Depends-on): Add stdlib.
13437         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
13438         gl_FUNC_UNSETENV.
13439         (Include): Replace setenv.h with <stdlib.h>.
13440         * modules/unsetenv: New file.
13441         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
13442         * lib/unsetenv.c: Include <stdlib.h> first.
13443         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
13444         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
13445         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
13446         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
13447         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
13448         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
13449         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
13450         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
13451         * doc/functions/unsetenv.texi: Update.
13452         * modules/xsetenv (Depends-on): Add unsetenv.
13453         * modules/getdate (Depends-on): Likewise.
13454         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
13455         * lib/xsetenv.c: Don't include setenv.h.
13456         * lib/getdate.y: Likewise.
13457         * lib/relocwrapper.c: Likewise.
13458         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
13459         (Depends-on): Add stdlib.
13460         * NEWS: Mention the changes.
13461         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
13462
13463 2007-12-23  Bruno Haible  <bruno@clisp.org>
13464
13465         * lib/memmem.c (memmem): Use lowercase variable names. Tab
13466         indentation.
13467
13468 2007-12-23  Bruno Haible  <bruno@clisp.org>
13469
13470         * lib/c-strcasestr.c: Add more comments.
13471         * lib/c-strstr.c: Likewise.
13472         * lib/mbscasestr.c: Likewise.
13473         * lib/mbsstr.c: Likewise.
13474         * lib/strcasestr.c: Likewise.
13475         * lib/memmem.c: Likewise.
13476
13477 2007-12-23  Bruno Haible  <bruno@clisp.org>
13478
13479         * tests/test-memmem.c: Include <string.h> first.
13480
13481 2007-12-22  Bruno Haible  <bruno@clisp.org>
13482
13483         * gnulib-tool (func_create_testdir): Change $auxdir while generating
13484         the contents of $testsbase.
13485         Reported by Ralf Wildenhues.
13486
13487 2007-12-22  Bruno Haible  <bruno@clisp.org>
13488
13489         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
13490         two variables local_ldadd_before, local_ldadd_last.
13491
13492 2007-12-20  Eric Blake  <ebb9@byu.net>
13493
13494         Work around circular library issue when cross-compiling.
13495         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
13496         that progname.o does not need to pull in rpl_memcmp.
13497
13498 2007-12-19  Eric Blake  <ebb9@byu.net>
13499
13500         Fix memmem to avoid O(n^2) worst-case complexity.
13501         * lib/memmem.c (knuth_morris_pratt): New function.
13502         (memmem): Use it if first few naive iterations fail.
13503         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
13504         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
13505         * modules/memchr (License): Likewise.
13506         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
13507         malloca.
13508         * tests/test-memmem.c: Rewrite, borrowing ideas from
13509         test-mbsstr1.c; the old version wouldn't even compile!
13510         * modules/memmem-tests: New file.
13511         * lib/string.in.h (rpl_memmem): Add declaration.
13512         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
13513         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
13514         REPLACE_MEMMEM.
13515
13516 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
13517
13518         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
13519         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
13520         before any system include files, and undef after them all.  This
13521         should fix a problem on VMS reported by John E. Malmberg in
13522         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
13523
13524 2007-12-17  Eric Blake  <ebb9@byu.net>
13525
13526         Revert addition of verify, for BSD/OS.
13527         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
13528         can't handle large files, for the sake of obsolete platforms.
13529         * modules/fseeko (Depends-on): Remove verify.
13530         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
13531         * doc/functions/ftello.texi (ftello): Likewise.
13532         * doc/functions/fgetpos.texi (fgetpos): Likewise.
13533         Reported by Larry Jones.
13534
13535 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
13536
13537         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
13538         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
13539
13540 2007-12-17  Jim Meyering  <meyering@redhat.com>
13541
13542         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
13543         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
13544         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
13545         * modules/getcwd (Depends-on): Add openat.
13546         Reported by Petr Salinger.
13547
13548 2007-12-17  Bruno Haible  <bruno@clisp.org>
13549
13550         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
13551         avoid a segmentation fault of the configure test on x86_64 systems.
13552
13553 2007-12-15  Jim Meyering  <meyering@redhat.com>
13554
13555         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
13556
13557 2007-12-13  Eric Blake  <ebb9@byu.net>
13558
13559         Another fseek test.
13560         * tests/test-fseek.c (main): Also test ungetc handling.
13561         * tests/test-fseeko.c (main): Likewise.
13562         * modules/fseeko (Depends-on): Add verify.
13563         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
13564         large.
13565         Reported by Larry Jones.
13566
13567         Fix fseeko on mingw.
13568         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
13569         seek.
13570
13571         Beef up fseek tests.
13572         * tests/test-fseek.c (main): Also test eof handling.
13573         * tests/test-fseeko.c (main): Likewise.
13574         Reported by Larry Jones.
13575
13576 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
13577
13578         Fix fseeko on BSD-based platforms.
13579         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
13580         successful seek.
13581
13582 2007-12-12  Eric Blake  <ebb9@byu.net>
13583
13584         Allow circular dependency of separate libtests.a
13585         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
13586         when use_libtests.
13587
13588 2007-12-11  Eric Blake  <ebb9@byu.net>
13589
13590         Fix bug with -0.0L in previous patch.
13591         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
13592         * tests/test-isnan.c (main): Also test on zeroes.
13593         * tests/test-isnanf.c (main): Likewise.
13594         * tests/test-isnanl.h (main): Likewise.
13595
13596         Detect pseudo-denormals on x86 even when cross-compiling.
13597         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
13598         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
13599         invalid bit patterns that happen to satisfy ==.
13600
13601         Avoid link failures with separate libtests.a.
13602         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
13603         last, to satisfy circular dependencies.
13604
13605 2007-12-11  Eric Blake  <ebb9@byu.net>
13606         and Bruno Haible  <bruno@clisp.org>
13607
13608         Fix OpenBSD 4.0 <float.h> handling of long double.
13609         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
13610         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
13611         * doc/headers/float.texi (float.h): Document OpenBSD bug.
13612
13613 2007-12-11  Jim Meyering  <meyering@redhat.com>
13614
13615         * users.txt: Add libvirt.
13616
13617         Support versions of autoconf prior to 2.59c.
13618         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
13619         if it is not already defined.
13620
13621 2007-12-09  Bruno Haible  <bruno@clisp.org>
13622
13623         Let 'gnulib-tool --import' collect sources needed for the tests in
13624         tests/ rather than in lib/.
13625         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
13626         argument. If true, add rules to generate libtests.a, and put libtests.a
13627         into $(LDADD). Consider source files in subdirectories and set
13628         uses_subdirs.
13629         (func_emit_initmacro_start, func_emit_initmacro_end,
13630         func_emit_initmacro_done): Pass all arguments explicitly.
13631         (func_import): Determine two module lists main_modules,
13632         testsrelated_modules. Determine use_libtests. Determine two variables
13633         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
13634         instead of just sed_transform_lib_file. Determine two variables
13635         main_files and testsrelated_files. Compute 'files' as the union of
13636         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
13637         func_add_or_update. In the generated gnulib-comp.m4, collect the
13638         object files for tests/ in different variables than those for lib/.
13639         Substitute LIBTESTS_LIBDEPS.
13640         (func_create_testdir): Combine the uses_subdirs results from
13641         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
13642
13643 2007-12-09  Bruno Haible  <bruno@clisp.org>
13644
13645         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
13646         the build-aux directory.
13647
13648 2007-12-09  Bruno Haible  <bruno@clisp.org>
13649
13650         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
13651         introduced on 2006-09-09.
13652
13653 2007-12-07  Jim Meyering  <meyering@redhat.com>
13654
13655         Let these macros work also with autoconf-2.59.
13656         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
13657         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
13658         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13659
13660 2007-12-06  Jim Meyering  <meyering@redhat.com>
13661
13662         Avoid a configure-time syntax error in gl_FUNC_ACL.
13663         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
13664         function in each branch, before testing the cache variable.
13665
13666 2007-12-04  Eric Blake  <ebb9@byu.net>
13667
13668         Make scripts executable.
13669         * build-aux/config.guess: Add execute permissions.
13670         * build-aux/config.sub: Likewise.
13671         * build-aux/gendocs.sh: Likewise.
13672
13673         Fix frexp on mingw.
13674         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
13675         cross-compiling.
13676         * doc/functions/frexp.texi (frexp): Document the bug.
13677
13678         Make cygwin fseeko check more reliable.
13679         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
13680         version numbers, rather than unrelated feature check.
13681         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
13682         * doc/functions/ftello.texi (ftello): Likewise.
13683         Reported by Bruno Haible.
13684
13685         * m4/strerror.m4: Bump version number.
13686
13687 2007-12-03  Bruno Haible  <bruno@clisp.org>
13688
13689         * doc/functions/mprotect.texi: Mention the mingw problem.
13690
13691 2007-12-03  Eric Blake  <ebb9@byu.net>
13692
13693         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
13694         REPLACE_STRERROR is initialized before this macro.
13695
13696 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
13697
13698         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
13699         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
13700         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
13701         put -lsec in even for programs other than 'ls'.  This fixes a problem
13702         for gettext reported by Bruno Haible in
13703         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
13704         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
13705         Add support for Solaris 10.  This isn't efficient, but should get the
13706         job done for now.
13707
13708 2007-12-03  James Youngman  <jay@gnu.org>
13709
13710         * doc/regexprops-generic.texi: change "an close-group" to "a
13711         close-group" and "illegal" to "not allowed".
13712
13713 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13714
13715         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
13716         pr_byname.h. Needed for the rare case when the maintainer has done
13717         "make maintainer-clean" in the source directory and then attempts a
13718         build outside the source directory.
13719         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
13720         scripts_byname.h.
13721
13722 2007-12-02  Martin Lambers <marlam@marlam.de>
13723             Bruno Haible  <bruno@clisp.org>
13724
13725         * lib/getpagesize.h: Remove file.
13726         * lib/unistd.in.h: Include declaration of getpagesize here.
13727         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
13728         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
13729         HAVE_SYS_PARAM_H.
13730         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
13731         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
13732         * modules/getpagesize (Files): Remove lib/getpagesize.h.
13733         (Depends-on): Add unistd.
13734         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13735         (Include): Use <unistd.h> instead of getpagesize.h.
13736         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
13737         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
13738         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
13739         gl_GETPAGESIZE invocation, already handled by module dependency.
13740         * lib/pagealign_alloc.c: Don't include getpagesize.h.
13741
13742 2007-12-02  Bruno Haible  <bruno@clisp.org>
13743
13744         * modules/strings-tests: New file.
13745         * tests/test-strings.c: New file.
13746
13747         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
13748         * lib/strings.in.h: New file.
13749         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
13750         * m4/strings_h.m4: New file.
13751         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
13752         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
13753         * modules/strings: New file.
13754         * modules/string (Makefile.am): Update.
13755         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
13756         Reported by Karl Berry.
13757
13758 2007-12-01  Eric Blake  <ebb9@byu.net>
13759
13760         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
13761         accomodate fix in cygwin 1.5.25.
13762
13763 2007-12-01  Jim Meyering  <meyering@redhat.com>
13764
13765         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
13766         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
13767         that would inhibit utf8-optimization of a regexp containing line-
13768         or buffer-anchors, e.g., `^', `$'.
13769
13770 2007-11-30  Bruno Haible  <bruno@clisp.org>
13771
13772         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
13773         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
13774         glthread_recursive_lock_init.
13775         * lib/lock.c (glthread_recursive_lock_init)
13776         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
13777         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13778
13779 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
13780
13781         New function qset_acl, like set_acl but with syscall semantics.
13782         * lib/acl.h (qset_acl): New decl.
13783         * lib/acl.c (qset_acl): New function.
13784         (set_acl): Use new function.  Use more-consistent diagnostics.
13785
13786 2007-11-28  Jim Meyering  <meyering@redhat.com>
13787
13788         * modules/physmem (License): Change from GPL to LGPLv2+.
13789
13790 2007-11-26  Bruno Haible  <bruno@clisp.org>
13791
13792         * lib/vasnprintf.c (decode_long_double): Don't abort if the
13793         'long double' type has excess precision.
13794         Reported by Jim Meyering in
13795         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
13796
13797 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13798
13799         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
13800         Sync from <http://gnu.org/licenses>.
13801         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
13802         with license text from same location.
13803         * doc/maintain.texi, doc/standards.texi:  Sync from
13804         <http://savannah.gnu.org/projects/gnustandards>.
13805
13806 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
13807         and Jim Meyering  <meyering@redhat.com>
13808
13809         Adjust getdate' grammar to accept a slightly more regular language.
13810         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
13811         Before, the former was rejected.
13812         * lib/getdate.y (digits_to_date_time): New function, factored
13813         out of ...
13814         (number): ...here.  Just call digits_to_date_time.
13815         (hybrid): New non-terminal to handle an <unsigned number,
13816         signed relative offset> sequence consistently.
13817
13818 2007-11-18  Jim Meyering  <meyering@redhat.com>
13819
13820         Pull my changes from coreutils:
13821         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
13822         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
13823         use of $gnulib_tool_option_extras, so that it's separated from the
13824         preceding argument.
13825
13826         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
13827         * build-aux/bootstrap (cp_mark_as_generated): Create any required
13828         parent destination directories before copying a file into place.
13829
13830 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
13831
13832         bootstrap: work also with 4-argument variant of AC_INIT
13833         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
13834
13835 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
13836
13837         Port test-getaddrinfo to Solaris.
13838         Problem reported by Bruno Haible in
13839         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
13840         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
13841         explanation of setting 'hints'.
13842         Don't reject an implementation merely because it returns EAI_SERVICE.
13843         (EAI_SERVICE): Define to 0 if not defined.
13844
13845 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
13846
13847         The license of gnu-make and posix-shell is now "GPLed build tool".
13848         * modules/gnu-make (License): Likewise.
13849         * modules/posix-shell (License): Likewise.
13850
13851         New module posix-shell, for determining a POSIX shell
13852         or perhaps something that is close enough to a POSIX shell.
13853         * m4/posix-shell.m4: New file.
13854         * modules/posix-shell: New file.
13855
13856         * MODULES.html.sh: Mention new module.
13857
13858         New module gnu-make, for determining whether we're using GNU Make.
13859         * m4/gnu-make.m4: New file.
13860         * modules/gnu-make: New file.
13861         * MODULES.html.sh: Mention new module.
13862
13863 2007-11-14  Jim Meyering  <meyering@redhat.com>
13864
13865         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
13866         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
13867         use this macro to create a function _definition_.
13868         Remove useless "#undef ARGMATCH_DIE".
13869
13870 2007-11-14  Bruno Haible  <bruno@clisp.org>
13871
13872         * lib/config.charset: Update for OpenBSD 4.1.
13873         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
13874
13875 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
13876
13877         Document 64-bit #if problems in stdint.texi.
13878         * doc/headers/stdint.texi (stdint.h): Mention problems with
13879         64-bit-#if, and how to work around them.
13880
13881         Don't insist on 'long long int' support in the preprocessor.  It
13882         breaks too many things.  For example, PRIdMAX still uses a 'long
13883         long int' format with the latest Sun compiler, even though
13884         HAVE_LONG_LONG_INT isn't defined due to that compiler's
13885         preprocessor problem.  This causes the latest coreutils to dump
13886         core on Solaris 10 sparc with the Sun C compiler.
13887         Instead, fix the 2007-10-16 problem in a different way, by evaluating
13888         the troublesome expressions at configure-time, not at #if-time.
13889         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
13890         preprocessor.
13891         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
13892         compile-time C checks, done at 'configure'-time.
13893         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
13894         * modules/inttypes (Makefile): Substitute the new symbols that
13895         gl_INTTYPES_H now generates.
13896         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
13897
13898 2007-11-12  Bruno Haible  <bruno@clisp.org>
13899
13900         Tests for Unicode character classification functions.
13901
13902         * modules/unictype/bidicategory-byname-tests: New file.
13903         * modules/unictype/bidicategory-name-tests: New file.
13904         * modules/unictype/bidicategory-of-tests: New file.
13905         * modules/unictype/bidicategory-test-tests: New file.
13906         * modules/unictype/block-list-tests: New file.
13907         * modules/unictype/block-of-tests: New file.
13908         * modules/unictype/block-test-tests: New file.
13909         * modules/unictype/category-C-tests: New file.
13910         * modules/unictype/category-Cc-tests: New file.
13911         * modules/unictype/category-Cf-tests: New file.
13912         * modules/unictype/category-Cn-tests: New file.
13913         * modules/unictype/category-Co-tests: New file.
13914         * modules/unictype/category-Cs-tests: New file.
13915         * modules/unictype/category-L-tests: New file.
13916         * modules/unictype/category-Ll-tests: New file.
13917         * modules/unictype/category-Lm-tests: New file.
13918         * modules/unictype/category-Lo-tests: New file.
13919         * modules/unictype/category-Lt-tests: New file.
13920         * modules/unictype/category-Lu-tests: New file.
13921         * modules/unictype/category-M-tests: New file.
13922         * modules/unictype/category-Mc-tests: New file.
13923         * modules/unictype/category-Me-tests: New file.
13924         * modules/unictype/category-Mn-tests: New file.
13925         * modules/unictype/category-N-tests: New file.
13926         * modules/unictype/category-Nd-tests: New file.
13927         * modules/unictype/category-Nl-tests: New file.
13928         * modules/unictype/category-No-tests: New file.
13929         * modules/unictype/category-P-tests: New file.
13930         * modules/unictype/category-Pc-tests: New file.
13931         * modules/unictype/category-Pd-tests: New file.
13932         * modules/unictype/category-Pe-tests: New file.
13933         * modules/unictype/category-Pf-tests: New file.
13934         * modules/unictype/category-Pi-tests: New file.
13935         * modules/unictype/category-Po-tests: New file.
13936         * modules/unictype/category-Ps-tests: New file.
13937         * modules/unictype/category-S-tests: New file.
13938         * modules/unictype/category-Sc-tests: New file.
13939         * modules/unictype/category-Sk-tests: New file.
13940         * modules/unictype/category-Sm-tests: New file.
13941         * modules/unictype/category-So-tests: New file.
13942         * modules/unictype/category-Z-tests: New file.
13943         * modules/unictype/category-Zl-tests: New file.
13944         * modules/unictype/category-Zp-tests: New file.
13945         * modules/unictype/category-Zs-tests: New file.
13946         * modules/unictype/category-and-not-tests: New file.
13947         * modules/unictype/category-and-tests: New file.
13948         * modules/unictype/category-byname-tests: New file.
13949         * modules/unictype/category-name-tests: New file.
13950         * modules/unictype/category-none-tests: New file.
13951         * modules/unictype/category-of-tests: New file.
13952         * modules/unictype/category-or-tests: New file.
13953         * modules/unictype/category-test-withtable-tests: New file.
13954         * modules/unictype/combining-class-tests: New file.
13955         * modules/unictype/ctype-alnum-tests: New file.
13956         * modules/unictype/ctype-alpha-tests: New file.
13957         * modules/unictype/ctype-blank-tests: New file.
13958         * modules/unictype/ctype-cntrl-tests: New file.
13959         * modules/unictype/ctype-digit-tests: New file.
13960         * modules/unictype/ctype-graph-tests: New file.
13961         * modules/unictype/ctype-lower-tests: New file.
13962         * modules/unictype/ctype-print-tests: New file.
13963         * modules/unictype/ctype-punct-tests: New file.
13964         * modules/unictype/ctype-space-tests: New file.
13965         * modules/unictype/ctype-upper-tests: New file.
13966         * modules/unictype/ctype-xdigit-tests: New file.
13967         * modules/unictype/decimal-digit-tests: New file.
13968         * modules/unictype/digit-tests: New file.
13969         * modules/unictype/mirror-tests: New file.
13970         * modules/unictype/numeric-tests: New file.
13971         * modules/unictype/property-alphabetic-tests: New file.
13972         * modules/unictype/property-ascii-hex-digit-tests: New file.
13973         * modules/unictype/property-bidi-arabic-digit-tests: New file.
13974         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
13975         * modules/unictype/property-bidi-block-separator-tests: New file.
13976         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
13977         * modules/unictype/property-bidi-common-separator-tests: New file.
13978         * modules/unictype/property-bidi-control-tests: New file.
13979         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
13980         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
13981         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
13982         * modules/unictype/property-bidi-european-digit-tests: New file.
13983         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
13984         * modules/unictype/property-bidi-left-to-right-tests: New file.
13985         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
13986         * modules/unictype/property-bidi-other-neutral-tests: New file.
13987         * modules/unictype/property-bidi-pdf-tests: New file.
13988         * modules/unictype/property-bidi-segment-separator-tests: New file.
13989         * modules/unictype/property-bidi-whitespace-tests: New file.
13990         * modules/unictype/property-byname-tests: New file.
13991         * modules/unictype/property-combining-tests: New file.
13992         * modules/unictype/property-composite-tests: New file.
13993         * modules/unictype/property-currency-symbol-tests: New file.
13994         * modules/unictype/property-dash-tests: New file.
13995         * modules/unictype/property-decimal-digit-tests: New file.
13996         * modules/unictype/property-default-ignorable-code-point-tests: New file.
13997         * modules/unictype/property-deprecated-tests: New file.
13998         * modules/unictype/property-diacritic-tests: New file.
13999         * modules/unictype/property-extender-tests: New file.
14000         * modules/unictype/property-format-control-tests: New file.
14001         * modules/unictype/property-grapheme-base-tests: New file.
14002         * modules/unictype/property-grapheme-extend-tests: New file.
14003         * modules/unictype/property-grapheme-link-tests: New file.
14004         * modules/unictype/property-hex-digit-tests: New file.
14005         * modules/unictype/property-hyphen-tests: New file.
14006         * modules/unictype/property-id-continue-tests: New file.
14007         * modules/unictype/property-id-start-tests: New file.
14008         * modules/unictype/property-ideographic-tests: New file.
14009         * modules/unictype/property-ids-binary-operator-tests: New file.
14010         * modules/unictype/property-ids-trinary-operator-tests: New file.
14011         * modules/unictype/property-ignorable-control-tests: New file.
14012         * modules/unictype/property-iso-control-tests: New file.
14013         * modules/unictype/property-join-control-tests: New file.
14014         * modules/unictype/property-left-of-pair-tests: New file.
14015         * modules/unictype/property-line-separator-tests: New file.
14016         * modules/unictype/property-logical-order-exception-tests: New file.
14017         * modules/unictype/property-lowercase-tests: New file.
14018         * modules/unictype/property-math-tests: New file.
14019         * modules/unictype/property-non-break-tests: New file.
14020         * modules/unictype/property-not-a-character-tests: New file.
14021         * modules/unictype/property-numeric-tests: New file.
14022         * modules/unictype/property-other-alphabetic-tests: New file.
14023         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
14024         * modules/unictype/property-other-grapheme-extend-tests: New file.
14025         * modules/unictype/property-other-id-continue-tests: New file.
14026         * modules/unictype/property-other-id-start-tests: New file.
14027         * modules/unictype/property-other-lowercase-tests: New file.
14028         * modules/unictype/property-other-math-tests: New file.
14029         * modules/unictype/property-other-uppercase-tests: New file.
14030         * modules/unictype/property-paired-punctuation-tests: New file.
14031         * modules/unictype/property-paragraph-separator-tests: New file.
14032         * modules/unictype/property-pattern-syntax-tests: New file.
14033         * modules/unictype/property-pattern-white-space-tests: New file.
14034         * modules/unictype/property-private-use-tests: New file.
14035         * modules/unictype/property-punctuation-tests: New file.
14036         * modules/unictype/property-quotation-mark-tests: New file.
14037         * modules/unictype/property-radical-tests: New file.
14038         * modules/unictype/property-sentence-terminal-tests: New file.
14039         * modules/unictype/property-soft-dotted-tests: New file.
14040         * modules/unictype/property-space-tests: New file.
14041         * modules/unictype/property-terminal-punctuation-tests: New file.
14042         * modules/unictype/property-test-tests: New file.
14043         * modules/unictype/property-titlecase-tests: New file.
14044         * modules/unictype/property-unassigned-code-value-tests: New file.
14045         * modules/unictype/property-unified-ideograph-tests: New file.
14046         * modules/unictype/property-uppercase-tests: New file.
14047         * modules/unictype/property-variation-selector-tests: New file.
14048         * modules/unictype/property-white-space-tests: New file.
14049         * modules/unictype/property-xid-continue-tests: New file.
14050         * modules/unictype/property-xid-start-tests: New file.
14051         * modules/unictype/property-zero-width-tests: New file.
14052         * modules/unictype/scripts-tests: New file.
14053         * modules/unictype/syntax-c-ident-tests: New file.
14054         * modules/unictype/syntax-c-whitespace-tests: New file.
14055         * modules/unictype/syntax-java-ident-tests: New file.
14056         * modules/unictype/syntax-java-whitespace-tests: New file.
14057         * tests/unictype/test-bidi_byname.c: New file.
14058         * tests/unictype/test-bidi_name.c: New file.
14059         * tests/unictype/test-bidi_of.c: New file.
14060         * tests/unictype/test-bidi_test.c: New file.
14061         * tests/unictype/test-block_list.c: New file.
14062         * tests/unictype/test-block_of.c: New file.
14063         * tests/unictype/test-block_test.c: New file.
14064         * tests/unictype/test-categ_and.c: New file.
14065         * tests/unictype/test-categ_and_not.c: New file.
14066         * tests/unictype/test-categ_byname.c: New file.
14067         * tests/unictype/test-categ_name.c: New file.
14068         * tests/unictype/test-categ_none.c: New file.
14069         * tests/unictype/test-categ_of.c: New file.
14070         * tests/unictype/test-categ_or.c: New file.
14071         * tests/unictype/test-categ_test_withtable.c: New file.
14072         * tests/unictype/test-combining.c: New file.
14073         * tests/unictype/test-decdigit.c: New file.
14074         * tests/unictype/test-digit.c: New file.
14075         * tests/unictype/test-mirror.c: New file.
14076         * tests/unictype/test-numeric.c: New file.
14077         * tests/unictype/test-pr_byname.c: New file.
14078         * tests/unictype/test-pr_test.c: New file.
14079         * tests/unictype/test-predicate-part1.h: New file.
14080         * tests/unictype/test-predicate-part2.h: New file.
14081         * tests/unictype/test-scripts.c: New file.
14082         * tests/unictype/test-sy_c_ident.c: New file.
14083         * tests/unictype/test-sy_java_ident.c: New file.
14084
14085         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
14086         for Unicode 5.0.0.
14087         * tests/unictype/test-categ_Cc.c: Likewise.
14088         * tests/unictype/test-categ_Cf.c: Likewise.
14089         * tests/unictype/test-categ_Cn.c: Likewise.
14090         * tests/unictype/test-categ_Co.c: Likewise.
14091         * tests/unictype/test-categ_Cs.c: Likewise.
14092         * tests/unictype/test-categ_L.c: Likewise.
14093         * tests/unictype/test-categ_Ll.c: Likewise.
14094         * tests/unictype/test-categ_Lm.c: Likewise.
14095         * tests/unictype/test-categ_Lo.c: Likewise.
14096         * tests/unictype/test-categ_Lt.c: Likewise.
14097         * tests/unictype/test-categ_Lu.c: Likewise.
14098         * tests/unictype/test-categ_M.c: Likewise.
14099         * tests/unictype/test-categ_Mc.c: Likewise.
14100         * tests/unictype/test-categ_Me.c: Likewise.
14101         * tests/unictype/test-categ_Mn.c: Likewise.
14102         * tests/unictype/test-categ_N.c: Likewise.
14103         * tests/unictype/test-categ_Nd.c: Likewise.
14104         * tests/unictype/test-categ_Nl.c: Likewise.
14105         * tests/unictype/test-categ_No.c: Likewise.
14106         * tests/unictype/test-categ_P.c: Likewise.
14107         * tests/unictype/test-categ_Pc.c: Likewise.
14108         * tests/unictype/test-categ_Pd.c: Likewise.
14109         * tests/unictype/test-categ_Pe.c: Likewise.
14110         * tests/unictype/test-categ_Pf.c: Likewise.
14111         * tests/unictype/test-categ_Pi.c: Likewise.
14112         * tests/unictype/test-categ_Po.c: Likewise.
14113         * tests/unictype/test-categ_Ps.c: Likewise.
14114         * tests/unictype/test-categ_S.c: Likewise.
14115         * tests/unictype/test-categ_Sc.c: Likewise.
14116         * tests/unictype/test-categ_Sk.c: Likewise.
14117         * tests/unictype/test-categ_Sm.c: Likewise.
14118         * tests/unictype/test-categ_So.c: Likewise.
14119         * tests/unictype/test-categ_Z.c: Likewise.
14120         * tests/unictype/test-categ_Zl.c: Likewise.
14121         * tests/unictype/test-categ_Zp.c: Likewise.
14122         * tests/unictype/test-categ_Zs.c: Likewise.
14123         * tests/unictype/test-ctype_alnum.c: Likewise.
14124         * tests/unictype/test-ctype_alpha.c: Likewise.
14125         * tests/unictype/test-ctype_blank.c: Likewise.
14126         * tests/unictype/test-ctype_cntrl.c: Likewise.
14127         * tests/unictype/test-ctype_digit.c: Likewise.
14128         * tests/unictype/test-ctype_graph.c: Likewise.
14129         * tests/unictype/test-ctype_lower.c: Likewise.
14130         * tests/unictype/test-ctype_print.c: Likewise.
14131         * tests/unictype/test-ctype_punct.c: Likewise.
14132         * tests/unictype/test-ctype_space.c: Likewise.
14133         * tests/unictype/test-ctype_upper.c: Likewise.
14134         * tests/unictype/test-ctype_xdigit.c: Likewise.
14135         * tests/unictype/test-decdigit.h: Likewise.
14136         * tests/unictype/test-digit.h: Likewise.
14137         * tests/unictype/test-numeric.h: Likewise.
14138         * tests/unictype/test-pr_alphabetic.c: Likewise.
14139         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
14140         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14141         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
14142         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
14143         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
14144         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
14145         * tests/unictype/test-pr_bidi_control.c: Likewise.
14146         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
14147         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
14148         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14149         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
14150         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14151         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14152         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14153         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14154         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
14155         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
14156         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
14157         * tests/unictype/test-pr_combining.c: Likewise.
14158         * tests/unictype/test-pr_composite.c: Likewise.
14159         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14160         * tests/unictype/test-pr_dash.c: Likewise.
14161         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14162         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
14163         * tests/unictype/test-pr_deprecated.c: Likewise.
14164         * tests/unictype/test-pr_diacritic.c: Likewise.
14165         * tests/unictype/test-pr_extender.c: Likewise.
14166         * tests/unictype/test-pr_format_control.c: Likewise.
14167         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14168         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14169         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14170         * tests/unictype/test-pr_hex_digit.c: Likewise.
14171         * tests/unictype/test-pr_hyphen.c: Likewise.
14172         * tests/unictype/test-pr_id_continue.c: Likewise.
14173         * tests/unictype/test-pr_id_start.c: Likewise.
14174         * tests/unictype/test-pr_ideographic.c: Likewise.
14175         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
14176         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
14177         * tests/unictype/test-pr_ignorable_control.c: Likewise.
14178         * tests/unictype/test-pr_iso_control.c: Likewise.
14179         * tests/unictype/test-pr_join_control.c: Likewise.
14180         * tests/unictype/test-pr_left_of_pair.c: Likewise.
14181         * tests/unictype/test-pr_line_separator.c: Likewise.
14182         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
14183         * tests/unictype/test-pr_lowercase.c: Likewise.
14184         * tests/unictype/test-pr_math.c: Likewise.
14185         * tests/unictype/test-pr_non_break.c: Likewise.
14186         * tests/unictype/test-pr_not_a_character.c: Likewise.
14187         * tests/unictype/test-pr_numeric.c: Likewise.
14188         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14189         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
14190         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
14191         * tests/unictype/test-pr_other_id_continue.c: Likewise.
14192         * tests/unictype/test-pr_other_id_start.c: Likewise.
14193         * tests/unictype/test-pr_other_lowercase.c: Likewise.
14194         * tests/unictype/test-pr_other_math.c: Likewise.
14195         * tests/unictype/test-pr_other_uppercase.c: Likewise.
14196         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
14197         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
14198         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
14199         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
14200         * tests/unictype/test-pr_private_use.c: Likewise.
14201         * tests/unictype/test-pr_punctuation.c: Likewise.
14202         * tests/unictype/test-pr_quotation_mark.c: Likewise.
14203         * tests/unictype/test-pr_radical.c: Likewise.
14204         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14205         * tests/unictype/test-pr_soft_dotted.c: Likewise.
14206         * tests/unictype/test-pr_space.c: Likewise.
14207         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14208         * tests/unictype/test-pr_titlecase.c: Likewise.
14209         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14210         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14211         * tests/unictype/test-pr_uppercase.c: Likewise.
14212         * tests/unictype/test-pr_variation_selector.c: Likewise.
14213         * tests/unictype/test-pr_white_space.c: Likewise.
14214         * tests/unictype/test-pr_xid_continue.c: Likewise.
14215         * tests/unictype/test-pr_xid_start.c: Likewise.
14216         * tests/unictype/test-pr_zero_width.c: Likewise.
14217         * tests/unictype/test-sy_c_whitespace.c: Likewise.
14218         * tests/unictype/test-sy_java_whitespace.c: Likewise.
14219
14220 2007-11-12  Bruno Haible  <bruno@clisp.org>
14221
14222         Unicode character classification functions.
14223         * lib/unictype.h: New file.
14224         * modules/unictype/base: New file.
14225         * modules/unictype/category-L: New file.
14226         * modules/unictype/category-Lu: New file.
14227         * modules/unictype/category-Ll: New file.
14228         * modules/unictype/category-Lt: New file.
14229         * modules/unictype/category-Lm: New file.
14230         * modules/unictype/category-Lo: New file.
14231         * modules/unictype/category-M: New file.
14232         * modules/unictype/category-Mn: New file.
14233         * modules/unictype/category-Mc: New file.
14234         * modules/unictype/category-Me: New file.
14235         * modules/unictype/category-N: New file.
14236         * modules/unictype/category-Nd: New file.
14237         * modules/unictype/category-Nl: New file.
14238         * modules/unictype/category-No: New file.
14239         * modules/unictype/category-P: New file.
14240         * modules/unictype/category-Pc: New file.
14241         * modules/unictype/category-Pd: New file.
14242         * modules/unictype/category-Ps: New file.
14243         * modules/unictype/category-Pe: New file.
14244         * modules/unictype/category-Pi: New file.
14245         * modules/unictype/category-Pf: New file.
14246         * modules/unictype/category-Po: New file.
14247         * modules/unictype/category-S: New file.
14248         * modules/unictype/category-Sm: New file.
14249         * modules/unictype/category-Sc: New file.
14250         * modules/unictype/category-Sk: New file.
14251         * modules/unictype/category-So: New file.
14252         * modules/unictype/category-Z: New file.
14253         * modules/unictype/category-Zs: New file.
14254         * modules/unictype/category-Zl: New file.
14255         * modules/unictype/category-Zp: New file.
14256         * modules/unictype/category-C: New file.
14257         * modules/unictype/category-Cc: New file.
14258         * modules/unictype/category-Cf: New file.
14259         * modules/unictype/category-Cs: New file.
14260         * modules/unictype/category-Co: New file.
14261         * modules/unictype/category-Cn: New file.
14262         * modules/unictype/category-or: New file.
14263         * modules/unictype/category-of: New file.
14264         * modules/unictype/category-test: New file.
14265         * modules/unictype/category-test-withtable: New file.
14266         * modules/unictype/category-byname: New file.
14267         * modules/unictype/category-none: New file.
14268         * modules/unictype/category-and: New file.
14269         * modules/unictype/category-and-not: New file.
14270         * modules/unictype/category-name: New file.
14271         * modules/unictype/combining-class: New file.
14272         * modules/unictype/category-all: New file.
14273         * modules/unictype/bidicategory-all: New file.
14274         * modules/unictype/bidicategory-byname: New file.
14275         * modules/unictype/bidicategory-name: New file.
14276         * modules/unictype/bidicategory-of: New file.
14277         * modules/unictype/bidicategory-test: New file.
14278         * modules/unictype/decimal-digit: New file.
14279         * modules/unictype/digit: New file.
14280         * modules/unictype/numeric: New file.
14281         * modules/unictype/mirror: New file.
14282         * modules/unictype/property-white-space: New file.
14283         * modules/unictype/property-alphabetic: New file.
14284         * modules/unictype/property-other-alphabetic: New file.
14285         * modules/unictype/property-not-a-character: New file.
14286         * modules/unictype/property-default-ignorable-code-point: New file.
14287         * modules/unictype/property-other-default-ignorable-code-point: New
14288         file.
14289         * modules/unictype/property-deprecated: New file.
14290         * modules/unictype/property-logical-order-exception: New file.
14291         * modules/unictype/property-variation-selector: New file.
14292         * modules/unictype/property-private-use: New file.
14293         * modules/unictype/property-unassigned-code-value: New file.
14294         * modules/unictype/property-uppercase: New file.
14295         * modules/unictype/property-other-uppercase: New file.
14296         * modules/unictype/property-lowercase: New file.
14297         * modules/unictype/property-other-lowercase: New file.
14298         * modules/unictype/property-titlecase: New file.
14299         * modules/unictype/property-soft-dotted: New file.
14300         * modules/unictype/property-id-start: New file.
14301         * modules/unictype/property-other-id-start: New file.
14302         * modules/unictype/property-id-continue: New file.
14303         * modules/unictype/property-other-id-continue: New file.
14304         * modules/unictype/property-xid-start: New file.
14305         * modules/unictype/property-xid-continue: New file.
14306         * modules/unictype/property-pattern-white-space: New file.
14307         * modules/unictype/property-pattern-syntax: New file.
14308         * modules/unictype/property-join-control: New file.
14309         * modules/unictype/property-grapheme-base: New file.
14310         * modules/unictype/property-grapheme-extend: New file.
14311         * modules/unictype/property-other-grapheme-extend: New file.
14312         * modules/unictype/property-grapheme-link: New file.
14313         * modules/unictype/property-bidi-control: New file.
14314         * modules/unictype/property-bidi-left-to-right: New file.
14315         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
14316         * modules/unictype/property-bidi-arabic-right-to-left: New file.
14317         * modules/unictype/property-bidi-european-digit: New file.
14318         * modules/unictype/property-bidi-eur-num-separator: New file.
14319         * modules/unictype/property-bidi-eur-num-terminator: New file.
14320         * modules/unictype/property-bidi-arabic-digit: New file.
14321         * modules/unictype/property-bidi-common-separator: New file.
14322         * modules/unictype/property-bidi-block-separator: New file.
14323         * modules/unictype/property-bidi-segment-separator: New file.
14324         * modules/unictype/property-bidi-whitespace: New file.
14325         * modules/unictype/property-bidi-non-spacing-mark: New file.
14326         * modules/unictype/property-bidi-boundary-neutral: New file.
14327         * modules/unictype/property-bidi-pdf: New file.
14328         * modules/unictype/property-bidi-embedding-or-override: New file.
14329         * modules/unictype/property-bidi-other-neutral: New file.
14330         * modules/unictype/property-hex-digit: New file.
14331         * modules/unictype/property-ascii-hex-digit: New file.
14332         * modules/unictype/property-ideographic: New file.
14333         * modules/unictype/property-unified-ideograph: New file.
14334         * modules/unictype/property-radical: New file.
14335         * modules/unictype/property-ids-binary-operator: New file.
14336         * modules/unictype/property-ids-trinary-operator: New file.
14337         * modules/unictype/property-zero-width: New file.
14338         * modules/unictype/property-space: New file.
14339         * modules/unictype/property-non-break: New file.
14340         * modules/unictype/property-iso-control: New file.
14341         * modules/unictype/property-format-control: New file.
14342         * modules/unictype/property-dash: New file.
14343         * modules/unictype/property-hyphen: New file.
14344         * modules/unictype/property-punctuation: New file.
14345         * modules/unictype/property-line-separator: New file.
14346         * modules/unictype/property-paragraph-separator: New file.
14347         * modules/unictype/property-quotation-mark: New file.
14348         * modules/unictype/property-sentence-terminal: New file.
14349         * modules/unictype/property-terminal-punctuation: New file.
14350         * modules/unictype/property-currency-symbol: New file.
14351         * modules/unictype/property-math: New file.
14352         * modules/unictype/property-other-math: New file.
14353         * modules/unictype/property-paired-punctuation: New file.
14354         * modules/unictype/property-left-of-pair: New file.
14355         * modules/unictype/property-combining: New file.
14356         * modules/unictype/property-composite: New file.
14357         * modules/unictype/property-decimal-digit: New file.
14358         * modules/unictype/property-numeric: New file.
14359         * modules/unictype/property-diacritic: New file.
14360         * modules/unictype/property-extender: New file.
14361         * modules/unictype/property-ignorable-control: New file.
14362         * modules/unictype/property-test: New file.
14363         * modules/unictype/property-byname: New file.
14364         * modules/unictype/property-all: New file.
14365         * modules/unictype/scripts: New file.
14366         * modules/unictype/scripts-all: New file.
14367         * modules/unictype/block-of: New file.
14368         * modules/unictype/block-test: New file.
14369         * modules/unictype/block-list: New file.
14370         * modules/unictype/block-all: New file.
14371         * modules/unictype/syntax-c-whitespace: New file.
14372         * modules/unictype/syntax-java-whitespace: New file.
14373         * modules/unictype/syntax-c-ident: New file.
14374         * modules/unictype/syntax-java-ident: New file.
14375         * modules/unictype/ctype-alnum: New file.
14376         * modules/unictype/ctype-alpha: New file.
14377         * modules/unictype/ctype-cntrl: New file.
14378         * modules/unictype/ctype-digit: New file.
14379         * modules/unictype/ctype-graph: New file.
14380         * modules/unictype/ctype-lower: New file.
14381         * modules/unictype/ctype-print: New file.
14382         * modules/unictype/ctype-punct: New file.
14383         * modules/unictype/ctype-space: New file.
14384         * modules/unictype/ctype-upper: New file.
14385         * modules/unictype/ctype-xdigit: New file.
14386         * modules/unictype/ctype-blank: New file.
14387         * lib/unictype/bidi_byname.c: New file.
14388         * lib/unictype/bidi_name.c: New file.
14389         * lib/unictype/bidi_of.c: New file.
14390         * lib/unictype/bidi_test.c: New file.
14391         * lib/unictype/bitmap.h: New file.
14392         * lib/unictype/block_test.c: New file.
14393         * lib/unictype/blocks.c: New file.
14394         * lib/unictype/categ_C.c: New file.
14395         * lib/unictype/categ_Cc.c: New file.
14396         * lib/unictype/categ_Cf.c: New file.
14397         * lib/unictype/categ_Cn.c: New file.
14398         * lib/unictype/categ_Co.c: New file.
14399         * lib/unictype/categ_Cs.c: New file.
14400         * lib/unictype/categ_L.c: New file.
14401         * lib/unictype/categ_Ll.c: New file.
14402         * lib/unictype/categ_Lm.c: New file.
14403         * lib/unictype/categ_Lo.c: New file.
14404         * lib/unictype/categ_Lt.c: New file.
14405         * lib/unictype/categ_Lu.c: New file.
14406         * lib/unictype/categ_M.c: New file.
14407         * lib/unictype/categ_Mc.c: New file.
14408         * lib/unictype/categ_Me.c: New file.
14409         * lib/unictype/categ_Mn.c: New file.
14410         * lib/unictype/categ_N.c: New file.
14411         * lib/unictype/categ_Nd.c: New file.
14412         * lib/unictype/categ_Nl.c: New file.
14413         * lib/unictype/categ_No.c: New file.
14414         * lib/unictype/categ_P.c: New file.
14415         * lib/unictype/categ_Pc.c: New file.
14416         * lib/unictype/categ_Pd.c: New file.
14417         * lib/unictype/categ_Pe.c: New file.
14418         * lib/unictype/categ_Pf.c: New file.
14419         * lib/unictype/categ_Pi.c: New file.
14420         * lib/unictype/categ_Po.c: New file.
14421         * lib/unictype/categ_Ps.c: New file.
14422         * lib/unictype/categ_S.c: New file.
14423         * lib/unictype/categ_Sc.c: New file.
14424         * lib/unictype/categ_Sk.c: New file.
14425         * lib/unictype/categ_Sm.c: New file.
14426         * lib/unictype/categ_So.c: New file.
14427         * lib/unictype/categ_Z.c: New file.
14428         * lib/unictype/categ_Zl.c: New file.
14429         * lib/unictype/categ_Zp.c: New file.
14430         * lib/unictype/categ_Zs.c: New file.
14431         * lib/unictype/categ_and.c: New file.
14432         * lib/unictype/categ_and_not.c: New file.
14433         * lib/unictype/categ_byname.c: New file.
14434         * lib/unictype/categ_name.c: New file.
14435         * lib/unictype/categ_none.c: New file.
14436         * lib/unictype/categ_of.c: New file.
14437         * lib/unictype/categ_or.c: New file.
14438         * lib/unictype/categ_test.c: New file.
14439         * lib/unictype/combining.c: New file.
14440         * lib/unictype/ctype_alnum.c: New file.
14441         * lib/unictype/ctype_alpha.c: New file.
14442         * lib/unictype/ctype_blank.c: New file.
14443         * lib/unictype/ctype_cntrl.c: New file.
14444         * lib/unictype/ctype_digit.c: New file.
14445         * lib/unictype/ctype_graph.c: New file.
14446         * lib/unictype/ctype_lower.c: New file.
14447         * lib/unictype/ctype_print.c: New file.
14448         * lib/unictype/ctype_punct.c: New file.
14449         * lib/unictype/ctype_space.c: New file.
14450         * lib/unictype/ctype_upper.c: New file.
14451         * lib/unictype/ctype_xdigit.c: New file.
14452         * lib/unictype/decdigit.c: New file.
14453         * lib/unictype/digit.c: New file.
14454         * lib/unictype/identsyntaxmap.h: New file.
14455         * lib/unictype/mirror.c: New file.
14456         * lib/unictype/numeric.c: New file.
14457         * lib/unictype/pr_alphabetic.c: New file.
14458         * lib/unictype/pr_ascii_hex_digit.c: New file.
14459         * lib/unictype/pr_bidi_arabic_digit.c: New file.
14460         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
14461         * lib/unictype/pr_bidi_block_separator.c: New file.
14462         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
14463         * lib/unictype/pr_bidi_common_separator.c: New file.
14464         * lib/unictype/pr_bidi_control.c: New file.
14465         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
14466         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
14467         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
14468         * lib/unictype/pr_bidi_european_digit.c: New file.
14469         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
14470         * lib/unictype/pr_bidi_left_to_right.c: New file.
14471         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
14472         * lib/unictype/pr_bidi_other_neutral.c: New file.
14473         * lib/unictype/pr_bidi_pdf.c: New file.
14474         * lib/unictype/pr_bidi_segment_separator.c: New file.
14475         * lib/unictype/pr_bidi_whitespace.c: New file.
14476         * lib/unictype/pr_byname.c: New file.
14477         * lib/unictype/pr_byname.gperf: New file.
14478         * lib/unictype/pr_combining.c: New file.
14479         * lib/unictype/pr_composite.c: New file.
14480         * lib/unictype/pr_currency_symbol.c: New file.
14481         * lib/unictype/pr_dash.c: New file.
14482         * lib/unictype/pr_decimal_digit.c: New file.
14483         * lib/unictype/pr_default_ignorable_code_point.c: New file.
14484         * lib/unictype/pr_deprecated.c: New file.
14485         * lib/unictype/pr_diacritic.c: New file.
14486         * lib/unictype/pr_extender.c: New file.
14487         * lib/unictype/pr_format_control.c: New file.
14488         * lib/unictype/pr_grapheme_base.c: New file.
14489         * lib/unictype/pr_grapheme_extend.c: New file.
14490         * lib/unictype/pr_grapheme_link.c: New file.
14491         * lib/unictype/pr_hex_digit.c: New file.
14492         * lib/unictype/pr_hyphen.c: New file.
14493         * lib/unictype/pr_id_continue.c: New file.
14494         * lib/unictype/pr_id_start.c: New file.
14495         * lib/unictype/pr_ideographic.c: New file.
14496         * lib/unictype/pr_ids_binary_operator.c: New file.
14497         * lib/unictype/pr_ids_trinary_operator.c: New file.
14498         * lib/unictype/pr_ignorable_control.c: New file.
14499         * lib/unictype/pr_iso_control.c: New file.
14500         * lib/unictype/pr_join_control.c: New file.
14501         * lib/unictype/pr_left_of_pair.c: New file.
14502         * lib/unictype/pr_line_separator.c: New file.
14503         * lib/unictype/pr_logical_order_exception.c: New file.
14504         * lib/unictype/pr_lowercase.c: New file.
14505         * lib/unictype/pr_math.c: New file.
14506         * lib/unictype/pr_non_break.c: New file.
14507         * lib/unictype/pr_not_a_character.c: New file.
14508         * lib/unictype/pr_numeric.c: New file.
14509         * lib/unictype/pr_other_alphabetic.c: New file.
14510         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
14511         * lib/unictype/pr_other_grapheme_extend.c: New file.
14512         * lib/unictype/pr_other_id_continue.c: New file.
14513         * lib/unictype/pr_other_id_start.c: New file.
14514         * lib/unictype/pr_other_lowercase.c: New file.
14515         * lib/unictype/pr_other_math.c: New file.
14516         * lib/unictype/pr_other_uppercase.c: New file.
14517         * lib/unictype/pr_paired_punctuation.c: New file.
14518         * lib/unictype/pr_paragraph_separator.c: New file.
14519         * lib/unictype/pr_pattern_syntax.c: New file.
14520         * lib/unictype/pr_pattern_white_space.c: New file.
14521         * lib/unictype/pr_private_use.c: New file.
14522         * lib/unictype/pr_punctuation.c: New file.
14523         * lib/unictype/pr_quotation_mark.c: New file.
14524         * lib/unictype/pr_radical.c: New file.
14525         * lib/unictype/pr_sentence_terminal.c: New file.
14526         * lib/unictype/pr_soft_dotted.c: New file.
14527         * lib/unictype/pr_space.c: New file.
14528         * lib/unictype/pr_terminal_punctuation.c: New file.
14529         * lib/unictype/pr_test.c: New file.
14530         * lib/unictype/pr_titlecase.c: New file.
14531         * lib/unictype/pr_unassigned_code_value.c: New file.
14532         * lib/unictype/pr_unified_ideograph.c: New file.
14533         * lib/unictype/pr_uppercase.c: New file.
14534         * lib/unictype/pr_variation_selector.c: New file.
14535         * lib/unictype/pr_white_space.c: New file.
14536         * lib/unictype/pr_xid_continue.c: New file.
14537         * lib/unictype/pr_xid_start.c: New file.
14538         * lib/unictype/pr_zero_width.c: New file.
14539         * lib/unictype/scripts.c: New file.
14540         * lib/unictype/sy_c_ident.c: New file.
14541         * lib/unictype/sy_c_whitespace.c: New file.
14542         * lib/unictype/sy_java_ident.c: New file.
14543         * lib/unictype/sy_java_whitespace.c: New file.
14544
14545         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
14546         Unicode 5.0.0.
14547         * lib/unictype/blocks.h: Likewise.
14548         * lib/unictype/categ_C.h: Likewise.
14549         * lib/unictype/categ_Cc.h: Likewise.
14550         * lib/unictype/categ_Cf.h: Likewise.
14551         * lib/unictype/categ_Cn.h: Likewise.
14552         * lib/unictype/categ_Co.h: Likewise.
14553         * lib/unictype/categ_Cs.h: Likewise.
14554         * lib/unictype/categ_L.h: Likewise.
14555         * lib/unictype/categ_Ll.h: Likewise.
14556         * lib/unictype/categ_Lm.h: Likewise.
14557         * lib/unictype/categ_Lo.h: Likewise.
14558         * lib/unictype/categ_Lt.h: Likewise.
14559         * lib/unictype/categ_Lu.h: Likewise.
14560         * lib/unictype/categ_M.h: Likewise.
14561         * lib/unictype/categ_Mc.h: Likewise.
14562         * lib/unictype/categ_Me.h: Likewise.
14563         * lib/unictype/categ_Mn.h: Likewise.
14564         * lib/unictype/categ_N.h: Likewise.
14565         * lib/unictype/categ_Nd.h: Likewise.
14566         * lib/unictype/categ_Nl.h: Likewise.
14567         * lib/unictype/categ_No.h: Likewise.
14568         * lib/unictype/categ_P.h: Likewise.
14569         * lib/unictype/categ_Pc.h: Likewise.
14570         * lib/unictype/categ_Pd.h: Likewise.
14571         * lib/unictype/categ_Pe.h: Likewise.
14572         * lib/unictype/categ_Pf.h: Likewise.
14573         * lib/unictype/categ_Pi.h: Likewise.
14574         * lib/unictype/categ_Po.h: Likewise.
14575         * lib/unictype/categ_Ps.h: Likewise.
14576         * lib/unictype/categ_S.h: Likewise.
14577         * lib/unictype/categ_Sc.h: Likewise.
14578         * lib/unictype/categ_Sk.h: Likewise.
14579         * lib/unictype/categ_Sm.h: Likewise.
14580         * lib/unictype/categ_So.h: Likewise.
14581         * lib/unictype/categ_Z.h: Likewise.
14582         * lib/unictype/categ_Zl.h: Likewise.
14583         * lib/unictype/categ_Zp.h: Likewise.
14584         * lib/unictype/categ_Zs.h: Likewise.
14585         * lib/unictype/categ_of.h: Likewise.
14586         * lib/unictype/combining.h: Likewise.
14587         * lib/unictype/ctype_alnum.h: Likewise.
14588         * lib/unictype/ctype_alpha.h: Likewise.
14589         * lib/unictype/ctype_blank.h: Likewise.
14590         * lib/unictype/ctype_cntrl.h: Likewise.
14591         * lib/unictype/ctype_digit.h: Likewise.
14592         * lib/unictype/ctype_graph.h: Likewise.
14593         * lib/unictype/ctype_lower.h: Likewise.
14594         * lib/unictype/ctype_print.h: Likewise.
14595         * lib/unictype/ctype_punct.h: Likewise.
14596         * lib/unictype/ctype_space.h: Likewise.
14597         * lib/unictype/ctype_upper.h: Likewise.
14598         * lib/unictype/ctype_xdigit.h: Likewise.
14599         * lib/unictype/decdigit.h: Likewise.
14600         * lib/unictype/digit.h: Likewise.
14601         * lib/unictype/mirror.h: Likewise.
14602         * lib/unictype/numeric.h: Likewise.
14603         * lib/unictype/pr_alphabetic.h: Likewise.
14604         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14605         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14606         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14607         * lib/unictype/pr_bidi_block_separator.h: Likewise.
14608         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14609         * lib/unictype/pr_bidi_common_separator.h: Likewise.
14610         * lib/unictype/pr_bidi_control.h: Likewise.
14611         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14612         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14613         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14614         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14615         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14616         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14617         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14618         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14619         * lib/unictype/pr_bidi_pdf.h: Likewise.
14620         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14621         * lib/unictype/pr_bidi_whitespace.h: Likewise.
14622         * lib/unictype/pr_combining.h: Likewise.
14623         * lib/unictype/pr_composite.h: Likewise.
14624         * lib/unictype/pr_currency_symbol.h: Likewise.
14625         * lib/unictype/pr_dash.h: Likewise.
14626         * lib/unictype/pr_decimal_digit.h: Likewise.
14627         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14628         * lib/unictype/pr_deprecated.h: Likewise.
14629         * lib/unictype/pr_diacritic.h: Likewise.
14630         * lib/unictype/pr_extender.h: Likewise.
14631         * lib/unictype/pr_format_control.h: Likewise.
14632         * lib/unictype/pr_grapheme_base.h: Likewise.
14633         * lib/unictype/pr_grapheme_extend.h: Likewise.
14634         * lib/unictype/pr_grapheme_link.h: Likewise.
14635         * lib/unictype/pr_hex_digit.h: Likewise.
14636         * lib/unictype/pr_hyphen.h: Likewise.
14637         * lib/unictype/pr_id_continue.h: Likewise.
14638         * lib/unictype/pr_id_start.h: Likewise.
14639         * lib/unictype/pr_ideographic.h: Likewise.
14640         * lib/unictype/pr_ids_binary_operator.h: Likewise.
14641         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14642         * lib/unictype/pr_ignorable_control.h: Likewise.
14643         * lib/unictype/pr_iso_control.h: Likewise.
14644         * lib/unictype/pr_join_control.h: Likewise.
14645         * lib/unictype/pr_left_of_pair.h: Likewise.
14646         * lib/unictype/pr_line_separator.h: Likewise.
14647         * lib/unictype/pr_logical_order_exception.h: Likewise.
14648         * lib/unictype/pr_lowercase.h: Likewise.
14649         * lib/unictype/pr_math.h: Likewise.
14650         * lib/unictype/pr_non_break.h: Likewise.
14651         * lib/unictype/pr_not_a_character.h: Likewise.
14652         * lib/unictype/pr_numeric.h: Likewise.
14653         * lib/unictype/pr_other_alphabetic.h: Likewise.
14654         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14655         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
14656         * lib/unictype/pr_other_id_continue.h: Likewise.
14657         * lib/unictype/pr_other_id_start.h: Likewise.
14658         * lib/unictype/pr_other_lowercase.h: Likewise.
14659         * lib/unictype/pr_other_math.h: Likewise.
14660         * lib/unictype/pr_other_uppercase.h: Likewise.
14661         * lib/unictype/pr_paired_punctuation.h: Likewise.
14662         * lib/unictype/pr_paragraph_separator.h: Likewise.
14663         * lib/unictype/pr_pattern_syntax.h: Likewise.
14664         * lib/unictype/pr_pattern_white_space.h: Likewise.
14665         * lib/unictype/pr_private_use.h: Likewise.
14666         * lib/unictype/pr_punctuation.h: Likewise.
14667         * lib/unictype/pr_quotation_mark.h: Likewise.
14668         * lib/unictype/pr_radical.h: Likewise.
14669         * lib/unictype/pr_sentence_terminal.h: Likewise.
14670         * lib/unictype/pr_soft_dotted.h: Likewise.
14671         * lib/unictype/pr_space.h: Likewise.
14672         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14673         * lib/unictype/pr_titlecase.h: Likewise.
14674         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14675         * lib/unictype/pr_unified_ideograph.h: Likewise.
14676         * lib/unictype/pr_uppercase.h: Likewise.
14677         * lib/unictype/pr_variation_selector.h: Likewise.
14678         * lib/unictype/pr_white_space.h: Likewise.
14679         * lib/unictype/pr_xid_continue.h: Likewise.
14680         * lib/unictype/pr_xid_start.h: Likewise.
14681         * lib/unictype/pr_zero_width.h: Likewise.
14682         * lib/unictype/scripts.h: Likewise.
14683         * lib/unictype/scripts_byname.gperf: Likewise.
14684         * lib/unictype/sy_c_ident.h: Likewise.
14685         * lib/unictype/sy_c_whitespace.h: Likewise.
14686         * lib/unictype/sy_java_ident.h: Likewise.
14687         * lib/unictype/sy_java_whitespace.h: Likewise.
14688
14689         * lib/unictype/Makefile: New file.
14690         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
14691         glibc.
14692         * lib/unictype/3level.h: New file, copied from glibc.
14693         * lib/unictype/3levelbit.h: New file.
14694
14695 2007-11-11  Bruno Haible  <bruno@clisp.org>
14696
14697         * modules/gperf: New file.
14698         * modules/iconv_open (Depends-on): Add it.
14699         (Makefile.am): Remove the GPERF definition.
14700
14701 2007-11-11  Bruno Haible  <bruno@clisp.org>
14702
14703         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
14704         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
14705
14706 2007-11-11  Bruno Haible  <bruno@clisp.org>
14707
14708         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
14709         (usage): Remove function.
14710
14711 2007-11-11  Bruno Haible  <bruno@clisp.org>
14712
14713         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
14714         gl_FUNC_CEILF_LIBS.
14715         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
14716         gl_FUNC_CEIL_LIBS.
14717         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
14718         gl_FUNC_CEILL_LIBS.
14719         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
14720         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
14721         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
14722
14723 2007-11-11  Bruno Haible  <bruno@clisp.org>
14724
14725         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
14726         roundf were declared but do not exist on functions.
14727         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
14728         roundl were declared but do not exist on functions.
14729         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
14730         HAVE_FLOORL_AND_CEILL, respectively.
14731         Needed for Sun C on Solaris 10.
14732
14733 2007-11-11  Bruno Haible  <bruno@clisp.org>
14734
14735         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
14736         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
14737         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
14738         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
14739         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
14740         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
14741         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
14742         HAVE_DECL_ROUNDF.
14743         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
14744         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
14745         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
14746         of HAVE_DECL_ROUND*.
14747         * modules/math (Makefile.am): Update.
14748
14749 2007-11-10  Bruno Haible  <bruno@clisp.org>
14750
14751         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
14752         ptrdiff_t as m4/intl.m4.
14753
14754 2007-11-10  Jim Meyering  <meyering@redhat.com>
14755
14756         Avoid link failure for the argmatch test.
14757         * tests/test-argmatch.c (usage): Define function to avoid a link
14758         failure: argmatch_die requires a usage function.
14759
14760 2007-11-09  Bruno Haible  <bruno@clisp.org>
14761
14762         * doc/functions/snprintf.texi: Mention BeOS deficiency.
14763         * doc/functions/vsnprintf.texi: Likewise.
14764         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
14765         with a size argument < 2.
14766
14767 2007-11-09  Bruno Haible  <bruno@clisp.org>
14768
14769         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
14770         buffer. Fixes an inefficiency introduced on 2007-11-03.
14771
14772 2007-11-09  Bruno Haible  <bruno@clisp.org>
14773
14774         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
14775         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
14776
14777 2007-11-08  Jim Meyering  <meyering@redhat.com>
14778
14779         Change cache variable name prefix "jm_" to "gl_" everywhere.
14780         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
14781         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
14782         * m4/uptime.m4: s/gl_/jm_/
14783
14784 2007-11-07  Bruno Haible  <bruno@clisp.org>
14785
14786         Update to GNU gettext 0.17.
14787         * m4/intl.m4: Update to GNU gettext 0.17.
14788         * m4/po.m4: Likewise.
14789         * modules/gettext (Files): Remove m4/ulonglong.m4.
14790         (configure.ac): Require gettext infrastructure from version 0.17.
14791
14792 2007-11-06  Bruno Haible  <bruno@clisp.org>
14793
14794         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
14795         symbolic values are not defined in a public header.
14796         * lib/freadable.c (freadable) [QNX]: Likewise.
14797         * lib/freadahead.c (freadahead) [QNX]: Likewise.
14798         * lib/freading.c (freading) [QNX]: Likewise.
14799         * lib/fseterr.c (fseterr) [QNX]: Likewise.
14800         * lib/fwritable.c (fwritable) [QNX]: Likewise.
14801         * lib/fwriting.c (fwriting) [QNX]: Likewise.
14802         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
14803         Reported by Alain Magloire.
14804
14805         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
14806
14807 2007-11-05  Bruno Haible  <bruno@clisp.org>
14808
14809         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
14810         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
14811         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
14812         Reported by Eric Blake.
14813
14814 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14815             Bruno Haible  <bruno@clisp.org>
14816
14817         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
14818         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
14819         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
14820         (malloc): Undefine also before including <stdlib.h>.
14821         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
14822         Needed on OSF/1 4.0.
14823
14824 2007-11-05  Jim Meyering  <meyering@redhat.com>
14825
14826         git-version-gen: sync from coreutils.
14827         * build-aux/git-version-gen: Add comments.
14828         Change the first '-' to '.' in the snapshot version string,
14829         e.g., 6.9-377-08144 -> 6.9.377-08144
14830         Remove first parameter.
14831         Don't declare a version "-dirty" merely because a time
14832         stamp has changed.
14833
14834 2007-11-04  Bruno Haible  <bruno@clisp.org>
14835
14836         * lib/lock.h: Protect all macro definitions containing an 'if'
14837         statement through a "do { ... } while (0)".
14838         * lib/tls.h: Likewise.
14839
14840 2007-11-04  Bruno Haible  <bruno@clisp.org>
14841
14842         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
14843
14844 2007-11-04  Bruno Haible  <bruno@clisp.org>
14845
14846         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
14847         * modules/fprintf-posix (Depends-on): Add nocrash.
14848         * modules/snprintf-posix (Depends-on): Likewise.
14849         * modules/sprintf-posix (Depends-on): Likewise.
14850         * modules/vasnprintf-posix (Depends-on): Likewise.
14851         * modules/vasprintf-posix (Depends-on): Likewise.
14852         * modules/vfprintf-posix (Depends-on): Likewise.
14853         * modules/vsnprintf-posix (Depends-on): Likewise.
14854         * modules/vsprintf-posix (Depends-on): Likewise.
14855         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
14856         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14857         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14858         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14859         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14860         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14861         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14862
14863 2007-11-04  Bruno Haible  <bruno@clisp.org>
14864
14865         * modules/nocrash: New file.
14866         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
14867         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
14868
14869 2007-11-04  Bruno Haible  <bruno@clisp.org>
14870
14871         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
14872         precision handling.
14873         * tests/test-vasprintf-posix.c (test_function): Likewise.
14874         * tests/test-snprintf-posix.h (test_function): Likewise.
14875         * tests/test-sprintf-posix.h (test_function): Likewise.
14876
14877         Fix *printf behaviour for large precisions on mingw and BeOS.
14878         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
14879         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
14880         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
14881         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14882         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14883         gl_PRINTF_PRECISION and test its result. Invoke
14884         gl_PREREQ_VASNPRINTF_PRECISION.
14885         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14886         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14887         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14888         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14889         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14890         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14891         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14892         * doc/functions/fprintf.texi: Update.
14893         * doc/functions/printf.texi: Update.
14894         * doc/functions/snprintf.texi: Update.
14895         * doc/functions/sprintf.texi: Update.
14896         * doc/functions/vfprintf.texi: Update.
14897         * doc/functions/vprintf.texi: Update.
14898         * doc/functions/vsnprintf.texi: Update.
14899         * doc/functions/vsprintf.texi: Update.
14900
14901 2007-11-04  Bruno Haible  <bruno@clisp.org>
14902
14903         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
14904
14905 2007-11-04  Bruno Haible  <bruno@clisp.org>
14906
14907         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
14908         Reported by Sylvain Beucler <beuc@gnu.org>.
14909
14910 2007-11-03  Bruno Haible  <bruno@clisp.org>
14911
14912         * tests/test-fprintf-posix2.sh: New file.
14913         * tests/test-fprintf-posix2.c: New file.
14914         * modules/fprintf-posix-tests (Files): Add them.
14915         (TESTS): Add test-fprintf-posix2.sh.
14916         (configure.ac): Check for getrlimit and setrlimit.
14917         (check_PROGRAMS): Add test-fprintf-posix2.
14918
14919         * tests/test-printf-posix2.sh: New file.
14920         * tests/test-printf-posix2.c: New file.
14921         * modules/printf-posix-tests (Files): Add them.
14922         (TESTS): Add test-printf-posix2.sh.
14923         (configure.ac): Check for getrlimit and setrlimit.
14924         (check_PROGRAMS): Add test-printf-posix2.
14925
14926         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
14927         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
14928         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
14929         (decode_double): New function, copied from decode_long_double.
14930         (scale10_round_decimal_decoded): New function, extracted from
14931         scale10_round_decimal_long_double.
14932         (scale10_round_decimal_long_double): Use it.
14933         (scale10_round_decimal_double): New function.
14934         (floorlog10): New function.
14935         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
14936         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
14937         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14938         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14939         gl_PRINTF_ENOMEM and test its result. Invoke
14940         gl_PREREQ_VASNPRINTF_ENOMEM.
14941         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14942         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14943         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14944         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14945         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14946         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14947         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14948         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
14949         * modules/snprintf-posix (Depends-on): Likewise.
14950         * modules/sprintf-posix (Depends-on): Likewise.
14951         * modules/vasnprintf-posix (Depends-on): Likewise.
14952         * modules/vasprintf-posix (Depends-on): Likewise.
14953         * modules/vfprintf-posix (Depends-on): Likewise.
14954         * modules/vsnprintf-posix (Depends-on): Likewise.
14955         * modules/vsprintf-posix (Depends-on): Likewise.
14956         * doc/functions/fprintf.texi: Update.
14957         * doc/functions/printf.texi: Update.
14958         * doc/functions/snprintf.texi: Update.
14959         * doc/functions/sprintf.texi: Update.
14960         * doc/functions/vfprintf.texi: Update.
14961         * doc/functions/vprintf.texi: Update.
14962         * doc/functions/vsnprintf.texi: Update.
14963         * doc/functions/vsprintf.texi: Update.
14964
14965 2007-11-03  Bruno Haible  <bruno@clisp.org>
14966
14967         * modules/frexp-nolibm-tests: New file.
14968
14969         * modules/frexp-nolibm: New file.
14970         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
14971
14972 2007-11-03  Bruno Haible  <bruno@clisp.org>
14973
14974         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
14975         value is C99 compliant.
14976         Needed for OSF/1 5.1.
14977
14978 2007-11-03  Bruno Haible  <bruno@clisp.org>
14979
14980         Fix out-of-memory handling of vasnprintf.
14981         * lib/printf-parse.c: Include <errno.h>.
14982         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
14983         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
14984         is already set.
14985
14986 2007-11-02  Eric Blake  <ebb9@byu.net>
14987
14988         Fix tests on cygwin.
14989         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
14990
14991 2007-11-01  Bruno Haible  <bruno@clisp.org>
14992
14993         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
14994         warning.
14995         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
14996         needed for POSIX compatibility.
14997
14998 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
14999
15000         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
15001         for compatibility with GNU.
15002
15003 2007-11-01  Bruno Haible  <bruno@clisp.org>
15004
15005         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
15006         (putenv): Renamed from rpl_putenv. Change argument type from
15007         'const char *' to 'char *'.
15008         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
15009         of defining putenv in config.h, just set REPLACE_PUTENV.
15010         * modules/putenv (Depends-on): Add stdlib.
15011         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15012         (Include): Use <stdlib.h>.
15013         * lib/stdlib.in.h (putenv): New declaration.
15014         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
15015         REPLACE_PUTENV.
15016         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
15017         REPLACE_PUTENV.
15018         Needed for MacOS X 10.5.0.
15019         Reported by Peter O'Gorman <peter@pogma.com>.
15020
15021 2007-11-01  Jim Meyering  <meyering@redhat.com>
15022
15023         Treat an empty date string exactly like "0".
15024         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
15025         if the remaining date string (to be parsed) is empty, use "0".
15026         Reported by Mischa Molhoek and discussed in this thread:
15027         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
15028
15029 2007-10-31  Bruno Haible  <bruno@clisp.org>
15030
15031         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
15032         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
15033         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
15034         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
15035         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
15036         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
15037
15038 2007-10-31  Bruno Haible  <bruno@clisp.org>
15039
15040         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
15041         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
15042         (AC_TYPE_LONG_LONG_INT): Use it.
15043         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
15044         it as well.
15045         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
15046         to m4/longlong.m4.
15047         * modules/stdint (Files): Remove m4/ulonglong.m4.
15048         * modules/strtoull (Files): Use m4/longlong.m4 instead of
15049         m4/ulonglong.m4.
15050         * modules/strtoumax (Files): Likewise.
15051
15052 2007-10-30  Bruno Haible  <bruno@clisp.org>
15053
15054         * modules/xvasprintf-posix: New file.
15055         Suggested by Eric Blake.
15056
15057 2007-10-30  Bruno Haible  <bruno@clisp.org>
15058
15059         * modules/xprintf-posix-tests: New file.
15060         * tests/test-xprintf-posix.sh: New file.
15061         * tests/test-xprintf-posix.c: New file.
15062         * tests/test-xfprintf-posix.c: New file.
15063
15064         * modules/xprintf-posix: New file.
15065
15066 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15067
15068         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
15069         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
15070         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
15071
15072 2007-10-29  Bruno Haible  <bruno@clisp.org>
15073
15074         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
15075         contain the special marker '_cv_'.
15076         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
15077         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
15078         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
15079         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
15080         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
15081         Reported by Ralf Wildenhues.
15082
15083 2007-10-29  Bruno Haible  <bruno@clisp.org>
15084
15085         * gnulib-tool (func_import): When --lgpl is not specified, set
15086         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
15087         GPLv3.
15088         Reported by Simon Josefsson.
15089
15090 2007-10-28  Bruno Haible  <bruno@clisp.org>
15091
15092         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
15093         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
15094         HAVE_DECL_ISFINITE.
15095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
15096         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
15097         HAVE_DECL_ISFINITE.
15098
15099 2007-10-28  Bruno Haible  <bruno@clisp.org>
15100
15101         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
15102         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
15103
15104 2007-10-28  Bruno Haible  <bruno@clisp.org>
15105
15106         Fix link errors with Sun C 5.0 on Solaris 10.
15107         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
15108         function is declared but not present in the compiler's libm.
15109         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15110         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15111         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
15112         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
15113         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
15114         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
15115         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
15116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
15117         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
15118         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
15119         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
15120         HAVE_DECL_FLOORL.
15121
15122 2007-10-28  Bruno Haible  <bruno@clisp.org>
15123
15124         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
15125         gl_FUNC_FLOORL. Cache the result.
15126         (gl_FUNC_FLOORL): Use it.
15127         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
15128         gl_FUNC_CEILL. Cache the result.
15129         (gl_FUNC_CEILL): Use it.
15130
15131         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
15132         gl_FUNC_FLOOR. Cache the result.
15133         (gl_FUNC_FLOOR): Use it.
15134         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
15135         gl_FUNC_CEIL. Cache the result.
15136         (gl_FUNC_CEIL): Use it.
15137
15138         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
15139         gl_FUNC_FLOORF. Cache the result.
15140         (gl_FUNC_FLOORF): Use it.
15141         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
15142         gl_FUNC_CEILF. Cache the result.
15143         (gl_FUNC_CEILF): Use it.
15144
15145 2007-10-28  Bruno Haible  <bruno@clisp.org>
15146
15147         * gnulib-tool: Allow specifying the LGPL version number through
15148         --lgpl=2 or --lgpl=3.
15149         (func_usage): Document --lgpl with argument.
15150         Handle --lgpl=... arguments.
15151         (func_import): Recognize also gl_LGPL calls with an argument. When
15152         --lgpl=2 is used and the module's license is just LGPL, report an
15153         error. Set sed_transform_lib_file according to the lgpl variable. In
15154         the generated files, use --lgpl or gl_LGPL invocations with argument,
15155         if necessary.
15156         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
15157         an LGPv2+ license.
15158         * doc/gnulib-tool.texi (Modified imports): Update explanation of
15159         gl_LGPL macro.
15160
15161 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15162             Bruno Haible  <bruno@clisp.org>
15163
15164         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
15165         (u16_uctomb_aux): Likewise.
15166         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
15167         !HAVE_INLINE.
15168         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
15169
15170 2007-10-28  Bruno Haible  <bruno@clisp.org>
15171
15172         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
15173         Invoke AM_GETTEXT_OPTION if it exists.
15174         * modules/vasprintf: Likewise.
15175         * modules/verror: Likewise.
15176         * modules/xprintf: Likewise.
15177         * modules/xvasprintf: Likewise.
15178
15179 2007-10-27  Ben Pfaff  <blp@gnu.org>
15180
15181         * lib/math.in.h: Define isfinite macro and prototypes for
15182         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
15183         implementations.
15184         * m4/math_h.m4: New substitutions for isfinite module.
15185         * lib/isfinite.c: New file.
15186         * m4/isfinite.m4: New file.
15187         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
15188         * modules/isfinite: New file.
15189         * modules/isfinite-tests: New file.
15190         * tests/tests-isfinite.c: New file.
15191         * doc/functions/isfinite.texi: Mention isfinite module.
15192         * MODULES.html.sh: Mention new module.
15193
15194 2007-10-27  Ben Pfaff  <blp@gnu.org>
15195
15196         Ralf Wildenhues reported that Tru64 4.0D declares the round
15197         functions but does not have definitions.
15198         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
15199         cannot be found in any library, set the output variable to
15200         "missing" instead of "".
15201         * m4/round.m4: Also use our substitute if we cannot find round in
15202         any library, even if it is declared.
15203         * m4/roundf.m4: Likewise for roundf.
15204         * m4/roundl.m4: Likewise for roundl.
15205         * lib/math.in.h: Undefine roundf, round, roundl before defining
15206         their replacements, to allow for hypothetical systems where these
15207         may be defined as macros but not available in libraries.
15208
15209 2007-10-27  Bruno Haible  <bruno@clisp.org>
15210
15211         * doc/gnulib.texi: Invoke @firstparagraphindent.
15212         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
15213         changes in gnulib.
15214         (Source changes): New section.
15215
15216 2007-10-26  Bruno Haible  <bruno@clisp.org>
15217
15218         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
15219         borrowed from autoconf.
15220
15221 2007-10-26  Bruno Haible  <bruno@clisp.org>
15222
15223         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
15224         strerror returned the empty string. Needed on HP-UX 11.00.
15225
15226 2007-10-24  Micah Cowan  <micah@cowan.name>
15227
15228         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
15229         * build-aux/bootstrap: Remove support for now-unnecessary option,
15230         --cvs-user, and envvars CVS_USER, CVS_RSH.
15231
15232 2007-10-24  Jim Meyering  <meyering@redhat.com>
15233
15234         Avoid diagnostics from sha1sum when there is no cached checksum.
15235         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
15236         if the po.s1 file hasn't been created yet.
15237
15238         * build-aux/bootstrap: Sync from coreutils:
15239         2007-10-24  Jim Meyering  <meyering@redhat.com>
15240         Get gnulib from the git repository, not from an obsolete cvs one.
15241         * build-aux/bootstrap: Suggestion from Micah Cowan.
15242         2007-10-04  Jim Meyering  <jim@meyering.net>
15243         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
15244         (update_po_files): Work also when there are no .po files in po/.
15245
15246 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15247
15248         * README: Append ".git" to git and cg examples.
15249         Problem reported by Benoit Sigoure.
15250
15251 2007-10-23  Micah Cowan  <micah@cowan.name>
15252
15253         * users.txt: Add wget.
15254
15255 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15256
15257         Fix linking of some unistdio tests on FreeBSD.
15258         * modules/unistdio/u16-vsnprintf-tests
15259         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
15260         * modules/unistdio/u16-vsprintf-tests
15261         (test_u16_vsnprintf1_LDADD): Likewise.
15262         * modules/unistdio/u32-vsnprintf-tests
15263         (test_u32_vsnprintf1_LDADD): Likewise.
15264         * modules/unistdio/u32-vsprintf-tests
15265         (test_u32_vsprintf1_LDADD): Likewise.
15266         * modules/unistdio/u8-vsnprintf-tests
15267         (test_u8_vsnprintf1_LDADD): Likewise.
15268         * modules/unistdio/u8-vsprintf-tests
15269         (test_u8_vsprintf1_LDADD): Likewise.
15270         * modules/unistdio/ulc-vsnprintf-tests
15271         (test_ulc_vsnprintf1_LDADD): Likewise.
15272         * modules/unistdio/ulc-vsprintf-tests
15273         (test_ulc_vsprintf1_LDADD): Likewise.
15274
15275         Fix linking of some uniconv tests on FreeBSD.
15276         * modules/uniconv/u16-conv-from-enc-tests
15277         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
15278         * modules/uniconv/u16-conv-to-enc-tests
15279         (test_u16_conv_to_enc_LDADD): Likewise.
15280         * modules/uniconv/u16-strconv-from-enc-tests
15281         (test_u16_strconv_from_enc_LDADD): Likewise.
15282         * modules/uniconv/u16-strconv-to-enc-tests
15283         (test_u16_strconv_to_enc_LDADD): Likewise.
15284         * modules/uniconv/u32-conv-from-enc-tests
15285         (test_u32_conv_from_enc_LDADD): Likewise.
15286         * modules/uniconv/u32-conv-to-enc-tests
15287         (test_u32_conv_to_enc_LDADD): Likewise.
15288         * modules/uniconv/u32-strconv-from-enc-tests
15289         (test_u32_strconv_from_enc_LDADD): Likewise.
15290         * modules/uniconv/u32-strconv-to-enc-tests
15291         (test_u32_strconv_to_enc_LDADD): Likewise.
15292         * modules/uniconv/u8-conv-from-enc-tests
15293         (test_u8_conv_from_enc_LDADD): Likewise.
15294         * modules/uniconv/u8-conv-to-enc-tests
15295         (test_u8_conv_to_enc_LDADD): Likewise.
15296         * modules/uniconv/u8-strconv-from-enc-tests
15297         (test_u8_strconv_from_enc_LDADD): Likewise.
15298         * modules/uniconv/u8-strconv-to-enc-tests
15299         (test_u8_strconv_to_enc_LDADD): Likewise.
15300
15301 2007-10-22  Bruno Haible  <bruno@clisp.org>
15302
15303         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
15304         size.
15305
15306 2007-10-22  Eric Blake  <ebb9@byu.net>
15307
15308         Tweak x*printf documentation.
15309         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
15310         variable name and comments.
15311         Suggested by Bruno Haible.
15312
15313 2007-10-22  Bruno Haible  <bruno@clisp.org>
15314
15315         * lib/acl.c (copy_acl): Fix file name in comment.
15316
15317 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15318
15319         Fix Tru64 problem with stdbool.h.
15320         * lib/stdbool.in.h (false, true):
15321         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
15322         Don't declare as an enum in this situation; it runs afoul of Tru64.
15323         Problem reported by Steven M. Schweda in
15324         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
15325
15326 2007-10-22  Eric Blake  <ebb9@byu.net>
15327
15328         Also wrap vf?printf.
15329         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
15330         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
15331         (xvprintf, xvfprintf): New functions.
15332
15333 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15334
15335         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
15336         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
15337
15338         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
15339         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
15340
15341 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15342
15343         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
15344         by Bruno Haible.
15345
15346 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15347
15348         * lib/getloadavg.c
15349         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
15350         Undef `sys' after including sys/table.h, for Tru64 4.0D.
15351
15352         * tests/test-i-ring.c: Work for C89.
15353
15354 2007-10-22  Bruno Haible  <bruno@clisp.org>
15355
15356         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
15357         -1u, in preprocessor expression, so that we don't test for the bug
15358         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
15359         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
15360
15361 2007-10-22  Eric Blake  <ebb9@byu.net>
15362
15363         * tests/test-yesno.sh: Silence stderr during test.
15364
15365 2007-10-22  Simon Josefsson  <simon@josefsson.org>
15366
15367         * modules/crypto/gc-camellia: New file.
15368
15369         * m4/gc-camellia.m4: New file.
15370
15371         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
15372
15373         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
15374
15375 2007-10-22  Simon Josefsson  <simon@josefsson.org>
15376
15377         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
15378         --help to stdout.  Reported by sms@antinode.org (Steven
15379         M. Schweda).
15380
15381 2007-10-22  Simon Josefsson  <simon@josefsson.org>
15382
15383         * users.txt: Fix link to libksba.
15384
15385 2007-10-21  Ben Pfaff  <blp@gnu.org>
15386
15387         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
15388         round.c roundf implementation that depends on floorf and ceilf to
15389         be tested unconditionally.
15390
15391 2007-10-21  Ben Pfaff  <blp@gnu.org>
15392
15393         * m4/check-libm-func.m4: Removed.
15394         * m4/check-math-lib.m4: New file.
15395         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
15396         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
15397         definition and lack of AC_LIBOBJ([roundf]).
15398         * m4/roundl.m4: Ditto, and similarly for roundl.
15399         * modules/round: Reference new m4 file.
15400         * modules/roundf: Ditto.
15401         * modules/roundl: Ditto.
15402         * tests/test-round2.c (main): Use ROUND instead of round.
15403         Bug report from Bruno Haible.
15404
15405 2007-10-21  Bruno Haible  <bruno@clisp.org>
15406
15407         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
15408         context.
15409
15410 2007-10-21  Bruno Haible  <bruno@clisp.org>
15411
15412         * tests/test-wcwidth.c (main): Allow negative result for some control
15413         characters.
15414
15415         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
15416         Needed on OSF/1 5.1.
15417
15418 2007-10-21  Bruno Haible  <bruno@clisp.org>
15419
15420         * tests/test-floorf1.c: Include isnanf.h.
15421         (main): Use isnanf() instead of isnan().
15422         * tests/test-ceilf1.c: Include isnanf.h.
15423         (main): Use isnanf() instead of isnan().
15424         * tests/test-truncf1.c: Include isnanf.h.
15425         (main): Use isnanf() instead of isnan().
15426         * tests/test-roundf1.c: Include isnanf.h.
15427         (main): Use isnanf() instead of isnan().
15428
15429 2007-10-21  Eric Blake  <ebb9@byu.net>
15430
15431         * users.txt: Update URL for m4.
15432
15433 2007-10-21  Bruno Haible  <bruno@clisp.org>
15434
15435         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
15436
15437 2007-10-21  Bruno Haible  <bruno@clisp.org>
15438
15439         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
15440         Git's management files if the CVS files are not present.
15441
15442 2007-10-20  Bruno Haible  <bruno@clisp.org>
15443
15444         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
15445         gcc-3.4.x.
15446
15447 2007-10-20  Ben Pfaff  <blp@gnu.org>
15448
15449         * lib/math.in.h: Declare round, roundf, roundl if we are providing
15450         implementations.
15451         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
15452         * lib/round.c: New file.
15453         * lib/roundf.c: New file.
15454         * lib/roundl.c: New file.
15455         * m4/round.m4: New file.
15456         * m4/roundf.m4: New file.
15457         * m4/roundl.m4: New file.
15458         * m4/check-libm-func-m4: New file.
15459         * modules/math: Replace round, roundf, roundl related @VARS@ in
15460         math.in.h.
15461         * modules/round: New file.
15462         * modules/round-tests: New file.
15463         * modules/roundf: New file.
15464         * modules/roundf-tests: New file.
15465         * modules/roundl: New file.
15466         * modules/roundl-tests: New file.
15467         * tests/test-round1.c: New file.
15468         * tests/test-round2.c: New file.
15469         * tests/test-roundf1.c: New file.
15470         * tests/test-roundf2.c: New file.
15471         * tests/test-roundl.c: New file.
15472         * doc/functions/round.texi: Mention round module.
15473         * doc/functions/roundf.texi: Mention roundf module.
15474         * doc/functions/roundl.texi: Mention roundl module.
15475         * MODULES.html.sh: Mention new modules.
15476         Thanks to Bruno Haible for suggestions.
15477
15478 2007-10-20  Jim Meyering  <meyering@redhat.com>
15479
15480         * lib/xprintf.c: Include <config.h> unconditionally.
15481
15482         Change xprintf's license to GPL.
15483         * modules/xprintf (License): s/LGPL/GPL/, since this module
15484         depends on modules (exit and exitfail) which are GPL.
15485         Suggestion from Bruno Haible.
15486
15487         xprintf fixes.
15488         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
15489         Use a clearer diagnostic.
15490         Patch from Bruno Haible.
15491
15492 2007-10-20  Bruno Haible  <bruno@clisp.org>
15493
15494         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
15495         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
15496         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15497
15498 2007-10-20  Bruno Haible  <bruno@clisp.org>
15499
15500         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
15501         precision in the comparison result > x - 1 or similar.
15502         * tests/test-ceilf2.c (correct_result_p): Likewise.
15503         * tests/test-truncf2.c (correct_result_p): Likewise.
15504         * tests/test-trunc2.c (correct_result_p): Likewise.
15505         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15506
15507 2007-10-20  Bruno Haible  <bruno@clisp.org>
15508
15509         * modules/ceil: New file.
15510         * m4/ceil.m4: New file.
15511         * doc/functions/ceil.texi: Mention the 'ceil' module.
15512
15513 2007-10-20  Bruno Haible  <bruno@clisp.org>
15514
15515         * modules/floor: New file.
15516         * m4/floor.m4: New file.
15517         * doc/functions/floor.texi: Mention the 'floor' module.
15518
15519 2007-10-20  Bruno Haible  <bruno@clisp.org>
15520
15521         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
15522         of %a.
15523         * modules/floorf-tests (Depends-on): Likewise.
15524         * modules/truncf-tests (Depends-on): Likewise.
15525         * modules/trunc-tests (Depends-on): Likewise.
15526         Reported by Ben Pfaff.
15527
15528 2007-10-19  Jim Meyering  <meyering@redhat.com>
15529
15530         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
15531         Don't bother testing specific errno values.  Just test ferror.
15532
15533         New module: xprintf
15534         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
15535
15536 2007-10-19  Bruno Haible  <bruno@clisp.org>
15537
15538         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
15539         syntax.
15540         * modules/javaexec (Makefile.am): Likewise.
15541         * modules/relocatable-prog (Makefile.am): Likewise.
15542         Suggested by Jim Meyering.
15543
15544 2007-10-18  Bruno Haible  <bruno@clisp.org>
15545
15546         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
15547         Reported by Jim Meyering.
15548
15549 2007-10-18  Eric Blake  <ebb9@byu.net>
15550
15551         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
15552
15553 2007-10-18  Bruno Haible  <bruno@clisp.org>
15554
15555         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
15556         the format string into writable memory. Needed in Fortify conditions.
15557
15558 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
15559             Bruno Haible  <bruno@clisp.org>
15560
15561         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
15562         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
15563         * modules/trim (Depends-on): Add mbchar.
15564         (configure.ac): Add gl_FUNC_MBRTOWC.
15565         (Makefile.am): Augment lib_SOURCES.
15566
15567 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
15568
15569         Modify glob.c to use fstatat and dirfd, to simplify it.
15570         Suggested by Eric Blake.
15571         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
15572         Don't include <stdbool.h>; not used.
15573         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
15574         (link_exists_p): Simplify implementation, since we can now assume
15575         dirfd and fstatat.
15576         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
15577
15578 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15579
15580         * gnulib-tool (func_get_dependencies): Fix sed script to
15581         match only tests.
15582
15583 2007-10-17  Bruno Haible  <bruno@clisp.org>
15584
15585         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
15586         allow locale names without encoding suffix.
15587         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15588         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15589
15590 2007-10-16  Bruno Haible  <bruno@clisp.org>
15591
15592         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
15593         * lib/getgroups.c (getgroups): Likewise.
15594         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
15595
15596 2007-10-16  Bruno Haible  <bruno@clisp.org>
15597
15598         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
15599         * modules/malloc-posix (License): Likewise.
15600         * modules/realloc-posix (License): Likewise.
15601         * modules/calloc-posix (License): Likewise.
15602         * modules/intprops (License): Change from GPL to LGPL, with
15603         Paul Eggert's approval.
15604
15605 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
15606
15607         Merge glibc changes into lib/glob.c.
15608
15609         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
15610         2007-10-15 04:59:03 UTC.  Here are the changes:
15611
15612         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
15613
15614         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
15615
15616         * lib/glob.c: Add some branch prediction throughout.
15617
15618         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
15619
15620         [BZ #5103]
15621         * lib/glob.c (glob): Recognize patterns starting \/.
15622
15623         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
15624
15625         [BZ #3996]
15626         * lib/glob.c (attribute_hidden): Define if not defined.
15627         (glob): Unescape dirname, filename or username when needed and not
15628         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
15629         is NULL.  Handle unescaped [ in pattern without closing ].
15630         Don't pass GLOB_CHECK down to recursive glob for directories.
15631         (__glob_pattern_type): New function.
15632         (__glob_pattern_p): Implement using __glob_pattern_type.
15633         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
15634         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
15635         Remove unreachable code.
15636
15637         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
15638
15639         * lib/glob.c (glob_in_dir): Add some comments and asserts to
15640         explain why there are no leaks.
15641
15642         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
15643
15644         [BZ #3253]
15645         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
15646         time, rather allocate increasingly bigger arrays of pointers, if
15647         possible with alloca, if too large with malloc.
15648
15649 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
15650
15651         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
15652         Problem reported by H.Merijn Brand in
15653         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
15654         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
15655         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
15656
15657 2007-10-15  Bruno Haible  <bruno@clisp.org>
15658
15659         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
15660         with explicit rpl_ prefix.
15661         * lib/fopen.c (fopen): Likewise.
15662         * lib/freopen.c (freopen): Likewise.
15663         * lib/iconv.c (iconv): Likewise.
15664         * lib/iconv_close.c (iconv_close): Likewise.
15665
15666 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15667
15668         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
15669
15670 2007-10-15  Bruno Haible  <bruno@clisp.org>
15671
15672         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
15673         <stddef.h> instead of <stdlib.h> since we only need NULL.
15674         Reported by Ben Pfaff <blp@cs.stanford.edu>.
15675
15676 2007-10-15  Bruno Haible  <bruno@clisp.org>
15677
15678         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
15679         Replace paragraph talking about LIBOBJS.
15680         Reported by Colin Watson <cjwatson@debian.org>.
15681
15682 2007-10-15  Bruno Haible  <bruno@clisp.org>
15683
15684         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
15685         <stdlib.h> before using NULL.
15686
15687 2007-10-15  Simon Josefsson  <simon@josefsson.org>
15688
15689         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
15690         Reported by Albert Chin <china@thewrittenword.com>.
15691
15692 2007-10-14  Bruno Haible  <bruno@clisp.org>
15693
15694         * modules/iconv_open-utf-tests: New file.
15695         * tests/test-iconv-utf.c: New file.
15696
15697         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
15698         * modules/iconv_open-utf: New file.
15699         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
15700         (iconv, iconv_close): New declarations.
15701         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
15702         be defined.
15703         (iconv_open): Add special handling of conversion between UTF-8 and
15704         UTF-{16,32}{BE,LE}.
15705         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
15706         * lib/iconv_close.c: New file.
15707         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
15708         gl_FUNC_ICONV_OPEN.
15709         (gl_FUNC_ICONV_OPEN): Use it.
15710         (gl_FUNC_ICONV_OPEN_UTF): New macro.
15711         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
15712         and REPLACE_ICONV_UTF.
15713         * modules/iconv_open (Depends-on): Add c-strcase.
15714         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
15715         ICONV_CONST.
15716         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
15717
15718 2007-10-13  Albert Chin  <china@thewrittenword.com>
15719             Bruno Haible  <bruno@clisp.org>
15720
15721         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
15722         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
15723
15724 2007-10-13  Bruno Haible  <bruno@clisp.org>
15725
15726         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
15727         defined, use the ISO C99 inline semantics.
15728         * lib/argp.h (ARGP_EI): Likewise.
15729
15730 2007-10-13  Bruno Haible  <bruno@clisp.org>
15731
15732         Handle 'inline' change in gcc 4.3.0.
15733         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
15734         argp_fmtstream_write, argp_fmtstream_set_lmargin,
15735         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
15736         argp_fmtstream_point): Disable 'extern' declaration if the function
15737         definition is going to be provided inline.
15738         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
15739         semantics, not the ISO C99 inline semantics.
15740         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
15741         'extern' declaration if the function definition is going to be provided
15742         inline.
15743         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
15744         the GNU C inline semantics, not the ISO C99 inline semantics. With
15745         GCC 4.2, avoid a warning.
15746
15747 2007-10-13  Bruno Haible  <bruno@clisp.org>
15748
15749         * lib/freading.h (freading): Enable the use of __freading for
15750         glibc >= 2.7.
15751         * lib/freading.c (freading): Likewise.
15752
15753 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
15754
15755         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
15756         "warning: C99 inline functions are not supported; using GNU89".
15757
15758 2007-10-12  Bruno Haible  <bruno@clisp.org>
15759
15760         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
15761         of 2.
15762         * tests/test-ceilf2.c: New file.
15763         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
15764
15765         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
15766         * modules/ceilf-tests: Update.
15767
15768 2007-10-12  Bruno Haible  <bruno@clisp.org>
15769
15770         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
15771         of 2.
15772         * tests/test-floorf2.c: New file.
15773         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
15774
15775         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
15776         * modules/floorf-tests: Update.
15777
15778 2007-10-12  Bruno Haible  <bruno@clisp.org>
15779
15780         * tests/test-trunc2.c: New file.
15781         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
15782
15783         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
15784         * modules/trunc-tests: Update.
15785
15786 2007-10-12  Bruno Haible  <bruno@clisp.org>
15787
15788         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
15789         of 2.
15790         * tests/test-truncf2.c: New file.
15791         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
15792
15793         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
15794         * modules/truncf-tests: Update.
15795
15796 2007-10-11  Eric Blake  <ebb9@byu.net>
15797
15798         Don't claim strerror is broken on Interix.
15799         * doc/functions/strerror.texi (strerror): Known broken systems are
15800         now Solaris 8, and not Interix.
15801         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
15802         Interix on cross-compile.
15803         Reported by Martin Koeppe in
15804         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
15805
15806 2007-10-11  Bruno Haible  <bruno@clisp.org>
15807
15808         * modules/i-ring-tests: New file.
15809         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
15810         instead of assert.
15811
15812 2007-10-11  Bruno Haible  <bruno@clisp.org>
15813
15814         * modules/filenamecat-tests: New file.
15815         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
15816         * lib/filenamecat.c: Remove test code.
15817
15818 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15819
15820         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
15821
15822         * lib/strerror.c: Include <string.h> always, to test interface,
15823         and to remove the need for the dummy.
15824         Include intprops.h to compute width instead of doing it ourselves
15825         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
15826         (strerror): Define it to return NULL if there's no system strerror.
15827         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
15828         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
15829         ancient pre-strerror Unix systems well any more.  Saying "unknown
15830         system error" is enough.
15831         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
15832         simpler strerror.c implementation.
15833         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
15834         Simplify the tests to reflect the simpler strerror implementation.
15835         * modules/strerror (Depends-on): Add intprops.
15836
15837 2007-10-09  Eric Blake  <ebb9@byu.net>
15838
15839         Silence test-fpending.
15840         * modules/fpending-tests (Files): Add wrapper script.
15841         * tests/test-fpending.sh: New file.
15842
15843 2007-10-09  Bruno Haible  <bruno@clisp.org>
15844
15845         * MODULES.html.sh (func_module): Don't create a hyperlink for
15846         function names like 'printf_frexp'.
15847         (Misc): Add crc, memxor.
15848         (Characteristics of floating types): New section.
15849         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
15850         isnanf-nolibm, signbit, trunc, truncf, truncl.
15851         (Enhancements for ISO C 99 functions): New subsection Input/output.
15852         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
15853         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
15854         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
15855         (Compatibility checks for POSIX:2001 functions): Add clock-time.
15856         (Enhancements for POSIX:2001 functions): Add chdir-long.
15857         (File system functions): Add areadlink, chdir-safer, read-file.
15858         Remove cycle-check.
15859         (File system as inode set): New section.
15860         (Date and time): Add gethrxtime.
15861         (Multithreading): Add openmp.
15862         (Internationalization functions): Add localename.
15863         (Unicode string functions): Add unistr/u*-mbsnlen.
15864         (Support for maintaining and releasing projects): Add git-version-gen.
15865         (Lone files): Remove directories.
15866
15867 2007-10-08  Ben Pfaff  <blp@gnu.org>
15868
15869         * lib/xmalloca.h: Fix typo in comment.
15870
15871 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15872
15873         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
15874         when avoiding problems with integer overflow.  Use a portable test
15875         instead.
15876
15877 2007-10-08  Simon Josefsson  <simon@josefsson.org>
15878
15879         * modules/dummy (License): Change to LGPLv2+.
15880         * modules/float (License): Likewise
15881         * modules/realloc (License): Likewise
15882         * modules/stdlib (License): Likewise
15883
15884 2007-10-07  Bruno Haible  <bruno@clisp.org>
15885
15886         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
15887         * floor.c (TWO_MANT_DIG): Likewise.
15888         * ceil.c (TWO_MANT_DIG): Likewise.
15889         Reported by Ben Pfaff.
15890
15891 2007-10-07  Bruno Haible  <bruno@clisp.org>
15892
15893         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
15894         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
15895         * lib/frexp.c (FUNC): Likewise.
15896         * lib/printf-frexp.h (printf_frexp): Likewise.
15897         * lib/printf-frexpl.h (printf_frexpl): Likewise.
15898         * lib/printf-frexp.c (FUNC): Likewise.
15899         Suggested by Jim Meyering.
15900
15901 2007-10-07  Jim Meyering  <meyering@redhat.com>
15902
15903         Make xnanosleep's integer overflow test more robust.
15904         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
15905         so that gcc-4.3.0 doesn't optimize away this test for overflow.
15906
15907 2007-10-07  Bruno Haible  <bruno@clisp.org>
15908
15909         * NEWS: Mention the license change.
15910
15911         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
15912         abbreviations in the modules files.
15913
15914         Change copyright notice from GPLv2+ to GPLv3+.
15915         * README: Change copyright notice.
15916         * MODULES.html.sh: Likewise.
15917         * build-aux/bootstrap.conf: Likewise.
15918         * build-aux/config.libpath: Likewise.
15919         * build-aux/csharpcomp.sh.in: Likewise.
15920         * build-aux/csharpexec.sh.in: Likewise.
15921         * build-aux/install-reloc: Likewise.
15922         * build-aux/javacomp.sh.in: Likewise.
15923         * build-aux/javaexec.sh.in: Likewise.
15924         * build-aux/ldd.sh.in: Likewise.
15925         * build-aux/reloc-ldflags: Likewise.
15926         * build-aux/relocatable.sh.in: Likewise.
15927         * build-aux/x-to-1.in: Likewise.
15928         * check-module: Likewise.
15929         * config/srclistvars.sh: Likewise.
15930         * gnulib-tool: Likewise.
15931         * lib/acl-internal.h: Likewise.
15932         * lib/acl.c: Likewise.
15933         * lib/acl.h: Likewise.
15934         * lib/acl_entries.c: Likewise.
15935         * lib/areadlink-with-size.c: Likewise.
15936         * lib/areadlink.c: Likewise.
15937         * lib/areadlink.h: Likewise.
15938         * lib/argmatch.c: Likewise.
15939         * lib/argmatch.h: Likewise.
15940         * lib/argp-ba.c: Likewise.
15941         * lib/argp-eexst.c: Likewise.
15942         * lib/argp-fmtstream.c: Likewise.
15943         * lib/argp-fmtstream.h: Likewise.
15944         * lib/argp-fs-xinl.c: Likewise.
15945         * lib/argp-help.c: Likewise.
15946         * lib/argp-namefrob.h: Likewise.
15947         * lib/argp-parse.c: Likewise.
15948         * lib/argp-pin.c: Likewise.
15949         * lib/argp-pv.c: Likewise.
15950         * lib/argp-pvh.c: Likewise.
15951         * lib/argp-xinl.c: Likewise.
15952         * lib/argp.h: Likewise.
15953         * lib/at-func.c: Likewise.
15954         * lib/atanl.c: Likewise.
15955         * lib/backupfile.c: Likewise.
15956         * lib/backupfile.h: Likewise.
15957         * lib/basename.c: Likewise.
15958         * lib/binary-io.h: Likewise.
15959         * lib/byteswap.in.h: Likewise.
15960         * lib/c-stack.c: Likewise.
15961         * lib/c-stack.h: Likewise.
15962         * lib/c-strcasestr.c: Likewise.
15963         * lib/c-strcasestr.h: Likewise.
15964         * lib/c-strstr.c: Likewise.
15965         * lib/c-strstr.h: Likewise.
15966         * lib/c-strtod.c: Likewise.
15967         * lib/calloc.c: Likewise.
15968         * lib/canon-host.c: Likewise.
15969         * lib/canon-host.h: Likewise.
15970         * lib/canonicalize-lgpl.c: Likewise.
15971         * lib/canonicalize.c: Likewise.
15972         * lib/canonicalize.h: Likewise.
15973         * lib/ceil.c: Likewise.
15974         * lib/ceilf.c: Likewise.
15975         * lib/ceill.c: Likewise.
15976         * lib/chdir-long.c: Likewise.
15977         * lib/chdir-long.h: Likewise.
15978         * lib/chdir-safer.c: Likewise.
15979         * lib/chdir-safer.h: Likewise.
15980         * lib/chown.c: Likewise.
15981         * lib/classpath.c: Likewise.
15982         * lib/classpath.h: Likewise.
15983         * lib/clean-temp.c: Likewise.
15984         * lib/clean-temp.h: Likewise.
15985         * lib/cloexec.c: Likewise.
15986         * lib/close-stream.c: Likewise.
15987         * lib/closein.c: Likewise.
15988         * lib/closein.h: Likewise.
15989         * lib/closeout.c: Likewise.
15990         * lib/closeout.h: Likewise.
15991         * lib/concat-filename.c: Likewise.
15992         * lib/copy-file.c: Likewise.
15993         * lib/copy-file.h: Likewise.
15994         * lib/count-one-bits.h: Likewise.
15995         * lib/crc.c: Likewise.
15996         * lib/crc.h: Likewise.
15997         * lib/creat-safer.c: Likewise.
15998         * lib/csharpcomp.c: Likewise.
15999         * lib/csharpcomp.h: Likewise.
16000         * lib/csharpexec.c: Likewise.
16001         * lib/csharpexec.h: Likewise.
16002         * lib/cycle-check.c: Likewise.
16003         * lib/cycle-check.h: Likewise.
16004         * lib/diacrit.c: Likewise.
16005         * lib/diacrit.h: Likewise.
16006         * lib/diffseq.h: Likewise.
16007         * lib/dirchownmod.c: Likewise.
16008         * lib/dirent.in.h: Likewise.
16009         * lib/dirfd.c: Likewise.
16010         * lib/dirfd.h: Likewise.
16011         * lib/dirname.c: Likewise.
16012         * lib/dirname.h: Likewise.
16013         * lib/dummy.c: Likewise.
16014         * lib/dup-safer.c: Likewise.
16015         * lib/dup2.c: Likewise.
16016         * lib/eealloc.h: Likewise.
16017         * lib/error.c: Likewise.
16018         * lib/error.h: Likewise.
16019         * lib/euidaccess.c: Likewise.
16020         * lib/exclude.c: Likewise.
16021         * lib/exclude.h: Likewise.
16022         * lib/execute.c: Likewise.
16023         * lib/execute.h: Likewise.
16024         * lib/exitfail.c: Likewise.
16025         * lib/exitfail.h: Likewise.
16026         * lib/expl.c: Likewise.
16027         * lib/fatal-signal.c: Likewise.
16028         * lib/fatal-signal.h: Likewise.
16029         * lib/fbufmode.c: Likewise.
16030         * lib/fbufmode.h: Likewise.
16031         * lib/fchdir.c: Likewise.
16032         * lib/fchmodat.c: Likewise.
16033         * lib/fchownat.c: Likewise.
16034         * lib/fcntl--.h: Likewise.
16035         * lib/fcntl-safer.h: Likewise.
16036         * lib/fcntl.in.h: Likewise.
16037         * lib/fd-safer.c: Likewise.
16038         * lib/fflush.c: Likewise.
16039         * lib/file-has-acl.c: Likewise.
16040         * lib/file-set.c: Likewise.
16041         * lib/file-type.c: Likewise.
16042         * lib/file-type.h: Likewise.
16043         * lib/fileblocks.c: Likewise.
16044         * lib/filemode.c: Likewise.
16045         * lib/filemode.h: Likewise.
16046         * lib/filename.h: Likewise.
16047         * lib/filenamecat.c: Likewise.
16048         * lib/filenamecat.h: Likewise.
16049         * lib/findprog.c: Likewise.
16050         * lib/findprog.h: Likewise.
16051         * lib/float.in.h: Likewise.
16052         * lib/floor.c: Likewise.
16053         * lib/floorf.c: Likewise.
16054         * lib/floorl.c: Likewise.
16055         * lib/fopen-safer.c: Likewise.
16056         * lib/fopen.c: Likewise.
16057         * lib/fpending.c: Likewise.
16058         * lib/fpending.h: Likewise.
16059         * lib/fprintf.c: Likewise.
16060         * lib/fprintftime.h: Likewise.
16061         * lib/fpucw.h: Likewise.
16062         * lib/fpurge.c: Likewise.
16063         * lib/fpurge.h: Likewise.
16064         * lib/freadable.c: Likewise.
16065         * lib/freadable.h: Likewise.
16066         * lib/freadahead.c: Likewise.
16067         * lib/freadahead.h: Likewise.
16068         * lib/freading.c: Likewise.
16069         * lib/freading.h: Likewise.
16070         * lib/free.c: Likewise.
16071         * lib/freopen.c: Likewise.
16072         * lib/frexp.c: Likewise.
16073         * lib/frexpl.c: Likewise.
16074         * lib/fseek.c: Likewise.
16075         * lib/fseterr.c: Likewise.
16076         * lib/fseterr.h: Likewise.
16077         * lib/fstatat.c: Likewise.
16078         * lib/fstrcmp.c: Likewise.
16079         * lib/fstrcmp.h: Likewise.
16080         * lib/fsusage.c: Likewise.
16081         * lib/fsusage.h: Likewise.
16082         * lib/ftell.c: Likewise.
16083         * lib/ftello.c: Likewise.
16084         * lib/fts-cycle.c: Likewise.
16085         * lib/fts.c: Likewise.
16086         * lib/fts_.h: Likewise.
16087         * lib/full-read.c: Likewise.
16088         * lib/full-read.h: Likewise.
16089         * lib/full-write.c: Likewise.
16090         * lib/full-write.h: Likewise.
16091         * lib/fwritable.c: Likewise.
16092         * lib/fwritable.h: Likewise.
16093         * lib/fwriteerror.c: Likewise.
16094         * lib/fwriteerror.h: Likewise.
16095         * lib/fwriting.c: Likewise.
16096         * lib/fwriting.h: Likewise.
16097         * lib/gcd.c: Likewise.
16098         * lib/gcd.h: Likewise.
16099         * lib/getcwd.c: Likewise.
16100         * lib/getdate.h: Likewise.
16101         * lib/getdate.y: Likewise.
16102         * lib/getdomainname.c: Likewise.
16103         * lib/getdomainname.h: Likewise.
16104         * lib/getgroups.c: Likewise.
16105         * lib/gethostname.c: Likewise.
16106         * lib/gethrxtime.c: Likewise.
16107         * lib/gethrxtime.h: Likewise.
16108         * lib/getloadavg.c: Likewise.
16109         * lib/getndelim2.c: Likewise.
16110         * lib/getndelim2.h: Likewise.
16111         * lib/getnline.c: Likewise.
16112         * lib/getnline.h: Likewise.
16113         * lib/getopt.c: Likewise.
16114         * lib/getopt.in.h: Likewise.
16115         * lib/getopt1.c: Likewise.
16116         * lib/getopt_int.h: Likewise.
16117         * lib/getpagesize.h: Likewise.
16118         * lib/getsubopt.c: Likewise.
16119         * lib/gettime.c: Likewise.
16120         * lib/getugroups.c: Likewise.
16121         * lib/getugroups.h: Likewise.
16122         * lib/getusershell.c: Likewise.
16123         * lib/gl_anyavltree_list1.h: Likewise.
16124         * lib/gl_anyavltree_list2.h: Likewise.
16125         * lib/gl_anyhash_list1.h: Likewise.
16126         * lib/gl_anyhash_list2.h: Likewise.
16127         * lib/gl_anylinked_list1.h: Likewise.
16128         * lib/gl_anylinked_list2.h: Likewise.
16129         * lib/gl_anyrbtree_list1.h: Likewise.
16130         * lib/gl_anyrbtree_list2.h: Likewise.
16131         * lib/gl_anytree_list1.h: Likewise.
16132         * lib/gl_anytree_list2.h: Likewise.
16133         * lib/gl_anytree_oset.h: Likewise.
16134         * lib/gl_anytreehash_list1.h: Likewise.
16135         * lib/gl_anytreehash_list2.h: Likewise.
16136         * lib/gl_array_list.c: Likewise.
16137         * lib/gl_array_list.h: Likewise.
16138         * lib/gl_array_oset.c: Likewise.
16139         * lib/gl_array_oset.h: Likewise.
16140         * lib/gl_avltree_list.c: Likewise.
16141         * lib/gl_avltree_list.h: Likewise.
16142         * lib/gl_avltree_oset.c: Likewise.
16143         * lib/gl_avltree_oset.h: Likewise.
16144         * lib/gl_avltreehash_list.c: Likewise.
16145         * lib/gl_avltreehash_list.h: Likewise.
16146         * lib/gl_carray_list.c: Likewise.
16147         * lib/gl_carray_list.h: Likewise.
16148         * lib/gl_linked_list.c: Likewise.
16149         * lib/gl_linked_list.h: Likewise.
16150         * lib/gl_linkedhash_list.c: Likewise.
16151         * lib/gl_linkedhash_list.h: Likewise.
16152         * lib/gl_list.c: Likewise.
16153         * lib/gl_list.h: Likewise.
16154         * lib/gl_oset.c: Likewise.
16155         * lib/gl_oset.h: Likewise.
16156         * lib/gl_rbtree_list.c: Likewise.
16157         * lib/gl_rbtree_list.h: Likewise.
16158         * lib/gl_rbtree_oset.c: Likewise.
16159         * lib/gl_rbtree_oset.h: Likewise.
16160         * lib/gl_rbtreehash_list.c: Likewise.
16161         * lib/gl_rbtreehash_list.h: Likewise.
16162         * lib/gl_sublist.c: Likewise.
16163         * lib/gl_sublist.h: Likewise.
16164         * lib/group-member.c: Likewise.
16165         * lib/group-member.h: Likewise.
16166         * lib/hard-locale.c: Likewise.
16167         * lib/hard-locale.h: Likewise.
16168         * lib/hash-pjw.c: Likewise.
16169         * lib/hash-pjw.h: Likewise.
16170         * lib/hash-triple.c: Likewise.
16171         * lib/hash.c: Likewise.
16172         * lib/hash.h: Likewise.
16173         * lib/human.c: Likewise.
16174         * lib/human.h: Likewise.
16175         * lib/i-ring.c: Likewise.
16176         * lib/i-ring.h: Likewise.
16177         * lib/idcache.c: Likewise.
16178         * lib/imaxabs.c: Likewise.
16179         * lib/imaxdiv.c: Likewise.
16180         * lib/inet_pton.c: Likewise.
16181         * lib/inet_pton.h: Likewise.
16182         * lib/intprops.h: Likewise.
16183         * lib/inttostr.c: Likewise.
16184         * lib/inttostr.h: Likewise.
16185         * lib/inttypes.in.h: Likewise.
16186         * lib/isapipe.c: Likewise.
16187         * lib/isdir.c: Likewise.
16188         * lib/isnan.c: Likewise.
16189         * lib/isnan.h: Likewise.
16190         * lib/isnanf.c: Likewise.
16191         * lib/isnanf.h: Likewise.
16192         * lib/isnanl-nolibm.h: Likewise.
16193         * lib/isnanl.c: Likewise.
16194         * lib/isnanl.h: Likewise.
16195         * lib/javacomp.c: Likewise.
16196         * lib/javacomp.h: Likewise.
16197         * lib/javaexec.c: Likewise.
16198         * lib/javaexec.h: Likewise.
16199         * lib/javaversion.c: Likewise.
16200         * lib/javaversion.h: Likewise.
16201         * lib/javaversion.java: Likewise.
16202         * lib/lbrkprop.h: Likewise.
16203         * lib/lchmod.h: Likewise.
16204         * lib/lchown.c: Likewise.
16205         * lib/ldexpl.c: Likewise.
16206         * lib/linebreak.c: Likewise.
16207         * lib/linebreak.h: Likewise.
16208         * lib/linebuffer.c: Likewise.
16209         * lib/linebuffer.h: Likewise.
16210         * lib/locale.in.h: Likewise.
16211         * lib/logl.c: Likewise.
16212         * lib/long-options.c: Likewise.
16213         * lib/long-options.h: Likewise.
16214         * lib/lstat.c: Likewise.
16215         * lib/lstat.h: Likewise.
16216         * lib/math.in.h: Likewise.
16217         * lib/mbchar.c: Likewise.
16218         * lib/mbchar.h: Likewise.
16219         * lib/mbfile.h: Likewise.
16220         * lib/mbiter.h: Likewise.
16221         * lib/mbscasecmp.c: Likewise.
16222         * lib/mbscasestr.c: Likewise.
16223         * lib/mbschr.c: Likewise.
16224         * lib/mbscspn.c: Likewise.
16225         * lib/mbslen.c: Likewise.
16226         * lib/mbsncasecmp.c: Likewise.
16227         * lib/mbsnlen.c: Likewise.
16228         * lib/mbspbrk.c: Likewise.
16229         * lib/mbspcasecmp.c: Likewise.
16230         * lib/mbsrchr.c: Likewise.
16231         * lib/mbssep.c: Likewise.
16232         * lib/mbsspn.c: Likewise.
16233         * lib/mbsstr.c: Likewise.
16234         * lib/mbstok_r.c: Likewise.
16235         * lib/mbswidth.c: Likewise.
16236         * lib/mbswidth.h: Likewise.
16237         * lib/mbuiter.h: Likewise.
16238         * lib/memcasecmp.c: Likewise.
16239         * lib/memcasecmp.h: Likewise.
16240         * lib/memchr.c: Likewise.
16241         * lib/memcmp.c: Likewise.
16242         * lib/memcoll.c: Likewise.
16243         * lib/memcoll.h: Likewise.
16244         * lib/memcpy.c: Likewise.
16245         * lib/memrchr.c: Likewise.
16246         * lib/mkancesdirs.c: Likewise.
16247         * lib/mkdir-p.c: Likewise.
16248         * lib/mkdir-p.h: Likewise.
16249         * lib/mkdir.c: Likewise.
16250         * lib/mkdirat.c: Likewise.
16251         * lib/mkdtemp.c: Likewise.
16252         * lib/mkstemp-safer.c: Likewise.
16253         * lib/mkstemp.c: Likewise.
16254         * lib/modechange.c: Likewise.
16255         * lib/modechange.h: Likewise.
16256         * lib/mountlist.c: Likewise.
16257         * lib/mountlist.h: Likewise.
16258         * lib/mpsort.c: Likewise.
16259         * lib/nanosleep.c: Likewise.
16260         * lib/obstack.c: Likewise.
16261         * lib/obstack.h: Likewise.
16262         * lib/open-safer.c: Likewise.
16263         * lib/open.c: Likewise.
16264         * lib/openat-die.c: Likewise.
16265         * lib/openat-priv.h: Likewise.
16266         * lib/openat-proc.c: Likewise.
16267         * lib/openat.c: Likewise.
16268         * lib/openat.h: Likewise.
16269         * lib/pagealign_alloc.c: Likewise.
16270         * lib/pagealign_alloc.h: Likewise.
16271         * lib/physmem.c: Likewise.
16272         * lib/physmem.h: Likewise.
16273         * lib/pipe-safer.c: Likewise.
16274         * lib/pipe.c: Likewise.
16275         * lib/pipe.h: Likewise.
16276         * lib/posixtm.c: Likewise.
16277         * lib/posixtm.h: Likewise.
16278         * lib/posixver.c: Likewise.
16279         * lib/printf-frexp.c: Likewise.
16280         * lib/printf-frexp.h: Likewise.
16281         * lib/printf-frexpl.c: Likewise.
16282         * lib/printf-frexpl.h: Likewise.
16283         * lib/printf.c: Likewise.
16284         * lib/progname.c: Likewise.
16285         * lib/progname.h: Likewise.
16286         * lib/progreloc.c: Likewise.
16287         * lib/putenv.c: Likewise.
16288         * lib/quote.c: Likewise.
16289         * lib/quote.h: Likewise.
16290         * lib/quotearg.c: Likewise.
16291         * lib/quotearg.h: Likewise.
16292         * lib/raise.c: Likewise.
16293         * lib/readline.c: Likewise.
16294         * lib/readline.h: Likewise.
16295         * lib/readlink.c: Likewise.
16296         * lib/readtokens.c: Likewise.
16297         * lib/readtokens.h: Likewise.
16298         * lib/readtokens0.c: Likewise.
16299         * lib/readtokens0.h: Likewise.
16300         * lib/readutmp.c: Likewise.
16301         * lib/readutmp.h: Likewise.
16302         * lib/realloc.c: Likewise.
16303         * lib/relocwrapper.c: Likewise.
16304         * lib/rename-dest-slash.c: Likewise.
16305         * lib/rename.c: Likewise.
16306         * lib/rmdir.c: Likewise.
16307         * lib/rpmatch.c: Likewise.
16308         * lib/safe-read.c: Likewise.
16309         * lib/safe-read.h: Likewise.
16310         * lib/safe-write.c: Likewise.
16311         * lib/safe-write.h: Likewise.
16312         * lib/same-inode.h: Likewise.
16313         * lib/same.c: Likewise.
16314         * lib/same.h: Likewise.
16315         * lib/save-cwd.c: Likewise.
16316         * lib/save-cwd.h: Likewise.
16317         * lib/savedir.c: Likewise.
16318         * lib/savedir.h: Likewise.
16319         * lib/savewd.c: Likewise.
16320         * lib/savewd.h: Likewise.
16321         * lib/search.in.h: Likewise.
16322         * lib/setenv.c: Likewise.
16323         * lib/setenv.h: Likewise.
16324         * lib/settime.c: Likewise.
16325         * lib/sh-quote.c: Likewise.
16326         * lib/sh-quote.h: Likewise.
16327         * lib/sig2str.c: Likewise.
16328         * lib/sig2str.h: Likewise.
16329         * lib/signal.in.h: Likewise.
16330         * lib/signbitd.c: Likewise.
16331         * lib/signbitf.c: Likewise.
16332         * lib/signbitl.c: Likewise.
16333         * lib/sigprocmask.c: Likewise.
16334         * lib/sincosl.c: Likewise.
16335         * lib/sleep.c: Likewise.
16336         * lib/sprintf.c: Likewise.
16337         * lib/sqrtl.c: Likewise.
16338         * lib/stat-time.h: Likewise.
16339         * lib/stdio--.h: Likewise.
16340         * lib/stdio-safer.h: Likewise.
16341         * lib/stdlib--.h: Likewise.
16342         * lib/stdlib-safer.h: Likewise.
16343         * lib/stdlib.in.h: Likewise.
16344         * lib/stpcpy.c: Likewise.
16345         * lib/stpncpy.c: Likewise.
16346         * lib/strchrnul.c: Likewise.
16347         * lib/strcspn.c: Likewise.
16348         * lib/strerror.c: Likewise.
16349         * lib/strftime.c: Likewise.
16350         * lib/strftime.h: Likewise.
16351         * lib/striconveh.c: Likewise.
16352         * lib/striconveh.h: Likewise.
16353         * lib/striconveha.c: Likewise.
16354         * lib/striconveha.h: Likewise.
16355         * lib/stripslash.c: Likewise.
16356         * lib/strnlen1.c: Likewise.
16357         * lib/strnlen1.h: Likewise.
16358         * lib/strtod.c: Likewise.
16359         * lib/strtoimax.c: Likewise.
16360         * lib/strtok_r.c: Likewise.
16361         * lib/strtol.c: Likewise.
16362         * lib/strtoll.c: Likewise.
16363         * lib/strtoul.c: Likewise.
16364         * lib/strtoull.c: Likewise.
16365         * lib/sysexits.in.h: Likewise.
16366         * lib/tempname.c: Likewise.
16367         * lib/tempname.h: Likewise.
16368         * lib/timespec.h: Likewise.
16369         * lib/tls.c: Likewise.
16370         * lib/tls.h: Likewise.
16371         * lib/tmpdir.c: Likewise.
16372         * lib/tmpdir.h: Likewise.
16373         * lib/tmpfile-safer.c: Likewise.
16374         * lib/tmpfile.c: Likewise.
16375         * lib/trigl.c: Likewise.
16376         * lib/trigl.h: Likewise.
16377         * lib/trim.c: Likewise.
16378         * lib/trim.h: Likewise.
16379         * lib/trunc.c: Likewise.
16380         * lib/truncf.c: Likewise.
16381         * lib/truncl.c: Likewise.
16382         * lib/tsearch.c: Likewise.
16383         * lib/unicodeio.c: Likewise.
16384         * lib/unicodeio.h: Likewise.
16385         * lib/unistd--.h: Likewise.
16386         * lib/unistd-safer.h: Likewise.
16387         * lib/unistdio/ulc-fprintf.c: Likewise.
16388         * lib/unistdio/ulc-vfprintf.c: Likewise.
16389         * lib/unlinkdir.c: Likewise.
16390         * lib/unlinkdir.h: Likewise.
16391         * lib/unlocked-io.h: Likewise.
16392         * lib/unsetenv.c: Likewise.
16393         * lib/userspec.c: Likewise.
16394         * lib/utime.c: Likewise.
16395         * lib/utimecmp.c: Likewise.
16396         * lib/utimecmp.h: Likewise.
16397         * lib/utimens.c: Likewise.
16398         * lib/verify.h: Likewise.
16399         * lib/verror.c: Likewise.
16400         * lib/verror.h: Likewise.
16401         * lib/version-etc-fsf.c: Likewise.
16402         * lib/version-etc.c: Likewise.
16403         * lib/version-etc.h: Likewise.
16404         * lib/vfprintf.c: Likewise.
16405         * lib/vprintf.c: Likewise.
16406         * lib/vsprintf.c: Likewise.
16407         * lib/w32spawn.h: Likewise.
16408         * lib/wait-process.c: Likewise.
16409         * lib/wait-process.h: Likewise.
16410         * lib/wcwidth.c: Likewise.
16411         * lib/write-any-file.c: Likewise.
16412         * lib/xalloc-die.c: Likewise.
16413         * lib/xalloc.h: Likewise.
16414         * lib/xasprintf.c: Likewise.
16415         * lib/xgetcwd.c: Likewise.
16416         * lib/xgetcwd.h: Likewise.
16417         * lib/xgetdomainname.c: Likewise.
16418         * lib/xgetdomainname.h: Likewise.
16419         * lib/xgethostname.c: Likewise.
16420         * lib/xmalloc.c: Likewise.
16421         * lib/xmalloca.c: Likewise.
16422         * lib/xmalloca.h: Likewise.
16423         * lib/xmemcoll.c: Likewise.
16424         * lib/xnanosleep.c: Likewise.
16425         * lib/xreadlink.c: Likewise.
16426         * lib/xreadlink.h: Likewise.
16427         * lib/xsetenv.c: Likewise.
16428         * lib/xsetenv.h: Likewise.
16429         * lib/xstriconv.c: Likewise.
16430         * lib/xstriconv.h: Likewise.
16431         * lib/xstrndup.c: Likewise.
16432         * lib/xstrndup.h: Likewise.
16433         * lib/xstrtod.c: Likewise.
16434         * lib/xstrtod.h: Likewise.
16435         * lib/xstrtol-error.c: Likewise.
16436         * lib/xstrtol.c: Likewise.
16437         * lib/xstrtol.h: Likewise.
16438         * lib/xtime.h: Likewise.
16439         * lib/xvasprintf.c: Likewise.
16440         * lib/xvasprintf.h: Likewise.
16441         * lib/yesno.c: Likewise.
16442         * lib/yesno.h: Likewise.
16443         * posix-modules: Likewise.
16444         * tests/test-alloca-opt.c: Likewise.
16445         * tests/test-arcfour.c: Likewise.
16446         * tests/test-arctwo.c: Likewise.
16447         * tests/test-argmatch.c: Likewise.
16448         * tests/test-argp-2.sh: Likewise.
16449         * tests/test-argp.c: Likewise.
16450         * tests/test-arpa_inet.c: Likewise.
16451         * tests/test-array_list.c: Likewise.
16452         * tests/test-array_oset.c: Likewise.
16453         * tests/test-atexit.c: Likewise.
16454         * tests/test-avltree_list.c: Likewise.
16455         * tests/test-avltree_oset.c: Likewise.
16456         * tests/test-avltreehash_list.c: Likewise.
16457         * tests/test-base64.c: Likewise.
16458         * tests/test-binary-io.c: Likewise.
16459         * tests/test-byteswap.c: Likewise.
16460         * tests/test-c-ctype.c: Likewise.
16461         * tests/test-c-strcasecmp.c: Likewise.
16462         * tests/test-c-strcasestr.c: Likewise.
16463         * tests/test-c-strncasecmp.c: Likewise.
16464         * tests/test-c-strstr.c: Likewise.
16465         * tests/test-canonicalize-lgpl.c: Likewise.
16466         * tests/test-canonicalize.c: Likewise.
16467         * tests/test-carray_list.c: Likewise.
16468         * tests/test-ceilf.c: Likewise.
16469         * tests/test-ceill.c: Likewise.
16470         * tests/test-count-one-bits.c: Likewise.
16471         * tests/test-crc.c: Likewise.
16472         * tests/test-dirname.c: Likewise.
16473         * tests/test-fbufmode.c: Likewise.
16474         * tests/test-fcntl.c: Likewise.
16475         * tests/test-fflush.c: Likewise.
16476         * tests/test-floorf.c: Likewise.
16477         * tests/test-floorl.c: Likewise.
16478         * tests/test-fopen.c: Likewise.
16479         * tests/test-fprintf-posix.c: Likewise.
16480         * tests/test-fprintf-posix.h: Likewise.
16481         * tests/test-fpurge.c: Likewise.
16482         * tests/test-freadable.c: Likewise.
16483         * tests/test-freadahead.c: Likewise.
16484         * tests/test-freading.c: Likewise.
16485         * tests/test-freopen.c: Likewise.
16486         * tests/test-frexp.c: Likewise.
16487         * tests/test-frexpl.c: Likewise.
16488         * tests/test-fseek.c: Likewise.
16489         * tests/test-fseeko.c: Likewise.
16490         * tests/test-fseterr.c: Likewise.
16491         * tests/test-fstrcmp.c: Likewise.
16492         * tests/test-ftell.c: Likewise.
16493         * tests/test-ftello.c: Likewise.
16494         * tests/test-fwritable.c: Likewise.
16495         * tests/test-fwriting.c: Likewise.
16496         * tests/test-getaddrinfo.c: Likewise.
16497         * tests/test-getpass.c: Likewise.
16498         * tests/test-gettimeofday.c: Likewise.
16499         * tests/test-hmac-md5.c: Likewise.
16500         * tests/test-hmac-sha1.c: Likewise.
16501         * tests/test-iconv.c: Likewise.
16502         * tests/test-iconvme.c: Likewise.
16503         * tests/test-inttypes.c: Likewise.
16504         * tests/test-isnan.c: Likewise.
16505         * tests/test-isnanf.c: Likewise.
16506         * tests/test-isnanl-nolibm.c: Likewise.
16507         * tests/test-isnanl.c: Likewise.
16508         * tests/test-isnanl.h: Likewise.
16509         * tests/test-ldexpl.c: Likewise.
16510         * tests/test-linked_list.c: Likewise.
16511         * tests/test-linkedhash_list.c: Likewise.
16512         * tests/test-locale.c: Likewise.
16513         * tests/test-localename.c: Likewise.
16514         * tests/test-lock.c: Likewise.
16515         * tests/test-lseek.c: Likewise.
16516         * tests/test-malloca.c: Likewise.
16517         * tests/test-math.c: Likewise.
16518         * tests/test-mbscasecmp.c: Likewise.
16519         * tests/test-mbscasestr1.c: Likewise.
16520         * tests/test-mbscasestr2.c: Likewise.
16521         * tests/test-mbscasestr3.c: Likewise.
16522         * tests/test-mbscasestr4.c: Likewise.
16523         * tests/test-mbschr.c: Likewise.
16524         * tests/test-mbscspn.c: Likewise.
16525         * tests/test-mbsncasecmp.c: Likewise.
16526         * tests/test-mbspbrk.c: Likewise.
16527         * tests/test-mbspcasecmp.c: Likewise.
16528         * tests/test-mbsrchr.c: Likewise.
16529         * tests/test-mbsspn.c: Likewise.
16530         * tests/test-mbsstr1.c: Likewise.
16531         * tests/test-mbsstr2.c: Likewise.
16532         * tests/test-mbsstr3.c: Likewise.
16533         * tests/test-md5.c: Likewise.
16534         * tests/test-memmem.c: Likewise.
16535         * tests/test-netinet_in.c: Likewise.
16536         * tests/test-open.c: Likewise.
16537         * tests/test-printf-frexp.c: Likewise.
16538         * tests/test-printf-frexpl.c: Likewise.
16539         * tests/test-printf-posix.c: Likewise.
16540         * tests/test-printf-posix.h: Likewise.
16541         * tests/test-rbtree_list.c: Likewise.
16542         * tests/test-rbtree_oset.c: Likewise.
16543         * tests/test-rbtreehash_list.c: Likewise.
16544         * tests/test-read-file.c: Likewise.
16545         * tests/test-rijndael.c: Likewise.
16546         * tests/test-search.c: Likewise.
16547         * tests/test-signbit.c: Likewise.
16548         * tests/test-sleep.c: Likewise.
16549         * tests/test-snprintf-posix.c: Likewise.
16550         * tests/test-snprintf-posix.h: Likewise.
16551         * tests/test-snprintf.c: Likewise.
16552         * tests/test-sprintf-posix.c: Likewise.
16553         * tests/test-sprintf-posix.h: Likewise.
16554         * tests/test-stat-time.c: Likewise.
16555         * tests/test-stdbool.c: Likewise.
16556         * tests/test-stdint.c: Likewise.
16557         * tests/test-stdio.c: Likewise.
16558         * tests/test-stdlib.c: Likewise.
16559         * tests/test-stpncpy.c: Likewise.
16560         * tests/test-strcasestr.c: Likewise.
16561         * tests/test-striconv.c: Likewise.
16562         * tests/test-striconveh.c: Likewise.
16563         * tests/test-striconveha.c: Likewise.
16564         * tests/test-string.c: Likewise.
16565         * tests/test-sys_select.c: Likewise.
16566         * tests/test-sys_socket.c: Likewise.
16567         * tests/test-sys_stat.c: Likewise.
16568         * tests/test-sys_time.c: Likewise.
16569         * tests/test-sysexits.c: Likewise.
16570         * tests/test-time.c: Likewise.
16571         * tests/test-tls.c: Likewise.
16572         * tests/test-trunc.c: Likewise.
16573         * tests/test-truncf.c: Likewise.
16574         * tests/test-truncl.c: Likewise.
16575         * tests/test-unistd.c: Likewise.
16576         * tests/test-vasnprintf-posix.c: Likewise.
16577         * tests/test-vasnprintf-posix2.c: Likewise.
16578         * tests/test-vasnprintf.c: Likewise.
16579         * tests/test-vasprintf-posix.c: Likewise.
16580         * tests/test-vasprintf.c: Likewise.
16581         * tests/test-verify.c: Likewise.
16582         * tests/test-vfprintf-posix.c: Likewise.
16583         * tests/test-vprintf-posix.c: Likewise.
16584         * tests/test-vsnprintf-posix.c: Likewise.
16585         * tests/test-vsnprintf.c: Likewise.
16586         * tests/test-vsprintf-posix.c: Likewise.
16587         * tests/test-wchar.c: Likewise.
16588         * tests/test-wctype.c: Likewise.
16589         * tests/test-wcwidth.c: Likewise.
16590         * tests/test-xstrtol.c: Likewise.
16591         * tests/test-xvasprintf.c: Likewise.
16592         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
16593         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
16594         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
16595         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
16596         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
16597         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
16598         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
16599         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
16600         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
16601         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
16602         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
16603         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
16604         * tests/uniname/test-uninames.c: Likewise.
16605         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
16606         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
16607         * tests/unistdio/test-u16-printf1.h: Likewise.
16608         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
16609         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
16610         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
16611         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
16612         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
16613         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
16614         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
16615         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
16616         * tests/unistdio/test-u32-printf1.h: Likewise.
16617         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
16618         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
16619         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
16620         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
16621         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
16622         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
16623         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
16624         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
16625         * tests/unistdio/test-u8-printf1.h: Likewise.
16626         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
16627         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
16628         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
16629         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
16630         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
16631         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
16632         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
16633         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
16634         * tests/unistdio/test-ulc-printf1.h: Likewise.
16635         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
16636         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
16637         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
16638         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
16639         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
16640         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
16641         * tests/uniwidth/test-u16-strwidth.c: Likewise.
16642         * tests/uniwidth/test-u16-width.c: Likewise.
16643         * tests/uniwidth/test-u32-strwidth.c: Likewise.
16644         * tests/uniwidth/test-u32-width.c: Likewise.
16645         * tests/uniwidth/test-u8-strwidth.c: Likewise.
16646         * tests/uniwidth/test-u8-width.c: Likewise.
16647         * tests/uniwidth/test-uc_width.c: Likewise.
16648         * config/srclist-update: Likewise.
16649         (fixlicense): Update to GPLv3+.
16650
16651         Change copyright notice from LGPLv2.1+ to LGPLv3+.
16652         * tests/test-tsearch.c: Change copyright notice.
16653
16654         Change copyright notice from LGPLv2.0+ to LGPLv3+.
16655         * lib/c-strcaseeq.h: Change copyright notice.
16656         * lib/streq.h: Likewise.
16657         * lib/uniconv.h: Likewise.
16658         * lib/uniconv/u-conv-from-enc.h: Likewise.
16659         * lib/uniconv/u-conv-to-enc.h: Likewise.
16660         * lib/uniconv/u-strconv-from-enc.h: Likewise.
16661         * lib/uniconv/u-strconv-to-enc.h: Likewise.
16662         * lib/uniconv/u16-conv-from-enc.c: Likewise.
16663         * lib/uniconv/u16-conv-to-enc.c: Likewise.
16664         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
16665         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
16666         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
16667         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
16668         * lib/uniconv/u32-conv-from-enc.c: Likewise.
16669         * lib/uniconv/u32-conv-to-enc.c: Likewise.
16670         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
16671         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
16672         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
16673         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
16674         * lib/uniconv/u8-conv-from-enc.c: Likewise.
16675         * lib/uniconv/u8-conv-to-enc.c: Likewise.
16676         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
16677         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
16678         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
16679         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
16680         * lib/uniname.h: Likewise.
16681         * lib/uniname/uniname.c: Likewise.
16682         * lib/unistdio.h: Likewise.
16683         * lib/unistdio/u-asnprintf.h: Likewise.
16684         * lib/unistdio/u-asprintf.h: Likewise.
16685         * lib/unistdio/u-printf-args.c: Likewise.
16686         * lib/unistdio/u-printf-args.h: Likewise.
16687         * lib/unistdio/u-printf-parse.h: Likewise.
16688         * lib/unistdio/u-snprintf.h: Likewise.
16689         * lib/unistdio/u-sprintf.h: Likewise.
16690         * lib/unistdio/u-vasprintf.h: Likewise.
16691         * lib/unistdio/u-vsnprintf.h: Likewise.
16692         * lib/unistdio/u-vsprintf.h: Likewise.
16693         * lib/unistdio/u16-asnprintf.c: Likewise.
16694         * lib/unistdio/u16-asprintf.c: Likewise.
16695         * lib/unistdio/u16-printf-parse.c: Likewise.
16696         * lib/unistdio/u16-snprintf.c: Likewise.
16697         * lib/unistdio/u16-sprintf.c: Likewise.
16698         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
16699         * lib/unistdio/u16-u16-asprintf.c: Likewise.
16700         * lib/unistdio/u16-u16-snprintf.c: Likewise.
16701         * lib/unistdio/u16-u16-sprintf.c: Likewise.
16702         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
16703         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
16704         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
16705         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
16706         * lib/unistdio/u16-vasnprintf.c: Likewise.
16707         * lib/unistdio/u16-vasprintf.c: Likewise.
16708         * lib/unistdio/u16-vsnprintf.c: Likewise.
16709         * lib/unistdio/u16-vsprintf.c: Likewise.
16710         * lib/unistdio/u32-asnprintf.c: Likewise.
16711         * lib/unistdio/u32-asprintf.c: Likewise.
16712         * lib/unistdio/u32-printf-parse.c: Likewise.
16713         * lib/unistdio/u32-snprintf.c: Likewise.
16714         * lib/unistdio/u32-sprintf.c: Likewise.
16715         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
16716         * lib/unistdio/u32-u32-asprintf.c: Likewise.
16717         * lib/unistdio/u32-u32-snprintf.c: Likewise.
16718         * lib/unistdio/u32-u32-sprintf.c: Likewise.
16719         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
16720         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
16721         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
16722         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
16723         * lib/unistdio/u32-vasnprintf.c: Likewise.
16724         * lib/unistdio/u32-vasprintf.c: Likewise.
16725         * lib/unistdio/u32-vsnprintf.c: Likewise.
16726         * lib/unistdio/u32-vsprintf.c: Likewise.
16727         * lib/unistdio/u8-asnprintf.c: Likewise.
16728         * lib/unistdio/u8-asprintf.c: Likewise.
16729         * lib/unistdio/u8-printf-parse.c: Likewise.
16730         * lib/unistdio/u8-snprintf.c: Likewise.
16731         * lib/unistdio/u8-sprintf.c: Likewise.
16732         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
16733         * lib/unistdio/u8-u8-asprintf.c: Likewise.
16734         * lib/unistdio/u8-u8-snprintf.c: Likewise.
16735         * lib/unistdio/u8-u8-sprintf.c: Likewise.
16736         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
16737         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
16738         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
16739         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
16740         * lib/unistdio/u8-vasnprintf.c: Likewise.
16741         * lib/unistdio/u8-vasprintf.c: Likewise.
16742         * lib/unistdio/u8-vsnprintf.c: Likewise.
16743         * lib/unistdio/u8-vsprintf.c: Likewise.
16744         * lib/unistdio/ulc-asnprintf.c: Likewise.
16745         * lib/unistdio/ulc-asprintf.c: Likewise.
16746         * lib/unistdio/ulc-printf-parse.c: Likewise.
16747         * lib/unistdio/ulc-snprintf.c: Likewise.
16748         * lib/unistdio/ulc-sprintf.c: Likewise.
16749         * lib/unistdio/ulc-vasnprintf.c: Likewise.
16750         * lib/unistdio/ulc-vasprintf.c: Likewise.
16751         * lib/unistdio/ulc-vsnprintf.c: Likewise.
16752         * lib/unistdio/ulc-vsprintf.c: Likewise.
16753         * lib/unistr.h: Likewise.
16754         * lib/unistr/u-cpy-alloc.h: Likewise.
16755         * lib/unistr/u-cpy.h: Likewise.
16756         * lib/unistr/u-endswith.h: Likewise.
16757         * lib/unistr/u-move.h: Likewise.
16758         * lib/unistr/u-set.h: Likewise.
16759         * lib/unistr/u-startswith.h: Likewise.
16760         * lib/unistr/u-stpcpy.h: Likewise.
16761         * lib/unistr/u-stpncpy.h: Likewise.
16762         * lib/unistr/u-strcat.h: Likewise.
16763         * lib/unistr/u-strcpy.h: Likewise.
16764         * lib/unistr/u-strcspn.h: Likewise.
16765         * lib/unistr/u-strdup.h: Likewise.
16766         * lib/unistr/u-strlen.h: Likewise.
16767         * lib/unistr/u-strncat.h: Likewise.
16768         * lib/unistr/u-strncpy.h: Likewise.
16769         * lib/unistr/u-strnlen.h: Likewise.
16770         * lib/unistr/u-strpbrk.h: Likewise.
16771         * lib/unistr/u-strspn.h: Likewise.
16772         * lib/unistr/u-strstr.h: Likewise.
16773         * lib/unistr/u-strtok.h: Likewise.
16774         * lib/unistr/u16-check.c: Likewise.
16775         * lib/unistr/u16-chr.c: Likewise.
16776         * lib/unistr/u16-cmp.c: Likewise.
16777         * lib/unistr/u16-cpy-alloc.c: Likewise.
16778         * lib/unistr/u16-cpy.c: Likewise.
16779         * lib/unistr/u16-endswith.c: Likewise.
16780         * lib/unistr/u16-mblen.c: Likewise.
16781         * lib/unistr/u16-mbsnlen.c: Likewise.
16782         * lib/unistr/u16-mbtouc-aux.c: Likewise.
16783         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
16784         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
16785         * lib/unistr/u16-mbtouc.c: Likewise.
16786         * lib/unistr/u16-mbtoucr.c: Likewise.
16787         * lib/unistr/u16-move.c: Likewise.
16788         * lib/unistr/u16-next.c: Likewise.
16789         * lib/unistr/u16-prev.c: Likewise.
16790         * lib/unistr/u16-set.c: Likewise.
16791         * lib/unistr/u16-startswith.c: Likewise.
16792         * lib/unistr/u16-stpcpy.c: Likewise.
16793         * lib/unistr/u16-stpncpy.c: Likewise.
16794         * lib/unistr/u16-strcat.c: Likewise.
16795         * lib/unistr/u16-strchr.c: Likewise.
16796         * lib/unistr/u16-strcmp.c: Likewise.
16797         * lib/unistr/u16-strcpy.c: Likewise.
16798         * lib/unistr/u16-strcspn.c: Likewise.
16799         * lib/unistr/u16-strdup.c: Likewise.
16800         * lib/unistr/u16-strlen.c: Likewise.
16801         * lib/unistr/u16-strmblen.c: Likewise.
16802         * lib/unistr/u16-strmbtouc.c: Likewise.
16803         * lib/unistr/u16-strncat.c: Likewise.
16804         * lib/unistr/u16-strncmp.c: Likewise.
16805         * lib/unistr/u16-strncpy.c: Likewise.
16806         * lib/unistr/u16-strnlen.c: Likewise.
16807         * lib/unistr/u16-strpbrk.c: Likewise.
16808         * lib/unistr/u16-strrchr.c: Likewise.
16809         * lib/unistr/u16-strspn.c: Likewise.
16810         * lib/unistr/u16-strstr.c: Likewise.
16811         * lib/unistr/u16-strtok.c: Likewise.
16812         * lib/unistr/u16-to-u32.c: Likewise.
16813         * lib/unistr/u16-to-u8.c: Likewise.
16814         * lib/unistr/u16-uctomb-aux.c: Likewise.
16815         * lib/unistr/u16-uctomb.c: Likewise.
16816         * lib/unistr/u32-check.c: Likewise.
16817         * lib/unistr/u32-chr.c: Likewise.
16818         * lib/unistr/u32-cmp.c: Likewise.
16819         * lib/unistr/u32-cpy-alloc.c: Likewise.
16820         * lib/unistr/u32-cpy.c: Likewise.
16821         * lib/unistr/u32-endswith.c: Likewise.
16822         * lib/unistr/u32-mblen.c: Likewise.
16823         * lib/unistr/u32-mbsnlen.c: Likewise.
16824         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
16825         * lib/unistr/u32-mbtouc.c: Likewise.
16826         * lib/unistr/u32-mbtoucr.c: Likewise.
16827         * lib/unistr/u32-move.c: Likewise.
16828         * lib/unistr/u32-next.c: Likewise.
16829         * lib/unistr/u32-prev.c: Likewise.
16830         * lib/unistr/u32-set.c: Likewise.
16831         * lib/unistr/u32-startswith.c: Likewise.
16832         * lib/unistr/u32-stpcpy.c: Likewise.
16833         * lib/unistr/u32-stpncpy.c: Likewise.
16834         * lib/unistr/u32-strcat.c: Likewise.
16835         * lib/unistr/u32-strchr.c: Likewise.
16836         * lib/unistr/u32-strcmp.c: Likewise.
16837         * lib/unistr/u32-strcpy.c: Likewise.
16838         * lib/unistr/u32-strcspn.c: Likewise.
16839         * lib/unistr/u32-strdup.c: Likewise.
16840         * lib/unistr/u32-strlen.c: Likewise.
16841         * lib/unistr/u32-strmblen.c: Likewise.
16842         * lib/unistr/u32-strmbtouc.c: Likewise.
16843         * lib/unistr/u32-strncat.c: Likewise.
16844         * lib/unistr/u32-strncmp.c: Likewise.
16845         * lib/unistr/u32-strncpy.c: Likewise.
16846         * lib/unistr/u32-strnlen.c: Likewise.
16847         * lib/unistr/u32-strpbrk.c: Likewise.
16848         * lib/unistr/u32-strrchr.c: Likewise.
16849         * lib/unistr/u32-strspn.c: Likewise.
16850         * lib/unistr/u32-strstr.c: Likewise.
16851         * lib/unistr/u32-strtok.c: Likewise.
16852         * lib/unistr/u32-to-u16.c: Likewise.
16853         * lib/unistr/u32-to-u8.c: Likewise.
16854         * lib/unistr/u32-uctomb.c: Likewise.
16855         * lib/unistr/u8-check.c: Likewise.
16856         * lib/unistr/u8-chr.c: Likewise.
16857         * lib/unistr/u8-cmp.c: Likewise.
16858         * lib/unistr/u8-cpy-alloc.c: Likewise.
16859         * lib/unistr/u8-cpy.c: Likewise.
16860         * lib/unistr/u8-endswith.c: Likewise.
16861         * lib/unistr/u8-mblen.c: Likewise.
16862         * lib/unistr/u8-mbsnlen.c: Likewise.
16863         * lib/unistr/u8-mbtouc-aux.c: Likewise.
16864         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
16865         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
16866         * lib/unistr/u8-mbtouc.c: Likewise.
16867         * lib/unistr/u8-mbtoucr.c: Likewise.
16868         * lib/unistr/u8-move.c: Likewise.
16869         * lib/unistr/u8-next.c: Likewise.
16870         * lib/unistr/u8-prev.c: Likewise.
16871         * lib/unistr/u8-set.c: Likewise.
16872         * lib/unistr/u8-startswith.c: Likewise.
16873         * lib/unistr/u8-stpcpy.c: Likewise.
16874         * lib/unistr/u8-stpncpy.c: Likewise.
16875         * lib/unistr/u8-strcat.c: Likewise.
16876         * lib/unistr/u8-strchr.c: Likewise.
16877         * lib/unistr/u8-strcmp.c: Likewise.
16878         * lib/unistr/u8-strcpy.c: Likewise.
16879         * lib/unistr/u8-strcspn.c: Likewise.
16880         * lib/unistr/u8-strdup.c: Likewise.
16881         * lib/unistr/u8-strlen.c: Likewise.
16882         * lib/unistr/u8-strmblen.c: Likewise.
16883         * lib/unistr/u8-strmbtouc.c: Likewise.
16884         * lib/unistr/u8-strncat.c: Likewise.
16885         * lib/unistr/u8-strncmp.c: Likewise.
16886         * lib/unistr/u8-strncpy.c: Likewise.
16887         * lib/unistr/u8-strnlen.c: Likewise.
16888         * lib/unistr/u8-strpbrk.c: Likewise.
16889         * lib/unistr/u8-strrchr.c: Likewise.
16890         * lib/unistr/u8-strspn.c: Likewise.
16891         * lib/unistr/u8-strstr.c: Likewise.
16892         * lib/unistr/u8-strtok.c: Likewise.
16893         * lib/unistr/u8-to-u16.c: Likewise.
16894         * lib/unistr/u8-to-u32.c: Likewise.
16895         * lib/unistr/u8-uctomb-aux.c: Likewise.
16896         * lib/unistr/u8-uctomb.c: Likewise.
16897         * lib/unitypes.h: Likewise.
16898         * lib/uniwidth.h: Likewise.
16899         * lib/uniwidth/cjk.h: Likewise.
16900         * lib/uniwidth/u16-strwidth.c: Likewise.
16901         * lib/uniwidth/u16-width.c: Likewise.
16902         * lib/uniwidth/u32-strwidth.c: Likewise.
16903         * lib/uniwidth/u32-width.c: Likewise.
16904         * lib/uniwidth/u8-strwidth.c: Likewise.
16905         * lib/uniwidth/u8-width.c: Likewise.
16906         * lib/uniwidth/width.c: Likewise.
16907
16908 2007-10-07  Bruno Haible  <bruno@clisp.org>
16909
16910         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
16911         The file is still under LGPL (see modules/inttypes).
16912
16913 2007-10-06  Bruno Haible  <bruno@clisp.org>
16914
16915         * modules/trunc (Dependencies): Add 'extensions'.
16916         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
16917         Reported by Ben Pfaff <blp@gnu.org>.
16918
16919 2007-10-06  Bruno Haible  <bruno@clisp.org>
16920
16921         * modules/freopen-tests: New file.
16922         * tests/test-freopen.c: New file.
16923
16924         * modules/fopen-tests: New file.
16925         * tests/test-fopen.c: New file.
16926
16927         * modules/fopen: New file.
16928         * lib/fopen.c: New file.
16929         * m4/fopen.m4: New file.
16930         * modules/freopen: New file.
16931         * lib/freopen.c: New file.
16932         * m4/freopen.m4: New file.
16933         * lib/stdio.in.h (fopen, freopen): New declarations.
16934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
16935         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
16936         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
16937         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
16938         * doc/functions/fopen.texi: Mention the 'fopen' module.
16939         * doc/functions/freopen.texi: Mention the 'freopen' module.
16940
16941 2007-10-06  Bruno Haible  <bruno@clisp.org>
16942
16943         * modules/open-tests: New file.
16944         * tests/test-open.c: New file.
16945
16946         * modules/open: New file.
16947         * lib/open.c: New file.
16948         * m4/open.m4: New file.
16949         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
16950         lib/open.c does.
16951         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
16952         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
16953         macros.
16954         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
16955         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
16956         REPLACE_OPEN.
16957         * doc/functions/open.texi: Mention the 'open' module.
16958
16959 2007-10-04  Bruno Haible  <bruno@clisp.org>
16960
16961         * modules/ceill-tests: New file.
16962         * tests/test-ceill.c: New file.
16963
16964         * modules/ceill: New file.
16965         * lib/ceill.c: Replace entire file.
16966         * m4/ceill.m4: New file.
16967         * lib/math.in.h (ceill): Replace declaration.
16968         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
16969         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
16970         * doc/functions/ceill.texi: Mention the 'ceill' module.
16971         * modules/mathl (Files): Remove lib/ceill.c.
16972         (Depends-on): Add ceill.
16973
16974 2007-10-04  Bruno Haible  <bruno@clisp.org>
16975
16976         * modules/ceilf-tests: New file.
16977         * tests/test-ceilf.c: New file.
16978
16979         * modules/ceilf: New file.
16980         * lib/ceil.c: New file.
16981         * lib/ceilf.c: New file.
16982         * m4/ceilf.m4: New file.
16983         * lib/math.in.h (ceilf): New declaration.
16984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
16985         HAVE_DECL_CEILF.
16986         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
16987         HAVE_DECL_CEILF.
16988         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
16989
16990 2007-10-04  Bruno Haible  <bruno@clisp.org>
16991
16992         * modules/floorl-tests: New file.
16993         * tests/test-floorl.c: New file.
16994
16995         * modules/floorl: New file.
16996         * lib/floorl.c: Replace entire file.
16997         * m4/floorl.m4: New file.
16998         * lib/math.in.h (floorl): Replace declaration.
16999         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
17000         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
17001         * doc/functions/floorl.texi: Mention the 'floorl' module.
17002         * modules/mathl (Files): Remove lib/floorl.c.
17003         (Depends-on): Add floorl.
17004
17005 2007-10-04  Bruno Haible  <bruno@clisp.org>
17006
17007         * modules/floorf-tests: New file.
17008         * tests/test-floorf.c: New file.
17009
17010         * modules/floorf: New file.
17011         * lib/floor.c: New file.
17012         * lib/floorf.c: New file.
17013         * m4/floorf.m4: New file.
17014         * lib/math.in.h (floorf): New declaration.
17015         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
17016         HAVE_DECL_FLOORF.
17017         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
17018         HAVE_DECL_FLOORF.
17019         * doc/functions/floorf.texi: Mention the 'floorf' module.
17020
17021 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
17022             Bruno Haible  <bruno@clisp.org>
17023
17024         Advertise for the Git server instead of the CVS server.
17025         * doc/gnulib-intro.texi (Steady Development): Mention the Git
17026         repository instead of the CVS one.
17027         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
17028         about all VCS systems generically.
17029         * doc/gnulib.texi (Introduction): Capitalize `Git'.
17030
17031 2007-10-04  Bruno Haible  <bruno@clisp.org>
17032
17033         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
17034         means.
17035         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
17036
17037 2007-10-04  Bruno Haible  <bruno@clisp.org>
17038
17039         * modules/truncl-tests: New file.
17040         * tests/test-truncl.c: New file.
17041
17042         * modules/truncl: New file.
17043         * lib/truncl.c: New file.
17044         * m4/truncl.m4: New file.
17045         * lib/math.in.h (truncl): New declaration.
17046         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
17047         HAVE_DECL_TRUNCL.
17048         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
17049         HAVE_DECL_TRUNCL.
17050         * doc/functions/truncl.texi: Mention the 'truncl' module.
17051
17052 2007-10-04  Bruno Haible  <bruno@clisp.org>
17053
17054         * modules/truncf-tests: New file.
17055         * tests/test-truncf.c: New file.
17056
17057         * modules/truncf: New file.
17058         * lib/trunc.c: Make paramerizable through USE_* macros.
17059         * lib/truncf.c: New file.
17060         * m4/truncf.m4: New file.
17061         * lib/math.in.h (truncf): New declaration.
17062         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
17063         HAVE_DECL_TRUNCF.
17064         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
17065         HAVE_DECL_TRUNCF.
17066         * doc/functions/truncf.texi: Mention the 'truncf' module.
17067
17068 2007-10-03  Bruno Haible  <bruno@clisp.org>
17069
17070         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
17071         augmentation also for tests modules.
17072         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
17073         * modules/atexit-tests (Makefile.am): Likewise.
17074         * modules/binary-io-tests (Makefile.am): Likewise.
17075         * modules/c-strcase-tests (Makefile.am): Likewise.
17076         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
17077         * modules/canonicalize-tests (Makefile.am): Likewise.
17078         * modules/closein-tests (Makefile.am): Likewise.
17079         * modules/fprintf-posix-tests (Makefile.am): Likewise.
17080         * modules/freadahead-tests (Makefile.am): Likewise.
17081         * modules/fseek-tests (Makefile.am): Likewise.
17082         * modules/fseeko-tests (Makefile.am): Likewise.
17083         * modules/ftell-tests (Makefile.am): Likewise.
17084         * modules/ftello-tests (Makefile.am): Likewise.
17085         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
17086         * modules/isnanl-tests (Makefile.am): Likewise.
17087         * modules/lseek-tests (Makefile.am): Likewise.
17088         * modules/mbscasecmp-tests (Makefile.am): Likewise.
17089         * modules/mbscasestr-tests (Makefile.am): Likewise.
17090         * modules/mbschr-tests (Makefile.am): Likewise.
17091         * modules/mbscspn-tests (Makefile.am): Likewise.
17092         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
17093         * modules/mbspbrk-tests (Makefile.am): Likewise.
17094         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
17095         * modules/mbsrchr-tests (Makefile.am): Likewise.
17096         * modules/mbsspn-tests (Makefile.am): Likewise.
17097         * modules/mbsstr-tests (Makefile.am): Likewise.
17098         * modules/printf-posix-tests (Makefile.am): Likewise.
17099         * modules/snprintf-posix-tests (Makefile.am): Likewise.
17100         * modules/sprintf-posix-tests (Makefile.am): Likewise.
17101         * modules/tsearch-tests (Makefile.am): Likewise.
17102         * modules/uniname/uniname-tests (Makefile.am): Likewise.
17103         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
17104         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
17105         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
17106         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
17107         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
17108         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
17109         * modules/vprintf-posix-tests (Makefile.am): Likewise.
17110         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
17111         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
17112         * modules/xstrtoimax-tests (Makefile.am): Likewise.
17113         * modules/xstrtol-tests (Makefile.am): Likewise.
17114         * modules/xstrtoumax-tests (Makefile.am): Likewise.
17115         * modules/yesno-tests (Makefile.am): Likewise.
17116
17117 2007-10-03  Bruno Haible  <bruno@clisp.org>
17118
17119         * modules/trunc-tests: New file.
17120         * tests/test-trunc.c: New file.
17121
17122         * modules/trunc: New file.
17123         * lib/trunc.c: New file.
17124         * m4/trunc.m4: New file.
17125         * lib/math.in.h (trunc): New declaration.
17126         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
17127         HAVE_DECL_TRUNC.
17128         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
17129         HAVE_DECL_TRUNC.
17130         * doc/functions/trunc.texi: Mention the 'trunc' module.
17131
17132 2007-10-03  Bruno Haible  <bruno@clisp.org>
17133
17134         * tests/test-fpending.c: New file, mostly copied
17135         from coreutils/lib/t-fpending.c.
17136         * modules/fpending-tests: New file.
17137
17138 2007-10-03  Bruno Haible  <bruno@clisp.org>
17139
17140         Port the stdio extensions to QNX (untested).
17141         * lib/fseterr.c (fseterr): Add support for QNX.
17142         * lib/fbufmode.c (fbufmode): Likewise.
17143         * lib/freadable.c (freadable): Likewise.
17144         * lib/fwritable.c (fwritable): Likewise.
17145         * lib/freading.c (freading): Likewise.
17146         * lib/fwriting.c (fwriting): Likewise.
17147         * lib/freadahead.c (freadahed): Likewise.
17148         * lib/fpurge.c (fpurge): Likewise.
17149         * lib/fseeko.c (rpl_fseeko): Likewise.
17150
17151 2007-10-03  Bruno Haible  <bruno@clisp.org>
17152             Jim Meyering  <jim@meyering.net>
17153             Eric Blake  <ebb9@byu.net>
17154
17155         * doc/relocatable.texi: Use @command instead of @program.
17156
17157 2007-10-02  Jim Meyering  <jim@meyering.net>
17158
17159         Perform one more "_.h" -> ".in.h" substitution.
17160         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
17161         instead of unistd_.h here, too.
17162
17163 2007-10-01  Bruno Haible  <bruno@clisp.org>
17164
17165         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
17166         Needed for the alloca-opt module.
17167
17168 2007-09-30  Bruno Haible  <bruno@clisp.org>
17169
17170         * lib/alloca.in.h: Renamed from lib/alloca_.h.
17171         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
17172         alloca_.h.
17173         * lib/argz.in.h: Renamed from lib/argz_.h.
17174         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
17175         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
17176         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
17177         byteswap_.h.
17178         * lib/dirent.in.h: Renamed from lib/dirent_.h.
17179         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
17180         dirent_.h.
17181         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
17182         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
17183         fcntl_.h.
17184         * lib/float.in.h: Renamed from lib/float_.h.
17185         * modules/float (Files, Makefile.am): Use float.in.h instead of
17186         float_.h.
17187         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
17188         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
17189         fnmatch_.h.
17190         * lib/getopt.in.h: Renamed from lib/getopt_.h.
17191         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
17192         getopt_.h.
17193         * lib/glob.in.h: Renamed from lib/glob_.h.
17194         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
17195         * lib/iconv.in.h: Renamed from lib/iconv_.h.
17196         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
17197         iconv_.h.
17198         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
17199         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
17200         inttypes_.h.
17201         * lib/locale.in.h: Renamed from lib/locale_.h.
17202         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
17203         locale_.h.
17204         * lib/math.in.h: Renamed from lib/math_.h.
17205         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
17206         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
17207         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
17208         of netinet_in_.h. Add dependency.
17209         * lib/poll.in.h: Renamed from lib/poll_.h.
17210         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
17211         * lib/search.in.h: Renamed from lib/search_.h.
17212         * modules/search (Files, Makefile.am): Use search.in.h instead of
17213         search_.h.
17214         * lib/signal.in.h: Renamed from lib/signal_.h.
17215         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
17216         _signal.h.
17217         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
17218         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
17219         stdbool_.h.
17220         * lib/stdint.in.h: Renamed from lib/stdint_.h.
17221         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
17222         stdint_.h.
17223         * lib/stdio.in.h: Renamed from lib/stdio_.h.
17224         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
17225         stdio_.h.
17226         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
17227         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
17228         stdlib_.h.
17229         * lib/string.in.h: Renamed from lib/string_.h.
17230         * modules/string (Files, Makefile.am): Use string.in.h instead of
17231         string_.h.
17232         * doc/gnulib-tool.texi (Initial import): Update.
17233         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
17234         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
17235         of sys_select_.h. Add dependency.
17236         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
17237         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
17238         of sys_socket_.h.
17239         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
17240         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
17241         sys_stat_.h.
17242         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
17243         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
17244         sys_time_.h.
17245         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
17246         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
17247         sysexits_.h.
17248         * lib/time.in.h: Renamed from lib/time_.h.
17249         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
17250         * lib/unistd.in.h: Renamed from lib/unistd_.h.
17251         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
17252         unistd_.h.
17253         * lib/wchar.in.h: Renamed from lib/wchar_.h.
17254         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
17255         wchar_.h.
17256         * lib/wctype.in.h: Renamed from lib/wctype_.h.
17257         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
17258         wctype_.h.
17259         * build-aux/bootstrap (slurp): Update.
17260         * lib/.cppi-disable: Update.
17261
17262 2007-09-30  Bruno Haible  <bruno@clisp.org>
17263
17264         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
17265         Needed on BeOS.
17266
17267 2007-09-30  Bruno Haible  <bruno@clisp.org>
17268
17269         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
17270
17271 2007-09-29  Bruno Haible  <bruno@clisp.org>
17272
17273         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
17274
17275 2007-09-29  Bruno Haible  <bruno@clisp.org>
17276
17277         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
17278         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
17279         * build-aux/install-reloc: Compile also areadlink.c.
17280         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
17281
17282 2007-09-29  Bruno Haible  <bruno@clisp.org>
17283
17284         * gnulib-tool (func_emit_initmacro_done): Indentation.
17285
17286 2007-09-29  Bruno Haible  <bruno@clisp.org>
17287
17288         * README: Add CVS checkout update instructions.
17289         Info from Bob Proulx <bob@proulx.com>.
17290
17291 2007-09-28  Eric Blake  <ebb9@byu.net>
17292
17293         Provide move-if-change.
17294         * build-aux/move-if-change: New file, based on best practice
17295         rather than any canonical upstream location.
17296
17297 2007-09-28  Jim Meyering  <jim@meyering.net>
17298
17299         Fix canonicalize loop-detection corner case.
17300         Do not attempt to stat the symlink values stored via seen_triple.
17301         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
17302         on linux-2.6.18, (but not 2.6.22).
17303         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
17304         triple_compare.  The former compares dev,ino,filename, while the latter
17305         would actually stat dirname(filename) when dev and ino were equal.
17306         * lib/hash-triple.c: Install <string.h>.
17307         (STREQ): Define.
17308         (triple_compare_ino_str): New function.
17309         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
17310
17311 2007-09-28  Eric Blake  <ebb9@byu.net>
17312
17313         Enforce that AC_REPLACE_FUNCS files exist.
17314         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
17315         override check for typos.
17316
17317         Fix test-closein on Solaris 10.
17318         * tests/test-closein.c (main): Don't assume stdin can be inherited
17319         closed on all systems.
17320         * tests/test-closein.sh: Likewise.
17321         Reported by Piotr Tarnowski.
17322
17323 2007-09-28  Jim Meyering  <jim@meyering.net>
17324
17325         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
17326
17327 2007-09-27  Jim Meyering  <jim@meyering.net>
17328
17329         canonicalize: Avoid a false-positive cycle failure.
17330         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
17331         Sort.  Remove cycle-check.
17332         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
17333         not cycle-check.h.
17334         (seen_triple): New function.
17335         (canonicalize_filename_mode): Use it instead of cycle-check.
17336         * tests/test-canonicalize.c: Add a test for this bug.
17337         * tests/test-canonicalize.sh: Set up and run the test.
17338
17339         New module, file-set, from coreutils.
17340         * modules/file-set: Define it.
17341         * lib/file-set.c, lib/file-set.h: Implement.
17342
17343         New module, hash-triple, from coreutils.
17344         * modules/hash-triple: Define it.
17345         * lib/hash-triple.c, lib/hash-triple.h: Implement.
17346
17347 2007-09-25  Eric Blake  <ebb9@byu.net>
17348
17349         Fix strerror on Interix.
17350         * lib/string_.h (strerror): Declare replacement.
17351         * doc/functions/strerror.texi (strerror): Document the Interix
17352         shortcoming.
17353         * modules/string (Makefile.am): Support new hooks.
17354         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
17355         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
17356         gl_FUNC_STRERROR_SEPARATE.
17357         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
17358         * lib/strerror.c (rpl_strerror): Provide replacement.
17359         * modules/strerror (Depends-on): Add string.
17360         (configure.ac): Detect use of module.
17361         * tests/test-strerror.c: New file.
17362         * modules/strerror-tests: New test module.
17363         * modules/argp (Depends-on): Add strerror.
17364         * modules/error (Depends-on): Likewise.
17365         Reported by Martin Koeppe.
17366
17367 2007-09-24  Bruno Haible  <bruno@clisp.org>
17368
17369         * README: Update git instructions.
17370
17371 2007-09-24  Eric Blake  <ebb9@byu.net>
17372
17373         Revert fpending breakage from 2007-09-08.
17374         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
17375         __fpending.c.
17376
17377 2007-09-24  Jim Meyering  <jim@meyering.net>
17378
17379         filenamecat.c: Add a test.
17380         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
17381         showing how the function works when DIR is the empty string.
17382
17383 2007-09-21  Simon Josefsson  <simon@josefsson.org>
17384
17385         * tests/test-canonicalize.sh: Turn on executable bit.
17386
17387 2007-09-19  Eric Blake  <ebb9@byu.net>
17388
17389         * README: Update CVS instructions.
17390
17391 2007-09-18  Bruno Haible  <bruno@clisp.org>
17392
17393         * modules/areadlink: New file.
17394         * lib/areadlink.h (areadlink): New declaration.
17395         * lib/areadlink.c: New file, based on lib/xreadlink.c.
17396
17397 2007-09-17  Jim Meyering  <jim@meyering.net>
17398
17399         * lib/savewd.c (ESTALE) [!defined]: Define.
17400         Reported to be required on Interix by Martin Koeppe.
17401
17402 2007-09-17  Bruno Haible  <bruno@clisp.org>
17403
17404         * gnulib-tool (func_version): Use $version.
17405
17406 2007-09-16  Bruno Haible  <bruno@clisp.org>
17407
17408         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
17409         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
17410         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
17411         Reported by Greg Schafer <gschafer@zip.com.au>.
17412
17413 2007-09-15  Bruno Haible  <bruno@clisp.org>
17414
17415         * gnulib-tool (sed): Try a little harder to make bash understand the
17416         alias.
17417         Reported by Bruce Korb <bruce.korb@gmail.com>.
17418
17419 2007-09-13  Eric Blake  <ebb9@byu.net>
17420
17421         * ChangeLog: Remove conflict markers.
17422
17423 2007-09-13  Simon Josefsson  <simon@josefsson.org>
17424
17425         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
17426         Reported by Bruno Haible <bruno@clisp.org>.
17427
17428 2007-09-12  Bruno Haible  <bruno@clisp.org>
17429
17430         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
17431         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
17432         is not defined.
17433
17434 2007-09-12  Eric Blake  <ebb9@byu.net>
17435
17436         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
17437         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
17438         Autoconf definition.
17439         * modules/euidaccess (Depends-on): Add extensions, for
17440         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
17441         * modules/fnmatch (Depends-on): Likewise.
17442         * modules/getaddrinfo (Depends-on): Likewise.
17443         * modules/getdelim (Depends-on): Likewise.
17444         * modules/getline (Depends-on): Likewise.
17445         * modules/getsubopt (Depends-on): Likewise.
17446         * modules/gettext (Depends-on): Likewise.
17447         * modules/group-member (Depends-on): Likewise.
17448         * modules/mbchar (Depends-on): Likewise.
17449         * modules/memmem (Depends-on): Likewise.
17450         * modules/mempcpy (Depends-on): Likewise.
17451         * modules/memrchr (Depends-on): Likewise.
17452         * modules/pagealign_alloc (Depends-on): Likewise.
17453         * modules/readutmp (Depends-on): Likewise.
17454         * modules/stpcpy (Depends-on): Likewise.
17455         * modules/stpncpy (Depends-on): Likewise.
17456         * modules/strchrnul (Depends-on): Likewise.
17457         * modules/strndup (Depends-on): Likewise.
17458         * modules/strsep (Depends-on): Likewise.
17459         * modules/strverscmp (Depends-on): Likewise.
17460         * modules/vasprintf (Depends-on): Likewise.
17461         * modules/wcwidth (Depends-on): Likewise.
17462         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
17463         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
17464         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
17465         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
17466         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17467         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17468         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
17469         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
17470         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
17471         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
17472         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17473         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
17474         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
17475         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
17476         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
17477         * m4/readutmp.m4 (gl_READUTMP): Likewise.
17478         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
17479         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
17480         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17481         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
17482         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
17483         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
17484         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
17485         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
17486         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
17487         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17488         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
17489         so that lock.m4 can be used in gettext without extensions module.
17490
17491 2007-09-11  Bruno Haible  <bruno@clisp.org>
17492
17493         * m4/isc-posix.m4: Remove file.
17494         Suggested by Eric Blake.
17495
17496 2007-09-11  Eric Blake  <ebb9@byu.net>
17497
17498         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
17499
17500 2007-09-10  Bruno Haible  <bruno@clisp.org>
17501
17502         * posix-modules: Fix typo in error message.
17503         Reported by Matt <mkraai@beckman.com>.
17504
17505 2007-09-09  Bruno Haible  <bruno@clisp.org>
17506
17507         * doc/functions/getdelim.texi: Update list of platforms lacking the
17508         function.
17509         * doc/functions/getline.texi: Likewise.
17510
17511 2007-09-09  Jim Meyering  <jim@meyering.net>
17512
17513         * lib/hash.c (hash_initialize): Detect calloc failure.
17514         Reported by Bruno Haible.
17515
17516 2007-09-09  Bruno Haible  <bruno@clisp.org>
17517
17518         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
17519         malloc or realloc fails.
17520
17521 2007-09-09  Bruno Haible  <bruno@clisp.org>
17522
17523         * modules/getcwd (Depends-on): Add malloc-posix.
17524         * modules/glob (Depends-on): Likewise.
17525         * modules/putenv (Depends-on): Likewise.
17526         * modules/strdup (Depends-on): Likewise.
17527         * modules/getdelim (Depends-on): Add realloc-posix.
17528         * modules/read-file (Depends-on): Likewise.
17529
17530 2007-09-09  Bruno Haible  <bruno@clisp.org>
17531
17532         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
17533         (gl_FUNC_MALLOC_POSIX): Require it.
17534         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
17535         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
17536         * modules/realloc (Files): Add m4/malloc.m4.
17537         * modules/calloc (Files): Likewise.
17538
17539 2007-09-09  Bruno Haible  <bruno@clisp.org>
17540
17541         * modules/malloc-posix: New file.
17542         * modules/malloc (Depends-on): Add malloc-posix.
17543         * lib/malloc.c: Include errno.h.
17544         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
17545         and a POSIX-compatible malloc into a single function. Set ENOMEM
17546         when returning NULL.
17547         * m4/malloc.m4: New file.
17548         * doc/functions/malloc.texi: Mention the malloc-posix module.
17549         * lib/stdlib_.h (malloc): New declaration.
17550         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17551         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
17552         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
17553         and HAVE_MALLOC_POSIX.
17554
17555 2007-09-09  Bruno Haible  <bruno@clisp.org>
17556
17557         * modules/realloc-posix: New file.
17558         * modules/realloc (Depends-on): Add realloc-posix.
17559         * lib/realloc.c: Include errno.h.
17560         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
17561         and a POSIX-compatible realloc into a single function. Set ENOMEM
17562         when returning NULL.
17563         * m4/realloc.m4: New file.
17564         * doc/functions/realloc.texi: Mention the realloc-posix module.
17565         * lib/stdlib_.h (realloc): New declaration.
17566         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17567         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
17568         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
17569         and HAVE_REALLOC_POSIX.
17570
17571 2007-09-09  Bruno Haible  <bruno@clisp.org>
17572
17573         * modules/calloc-posix: New file.
17574         * modules/calloc (Depends-on): Add calloc-posix.
17575         * lib/calloc.c: Include errno.h.
17576         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
17577         and a POSIX-compatible calloc into a single function. Set ENOMEM
17578         when returning NULL.
17579         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
17580         * doc/functions/calloc.texi: Mention the calloc-posix module.
17581         * lib/stdlib_.h (calloc): New declaration.
17582         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17583         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
17584         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
17585         and HAVE_CALLOC_POSIX.
17586
17587 2007-09-09  Bruno Haible  <bruno@clisp.org>
17588
17589         Allow for modules to show an arbitrary notice.
17590         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
17591         * gnulib-tool: New option --extract-notice.
17592         (func_usage): Document it.
17593         (sed_extract_prog): Update.
17594         (func_get_notice): New function.
17595         (func_modules_notice): New function.
17596         (func_import, func_create_testdir): Invoke it.
17597         Suggested by Jim Meyering.
17598
17599 2007-09-09  Bruno Haible  <bruno@clisp.org>
17600
17601         * gnulib-tool: New options --verbose, --quiet.
17602         (func_usage): Document them.
17603         (verbose): New variable.
17604         (func_execute_command): New function.
17605         (func_import): Don't show the module list and the file list if
17606         $verbose < 0.
17607         (func_create_testdir): Likewise. Use func_execute_command.
17608         (func_create_megatestdir): Use func_execute_command.
17609
17610 2007-09-08  Bruno Haible  <bruno@clisp.org>
17611
17612         * gnulib-tool (func_import): Prefer rsync over wget when available,
17613         for fetching the PO files.
17614
17615 2007-09-08  Bruno Haible  <bruno@clisp.org>
17616
17617         * posix-modules: New file. Portions copied from gnulib-tool.
17618         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
17619
17620 2007-09-08  Jim Meyering  <jim@meyering.net>
17621
17622         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
17623         * lib/fpending.h: Rename from __fpending.h.
17624         * lib/fpending.c: Rename from __fpending.c.
17625         Include "fpending.h", not "__fpending.h".
17626         * lib/__fpending.h, lib/__fpending.c: Remove files.
17627         * modules/fpending (Files): Reflect new file names.
17628         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
17629
17630 2007-09-08  Bruno Haible  <bruno@clisp.org>
17631
17632         * m4/inttypes-h.m4: Remove stub file.
17633
17634 2007-09-07  Simon Josefsson  <simon@josefsson.org>
17635
17636         * doc/headers/stdint.texi: Discuss #include_next issue.
17637
17638 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
17639
17640         * build-aux/bootstrap: Remove obsolete comment about wget --help.
17641
17642 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17643
17644         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
17645         in variable name.
17646
17647 2007-09-03  Jim Meyering  <jim@meyering.net>
17648
17649         New module: git-version-gen.
17650         * modules/git-version-gen: New file.
17651
17652         Import changes from coreutils for bootstrap script.
17653
17654         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
17655
17656         bootstrap: uses rsync to download the .po files
17657         * build-aux/bootstrap (po_download_command_format): New global.
17658         (download_po_files): Use rsync.
17659         (update_po_files): Don't remove .po files after download,
17660         so future rsync runs can take advantage of the copies.
17661
17662         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
17663
17664         Solve the unnecessary-.po-file-regeneration problem once and for all.
17665         * build-aux/bootstrap (download_po_files): New function, renamed from
17666         get_translations.  Now, downloads, but doesn't update LINGUAS.
17667         (update_po_files): New function.
17668
17669         bootstrap: Ignore more.
17670         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
17671         uniwidth to e.g., lib/.gitignore.
17672         (slurp): Handle the sys_stat_.h -> sys mapping, too.
17673
17674         * build-aux/bootstrap: New setting: vc_ignore.
17675         (insert_sorted_if_absent): Create $file if absent.
17676         Adapt to new, possibly empty, list: $vc_ignore.
17677
17678         bootstrap: generate more ignorable names
17679         * build-aux/bootstrap (slurp): When generating ignorable names,
17680         also map .sin to .sed, .gperf to .c, and .y to .c.
17681
17682 2007-09-03  Jim Meyering  <jim@meyering.net>
17683
17684         * build-aux/git-version-gen: New file, from coreutils.  For details, see
17685         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
17686
17687 2007-09-02  Bruno Haible  <bruno@clisp.org>
17688
17689         Fix mis-recognition of 'mcs' on QNX 6.
17690         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
17691         output contains the string "Mono".
17692         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
17693         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
17694
17695 2007-09-01  Bruno Haible  <bruno@clisp.org>
17696
17697         Fix collision between uniwidth/* and linebreak modules.
17698         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
17699         u32_width): Remove declarations.
17700         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
17701         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
17702         streq3, streq2, streq1, streq0): Remove functions.
17703         (STREQ): Remove macro.
17704         (is_cjk_encoding): Remove function.
17705         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
17706         (uc_width, u8_width, u16_width, u32_width): Remove functions.
17707         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
17708         * NEWS: Document the change.
17709
17710 2007-09-01  Bruno Haible  <bruno@clisp.org>
17711
17712         * lib/streq.h: Add double-inclusion guard.
17713
17714 2007-09-01  Karl Berry  <karl@gnu.org>
17715
17716         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
17717
17718 2007-08-28  Jim Meyering  <jim@meyering.net>
17719
17720         Rename mreadlink_with_size to areadlink_with_size.
17721         * NEWS: Document the change.
17722         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
17723         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
17724         * lib/mreadlink.h: Rename this to...
17725         * lib/areadlink.h: ...this.
17726         * modules/mreadlink-with-size: Rename this to...
17727         * modules/areadlink-with-size: ...this.
17728         * lib/canonicalize.c: Reflect the renaming.
17729         * modules/canonicalize: Likewise.
17730
17731 2007-08-26  Bruno Haible  <bruno@clisp.org>
17732
17733         * gnulib-tool (func_import): When deciding which files to remove,
17734         consider also dangling symbolic links.
17735         Reported by Eric Blake.
17736
17737 2007-08-26  Bruno Haible  <bruno@clisp.org>
17738
17739         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
17740
17741 2007-08-23  Simon Josefsson  <simon@josefsson.org>
17742
17743         * lib/readline.c: Don't include getline.h, the prototype is now
17744         found in stdio.h.
17745
17746 2007-08-23  Jim Meyering  <jim@meyering.net>
17747
17748         Getdelim touchup.
17749         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
17750         around the funlockfile call, since funlockfile never sets errno.
17751         Don't set errno upon failed realloc.
17752
17753 2007-08-22  Eric Blake  <ebb9@byu.net>
17754
17755         Getline touchups.
17756         * lib/getdelim.c (getdelim): Revert regression that required *n to
17757         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
17758         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
17759         getdelim, rather than whether implementation is missing.
17760         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
17761         * lib/stdio_.h (getline): Also declare if replacement is
17762         required.
17763         * doc/functions/getdelim.texi: New file.
17764         * doc/functions/getline.texi: Likewise.
17765         * doc/gnulib.texi (Function Substitutes): Add new files.
17766         Reported by Bruno Haible.
17767
17768 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
17769
17770         * users.txt: Add Guile.
17771
17772 2007-08-22  Eric Blake  <ebb9@byu.net>
17773
17774         * tests/test-getdelim.c (main): Use remove, not unlink.
17775         * tests/test-getline.c (main): Likewise.
17776
17777         Move getline and getdelim into stdio.h, per POSIX 200x.
17778         * modules/getline (Files): Remove getline.h.
17779         (Depends-on): Add stdio.
17780         (configure.ac): Add module indicator.
17781         * modules/getdelim (Files): Remove getdelim.h.
17782         (Depends-on): Add stdio.
17783         (configure.ac): Add module indicator.
17784         * modules/stdio (Makefile.am): Work with new indicators.
17785         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
17786         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
17787         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17788         * lib/getdelim.h: Delete.
17789         * lib/getline.h: Delete.
17790         * lib/stdio_.h (getdelim, getline): Declare.
17791         * modules/getdelim-tests: New module.
17792         * modules/getline-tests: Likewise.
17793         * tests/test-getdelim.c: New file.
17794         * tests/test-getline.c: Likewise.
17795         * NEWS: Document the change.
17796         * lib/getline.c: Update choice of header.
17797         * lib/csharpcomp.c: Likewise.
17798         * lib/getpass.c: Likewise.
17799         * lib/javacomp.c: Likewise.
17800         * lib/javaversion.c: Likewise.
17801         * lib/yesno.c: Likewise.
17802         * lib/getdelim.c: Likewise.
17803         (getdelim): Set errno on failure, and avoid memory leak.
17804
17805 2007-08-19  Bruno Haible  <bruno@clisp.org>
17806
17807         * modules/closein (Depends-on): Add freadahead.
17808         * lib/closein.c: Include freadahead.h.
17809         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
17810         is zero.
17811
17812 2007-08-19  Bruno Haible  <bruno@clisp.org>
17813
17814         * modules/freadahead-tests: New file.
17815         * tests/test-freadahead.sh: New file.
17816         * tests/test-freadahead.c: New file.
17817
17818         * modules/freadahead: New file.
17819         * lib/freadahead.h: New file.
17820         * lib/freadahead.c: New file.
17821         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
17822         fbufmode, fpurge, freadable, fwritable.
17823
17824 2007-08-19  Eric Blake  <ebb9@byu.net>
17825
17826         Test yesno in combination with closein.
17827         * lib/yesno.c (yesno): Document use of stdin.
17828         * modules/yesno-tests (Files): New module.
17829         * tests/test-yesno.c (main): New file.
17830         * tests/test-yesno.sh: Likewise.
17831
17832 2007-08-19  Bruno Haible  <bruno@clisp.org>
17833
17834         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
17835         * lib/fseeko.c (rpl_fseeko): Likewise.
17836         * lib/fseterr.c (fseterr): Likewise.
17837
17838 2007-08-19  Bruno Haible  <bruno@clisp.org>
17839
17840         * tests/test-lseek.c (main): Disable a test for BeOS.
17841         * doc/functions/lseek.texi: Document the BeOS bug.
17842
17843 2007-08-19  Bruno Haible  <bruno@clisp.org>
17844             Eric Blake  <ebb9@byu.net>
17845
17846         * lib/lseek.c: Include <sys/stat.h>.
17847         (rpl_lseek): Add workaround code also for Unix platforms.
17848         Needed for BeOS.
17849         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
17850         * doc/functions/lseek.texi: Document BeOS definiency.
17851
17852 2007-08-18  Bruno Haible  <bruno@clisp.org>
17853
17854         * modules/fstrcmp-tests: New file.
17855         * tests/test-fstrcmp.c: New file.
17856
17857 2007-08-18  Bruno Haible  <bruno@clisp.org>
17858
17859         * modules/fstrcmp: New file, from GNU gettext with modifications.
17860         * lib/fstrcmp.h: New file, from GNU gettext.
17861         * lib/fstrcmp.c: New file, from GNU gettext.
17862         * MODULES.html.sh (String handling): Add fstrcmp.
17863
17864 2007-08-18  Bruno Haible  <bruno@clisp.org>
17865
17866         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
17867         'bool'.
17868         (diag, compareseq): Remove const from the ctxt argument.
17869         (USE_HEURISTIC): Undefine at the end.
17870
17871 2007-08-18  Jim Meyering  <jim@meyering.net>
17872
17873         New file: lib/idcache.h
17874         * NEWS: Mention the addition.
17875         * modules/idcache (Files): Add lib/idcache.h
17876         * lib/idcache.c: Include "idcache.h".
17877         Don't include <sys/types.h>.
17878         Add a FIXME comment.
17879         Move file-scoped "static" declarations to the top.
17880         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
17881
17882 2007-08-17  Bruno Haible  <bruno@clisp.org>
17883         and Paul Eggert  <eggert@cs.ucla.edu>
17884
17885         * MODULES.html.sh: Add diffseq.
17886         * modules/diffseq: New file.
17887         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
17888         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
17889
17890 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
17891
17892         Import changes from coreutils for bootstrap script.
17893
17894         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
17895
17896         * build-aux/bootstrap (slurp): Work even in environments where
17897         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
17898         current code does not slurp files whose names start with ".", and
17899         this looks like it might be a troublesome area.
17900
17901         2007-07-11  Jim Meyering  <jim@meyering.net>
17902
17903         If there's a GPL vN copyright comment, require that N == 3.
17904
17905         2007-07-08  Jim Meyering  <jim@meyering.net>
17906
17907         Run the coreutils-specific code only if tests/Makefile.am.in exists.
17908         * build-aux/bootstrap (mam_template): Move definition out of loop.
17909
17910         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
17911
17912         * build-aux/bootstrap (symlink_to_dir): Rename function from
17913         symlink_to_gnulib.  Add a directory parameter.  Update all
17914         callers.
17915         (cp_mark_as_generated): Also check for -- and link to -- files in
17916         gl/.
17917
17918         2007-07-08  Jim Meyering  <jim@meyering.net>
17919
17920         Adapt to deeper hierarchy in gnulib.
17921         * build-aux/bootstrap (symlink_to_dir): If the destination
17922         directory doesn't exist, create it. This is required at least for
17923         "lib/uniwidth/cjk.h".
17924
17925         2007-05-15  Jim Meyering  <jim@meyering.net>
17926
17927         * build-aux/bootstrap: Now that generated Makefile.am files
17928         are no longer under version control, they must be created at
17929         bootstrap time.
17930
17931 2007-08-14  Ben Pfaff  <blp@gnu.org>
17932
17933         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
17934
17935 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
17936
17937         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
17938         given the changes below.
17939         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
17940         even on hosts that have padding bits beyond the supported 64.
17941
17942 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17943
17944         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
17945         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
17946         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
17947         depends on it.
17948         (xstrtol_error): Remove.
17949         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
17950         but with a different signature.
17951         (ATTRIBUTE_NORETURN, __attribute__): New macros.
17952         * lib/xstrtol-error.c: Include exitfail.h.
17953         (xstrtol_fatal): New function, with a different signature from the
17954         old xstrtol_error, so that the caller need not worry about passing
17955         in an exit status, or about storage management of the option argument.
17956         (xstrtol_error): Now a static function.  Redo signature to
17957         implement xstrtol_fatal.  Output the correct number of hyphens in
17958         front of the option so that the caller need not worry about
17959         storage management.
17960         (N_): New macro.
17961         (_): Remove; not used now.
17962         * modules/xstrtol: Depend on getopt.
17963         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
17964         of old STRTOL_FATAL_ERROR macro.
17965         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
17966         of test program.
17967         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
17968         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
17969
17970 2007-08-08  Eric Blake  <ebb9@byu.net>
17971
17972         * lib/xstrtol-error.c: Add missing include.
17973
17974         Move xstrtol messages into gnulib domain, when --pobase is used.
17975         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
17976         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
17977         * modules/xstrtol (Files): Distribute new file.
17978         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
17979         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
17980         * tests/test-xstrtol.c: ...into new file.
17981         * tests/test-xstrtoul.c: Also test xstrtoul.
17982         * tests/test-xstrtoimax.c: Also test xstrtoimax.
17983         * tests/test-xstrtoumax.c: Also test xstrtoumax.
17984         * tests/test-xstrtol.sh: Drive the tests.
17985         * tests/test-xstrtoimax.sh: Likewise.
17986         * tests/test-xstrtoumax.sh: Likewise.
17987         * modules/xstrtol-tests: New module.
17988         * modules/xstrtoimax-tests: Likewise.
17989         * modules/xstrtoumax-tests: Likewise.
17990
17991 2007-08-08  Jim Meyering  <jim@meyering.net>
17992
17993         New function: mfile_name_concat.
17994         * lib/filenamecat.c (mfile_name_concat): New function, just like
17995         file_name_concat, but return NULL upon failure rather than exiting
17996         with a diagnostic.
17997         * lib/filenamecat.h: Declare it.
17998
17999 2007-08-07  Bruno Haible  <bruno@clisp.org>
18000
18001         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
18002         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
18003         warning from gcc.
18004         Reported by Eric Blake.
18005
18006 2007-08-07  Simon Josefsson  <simon@josefsson.org>
18007
18008         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
18009         * modules/crypto/arcfour (License): Likewise.
18010         * modules/crypto/des-tests (License): Likewise.
18011         * modules/crypto/gc-arctwo-tests (License): Likewise.
18012         * modules/crypto/gc-des-tests (License): Likewise.
18013         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
18014         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
18015         * modules/crypto/gc-md2-tests (License): Likewise.
18016         * modules/crypto/gc-md4-tests (License): Likewise.
18017         * modules/crypto/gc-md5-tests (License): Likewise.
18018         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
18019         * modules/crypto/gc-rijndael-tests (License): Likewise.
18020         * modules/crypto/gc-sha1-tests (License): Likewise.
18021         * modules/crypto/gc-tests (License): Likewise.
18022         * modules/crypto/hmac-md5 (License): Likewise.
18023         * modules/crypto/hmac-sha1 (License): Likewise.
18024         * modules/crypto/md2-tests (License): Likewise.
18025         * modules/crypto/md4-tests (License): Likewise.
18026         * modules/crypto/md5 (License): Likewise.
18027         * modules/crypto/rijndael (License): Likewise.
18028         * modules/crypto/sha1 (License): Likewise.
18029         * modules/memxor (License): Likewise.
18030
18031 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
18032         and Bruno Haible  <bruno@clisp.org>
18033
18034         * NEWS: Describe interface changes to human, xstrtol.
18035         * lib/human.h: Include <xstrtol.h>.
18036         (human_options): Return enum strtol_error, not int.  Remove
18037         bool arg; take int * instead.
18038         * lib/human.c: Don't include "gettext.h".
18039         (_): Remove; no longer used.
18040         Don't include <xstrtol.h>, since human.h does it.
18041         (human_options): Adjust to abovementioned interface changes.
18042         Do not report error to stderr; that's now the caller's
18043         responsibility.
18044         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
18045         interface change.
18046         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
18047         Str, Argument_type_string.  All uses changed.  Put " argument"
18048         in diagnostics to make them clearer.  Change wording of suffix
18049         message for clarity.
18050         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
18051         Argument_type_string.
18052         (STRTOL_FATAL_WARN): Remove; no longer used.
18053         * modules/human (Depends-on): Remove gettext-h.
18054
18055 2007-08-06  Simon Josefsson  <simon@josefsson.org>
18056
18057         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
18058
18059 2007-07-31  Bruno Haible  <bruno@clisp.org>
18060
18061         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
18062         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
18063         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
18064
18065 2007-07-31  Bruno Haible  <bruno@clisp.org>
18066
18067         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
18068         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
18069
18070 2007-07-30  Bruno Haible  <bruno@clisp.org>
18071
18072         * modules/base64 (License): Use the synonymous term "LGPLv2+".
18073         * modules/c-ctype (License): Likewise.
18074         * modules/c-strcase (License): Likewise.
18075         * modules/check-version (License): Likewise.
18076         * modules/iconv (License): Likewise.
18077         * modules/iconv_open (License): Likewise.
18078         * modules/read-file (License): Likewise.
18079         * modules/striconv (License): Likewise.
18080         * modules/strverscmp (License): Likewise.
18081         * modules/vasprintf (License): Likewise.
18082         * modules/crypto/des (License): Likewise.
18083         * modules/crypto/gc (License): Likewise.
18084         * modules/crypto/gc-arcfour (License): Likewise.
18085         * modules/crypto/gc-arctwo (License): Likewise.
18086         * modules/crypto/gc-des (License): Likewise.
18087         * modules/crypto/gc-hmac-md5 (License): Likewise.
18088         * modules/crypto/gc-hmac-sha1 (License): Likewise.
18089         * modules/crypto/gc-md2 (License): Likewise.
18090         * modules/crypto/gc-md4 (License): Likewise.
18091         * modules/crypto/gc-md5 (License): Likewise.
18092         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
18093         * modules/crypto/gc-random (License): Likewise.
18094         * modules/crypto/gc-rijndael (License): Likewise.
18095         * modules/crypto/gc-sha1 (License): Likewise.
18096         * modules/crypto/md2 (License): Likewise.
18097         * modules/crypto/md4 (License): Likewise.
18098
18099 2007-07-30  Jim Meyering  <jim@meyering.net>
18100
18101         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
18102         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
18103         it has valid stat data.  This bug would cause du not to count the
18104         sizes of inaccessible directories.
18105         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
18106         in <http://bugzilla.redhat.com/250077>.
18107
18108 2007-07-25  Peter O'Gorman  <peter@pogma.com>
18109             Bruno Haible  <bruno@clisp.org>
18110
18111         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
18112         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
18113         #include_next, gives a diagnostic about it, but reports no error in
18114         the exit code.
18115         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
18116
18117 2007-07-24  Ben Pfaff  <blp@gnu.org>
18118
18119         Improve name: "count-one-bits" is better than "popcount".
18120         * MODULES.html.sh: Update name.
18121         * lib/popcount.h: Renamed lib/count-one-bits.h.
18122         (popcount): Renamed count_one_bits.
18123         (popcountl): Renamed count_one_bits_l.
18124         (popcountll): Renamed count_one_bits_ll.
18125         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
18126         * modules/popcount: Renamed module/count-one-bits.
18127         * modules/popcount-tests: Renamed module/count-one-bits-tests.
18128         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
18129
18130 2007-07-23  Ben Pfaff  <blp@gnu.org>
18131
18132         * lib/popcount.h (popcount32): Reduce size of constants, to allow
18133         better code generation, and add U to large constants to avoid
18134         warnings, in non-GCC case.
18135         Suggested by Bruno Haible.
18136
18137 2007-07-23  Ben Pfaff  <blp@gnu.org>
18138
18139         * lib/popcount.h: Use verify_true instead of if...abort.
18140         * modules/popcount: Depend on verify module.
18141         Suggested by Jim Meyering.
18142
18143 2007-07-23  Bruno Haible  <bruno@clisp.org>
18144
18145         * gnulib-tool (func_import): Create a .cvsignore file also when the
18146         directory is not yet in CVS but the toplevel directory is. When
18147         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
18148         Reported by Karl Berry.
18149
18150 2007-07-22  Ben Pfaff  <blp@gnu.org>
18151
18152         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
18153         case.
18154         Suggested by Eric Blake.
18155
18156 2007-07-22  Ben Pfaff  <blp@gnu.org>
18157
18158         New module: popcount.
18159         * MODULES.html.sh: Add popcount.
18160         * modules/popcount: New file.
18161         * modules/popcount-tests: New file.
18162         * tests/test-popcount.c: New file.
18163         * lib/popcount.h: New file.
18164         * m4/popcount.m4: New file.
18165
18166 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
18167
18168         * build-aux/announce-gen: Update to GPLv3.
18169
18170         * build-aux/config.guess: Update from config.
18171
18172 2007-07-21  Bruno Haible  <bruno@clisp.org>
18173
18174         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
18175         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
18176
18177 2007-07-20  Jim Meyering  <jim@meyering.net>
18178
18179         * check-module: Diagnose a self-dependency.
18180
18181 2007-07-19  Bruno Haible  <bruno@clisp.org>
18182
18183         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
18184         empty.
18185         Reported by Eric Blake.
18186
18187 2007-07-18  Bruno Haible  <bruno@clisp.org>
18188
18189         * gnulib-tool: New options --po-base, --po-domain.
18190         (func_usage): Document them.
18191         (pobase, po_domain): New variables.
18192         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
18193         DEFAULT_TEXT_DOMAIN.
18194         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
18195         (func_import): Consider pobase and po_domain. Create a po/ directory.
18196         (func_create_testdir): Set pobase and po_domain to empty.
18197         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
18198         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
18199
18200 2007-07-18  Bruno Haible  <bruno@clisp.org>
18201
18202         * gnulib-tool (func_get_automake_snippet): Synthesize also an
18203         EXTRA_DIST augmentation for files in build-aux/.
18204
18205 2007-07-16  Bruno Haible  <bruno@clisp.org>
18206
18207         * modules/lseek (License): Use the synonymous term "LGPLv2+".
18208         * modules/getdelim (License): Likewise.
18209
18210 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18211
18212         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
18213         * modules/d-type (License): Likewise.
18214         * modules/extensions (License): Likewise.
18215         * modules/fnmatch (License): Likewise.
18216         * modules/fseeko (License): Likewise.
18217         * modules/getaddrinfo (License): Likewise.
18218         * modules/getline (License): Likewise.
18219         * modules/getlogin_r (License): Likewise.
18220         * modules/getpass (License): Likewise.
18221         * modules/gettimeofday (License): Likewise.
18222         * modules/glob (License): Likewise.
18223         * modules/inet_ntop (License): Likewise.
18224         * modules/malloc (License): Likewise.
18225         * modules/malloca (License): Likewise.
18226         * modules/memmem (License): Likewise.
18227         * modules/mempcpy (License): Likewise.
18228         * modules/memset (License): Likewise.
18229         * modules/minmax (License): Likewise.
18230         * modules/mktime (License): Likewise.
18231         * modules/netinet_in (License): Likewise.
18232         * modules/pathmax (License): Likewise.
18233         * modules/poll (License): Likewise.
18234         * modules/regex (License): Likewise.
18235         * modules/snprintf (License): Likewise.
18236         * modules/stdbool (License): Likewise.
18237         * modules/stdint (License): Likewise.
18238         * modules/stdio (License): Likewise.
18239         * modules/strcase (License): Likewise.
18240         * modules/strcasestr (License): Likewise.
18241         * modules/strdup (License): Likewise.
18242         * modules/string (License): Likewise.
18243         * modules/strndup (License): Likewise.
18244         * modules/strnlen (License): Likewise.
18245         * modules/strpbrk (License): Likewise.
18246         * modules/strptime (License): Likewise.
18247         * modules/strsep (License): Likewise.
18248         * modules/sys_select (License): Likewise.
18249         * modules/sys_socket (License): Likewise.
18250         * modules/sys_stat (License): Likewise.
18251         * modules/sys_time (License): Likewise.
18252         * modules/time (License): Likewise.
18253         * modules/time_r (License): Likewise.
18254         * modules/timegm (License): Likewise.
18255         * modules/unistd (License): Likewise.
18256         * modules/vsnprintf (License): Likewise.
18257         * modules/wctype (License): Likewise.
18258
18259 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18260
18261         * modules/argz (License): LGPLv2+.
18262
18263 2007-07-15  Karl Berry  <karl@gnu.org>
18264
18265         * doc/gnulib.texi: revise node structure per new fdl.texi.
18266
18267 2007-07-14  Bruno Haible  <bruno@clisp.org>
18268
18269         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
18270         the output file.
18271         * lib/uniname/uninames.h: Regenerated.
18272
18273 2007-07-14  Karl Berry  <karl@gnu.org>
18274
18275         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
18276         omitting sectioning and index commands.
18277
18278 2007-07-13  Bruno Haible  <bruno@clisp.org>
18279
18280         New gnulib-tool option --more-symlinks.
18281         * gnulib-tool (func_usage): Document --more-symlinks.
18282         (do_copyrights): New variable.
18283         Recognize option --more-symlinks.
18284         (func_import): Don't add a copyright notice transform to
18285         sed_transform_lib_file if do_copyrights is empty.
18286
18287 2007-07-13  Bruno Haible  <bruno@clisp.org>
18288
18289         * lib/vasnprintf.c (decimal_point_char): Define also if
18290         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
18291         && !NEED_PRINTF_DIRECTIVE_A.
18292         Reported by Clemens Koller <clemens.koller@anagramm.de> via
18293         Gary V. Vaughan <gary@gnu.org>.
18294
18295 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
18296
18297         * lib/inttypes_.h: Undo previous change, since it was fixed
18298         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
18299
18300 2007-07-13  Bruno Haible  <bruno@clisp.org>
18301
18302         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
18303         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
18304
18305 2007-07-13  Jim Meyering  <jim@meyering.net>
18306
18307         df: Don't fail for Tru64's "file-on-file mount".
18308         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
18309         so we fall through and use statfs instead.  Details here:
18310         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
18311         Reported by Albert Chin.
18312
18313 2007-07-13  Bruno Haible  <bruno@clisp.org>
18314
18315         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
18316         * modules/configmake (License): Likewise.
18317         * modules/gettext (License): Likewise.
18318         * modules/gettext-h (License): Likewise.
18319         * modules/include_next (License): Likewise.
18320         * modules/link-warning (License): Likewise.
18321         * modules/localcharset (License): Likewise.
18322         * modules/localename (License): Likewise.
18323         * modules/lock (License): Likewise.
18324         * modules/relocatable-lib-lgpl (License): Likewise.
18325         * modules/size_max (License): Likewise.
18326         * modules/vasnprintf (License): Likewise.
18327         * modules/wchar (License): Likewise.
18328         * modules/xsize (License): Likewise.
18329
18330 2007-07-13  Bruno Haible  <bruno@clisp.org>
18331
18332         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
18333         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
18334
18335 2007-07-12  Bruno Haible  <bruno@clisp.org>
18336
18337         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
18338         in the modules files.
18339
18340 2007-07-11  Karl Berry  <karl@gnu.org>
18341
18342         * MODULES.html.sh (func_module): use
18343          sed -e '\|^'"${includefile}"'$|d'
18344          instead of /.../d, to avoid errors on $includefile's containing /.
18345
18346 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
18347
18348         * gnulib-tool (func_import): Avoid duplication of --avoid
18349         statements
18350         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
18351         names to `_' in variable names.
18352
18353 2007-07-10  Eric Blake  <ebb9@byu.net>
18354
18355         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
18356         * NEWS: Document this change.
18357
18358 2007-07-08  Bruno Haible  <bruno@clisp.org>
18359
18360         Update to Unicode 5.0.
18361         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
18362         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
18363         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
18364         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
18365         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
18366         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
18367         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
18368         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
18369         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
18370         U+10A3F, U+1D242..U+1D244.
18371         (nonspacing_table_ind): Update.
18372         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
18373         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
18374
18375 2007-07-08  Bruno Haible  <bruno@clisp.org>
18376
18377         Update to Unicode 5.0.
18378         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
18379         code transform. Extend the name index field of unicode_name_to_code and
18380         unicode_code_to_name from 16 to 24 bits.
18381         * lib/uniname/uniname.c (unicode_character_name,
18382         unicode_name_character): Add the range 0x12xxx to the code transform.
18383         * lib/uniname/uninames.h: Regenerated.
18384         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
18385
18386 2007-07-07  Bruno Haible  <bruno@clisp.org>
18387
18388         * modules/wcwidth-tests: New file.
18389         * tests/test-wcwidth.c: New file.
18390
18391         Work around MacOS X wcwidth() bug.
18392         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
18393         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
18394         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
18395         original wcwidth in non-UTF-8 locales.
18396         * modules/wcwidth (Depends-on): Add localcharset, streq,
18397         uniwidth/width.
18398         * doc/functions/wcwidth.texi: Update.
18399
18400 2007-07-07  Bruno Haible  <bruno@clisp.org>
18401
18402         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
18403         (wcwidth): New declaration.
18404         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
18405         macros.
18406         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
18407         here. Prepare for creating <wchar.h> unconditionally.
18408         * modules/wchar (Depends-on): Add link-warning.
18409         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
18410         REPLACE_WCWIDTH, and GL_LINK_WARNING.
18411         * lib/wcwidth.h: Remove file.
18412         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
18413         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
18414         * modules/wcwidth (Files): Remove lib/wcwidth.h.
18415         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
18416         (Include): Replace wcwidth.h with <wchar.h>.
18417         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
18418         * lib/mbchar.h: Don't include wcwidth.h.
18419         * lib/mbswidth.c: Likewise.
18420         * NEWS: Mention the change.
18421
18422 2007-07-07  Bruno Haible  <bruno@clisp.org>
18423
18424         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
18425         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
18426         definition with an external declaration.
18427         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
18428         defined as a function. Remove AC_C_INLINE requirement.
18429         * modules/wcwidth (Files): Add lib/wcwidth.c.
18430         (Makefile.am): Remove redundant statement.
18431
18432 2007-07-07  Bruno Haible  <bruno@clisp.org>
18433
18434         * MODULES.html.sh (Unicode string functions): Add the new modules.
18435
18436         * tests/uniwidth/test-u32-strwidth.c: New file.
18437         * modules/uniwidth/u32-strwidth-tests: New file.
18438
18439         * lib/uniwidth/u32-strwidth.c: New file.
18440         * modules/uniwidth/u32-strwidth: New file.
18441
18442         * tests/uniwidth/test-u16-strwidth.c: New file.
18443         * modules/uniwidth/u16-strwidth-tests: New file.
18444
18445         * lib/uniwidth/u16-strwidth.c: New file.
18446         * modules/uniwidth/u16-strwidth: New file.
18447
18448         * tests/uniwidth/test-u8-strwidth.c: New file.
18449         * modules/uniwidth/u8-strwidth-tests: New file.
18450
18451         * lib/uniwidth/u8-strwidth.c: New file.
18452         * modules/uniwidth/u8-strwidth: New file.
18453
18454         * tests/uniwidth/test-u32-width.c: New file.
18455         * modules/uniwidth/u32-width-tests: New file.
18456
18457         * lib/uniwidth/u32-width.c: New file.
18458         * modules/uniwidth/u32-width: New file.
18459
18460         * tests/uniwidth/test-u16-width.c: New file.
18461         * modules/uniwidth/u16-width-tests: New file.
18462
18463         * lib/uniwidth/u16-width.c: New file.
18464         * modules/uniwidth/u16-width: New file.
18465
18466         * tests/uniwidth/test-u8-width.c: New file.
18467         * modules/uniwidth/u8-width-tests: New file.
18468
18469         * lib/uniwidth/u8-width.c: New file.
18470         * modules/uniwidth/u8-width: New file.
18471
18472         * tests/uniwidth/test-uc_width.c: New file.
18473         * modules/uniwidth/width-tests: New file.
18474
18475         * lib/uniwidth/width.c: New file, from GNU libiconv.
18476         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
18477         * modules/uniwidth/width: New file.
18478
18479         * lib/uniwidth.h: New file, from GNU libiconv.
18480         * modules/uniwidth/base: New file.
18481
18482 2007-07-07  Bruno Haible  <bruno@clisp.org>
18483
18484         * lib/uniname.h: New file, from GNU gettext.
18485         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
18486         * lib/uniname/uninames.h: New file, from GNU gettext.
18487         * lib/uniname/uniname.c: New file, from GNU gettext.
18488         * tests/uniname/test-uninames.sh: New file.
18489         * tests/uniname/test-uninames.c: New file, from GNU gettext.
18490         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
18491         * modules/uniname/base: New file.
18492         * modules/uniname/uniname: New file.
18493         * modules/uniname/uniname-tests: New file.
18494         * MODULES.html.sh (Unicode string functions): Add the new modules.
18495
18496 2007-07-06  Bruno Haible  <bruno@clisp.org>
18497
18498         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
18499
18500 2007-07-06  Bruno Haible  <bruno@clisp.org>
18501
18502         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
18503         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
18504         includes <cygwin/sys_time.h> which includes <sys/select.h> which
18505         include <sys/time.h>.
18506         Reported by Eric Blake.
18507
18508 2007-07-06  Eric Blake  <ebb9@byu.net>
18509
18510         Fix testing canonicalize on cygwin.
18511         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
18512         Revert patch from 2007-06-19.
18513         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
18514         canonicalize module is also in use.
18515         * tests/test-canonicalize.c: New file.
18516         * tests/test-canonicalize.sh: Likewise.
18517         * modules/canonicalize-tests: Likewise.
18518
18519 2007-07-06  Jim Meyering  <jim@meyering.net>
18520
18521         * lib/getugroups.c (getugroups): Detect getgrent failure.
18522         Adjust comment to reflect reality: this function may return -1.
18523
18524 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18525
18526         * build-aux/bootstrap (TP_URL,get_translations): Update to use
18527         the new TP address.
18528         (usage): Fix typo
18529         (gnulib_mk): New variable.
18530
18531 2007-07-05  Jim Meyering  <jim@meyering.net>
18532
18533         Don't let endgrent clobber errno, no matter how improbable.
18534         * lib/getugroups.c (getugroups): Save and restore errno around
18535         endgrent call.
18536
18537         Close the group DB even when failing with 2^31 or more members.
18538         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
18539
18540 2007-07-04  Jim Meyering  <jim@meyering.net>
18541
18542         * lib/getugroups.h: New file.
18543         * lib/getugroups.c: Include "getugroups.h".
18544         Remove uses of "register" keyword.
18545         Move local variable, "cp", down into scope where used.
18546         Give "username" parameter the "const" attribute.
18547         * modules/getugroups (Files): Add lib/getugroups.h
18548
18549 2007-07-04  Karl Berry  <karl@gnu.org>
18550
18551         * MODULES.html.sh (func_all_modules): Complete rename of
18552         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
18553
18554 2007-07-02  Bruno Haible  <bruno@clisp.org>
18555
18556         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
18557         mode, when inttypes.h comes from gnulib.
18558         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
18559
18560 2007-07-02  Simon Josefsson  <simon@josefsson.org>
18561
18562         * NEWS: Mention lgpl module name change.
18563
18564         * modules/lgpl-2.1: Renamed from lgpl.
18565
18566         * NEWS: Mention gpl module name change.
18567
18568         * modules/gpl-3.0: New file, based on gpl-2.0.
18569
18570         * modules/gpl-2.0: Renamed from gpl.
18571
18572         * modules/gpl: Fix filename, doc/gpl.texi is now found at
18573         doc/gpl-2.0.texi.
18574
18575 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
18576
18577         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
18578         #define __STDC_LIMIT_MACROS temporarily while including
18579         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
18580         Problem reported by Joel E. Denny in
18581         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
18582
18583 2007-07-01  Bruno Haible  <bruno@clisp.org>
18584
18585         * lib/unistdio.h: New file.
18586         * lib/unistdio/u-asnprintf.h: New file.
18587         * lib/unistdio/u-asprintf.h: New file.
18588         * lib/unistdio/u-printf-args.c: New file.
18589         * lib/unistdio/u-printf-args.h: New file.
18590         * lib/unistdio/u-printf-parse.h: New file.
18591         * lib/unistdio/u-snprintf.h: New file.
18592         * lib/unistdio/u-sprintf.h: New file.
18593         * lib/unistdio/u-vasprintf.h: New file.
18594         * lib/unistdio/u-vsnprintf.h: New file.
18595         * lib/unistdio/u-vsprintf.h: New file.
18596         * lib/unistdio/ulc-asnprintf.c: New file.
18597         * lib/unistdio/ulc-asprintf.c: New file.
18598         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
18599         * lib/unistdio/ulc-printf-parse.c: New file.
18600         * lib/unistdio/ulc-snprintf.c: New file.
18601         * lib/unistdio/ulc-sprintf.c: New file.
18602         * lib/unistdio/ulc-vasnprintf.c: New file.
18603         * lib/unistdio/ulc-vasprintf.c: New file.
18604         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
18605         * lib/unistdio/ulc-vsnprintf.c: New file.
18606         * lib/unistdio/ulc-vsprintf.c: New file.
18607         * lib/unistdio/u8-asnprintf.c: New file.
18608         * lib/unistdio/u8-asprintf.c: New file.
18609         * lib/unistdio/u8-printf-parse.c: New file.
18610         * lib/unistdio/u8-snprintf.c: New file.
18611         * lib/unistdio/u8-sprintf.c: New file.
18612         * lib/unistdio/u8-vasnprintf.c: New file.
18613         * lib/unistdio/u8-vasprintf.c: New file.
18614         * lib/unistdio/u8-vsnprintf.c: New file.
18615         * lib/unistdio/u8-vsprintf.c: New file.
18616         * lib/unistdio/u8-u8-asnprintf.c: New file.
18617         * lib/unistdio/u8-u8-asprintf.c: New file.
18618         * lib/unistdio/u8-u8-snprintf.c: New file.
18619         * lib/unistdio/u8-u8-sprintf.c: New file.
18620         * lib/unistdio/u8-u8-vasnprintf.c: New file.
18621         * lib/unistdio/u8-u8-vasprintf.c: New file.
18622         * lib/unistdio/u8-u8-vsnprintf.c: New file.
18623         * lib/unistdio/u8-u8-vsprintf.c: New file.
18624         * lib/unistdio/u16-asnprintf.c: New file.
18625         * lib/unistdio/u16-asprintf.c: New file.
18626         * lib/unistdio/u16-printf-parse.c: New file.
18627         * lib/unistdio/u16-snprintf.c: New file.
18628         * lib/unistdio/u16-sprintf.c: New file.
18629         * lib/unistdio/u16-vasnprintf.c: New file.
18630         * lib/unistdio/u16-vasprintf.c: New file.
18631         * lib/unistdio/u16-vsnprintf.c: New file.
18632         * lib/unistdio/u16-vsprintf.c: New file.
18633         * lib/unistdio/u16-u16-asnprintf.c: New file.
18634         * lib/unistdio/u16-u16-asprintf.c: New file.
18635         * lib/unistdio/u16-u16-snprintf.c: New file.
18636         * lib/unistdio/u16-u16-sprintf.c: New file.
18637         * lib/unistdio/u16-u16-vasnprintf.c: New file.
18638         * lib/unistdio/u16-u16-vasprintf.c: New file.
18639         * lib/unistdio/u16-u16-vsnprintf.c: New file.
18640         * lib/unistdio/u16-u16-vsprintf.c: New file.
18641         * lib/unistdio/u32-asnprintf.c: New file.
18642         * lib/unistdio/u32-asprintf.c: New file.
18643         * lib/unistdio/u32-printf-parse.c: New file.
18644         * lib/unistdio/u32-snprintf.c: New file.
18645         * lib/unistdio/u32-sprintf.c: New file.
18646         * lib/unistdio/u32-vasnprintf.c: New file.
18647         * lib/unistdio/u32-vasprintf.c: New file.
18648         * lib/unistdio/u32-vsnprintf.c: New file.
18649         * lib/unistdio/u32-vsprintf.c: New file.
18650         * lib/unistdio/u32-u32-asnprintf.c: New file.
18651         * lib/unistdio/u32-u32-asprintf.c: New file.
18652         * lib/unistdio/u32-u32-snprintf.c: New file.
18653         * lib/unistdio/u32-u32-sprintf.c: New file.
18654         * lib/unistdio/u32-u32-vasnprintf.c: New file.
18655         * lib/unistdio/u32-u32-vasprintf.c: New file.
18656         * lib/unistdio/u32-u32-vsnprintf.c: New file.
18657         * lib/unistdio/u32-u32-vsprintf.c: New file.
18658         * tests/unistdio/test-ulc-asnprintf1.c: New file.
18659         * tests/unistdio/test-ulc-asnprintf1.h: New file.
18660         * tests/unistdio/test-ulc-printf1.h: New file.
18661         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
18662         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
18663         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
18664         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
18665         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
18666         * tests/unistdio/test-ulc-vasprintf1.c: New file.
18667         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
18668         * tests/unistdio/test-ulc-vsprintf1.c: New file.
18669         * tests/unistdio/test-u8-asnprintf1.c: New file.
18670         * tests/unistdio/test-u8-asnprintf1.h: New file.
18671         * tests/unistdio/test-u8-printf1.h: New file.
18672         * tests/unistdio/test-u8-vasnprintf1.c: New file.
18673         * tests/unistdio/test-u8-vasnprintf2.c: New file.
18674         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
18675         * tests/unistdio/test-u8-vasnprintf3.c: New file.
18676         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
18677         * tests/unistdio/test-u8-vasprintf1.c: New file.
18678         * tests/unistdio/test-u8-vsnprintf1.c: New file.
18679         * tests/unistdio/test-u8-vsprintf1.c: New file.
18680         * tests/unistdio/test-u16-asnprintf1.c: New file.
18681         * tests/unistdio/test-u16-asnprintf1.h: New file.
18682         * tests/unistdio/test-u16-printf1.h: New file.
18683         * tests/unistdio/test-u16-vasnprintf1.c: New file.
18684         * tests/unistdio/test-u16-vasnprintf2.c: New file.
18685         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
18686         * tests/unistdio/test-u16-vasnprintf3.c: New file.
18687         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
18688         * tests/unistdio/test-u16-vasprintf1.c: New file.
18689         * tests/unistdio/test-u16-vsnprintf1.c: New file.
18690         * tests/unistdio/test-u16-vsprintf1.c: New file.
18691         * tests/unistdio/test-u32-asnprintf1.c: New file.
18692         * tests/unistdio/test-u32-asnprintf1.h: New file.
18693         * tests/unistdio/test-u32-printf1.h: New file.
18694         * tests/unistdio/test-u32-vasnprintf1.c: New file.
18695         * tests/unistdio/test-u32-vasnprintf2.c: New file.
18696         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
18697         * tests/unistdio/test-u32-vasnprintf3.c: New file.
18698         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
18699         * tests/unistdio/test-u32-vasprintf1.c: New file.
18700         * tests/unistdio/test-u32-vsnprintf1.c: New file.
18701         * tests/unistdio/test-u32-vsprintf1.c: New file.
18702         * modules/unistdio/base: New file.
18703         * modules/unistdio/u-printf-args: New file.
18704         * modules/unistdio/ulc-asnprintf: New file.
18705         * modules/unistdio/ulc-asprintf: New file.
18706         * modules/unistdio/ulc-fprintf: New file.
18707         * modules/unistdio/ulc-printf-parse: New file.
18708         * modules/unistdio/ulc-snprintf: New file.
18709         * modules/unistdio/ulc-sprintf: New file.
18710         * modules/unistdio/ulc-vasnprintf: New file.
18711         * modules/unistdio/ulc-vasprintf: New file.
18712         * modules/unistdio/ulc-vfprintf: New file.
18713         * modules/unistdio/ulc-vsnprintf: New file.
18714         * modules/unistdio/ulc-vsprintf: New file.
18715         * modules/unistdio/u8-asnprintf: New file.
18716         * modules/unistdio/u8-asprintf: New file.
18717         * modules/unistdio/u8-printf-parse: New file.
18718         * modules/unistdio/u8-snprintf: New file.
18719         * modules/unistdio/u8-sprintf: New file.
18720         * modules/unistdio/u8-vasnprintf: New file.
18721         * modules/unistdio/u8-vasprintf: New file.
18722         * modules/unistdio/u8-vsnprintf: New file.
18723         * modules/unistdio/u8-vsprintf: New file.
18724         * modules/unistdio/u8-u8-asnprintf: New file.
18725         * modules/unistdio/u8-u8-asprintf: New file.
18726         * modules/unistdio/u8-u8-snprintf: New file.
18727         * modules/unistdio/u8-u8-sprintf: New file.
18728         * modules/unistdio/u8-u8-vasnprintf: New file.
18729         * modules/unistdio/u8-u8-vasprintf: New file.
18730         * modules/unistdio/u8-u8-vsnprintf: New file.
18731         * modules/unistdio/u8-u8-vsprintf: New file.
18732         * modules/unistdio/u16-asnprintf: New file.
18733         * modules/unistdio/u16-asprintf: New file.
18734         * modules/unistdio/u16-printf-parse: New file.
18735         * modules/unistdio/u16-snprintf: New file.
18736         * modules/unistdio/u16-sprintf: New file.
18737         * modules/unistdio/u16-vasnprintf: New file.
18738         * modules/unistdio/u16-vasprintf: New file.
18739         * modules/unistdio/u16-vsnprintf: New file.
18740         * modules/unistdio/u16-vsprintf: New file.
18741         * modules/unistdio/u16-u16-asnprintf: New file.
18742         * modules/unistdio/u16-u16-asprintf: New file.
18743         * modules/unistdio/u16-u16-snprintf: New file.
18744         * modules/unistdio/u16-u16-sprintf: New file.
18745         * modules/unistdio/u16-u16-vasnprintf: New file.
18746         * modules/unistdio/u16-u16-vasprintf: New file.
18747         * modules/unistdio/u16-u16-vsnprintf: New file.
18748         * modules/unistdio/u16-u16-vsprintf: New file.
18749         * modules/unistdio/u32-asnprintf: New file.
18750         * modules/unistdio/u32-asprintf: New file.
18751         * modules/unistdio/u32-printf-parse: New file.
18752         * modules/unistdio/u32-snprintf: New file.
18753         * modules/unistdio/u32-sprintf: New file.
18754         * modules/unistdio/u32-vasnprintf: New file.
18755         * modules/unistdio/u32-vasprintf: New file.
18756         * modules/unistdio/u32-vsnprintf: New file.
18757         * modules/unistdio/u32-vsprintf: New file.
18758         * modules/unistdio/u32-u32-asnprintf: New file.
18759         * modules/unistdio/u32-u32-asprintf: New file.
18760         * modules/unistdio/u32-u32-snprintf: New file.
18761         * modules/unistdio/u32-u32-sprintf: New file.
18762         * modules/unistdio/u32-u32-vasnprintf: New file.
18763         * modules/unistdio/u32-u32-vasprintf: New file.
18764         * modules/unistdio/u32-u32-vsnprintf: New file.
18765         * modules/unistdio/u32-u32-vsprintf: New file.
18766         * modules/unistdio/ulc-asnprintf-tests: New file.
18767         * modules/unistdio/ulc-vasnprintf-tests: New file.
18768         * modules/unistdio/ulc-vasprintf-tests: New file.
18769         * modules/unistdio/ulc-vsnprintf-tests: New file.
18770         * modules/unistdio/ulc-vsprintf-tests: New file.
18771         * modules/unistdio/u8-asnprintf-tests: New file.
18772         * modules/unistdio/u8-vasnprintf-tests: New file.
18773         * modules/unistdio/u8-vasprintf-tests: New file.
18774         * modules/unistdio/u8-vsnprintf-tests: New file.
18775         * modules/unistdio/u8-vsprintf-tests: New file.
18776         * modules/unistdio/u16-asnprintf-tests: New file.
18777         * modules/unistdio/u16-vasnprintf-tests: New file.
18778         * modules/unistdio/u16-vasprintf-tests: New file.
18779         * modules/unistdio/u16-vsnprintf-tests: New file.
18780         * modules/unistdio/u16-vsprintf-tests: New file.
18781         * modules/unistdio/u32-asnprintf-tests: New file.
18782         * modules/unistdio/u32-vasnprintf-tests: New file.
18783         * modules/unistdio/u32-vasprintf-tests: New file.
18784         * modules/unistdio/u32-vsnprintf-tests: New file.
18785         * modules/unistdio/u32-vsprintf-tests: New file.
18786         * MODULES.html.sh (Unicode string functions): Add the new modules.
18787
18788 2007-07-01  Bruno Haible  <bruno@clisp.org>
18789
18790         * lib/sprintf.c (sprintf): Limit the available length estimation,
18791         to avoid address wraparound.
18792         * lib/vsprintf.c (vsprintf): Likewise.
18793         * modules/sprintf-posix (Dependencies): Add stdint.
18794         * modules/vsprintf-posix (Dependencies): Likewise.
18795
18796 2007-07-01  Bruno Haible  <bruno@clisp.org>
18797
18798         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
18799         Windows PATH as well. Conservative double-quoting. Comments.
18800
18801 2007-07-01  Bruno Haible  <bruno@clisp.org>
18802             Eric Blake  <ebb9@byu.net>
18803             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18804
18805         * gnulib-tool (self_abspathname): Fix algorithm to cope with
18806         empty components in $PATH, denoting '.'.
18807
18808 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18809
18810         * gnulib-tool: Fix indentation.
18811         (func_create_megatestdir): Likewise.
18812         Report by Bruno Haible.
18813
18814 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18815
18816         Sync from Automake.
18817         * build-aux/gnupload: Fix shell portability issues with for loops.
18818         Report by Karl Berry.
18819
18820 2007-06-29  Simon Josefsson  <simon@josefsson.org>
18821
18822         * build-aux/maint.mk (POURL): Use translationproject.org.
18823
18824 2007-06-27  Simon Josefsson  <simon@josefsson.org>
18825             Bruno Haible  <bruno@clisp.org>
18826
18827         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
18828         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
18829         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
18830         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
18831         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
18832
18833 2007-06-27  Bruno Haible  <bruno@clisp.org>
18834
18835         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
18836         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
18837
18838 2007-06-26  Karl Berry  <karl@gnu.org>
18839
18840         * MODULES.html.sh: remove xreadlink-with-size.
18841
18842 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
18843
18844         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
18845         method that I hope also handles the double-include problem noted
18846         by Bruno Haible in
18847         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
18848
18849 2007-06-23  Bruno Haible  <bruno@clisp.org>
18850
18851         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18852         Don't let the 'mostlyclean' target fail if the last subdirectory could
18853         not be removed.
18854         Reported by Karl Berry.
18855
18856 2007-06-23  Bruno Haible  <bruno@clisp.org>
18857
18858         * gnulib-tool (echo): Add a speedier workaround for ksh.
18859         * tests/test-echo.sh: Likewise.
18860
18861 2007-06-23  Bruno Haible  <bruno@clisp.org>
18862
18863         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
18864         * tests/test-echo.sh: Likewise.
18865
18866 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18867
18868         * gnulib-tool (IFS): Initialize early, so we don't set it to
18869         empty later.
18870         (self_abspathname): Rewrite algorithm to set it, reindent.
18871         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
18872         (func_create_megatestdir): Merge some sed scripts.
18873
18874 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
18875
18876         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
18877         exposed by Sun Studio 11 cc on Solaris 8.
18878
18879 2007-06-22  Bruno Haible  <bruno@clisp.org>
18880
18881         * gnulib-tool (echo): Ensure the echo primitive does not interpret
18882         backslashes.
18883         * tests/test-echo.sh: New file.
18884
18885 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18886
18887         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
18888         simplify `sed_replace_build_aux' scripts, they are portable but
18889         echoing them with `echo' is not.
18890         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
18891
18892 2007-06-21  Karl Berry  <karl@gnu.org>
18893
18894         * config/srclist.txt: guess we can't handle the licenses via
18895         srclist at the moment.
18896
18897 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
18898
18899         * MODULES.html.sh: Add include_next.
18900         * modules/include_next: New file.
18901
18902 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
18903
18904         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
18905         INCLUDE_NEXT.
18906         (gl_CHECK_NEXT_HEADERS): New macro.
18907         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
18908         the obsolescent gl_ABSOLUTE_HEADER.
18909         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
18910         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
18911         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
18912         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18913         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18914         * m4/math_h.m4 (gl_MATH_H): Likewise.
18915         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
18916         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18917         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
18918         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18919         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
18920         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
18921         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
18922         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18923         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18924         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
18925         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
18926         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
18927         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
18928         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18929         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18930         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
18931         * m4/inttypes.m4 (gl_INTTYPES_H): Define
18932         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
18933         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
18934         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
18935         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
18936         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
18937         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
18938         * lib/float_.h: Likewise.
18939         * lib/inttypes_.h: Likewise.
18940         * lib/math_.h: Likewise.
18941         * lib/search_.h: Likewise.
18942         * lib/signal_.h: Likewise.
18943         * lib/stdint_.h: Likewise.
18944         * lib/stdio_.h: Likewise.
18945         * lib/stdlib_.h: Likewise.
18946         * lib/string_.h: Likewise.
18947         * lib/sys_stat_.h: Likewise.
18948         * lib/sys_time_.h: Likewise.
18949         * lib/time_.h: Likewise.
18950         * lib/unistd_.h: Likewise.
18951         * lib/wchar_.h: Likewise.
18952         * lib/wctype_.h: Likewise.
18953         * lib/dirent_.h: Likewise.
18954         * lib/iconv_.h: Likewise.
18955         * lib/locale_.h: Likewise.
18956         * lib/netinet_in_.h: Likewise.
18957         * lib/sys_select_.h: Likewise.
18958         * lib/sys_socket_.h: Likewise.
18959         * lib/sysexits_.h: Likewise.
18960         * modules/fcntl (Depends-on): Depend on include_next, not
18961         absolute_header.
18962         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
18963         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
18964         * modules/fchdir: Likewise.
18965         * modules/float: Likewise.
18966         * modules/iconv_open: Likewise.
18967         * modules/inttypes: Likewise.
18968         * modules/locale: Likewise.
18969         * modules/math: Likewise.
18970         * modules/netinet_in: Likewise.
18971         * modules/search: Likewise.
18972         * modules/signal: Likewise.
18973         * modules/stdint: Likewise.
18974         * modules/stdio: Likewise.
18975         * modules/stdlib: Likewise.
18976         * modules/string: Likewise.
18977         * modules/sys_select: Likewise.
18978         * modules/sys_socket: Likewise.
18979         * modules/sys_stat: Likewise.
18980         * modules/sys_time: Likewise.
18981         * modules/sysexits: Likewise.
18982         * modules/time: Likewise.
18983         * modules/unistd: Likewise.
18984         * modules/wchar: Likewise.
18985         * modules/wctype: Likewise.
18986         * modules/sys_stat: Change maintainer to "all".
18987         * modules/unistd: Likewise.
18988
18989 2007-06-20  Karl Berry  <karl@gnu.org>
18990
18991         * config/srclist.txt: track www changes in license files.
18992
18993 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
18994
18995         * build-aux/bootstrap: Remove stray dot.
18996         Make sure build_aux settings are honored when linking
18997         gnulib_extra_files.
18998
18999 2007-06-19  Eric Blake  <ebb9@byu.net>
19000
19001         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
19002         Allow compilation on cygwin.
19003
19004 2007-06-19  Jim Meyering  <jim@meyering.net>
19005
19006         xreadlink-with-size: Remove module.  No longer used.
19007         Ex-callers now use xreadlink or mreadlink-with-size.
19008         * modules/xreadlink-with-size: Remove module.
19009         * lib/xreadlink-with-size.c: Remove file.
19010         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
19011         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
19012         just before the function definition *is* accurate.
19013
19014         Eliminate one way canonicalize_filename_mode could exit.
19015         * lib/canonicalize.c (canonicalize_filename_mode):
19016         Use mreadlink_with_size, not xreadlink_with_size.
19017
19018 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
19019
19020         Detect porting problems to FreeBSD/arm, which has time_t wider than
19021         long int.  Original problem reported for GNU diff by Xin Li in
19022         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
19023         * modules/getdate (Depends-on): Add intprops, verify.
19024         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
19025         is an integer type no wider than long int.
19026
19027 2007-06-18  Jim Meyering  <jim@meyering.net>
19028
19029         New module: mreadlink-with-size.
19030         * MODULES.html.sh: Add mreadlink-with-size.
19031         * modules/mreadlink-with-size: New module
19032         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
19033         not xreadlink-with-size.
19034         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
19035
19036 2007-06-16  Bruno Haible  <bruno@clisp.org>
19037
19038         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
19039         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
19040         Reported by Gary V. Vaughan <gary@gnu.org>.
19041
19042 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
19043
19044         Revamp lchown so that it lives in unistd.h where it belongs.
19045         * lib/lchown.h: Remove.
19046         * lib/dirchownmod.c: Don't include lib/lchown.h.
19047         * lib/fchownat.c: Likewise.
19048         * lib/openat.c: Likewise.
19049         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
19050         does not follow symlinks.
19051         (EOPNOTSUPP): Define if not defined.
19052         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
19053         is defined to 0.
19054         (lchown): New decl.
19055         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
19056         Do not check for lchown decl.
19057         Set REPLACE_LCHOWN.
19058         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
19059         REPLACE_LCHOWN.
19060         * modules/chown: Make it clear it follows symlinks.
19061         * modules/lchown: Make it clear it doesn't follow symlinks.
19062         (Files): Remove lib/lchown.h
19063         (Depends-on): Add unistd.
19064         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
19065         (Include): Include <unistd.h>, not "lchown.h".
19066         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
19067         REPLACE_LCHOWN.
19068
19069 2007-06-15  Jim Meyering  <jim@meyering.net>
19070
19071         Change license (GPL to LGPL) of fsusage and dependents.
19072         * modules/fsusage (License): Change to LGPL.
19073         * modules/full-read (License): Likewise.
19074         * modules/full-write (License): Likewise.
19075         * modules/safe-read (License): Likewise.
19076         * modules/safe-write (License): Likewise.
19077
19078 2007-06-14  Ben Pfaff  <blp@gnu.org>
19079
19080         Missing part of allocsa -> malloca transition.
19081         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
19082         gl_MALLOCA.
19083
19084 2007-06-12  Bruno Haible  <bruno@clisp.org>
19085
19086         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
19087         to ia64, x86_64, i386.
19088         Reported by Eric Blake.
19089
19090 2007-06-12  Bruno Haible  <bruno@clisp.org>
19091
19092         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
19093         cross-compiling to x86_64.
19094
19095 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
19096
19097         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
19098         glitch reported by Ralf Wildenhues in
19099         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
19100
19101         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
19102         Vin Shelton.
19103
19104 2007-06-11  Bruno Haible  <bruno@clisp.org>
19105
19106         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
19107         replacement string.
19108         Reported by Eric Blake.
19109
19110 2007-06-10  Bruno Haible  <bruno@clisp.org>
19111
19112         Prepare vasnprintf code for use with Unicode strings.
19113         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
19114         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
19115         TYPE_U32_STRING.
19116         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
19117         a_u32_string variants.
19118         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
19119         * lib/printf-args.c: Don't include config.h and the specification
19120         header if PRINTF_FETCHARGS is already defined.
19121         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
19122         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
19123         TYPE_U16_STRING, TYPE_U32_STRING.
19124         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
19125         u16_directive, u16_directives, u32_directive, u32_directives): New
19126         types.
19127         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
19128         New declarations.
19129         * lib/printf-parse.c: Don't include config.h and the specification
19130         header if PRINTF_PARSE is already defined. Eliminate the set of
19131         parameters for WIDE_CHAR_VERSION; the user of this file must provide
19132         them now. Include c-ctype.h.
19133         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
19134         directive and CHAR_T_ONLY_ASCII.
19135         * lib/vasnprintf.c: Don't include config.h and the specification header
19136         if VASNPRINTF is already defined.
19137         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
19138         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
19139         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
19140         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
19141         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
19142         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
19143         code accordingly.
19144         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
19145         pad_ourselves also in this case, with the 'c' and 's' directives, and
19146         with a different notion of "width".
19147         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
19148
19149 2007-06-10  Bruno Haible  <bruno@clisp.org>
19150
19151         * modules/unistr/u32-mbsnlen: New file.
19152         * lib/unistr/u32-mbsnlen.c: New file.
19153
19154         * modules/unistr/u16-mbsnlen: New file.
19155         * lib/unistr/u16-mbsnlen.c: New file.
19156
19157         * modules/unistr/u8-mbsnlen: New file.
19158         * lib/unistr/u8-mbsnlen.c: New file.
19159
19160         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
19161         declarations.
19162
19163 2007-06-10  Bruno Haible  <bruno@clisp.org>
19164
19165         * lib/string_.h (mbsnlen): New declaration.
19166         * lib/mbsnlen.c: New file.
19167         * m4/mbsnlen.m4: New file.
19168         * modules/mbsnlen: New file.
19169         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
19170         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
19171         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
19172
19173 2007-06-10  Bruno Haible  <bruno@clisp.org>
19174
19175         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
19176
19177 2007-06-10  Bruno Haible  <bruno@clisp.org>
19178
19179         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
19180         * lib/mbuiter.h: Likewise.
19181
19182 2007-06-10  Bruno Haible  <bruno@clisp.org>
19183
19184         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
19185         declaration.
19186
19187 2007-06-10  Karl Berry  <karl@gnu.org>
19188
19189         * config/srclist.txt: remove gettext entries, Bruno prefers
19190         to update individually.
19191
19192 2007-06-10  Bruno Haible  <bruno@clisp.org>
19193
19194         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
19195         'maxlen'. Ensure only length + width bytes are allocated, not
19196         length + 1 + width.
19197
19198 2007-06-09  Bruno Haible  <bruno@clisp.org>
19199
19200         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
19201         (CHAR_T): Remove macro.
19202         (VASNPRINTF): Update.
19203
19204 2007-06-09  Bruno Haible  <bruno@clisp.org>
19205
19206         * MODULES.html.sh (Unicode string functions): Add the new modules.
19207
19208         * modules/uniconv/u32-conv-to-enc: New file.
19209         * lib/uniconv/u32-conv-to-enc.c: New file.
19210         * modules/uniconv/u32-conv-to-enc-tests: New file.
19211         * tests/uniconv/test-u32-conv-to-enc.c: New file.
19212
19213         * modules/uniconv/u16-conv-to-enc: New file.
19214         * lib/uniconv/u16-conv-to-enc.c: New file.
19215         * lib/uniconv/u-conv-to-enc.h: New file.
19216         * modules/uniconv/u16-conv-to-enc-tests: New file.
19217         * tests/uniconv/test-u16-conv-to-enc.c: New file.
19218
19219         * modules/uniconv/u8-conv-to-enc: New file.
19220         * lib/uniconv/u8-conv-to-enc.c: New file.
19221         * modules/uniconv/u8-conv-to-enc-tests: New file.
19222         * tests/uniconv/test-u8-conv-to-enc.c: New file.
19223
19224         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
19225         u32_conv_to_encoding): New declarations.
19226
19227 2007-06-09  Bruno Haible  <bruno@clisp.org>
19228
19229         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
19230
19231 2007-06-09  Bruno Haible  <bruno@clisp.org>
19232
19233         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
19234         * modules/malloca: Renamed from modules/allocsa, updated.
19235         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
19236         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
19237         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
19238         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
19239         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
19240         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
19241         * modules/xmalloca: Renamed from modules/xallocsa, updated.
19242         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
19243         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
19244         * modules/c-strcasestr (Depends-on): Update.
19245         * lib/c-strcasestr.c: Update.
19246         * modules/c-strstr (Depends-on): Update.
19247         * lib/c-strstr.c: Update.
19248         * modules/canonicalize-lgpl (Depends-on): Update.
19249         * lib/canonicalize-lgpl.c: Update.
19250         * modules/clean-temp (Depends-on): Update.
19251         * lib/clean-temp.c: Update.
19252         * modules/csharpcomp (Depends-on): Update.
19253         * lib/csharpcomp.c: Update.
19254         * modules/csharpexec (Depends-on): Update.
19255         * lib/csharpexec.c: Update.
19256         * modules/javacomp (Depends-on): Update.
19257         * lib/javacomp.c: Update.
19258         * modules/javaexec (Depends-on): Update.
19259         * lib/javaexec.c: Update.
19260         * modules/mbscasestr (Depends-on): Update.
19261         * lib/mbscasestr.c: Update.
19262         * modules/mbsstr (Depends-on): Update.
19263         * lib/mbsstr.c: Update.
19264         * modules/setenv (Depends-on): Update.
19265         * lib/setenv.c: Update.
19266         * modules/strcasestr (Depends-on): Update.
19267         * lib/strcasestr.c: Update.
19268         * modules/striconveha (Depends-on): Update.
19269         * lib/striconveha.c: Update.
19270         * modules/relocatable-prog-wrapper (Files): Update.
19271         * lib/relocwrapper.c: Update.
19272         * build-aux/install-reloc: Update.
19273         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
19274
19275 2007-06-08  Bruno Haible  <bruno@clisp.org>
19276
19277         Port to uClibc.
19278         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
19279         * lib/fpurge.c (fpurge): Likewise.
19280         * lib/freading.c (freading): Likewise.
19281         * lib/fseeko.c (rpl_fseeko): Likewise.
19282         * lib/fseterr.c (fseterr): Likewise.
19283         * lib/fwriting.c (fwriting): Likewise.
19284         * tests/test-fflush.c (main): Avoid a failure on uClibc.
19285
19286 2007-06-08  Bruno Haible  <bruno@clisp.org>
19287
19288         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
19289         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
19290         * modules/gettext (Files): Add m4/intlmacosx.m4.
19291
19292 2007-06-07  Bruno Haible  <bruno@clisp.org>
19293
19294         * modules/localename-tests: New file.
19295         * tests/test-localename.c: New file.
19296
19297         New module 'localename'.
19298         * lib/localename.h: New file.
19299         * lib/localename.c: New file, from GNU gettext.
19300         * m4/localename.m4: New file.
19301         * modules/localename: New file.
19302
19303 2007-06-07  Bruno Haible  <bruno@clisp.org>
19304
19305         Work around the lack of <wchar.h> on some builds of uClibc.
19306         * doc/headers/wchar.texi: Update.
19307         * lib/wchar_.h: Include <wchar.h> only if it exists.
19308         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
19309         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
19310         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
19311         doesn't exist.
19312         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
19313         * modules/mbfile (Depends-on): Add wchar.
19314         * modules/mbiter (Depends-on): Likewise.
19315         * modules/mbuiter (Depends-on): Likewise.
19316         Reported by Simon Josefsson.
19317
19318 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
19319
19320         Work around problem reported by Steven M. Schweda in
19321         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
19322         Tru64 5.1B with the Compaq compiler environment installed declares
19323         an 'isblank' function but does not define it in the C library.
19324         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
19325         * lib/regex_internal.h (isblank): Likewise.
19326         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
19327         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19328
19329 2007-06-05  Bruno Haible  <bruno@clisp.org>
19330
19331         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
19332         ia64.
19333         * modules/printf-safe: New file.
19334         * modules/fprintf-posix (Depends-on): Add printf-safe.
19335         * modules/printf-posix (Depends-on): Likewise.
19336         * modules/snprintf-posix (Depends-on): Likewise.
19337         * modules/sprintf-posix (Depends-on): Likewise.
19338         * modules/vasnprintf-posix (Depends-on): Likewise.
19339         * modules/vasprintf-posix (Depends-on): Likewise.
19340         * modules/vfprintf-posix (Depends-on): Likewise.
19341         * modules/vprintf-posix (Depends-on): Likewise.
19342         * modules/vsnprintf-posix (Depends-on): Likewise.
19343         * modules/vsprintf-posix (Depends-on): Likewise.
19344         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
19345         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
19346         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
19347         "no" on i386, x86_64, ia64.
19348         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
19349         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19350         on i386, x86_64, ia64.
19351         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
19352         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19353         on i386, x86_64, ia64.
19354         * tests/test-vasnprintf-posix.c: Include float.h.
19355         (LDBL80_WORDS): New macro.
19356         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19357         on i386, x86_64, ia64.
19358         * tests/test-vasprintf-posix.c: Include float.h.
19359         (LDBL80_WORDS): New macro.
19360         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
19361         on i386, x86_64, ia64.
19362         * tests/test-snprintf-posix.c: Include float.h.
19363         * tests/test-sprintf-posix.c: Likewise.
19364         * tests/test-vsnprintf-posix.c: Likewise.
19365         * tests/test-vsprintf-posix.c: Likewise.
19366
19367 2007-06-05  Bruno Haible  <bruno@clisp.org>
19368
19369         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
19370         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
19371         non-IEEE numbers on i386, x86_64, ia64.
19372         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
19373         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
19374         * tests/test-isnanl.h: Include float.h.
19375         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
19376
19377 2007-06-05  Bruno Haible  <bruno@clisp.org>
19378
19379         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
19380         also the %a / %A. Handle the %a / %A code before this extra handling.
19381
19382 2007-06-05  Bruno Haible  <bruno@clisp.org>
19383
19384         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
19385         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
19386
19387 2007-06-05  Bruno Haible  <bruno@clisp.org>
19388
19389         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
19390         typo in variable name.
19391
19392 2007-06-05  Eric Blake  <ebb9@byu.net>
19393
19394         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
19395         Reported by Simon Josefsson.
19396
19397 2007-06-04  Bruno Haible  <bruno@clisp.org>
19398
19399         Avoid test failures on some PowerPC platforms.
19400         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
19401         Define differently for PowerPC.
19402         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
19403         Reported by Gary V. Vaughan <gary@gnu.org>.
19404
19405 2007-06-02  Bruno Haible  <bruno@clisp.org>
19406
19407         Fix test-stdint failure on FreeBSD/ia64.
19408         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
19409         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
19410         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
19411         * doc/headers/stdint.texi: Update.
19412
19413 2007-06-01  Bruno Haible  <bruno@clisp.org>
19414
19415         * tests/test-binary-io.c (main): Pass a third argument to open().
19416         Reported by Gary V. Vaughan <gary@gnu.org>.
19417
19418 2007-06-01  Bruno Haible  <bruno@clisp.org>
19419
19420         * doc/functions/frexpl.texi: Update for mingw.
19421
19422 2007-06-01  Bruno Haible  <bruno@clisp.org>
19423
19424         * tests/test-lseek.c (main): Disable test of errno for invalid third
19425         argument.
19426         * doc/functions/lseek.texi: Update.
19427         Reported by Gary V. Vaughan <gary@gnu.org>.
19428
19429 2007-05-28  Bruno Haible  <bruno@clisp.org>
19430
19431         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
19432
19433 2007-05-31  Eric Blake  <ebb9@byu.net>
19434
19435         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
19436         cross compiling.
19437
19438 2007-05-30  Eric Blake  <ebb9@byu.net>
19439         and Bruno Haible  <bruno@clisp.org>
19440
19441         Work around mingw test failures exposed by m4-1.4.9b.
19442         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
19443         * tests/test-unistd.c: Disable uid_t and git_t tests for the
19444         moment.
19445
19446 2007-05-30  Bruno Haible  <bruno@clisp.org>
19447
19448         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
19449         assuming that they are closed. Needed on HP-UX 11.
19450
19451 2007-05-29  Bruno Haible  <bruno@clisp.org>
19452
19453         Fix a problem with #include_next.
19454         * lib/dirent_.h: Split the double-inclusion guard.
19455         * lib/fcntl_.h: Likewise.
19456         * lib/float_.h: Likewise.
19457         * lib/iconv_.h: Likewise.
19458         * lib/inttypes_.h: Likewise.
19459         * lib/locale_.h: Likewise.
19460         * lib/math_.h: Likewise.
19461         * lib/netinet_in_.h: Likewise.
19462         * lib/search_.h: Likewise.
19463         * lib/signal_.h: Likewise.
19464         * lib/stdint_.h: Likewise.
19465         * lib/stdio_.h: Likewise.
19466         * lib/stdlib_.h: Likewise.
19467         * lib/string_.h: Likewise.
19468         * lib/sys_select_.h: Likewise.
19469         * lib/sys_socket_.h: Likewise.
19470         * lib/sys_stat_.h: Likewise.
19471         * lib/sys_time_.h: Likewise.
19472         * lib/sysexits_.h: Likewise.
19473         * lib/time_.h: Likewise.
19474         * lib/unistd_.h: Likewise.
19475         * lib/wchar_.h: Likewise.
19476         * lib/wctype_.h: Likewise.
19477
19478 2007-05-29  Bruno Haible  <bruno@clisp.org>
19479
19480         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
19481         for the moment.
19482
19483 2007-05-29  Bruno Haible  <bruno@clisp.org>
19484
19485         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
19486         invocation.
19487         Reported by Eric Blake.
19488
19489 2007-05-29  Bruno Haible  <bruno@clisp.org>
19490
19491         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
19492         compiling case.
19493
19494 2007-05-29  Eric Blake  <ebb9@byu.net>
19495             Bruno Haible  <bruno@clisp.org>
19496
19497         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
19498         cross compiles.
19499
19500 2007-05-28  Eric Blake  <ebb9@byu.net>
19501
19502         * modules/closein-tests (test_closein_LDADD): Support test on
19503         cygwin with libtool.
19504
19505 2007-05-28  Bruno Haible  <bruno@clisp.org>
19506
19507         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
19508         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
19509         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
19510         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
19511         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
19512         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
19513         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
19514         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
19515         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
19516
19517 2007-05-28  Eric Blake  <ebb9@byu.net>
19518
19519         Unconditionally include <config.h> in unit tests.
19520         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
19521         * tests/test-allocsa.c, tests/test-arcfour.c,
19522         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
19523         tests/test-array_list.c, tests/test-array_oset.c,
19524         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
19525         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
19526         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
19527         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
19528         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
19529         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
19530         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
19531         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
19532         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
19533         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
19534         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
19535         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
19536         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
19537         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
19538         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
19539         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
19540         test-md5.c, test-memmem.c, test-printf-posix.c,
19541         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
19542         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
19543         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
19544         test-strcasestr.c, test-striconv.c, test-striconveh.c,
19545         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
19546         test-vasnprintf-posix2.c, test-vasnprintf.c,
19547         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
19548         test-vfprintf-posix.c, test-vprintf-posix.c,
19549         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
19550         test-xvasprintf.c: Likewise.
19551
19552 2007-05-28  Bruno Haible  <bruno@clisp.org>
19553
19554         * gnulib-tool (func_import): Remember the --with-tests command-line
19555         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
19556         Reported by Eric Blake.
19557
19558 2007-05-28  Bruno Haible  <bruno@clisp.org>
19559
19560         * modules/ftell-tests: New file.
19561         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
19562         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
19563
19564         * lib/ftell.c: New file.
19565         * modules/ftell: New file.
19566         * m4/ftell.m4: New file.
19567         * doc/functions/ftell.texi: Update.
19568         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
19569         REPLACE_FTELL.
19570         * lib/stdio_.h (rpl_ftell): New declaration.
19571         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
19572         REPLACE_FTELL.
19573
19574 2007-05-28  Eric Blake  <ebb9@byu.net>
19575
19576         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
19577
19578 2007-05-28  Bruno Haible  <bruno@clisp.org>
19579
19580         * modules/fseek-tests: New file.
19581         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
19582         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
19583
19584         * lib/fseek.c: New file.
19585         * modules/fseek: New file.
19586         * m4/fseek.m4: New file.
19587         * doc/functions/fseek.texi: Update.
19588         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
19589         REPLACE_FSEEK.
19590         * lib/stdio_.h (rpl_fseek): New declaration.
19591         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
19592         REPLACE_FSEEK.
19593
19594 2007-05-28  Bruno Haible  <bruno@clisp.org>
19595
19596         * lib/stdio_.h (fflush): More comments.
19597
19598 2007-05-28  Bruno Haible  <bruno@clisp.org>
19599
19600         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
19601         runtime test.
19602
19603 2007-05-28  Eric Blake  <ebb9@byu.net>
19604
19605         Improve lseek module.
19606         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
19607         * lib/unistd_.h (lseek): Scale back link warning message.
19608         * tests/test-lseek.c: Beef up test.
19609         * tests/test-lseek.sh: Exercise more facets of lseek.
19610         Reported by Bruno Haible.
19611
19612 2007-05-28  Bruno Haible  <bruno@clisp.org>
19613
19614         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
19615         to define.
19616
19617 2007-05-27  Bruno Haible  <bruno@clisp.org>
19618
19619         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
19620
19621 2007-05-27  Bruno Haible  <bruno@clisp.org>
19622
19623         * modules/openmp: New file.
19624         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
19625         Noah Misch.
19626
19627 2007-05-26  Bruno Haible  <bruno@clisp.org>
19628
19629         * modules/chdir-long (Depends-on): Add fchdir.
19630         * modules/chdir-safer (Depends-on): Likewise.
19631         * modules/fts (Depends-on): Likewise.
19632         * modules/fts-lgpl (Depends-on): Likewise.
19633         * modules/openat (Depends-on): Likewise.
19634         * modules/savewd (Depends-on): Likewise.
19635
19636 2007-05-24  Eric Blake  <ebb9@byu.net>
19637
19638         Fix lseek on mingw.
19639         * modules/lseek: New module.
19640         * m4/lseek.m4: New file.
19641         * lib/lseek.c: New file.
19642         * modules/lseek-tests: New file.
19643         * tests/test-lseek.c: New file.
19644         * tests/test-lseek.sh: New file.
19645         * MODULES.html.sh: Document lseek module.
19646         * modules/fflush (Depends-on): Add lseek, fseeko.
19647         * modules/fseeko (Depends-on): Likewise.
19648         * modules/ftello (Depends-on): Likewise.
19649         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
19650         broken.
19651         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
19652         broken.
19653         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
19654         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
19655         * lib/ftello.c (rpl_ftello): Likewise.
19656         * tests/test-fseeko.c (main): Test this.
19657         * tests/test-fseeko.sh: Likewise.
19658         * tests/test-ftello.c (main): Likewise.
19659         * tests/test-ftello.sh: Likewise.
19660         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
19661         implies replacing fseek.
19662         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
19663         HAVE_FTELLO.
19664         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
19665         * modules/unistd (Makefile.am): Likewise.
19666         * lib/unistd_.h (lseek): Declare a replacement.
19667         * doc/functions/lseek.texi (lseek): Document this fix.
19668         * doc/functions/fseek.texi (fseek): Likewise.
19669         * doc/functions/ftell.texi (ftell): Likewise.
19670
19671 2007-05-24  Bruno Haible  <bruno@clisp.org>
19672
19673         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
19674         in the printed representation of a NaN.
19675         * tests/test-vasprintf-posix.c (test_function): Likewise.
19676         * tests/test-snprintf-posix.h (test_function): Likewise.
19677         * tests/test-sprintf-posix.h (test_function): Likewise.
19678         Reported by Eric Blake.
19679
19680 2007-05-23  Eric Blake  <ebb9@byu.net>
19681
19682         Fix fseeko/ftello on cygwin 1.5.24.
19683         * doc/functions/fseeko.texi (fseeko): Document the fix.
19684         * doc/functions/ftello.texi (ftello): Document the fix.
19685         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
19686         * doc/functions/stdout.text (stdout): New file.
19687         * doc/functions/stderr.text (stderr): New file.
19688         * doc/gnulib.texi (Function Substitutes): Use new files.
19689         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
19690         prior to 1.7.0.
19691         * tests/test-ftello.c (main): Likewise for ftello.
19692         * tests/test-fseeko.sh: New file.
19693         * tests/test-ftello.sh: New file.
19694         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
19695         with seekable stdin.
19696         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
19697         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
19698         (gl_REPLACE_FSEEKO): New macro.
19699         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
19700         * modules/fseeko (Files): Distribute fseeko.c.
19701         * modules/ftello (Files): Distribute ftello.c.
19702         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
19703         mode.
19704         * lib/ftello.c (rpl_ftello): New file.
19705         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
19706         fseeko, ftello.
19707         (gl_STDIN_LARGE_OFFSET): New macro.
19708         * modules/stdio (Makefile.am): Perform the replacement.
19709         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
19710
19711 2007-05-23  Bruno Haible  <bruno@clisp.org>
19712
19713         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
19714         GNULIB_POSIXCHECK is defined.
19715
19716 2007-05-21  Bruno Haible  <bruno@clisp.org>
19717
19718         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
19719         Check also the output for NaN arguments. When cross-compiling, guess
19720         no on IRIX.
19721         * lib/vasnprintf.c: Update comments.
19722         * tests/test-vasnprintf-posix.c (strisnan): New function.
19723         (test_function): Use it.
19724         * tests/test-vasprintf-posix.c (strisnan): New function.
19725         (test_function): Use it.
19726         * tests/test-snprintf-posix.h (strisnan): New function.
19727         (test_function): Use it.
19728         * tests/test-sprintf-posix.h (strisnan): New function.
19729         (test_function): Use it.
19730         Reported by Eric Blake.
19731
19732 2007-05-20  Bruno Haible  <bruno@clisp.org>
19733
19734         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
19735         numbers that fails on BeOS.
19736         * doc/functions/frexpl.texi: Update.
19737
19738 2007-05-20  Jim Meyering  <jim@meyering.net>
19739
19740         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
19741         forced upon us by glibc-2.6.
19742
19743 2007-05-20  Bruno Haible  <bruno@clisp.org>
19744
19745         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
19746         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
19747         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
19748         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
19749         NEED_PRINTF_INFINITE.
19750         (is_infinitel): New function.
19751         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
19752         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
19753         gl_PREREQ_VASNPRINTF_INFINITE.
19754         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
19755         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19756         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
19757         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
19758         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
19759         gl_PREREQ_VASNPRINTF_INFINITE.
19760         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19761         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19762         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19763         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19764         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19765         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19766         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19767         * doc/functions/fprintf.texi: Update.
19768         * doc/functions/printf.texi: Update.
19769         * doc/functions/snprintf.texi: Update.
19770         * doc/functions/sprintf.texi: Update.
19771         * doc/functions/vfprintf.texi: Update.
19772         * doc/functions/vprintf.texi: Update.
19773         * doc/functions/vsnprintf.texi: Update.
19774         * doc/functions/vsprintf.texi: Update.
19775
19776 2007-05-20  Bruno Haible  <bruno@clisp.org>
19777
19778         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
19779         was not found in libc.
19780         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
19781
19782 2007-05-20  Bruno Haible  <bruno@clisp.org>
19783
19784         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
19785         printed as "-nan" instead of "nan".
19786         * tests/test-vasprintf-posix.c (test_function): Likewise.
19787         * tests/test-snprintf-posix.h (test_function): Likewise.
19788         * tests/test-sprintf-posix.h (test_function): Likewise.
19789         Needed for HP-UX 11.
19790
19791 2007-05-20  Jim Meyering  <jim@meyering.net>
19792
19793         Fix buggy test for the fchownat-deref bug.
19794         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
19795         symlink required for the run-test.  Without it, this test would
19796         always declare that fchownat doesn't work, and client code would
19797         unnecessarily use the replacement function with fixed libc.
19798         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
19799         Reported by Greg Schafer.
19800
19801 2007-05-19  Bruno Haible  <bruno@clisp.org>
19802
19803         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
19804         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
19805         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
19806         Needed for IRIX 6.5 and Solaris 2.5.1.
19807
19808 2007-05-19  Bruno Haible  <bruno@clisp.org>
19809
19810         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
19811         (test_function): Skip tests involving -0.0 on platforms where
19812         -0.0 = 0.0.
19813         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
19814         (test_function): Skip tests involving -0.0 on platforms where
19815         -0.0 = 0.0.
19816         * tests/test-snprintf-posix.h (have_minus_zero): New function.
19817         (test_function): Skip tests involving -0.0 on platforms where
19818         -0.0 = 0.0.
19819         * tests/test-sprintf-posix.h (have_minus_zero): New function.
19820         (test_function): Skip tests involving -0.0 on platforms where
19821         -0.0 = 0.0.
19822         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
19823         tests.
19824         * tests/test-printf-posix.h (test_function): Likewise.
19825         * tests/test-printf-posix.output: Remove all -0.0 related results.
19826         Needed for IRIX 6.5.
19827
19828 2007-05-19  Bruno Haible  <bruno@clisp.org>
19829
19830         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
19831         printed as "nan0x7fffffff" instead of "nan".
19832         * tests/test-vasprintf-posix.c (test_function): Likewise.
19833         * tests/test-snprintf-posix.h (test_function): Likewise.
19834         * tests/test-sprintf-posix.h (test_function): Likewise.
19835         * tests/test-fprintf-posix.h (NaN): Remove macro.
19836         (test_function): Remove all NaN related tests.
19837         * tests/test-printf-posix.h (NaN): Remove macro.
19838         (test_function): Remove all NaN related tests.
19839         * tests/test-printf-posix.output: Remove all NaN related results.
19840         Needed for IRIX 6.5.
19841
19842 2007-05-19  Bruno Haible  <bruno@clisp.org>
19843
19844         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
19845         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19846
19847 2007-05-19  Bruno Haible  <bruno@clisp.org>
19848
19849         * lib/float_.h: New file.
19850         * m4/float_h.m4: New file.
19851         * modules/float: New file.
19852         * modules/isnanl (Dependencies): Add float.
19853         * modules/isnanl-nolibm (Dependencies): Likewise.
19854         * modules/mathl (Dependencies): Likewise.
19855         * modules/printf-frexpl (Dependencies): Likewise.
19856         * modules/signbit (Dependencies): Likewise.
19857         * modules/vasnprintf (Dependencies): Likewise.
19858         * doc/headers/float.texi: Update.
19859
19860 2007-05-19  Jim Meyering  <jim@meyering.net>
19861
19862         * lib/utimens.c (gl_futimens): Rename from futimens,
19863         now that glibc-2.6 declares futimens.
19864         * lib/utimens.h: Likewise.
19865
19866 2007-05-19  Bruno Haible  <bruno@clisp.org>
19867
19868         Avoid test failures on mingw.
19869         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
19870         * tests/test-printf-posix.sh: Likewise.
19871         * tests/test-vfprintf-posix.sh: Likewise.
19872         * tests/test-vprintf-posix.sh: Likewise.
19873
19874 2007-05-19  Bruno Haible  <bruno@clisp.org>
19875
19876         Fix *printf result for NaN, Inf, -0.0 on mingw.
19877         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
19878         * lib/vasnprintf.c: Include math.h and isnan.h.
19879         (is_infinite_or_zero): New function.
19880         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
19881         values in the %f, %F, %e, %E, %g, %G directives.
19882         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
19883         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19884         gl_PRINTF_INFINITE and test its result. Invoke
19885         gl_PREREQ_VASNPRINTF_INFINITE.
19886         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19887         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19888         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19889         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19890         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19891         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19892         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19893         * doc/functions/fprintf.texi: Update.
19894         * doc/functions/printf.texi: Update.
19895         * doc/functions/snprintf.texi: Update.
19896         * doc/functions/sprintf.texi: Update.
19897         * doc/functions/vfprintf.texi: Update.
19898         * doc/functions/vprintf.texi: Update.
19899         * doc/functions/vsnprintf.texi: Update.
19900         * doc/functions/vsprintf.texi: Update.
19901
19902 2007-05-19  Bruno Haible  <bruno@clisp.org>
19903
19904         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
19905         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
19906         Instead of multiplying with 10^k, set extra_zeroes to k.
19907         (scale10_round_long_double): Remove function.
19908
19909 2007-05-18  Bruno Haible  <bruno@clisp.org>
19910
19911         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
19912         introduced on 2007-05-06.
19913
19914 2007-05-18  Bruno Haible  <bruno@clisp.org>
19915
19916         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
19917         %g directives.
19918         * tests/test-vasprintf-posix.c (test_function): Likewise.
19919         * tests/test-snprintf-posix.h (test_function): Likewise.
19920         * tests/test-sprintf-posix.h (test_function): Likewise.
19921
19922 2007-05-18  Bruno Haible  <bruno@clisp.org>
19923
19924         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
19925         (strmatch): New function.
19926         (test_function): Test the %f directive on numbers of various exponents.
19927         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
19928         (strmatch): New function.
19929         (test_function): Test the %f directive on numbers of various exponents.
19930         * tests/test-snprintf-posix.h (strmatch): New function.
19931         (test_function): Test the %f directive on numbers of various exponents.
19932         * tests/test-sprintf-posix.h (strmatch): New function.
19933         (test_function): Test the %f directive on numbers of various exponents.
19934         * tests/test-snprintf-posix.c (SIZEOF): New macro.
19935         * tests/test-sprintf-posix.c (SIZEOF): New macro.
19936         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
19937         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
19938
19939 2007-05-18  Bruno Haible  <bruno@clisp.org>
19940
19941         Add support for 'long double' number output.
19942         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
19943         * lib/vasnprintf.c: Include math.h and float+.h.
19944         (mp_limb_t): New type.
19945         (GMP_LIMB_BITS): New macro.
19946         (mp_twolimb_t): New type.
19947         (GMP_TWOLIMB_BITS): New macro.
19948         (mpn_t): New type.
19949         (multiply, divide, convert_to_decimal, decode_long_double,
19950         scale10_round_long_double, scale10_round_decimal_long_double,
19951         floorlog10l): New functions.
19952         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
19953         for the %f, %F, %e, %E, %g, %G directives.
19954         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
19955         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19956         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
19957         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
19958         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19959         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19960         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19961         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19962         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19963         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19964         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19965         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
19966         * modules/snprintf-posix (Depends-on): Likewise.
19967         * modules/sprintf-posix (Depends-on): Likewise.
19968         * modules/vasnprintf-posix (Depends-on): Likewise.
19969         * modules/vasprintf-posix (Depends-on): Likewise.
19970         * modules/vfprintf-posix (Depends-on): Likewise.
19971         * modules/vsnprintf-posix (Depends-on): Likewise.
19972         * modules/vsprintf-posix (Depends-on): Likewise.
19973         * modules/vasnprintf (Files): Add lib/float+.h.
19974         * doc/functions/fprintf.texi: Update.
19975         * doc/functions/printf.texi: Update.
19976         * doc/functions/snprintf.texi: Update.
19977         * doc/functions/sprintf.texi: Update.
19978         * doc/functions/vfprintf.texi: Update.
19979         * doc/functions/vprintf.texi: Update.
19980         * doc/functions/vsnprintf.texi: Update.
19981         * doc/functions/vsprintf.texi: Update.
19982
19983 2007-05-18  Bruno Haible  <bruno@clisp.org>
19984
19985         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
19986
19987 2007-05-18  Bruno Haible  <bruno@clisp.org>
19988
19989         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
19990         for printing 64-bit integers. Needed for mingw.
19991
19992 2007-05-18  Bruno Haible  <bruno@clisp.org>
19993
19994         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
19995         gl_FUNC_FREXPL_WORKS.
19996         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
19997
19998 2007-05-18  Bruno Haible  <bruno@clisp.org>
19999
20000         * modules/frexpl-nolibm-tests: New file.
20001
20002         * modules/frexpl-nolibm: New file.
20003         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
20004
20005 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20006
20007         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
20008         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
20009         GCC 4.2, which otherwise issues a lot of warnings.
20010         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
20011         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
20012         Likewise.
20013         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
20014         * modules/iconv_open (iconv.h): Likewise.
20015         * modules/locale (locale.h): Likewise.
20016         * modules/netinet_in (netinet/in.h): Likewise.
20017         * modules/sys_select (sys_select.h): Likewise.
20018         * modules/sys_socket (sys/socket.h): Likewise.
20019         * modules/sys_stat (sys/stat.h): Likewise.
20020         * modules/sysexits (sysexits.h): Likewise.
20021         * modules/unistd (unistd.h): Likewise.
20022
20023 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20024
20025         * modules/closein-tests (Makefile.am): Distribute
20026         `test-closein.sh'.
20027
20028 2007-05-17  Bruno Haible  <bruno@clisp.org>
20029
20030         * tests/test-printf-posix.output: Renamed from
20031         tests/test-fprintf-posix.out.
20032         * modules/fprintf-posix-tests: Update.
20033         * modules/printf-posix-tests: Update.
20034         * modules/vfprintf-posix-tests: Update.
20035         * modules/vprintf-posix-tests: Update.
20036         * tests/test-fprintf-posix.sh: Update.
20037         * tests/test-printf-posix.sh: Update.
20038         * tests/test-vfprintf-posix.sh: Update.
20039         * tests/test-vprintf-posix.sh: Update.
20040         Reported by Ralf Wildenhues.
20041
20042 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20043
20044         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
20045         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
20046         GCC 4.2, which otherwise issues a lot of warnings.
20047         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
20048         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
20049         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
20050         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
20051         it should no longer be needed.
20052         * lib/string_.h: Likewise.
20053         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
20054         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
20055         * modules/inttypes (inttypes.h): Likewise.
20056         * modules/math (math.h): Likewise.
20057         * modules/search (search.h): Likewise.
20058         * modules/signal (signal.h): Likewise.
20059         * modules/stdint (stdint.h): Likewise.
20060         * modules/stdio (stdio.h): Likewise.
20061         * modules/stdlib (stdlib.h): Likewise.
20062         * modules/string (string.h): Likewise.
20063         * modules/sys_time (sys/time.h): Likewise.
20064         * modules/time (time.h): Likewise.
20065         * modules/wchar (wchar.h): Likewise.
20066         * modules/wctype (wtype.h): Likewise.
20067
20068 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20069
20070         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
20071
20072 2007-05-13  Bruno Haible  <bruno@clisp.org>
20073
20074         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
20075         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20076         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
20077         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
20078         (gl_PREREQ_STRTOK_R): Don't require it here.
20079
20080 2007-05-13  Bruno Haible  <bruno@clisp.org>
20081
20082         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
20083         when used in C++ mode.
20084
20085 2007-05-12  Bruno Haible  <bruno@clisp.org>
20086
20087         * lib/linebuffer.h: Tweak doc.
20088         * lib/linebuffer.c: Likewise.
20089
20090 2007-05-12  James Youngman  <jay@gnu.org>
20091
20092         * lib/linebuffer.c (readlinebuffer_delim): New function,
20093         like readlinebuffer, but use a caller-specified delimiter.
20094         (readlinebuffer): Just call readlinebuffer_delim with '\n'
20095         as the delimiter.
20096         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
20097
20098 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
20099
20100         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
20101         * modules/openat (Files): Remove openat-die.c.
20102         (Depends-on): Add openat-die.
20103         * modules/openat-die: New module.
20104
20105 2007-05-06  Bruno Haible  <bruno@clisp.org>
20106
20107         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
20108         Update with info about Cygwin.
20109         * doc/functions/fprintf.texi: Update.
20110         * doc/functions/printf.texi: Update.
20111         * doc/functions/snprintf.texi: Update.
20112         * doc/functions/sprintf.texi: Update.
20113         * doc/functions/vfprintf.texi: Update.
20114         * doc/functions/vprintf.texi: Update.
20115         * doc/functions/vsnprintf.texi: Update.
20116         * doc/functions/vsprintf.texi: Update.
20117         Reported by Eric Blake.
20118
20119 2007-05-06  Bruno Haible  <bruno@clisp.org>
20120
20121         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
20122         padding ourselves for the floating-point directives.
20123         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
20124         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
20125         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20126         gl_PRINTF_FLAG_ZERO and test its result. Invoke
20127         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
20128         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20129         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
20130         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20131         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20132         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20133         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20134         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20135         * tests/test-snprintf-posix.h (test_function): Also check the width
20136         and some flags in the %f directive.
20137         * tests/test-sprintf-posix.h (test_function): Likewise.
20138         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20139         * tests/test-vasprintf-posix.c (test_function): Likewise.
20140         * doc/functions/fprintf.texi: Update.
20141         * doc/functions/printf.texi: Update.
20142         * doc/functions/snprintf.texi: Update.
20143         * doc/functions/sprintf.texi: Update.
20144         * doc/functions/vfprintf.texi: Update.
20145         * doc/functions/vprintf.texi: Update.
20146         * doc/functions/vsnprintf.texi: Update.
20147         * doc/functions/vsprintf.texi: Update.
20148
20149 2007-05-06  Bruno Haible  <bruno@clisp.org>
20150
20151         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
20152         pass the ' flag character to sprintf or snprintf.
20153         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
20154         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
20155         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20156         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
20157         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
20158         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20159         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
20160         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20161         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20162         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20163         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20164         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20165         * tests/test-snprintf-posix.h (test_function): Also check the grouping
20166         flag.
20167         * tests/test-sprintf-posix.h (test_function): Likewise.
20168         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20169         * tests/test-vasprintf-posix.c (test_function): Likewise.
20170         * doc/functions/fprintf.texi: Update.
20171         * doc/functions/printf.texi: Update.
20172         * doc/functions/snprintf.texi: Update.
20173         * doc/functions/sprintf.texi: Update.
20174         * doc/functions/vfprintf.texi: Update.
20175         * doc/functions/vprintf.texi: Update.
20176         * doc/functions/vsnprintf.texi: Update.
20177         * doc/functions/vsprintf.texi: Update.
20178
20179 2007-05-01  Bruno Haible  <bruno@clisp.org>
20180
20181         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
20182
20183 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
20184
20185         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
20186         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
20187
20188 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
20189
20190         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
20191         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
20192         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
20193
20194 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
20195
20196         * lib/argp-help.c (struct hol_entry): New member `ord'.
20197         (HOL_ENTRY_PTRCMP): Use ord for comparison
20198         (hol_sort): Initialize ord.
20199
20200 2007-05-01  Bruno Haible  <bruno@clisp.org>
20201
20202         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
20203         Reported by Eric Blake.
20204         * doc/gnulib.texi (Function Substitutes): Update.
20205
20206 2007-05-01  Bruno Haible  <bruno@clisp.org>
20207
20208         * doc/functions.texi: Remove file, now redundant through
20209         doc/functions/*.texi.
20210
20211 2007-05-01  Bruno Haible  <bruno@clisp.org>
20212
20213         * modules/argp (Depends-on): Add sleep.
20214
20215 2007-05-01  Bruno Haible  <bruno@clisp.org>
20216
20217         * modules/sleep-tests: New file.
20218         * tests/test-sleep.c: New file.
20219
20220         * modules/sleep: New file.
20221         * lib/sleep.c: New file.
20222         * m4/sleep.m4: New file.
20223         * lib/unistd_.h (sleep): New declaration.
20224         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
20225         HAVE_SLEEP.
20226         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
20227         * doc/functions/sleep.texi: Document the sleep module.
20228
20229 2007-05-01  Bruno Haible  <bruno@clisp.org>
20230
20231         * lib/sigprocmask.h: Remove file.
20232         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
20233         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
20234         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
20235         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
20236         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
20237         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
20238         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
20239         HAVE_SIGSET_T as a shell variable.
20240         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
20241         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
20242         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
20243         (Depends-on): Add signal. Remove verify.
20244         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
20245         (Include): Mention <signal.h> instead of sigprocmask.h.
20246         * NEWS: Mention the change.
20247         * lib/fatal-signal.c: Don't include sigprocmask.h.
20248
20249 2007-05-01  Bruno Haible  <bruno@clisp.org>
20250
20251         * modules/signal: New file.
20252         * lib/signal_.h: New file.
20253         * m4/signal_h.m4: New file.
20254
20255 2007-05-01  Bruno Haible  <bruno@clisp.org>
20256
20257         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
20258         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
20259         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
20260         HAVE_WCTYPE_CTMP_BUG into wctype.h.
20261
20262 2007-05-01  Bruno Haible  <bruno@clisp.org>
20263
20264         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
20265         configure time.
20266         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
20267         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
20268         * modules/sys_stat (Makefile.am): Substitute their values into
20269         sys/stat.h.
20270
20271 2007-05-01  Bruno Haible  <bruno@clisp.org>
20272
20273         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
20274         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
20275         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
20276
20277 2007-05-01  Bruno Haible  <bruno@clisp.org>
20278
20279         * doc/header/assert.texi: Undo last change: don't mention the gnulib
20280         'assert' module here.
20281
20282 2007-05-01  Bruno Haible  <bruno@clisp.org>
20283
20284         * doc/functions/*.texi: New files.
20285         * doc/functions/google-ranking.txt: New file.
20286         * doc/gnulib.texi (Function Substitutes): New chapter.
20287         (ctime, inet_ntoa): Remove sections.
20288         * doc/ctime.texi: Remove file.
20289         * doc/inet_ntoa.texi: Remove file.
20290         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
20291         dependencies.
20292         (%.info): New rule, specifying a --reference-limit.
20293
20294 2007-05-01  Bruno Haible  <bruno@clisp.org>
20295
20296         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
20297
20298 2007-05-01  Bruno Haible  <bruno@clisp.org>
20299
20300         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
20301         the portability of 'mkdir' to mingw systems.
20302
20303 2007-05-01  Bruno Haible  <bruno@clisp.org>
20304
20305         * doc/headers/google-ranking.txt: New file.
20306
20307 2007-04-30  Eric Blake  <ebb9@byu.net>
20308
20309         Prefer fseeko to fseek.
20310         * modules/getpass (Depends-on): Add fseeko.
20311         * lib/getpass.c (getpass): Use fseeko, not fseek.
20312
20313 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
20314
20315         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
20316         assumes the sorting is stable, while most qsort implementations
20317         are not.  Use argument addresses to ensure they never compare as
20318         equal.
20319
20320         * tests/test-argp-2.sh (usage-indent test): Fix output
20321         (func_compare): Restore diff options
20322         * tests/test-argp.c: Restore #include "progname.h"
20323
20324 2007-04-29  Bruno Haible  <bruno@clisp.org>
20325
20326         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
20327         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20328         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
20329         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20330         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
20331         (configure.ac): Define CHECK_SNPRINTF_POSIX.
20332         (TESTS, check_PROGRAMS): Add test-snprintf.
20333         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
20334         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
20335         (TESTS, check_PROGRAMS): Add test-vsnprintf.
20336         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
20337         assertions that fail on HP-UX, OSF/1, or IRIX.
20338         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
20339
20340 2007-04-29  Bruno Haible  <bruno@clisp.org>
20341
20342         * MODULES.html.sh (posix_functions): Remove 'contents'.
20343
20344 2007-04-29  Karl Berry  <karl@gnu.org>
20345
20346         * config/srclist.txt (gendocs_template_min): new entry.
20347
20348 2007-04-29  Bruno Haible  <bruno@clisp.org>
20349
20350         Work around fpurge bug on BSD systems.
20351         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
20352         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
20353         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
20354         fpurge to rpl_fpurge if the system already has this function.
20355         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
20356         the case where the system already has this function. Correct invariants
20357         on BSD systems.
20358         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
20359         BSD systems.
20360
20361 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
20362
20363         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
20364         proposed by Sven Verdoolaege.
20365
20366         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
20367         options.
20368         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
20369         (usage and help tests): Update
20370
20371 2007-04-29  Bruno Haible  <bruno@clisp.org>
20372
20373         * tests/test-fflush.c (main): Use a file of size 17, not 10.
20374         Print more information in case of failure. Disable a test on BeOS.
20375
20376 2007-04-29  Bruno Haible  <bruno@clisp.org>
20377
20378         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
20379         This helps debugging on systems on which no gdb is available.
20380
20381 2007-04-29  Bruno Haible  <bruno@clisp.org>
20382
20383         * lib/freading.h: Improve comments.
20384         * lib/fwriting.h: Likewise.
20385         * tests/test-freading.c (main): Don't check freading immediately after
20386         repositioning. Needed for glibc.
20387
20388 2007-04-29  Bruno Haible  <bruno@clisp.org>
20389
20390         * lib/freading.c (freading): Trivial simplification.
20391
20392 2007-04-28  Bruno Haible  <bruno@clisp.org>
20393
20394         * tests/test-fwriting.c (main): Also test the interaction between
20395         fflush and fwriting.
20396         * modules/fwriting-tests (Depends-on): Add fflush.
20397
20398         * tests/test-freading.c (main): Also test the interaction between
20399         fflush and freading.
20400         * modules/freading-tests (Depends-on): Add fflush.
20401
20402 2007-04-28  Bruno Haible  <bruno@clisp.org>
20403
20404         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
20405         fseeko and ftello.
20406         Suggested by Eric Blake.
20407
20408 2007-04-28  Jim Meyering  <jim@meyering.net>
20409
20410         Avoid false-negative in gl_STDINT_H's C99 conformance test.
20411         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
20412         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
20413
20414 2007-04-27  Eric Blake  <ebb9@byu.net>
20415
20416         * doc/headers/assert.texi (assert.h): Document assert module use.
20417
20418 2007-04-27  Bruno Haible  <bruno@clisp.org>
20419
20420         * doc/headers/*.texi: New files.
20421         * doc/gnulib.texi (Header File Substitutes): New chapter.
20422         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
20423         dependencies.
20424         (standards.info ,standards.html, standards.dvi): Update dependencies.
20425         (mostlyclean, clean): New targets.
20426
20427 2007-04-27  Bruno Haible  <bruno@clisp.org>
20428
20429         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
20430         * modules/sysexits (Files, Makefile.am): Update.
20431
20432         * lib/sys_socket_.h: Renamed from lib/socket_.h.
20433         * modules/sys_socket (Files, Makefile.am): Update.
20434
20435         * lib/sys_stat_.h: Renamed from lib/stat_.h.
20436         * modules/sys_stat (Files, Makefile.am): Update.
20437
20438 2007-04-27  Eric Blake  <ebb9@byu.net>
20439
20440         * lib/freading.h: Improve comments.
20441         * lib/fwriting.h: Likewise.
20442         * lib/fflush.c: Likewise.
20443
20444         Fix closein for mingw.
20445         * modules/closein-tests: Add tests for closein.
20446         * tests/test-closein.c: New file.
20447         * tests/test-closein.sh: Likewise.
20448         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
20449         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
20450
20451 2007-04-27  Bruno Haible  <bruno@clisp.org>
20452
20453         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
20454         version is < 6.
20455         * lib/math_.h [__DECC]: Likewise.
20456         * lib/stdio_.h [__DECC]: Likewise.
20457         * lib/stdlib_.h [__DECC]: Likewise.
20458         * lib/string_.h [__DECC]: Likewise.
20459         * lib/time_.h [__DECC]: Likewise.
20460         * lib/wchar_.h [__DECC]: Likewise.
20461         * lib/wctype_.h [__DECC]: Likewise.
20462
20463 2007-04-27  Bruno Haible  <bruno@clisp.org>
20464
20465         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
20466
20467 2007-04-27  Bruno Haible  <bruno@clisp.org>
20468
20469         * lib/fflush.c: Add comments.
20470         * modules/fpurge-tests (Depends-on): Add fflush.
20471         * modules/freadable-tests (Depends-on): Likewise.
20472         * modules/fwritable-tests (Depends-on): Likewise.
20473
20474 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
20475
20476         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
20477         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
20478         Report by Bruno Haible <bruno@clisp.org>.
20479
20480 2007-04-26  Eric Blake  <ebb9@byu.net>
20481
20482         Fix fflush on mingw.
20483         * modules/fflush (Depends-on): Add freading.
20484         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
20485         but unread data.
20486
20487 2007-04-26  Eric Blake  <ebb9@byu.net>
20488         and Bruno Haible  <bruno@clisp.org>
20489
20490         Implement freading and fwriting.
20491         * lib/freading.c: New file.
20492         * lib/freading.h: Likewise.
20493         * m4/freading.m4: Likewise.
20494         * modules/freading: Likewise.
20495         * modules/freading-tests: Likewise.
20496         * tests/test-freading.c: Likewise.
20497         * lib/fwriting.c: New file.
20498         * lib/fwriting.h: Likewise.
20499         * m4/fwriting.m4: Likewise.
20500         * modules/fwriting: Likewise.
20501         * modules/fwriting-tests: Likewise.
20502         * tests/test-fwriting.c: Likewise.
20503         * MODULES.html.sh (File stream based Input/Output): Mention them.
20504
20505 2007-04-26  Bruno Haible  <bruno@clisp.org>
20506
20507         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
20508         'long' when we assume it.
20509         Suggested by Eric Blake.
20510
20511 2007-04-26  Bruno Haible  <bruno@clisp.org>
20512
20513         Ensure fseeko, ftello are declared on glibc systems.
20514         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
20515         * modules/fseeko (configure.ac-early): Likewise.
20516         * modules/ftello (configure.ac-early): Likewise.
20517         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
20518         AC_FUNC_FSEEKO for this.
20519         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
20520         (gl_CHECK_FSEEKO): Remove macro.
20521
20522 2007-04-26  Bruno Haible  <bruno@clisp.org>
20523
20524         * tests/test-fflush.c (main): Also check the ftell result after
20525         fflush and fseek/fseeko.
20526         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
20527         file descriptor position cache in the stream.
20528         * lib/fseeko.c (rpl_fseeko): Likewise.
20529
20530 2007-04-26  Bruno Haible  <bruno@clisp.org>
20531
20532         * modules/fflush-tests (Depends-on): Add fseeko.
20533
20534 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
20535             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20536
20537         * lib/argz_.h: ensure error_t definition is obtained in same
20538         mechanism system argz.h would have.
20539         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
20540         argz facilities are known bad.  Err on the side of caution if
20541         cross-compiling.
20542
20543 2007-04-25  Eric Blake  <ebb9@byu.net>
20544
20545         * lib/fpurge.c (includes): Use stdlib.h for free.
20546         * tests/test-fflush.c (main): Also test fflush-fseeko.
20547
20548 2007-04-25  Bruno Haible  <bruno@clisp.org>
20549
20550         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
20551         * lib/fseeko.c: New file.
20552         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
20553         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
20554         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
20555         gl_FUNC_FSEEKO.
20556         (gl_FUNC_FSEEKO): Invoke it.
20557         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
20558         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
20559         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
20560
20561 2007-04-25  Bruno Haible  <bruno@clisp.org>
20562
20563         * modules/fflush (Depends-on): Add ftello.
20564
20565 2007-04-25  Bruno Haible  <bruno@clisp.org>
20566
20567         * modules/ftello-tests: New file.
20568         * tests/test-ftello.c: New file.
20569
20570         * modules/ftello: New file.
20571         * m4/ftello.m4: New file.
20572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
20573         HAVE_FTELLO.
20574         * lib/stdio_.h (ftello): New declaration.
20575         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
20576         HAVE_FTELLO.
20577
20578 2007-04-25  Bruno Haible  <bruno@clisp.org>
20579
20580         * modules/fseeko-tests: New file.
20581         * tests/test-fseeko.c: New file.
20582
20583         * modules/fseeko: New file.
20584         * m4/fseeko.m4: New file.
20585         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
20586         HAVE_FSEEKO.
20587         * lib/stdio_.h (fseeko): New declaration.
20588         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
20589         HAVE_FSEEKO.
20590
20591 2007-04-25  Bruno Haible  <bruno@clisp.org>
20592
20593         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
20594
20595 2007-04-25  Bruno Haible  <bruno@clisp.org>
20596
20597         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
20598         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
20599         * tests/test-unistd.c: Likewise.
20600         * tests/test-fcntl.c: Likewise.
20601
20602 2007-04-23  Eric Blake  <ebb9@byu.net>
20603
20604         * lib/fflush.c: Fix missing include.
20605         Reported by Bruno Haible.
20606
20607 2007-04-23  Bruno Haible  <bruno@clisp.org>
20608
20609         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
20610         Reported by Eric Blake.
20611
20612 2007-04-23  Bruno Haible  <bruno@clisp.org>
20613
20614         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
20615
20616 2007-04-23  Bruno Haible  <bruno@clisp.org>
20617
20618         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
20619
20620 2007-04-23  Bruno Haible  <bruno@clisp.org>
20621
20622         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
20623         Needed on HP-UX 11.
20624
20625 2007-04-16  Eric Blake  <ebb9@byu.net>
20626
20627         Make fflush rely on fpurge.
20628         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
20629         open coding all variants.
20630         * modules/fflush (Depends-on): Add fpurge and unistd.
20631         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
20632         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
20633
20634         Fix --with-tests compilation on cygwin.
20635         * modules/argmatch-tests (Makefile.am): List gnulib library first
20636         in LDADD.
20637         * modules/argp-tests (Makefile.am): Likewise.
20638         * modules/array-list-tests (Makefile.am): Likewise.
20639         * modules/array-oset-tests (Makefile.am): Likewise.
20640         * modules/avltree-list-tests (Makefile.am): Likewise.
20641         * modules/avltree-oset-tests (Makefile.am): Likewise.
20642         * modules/avltreehash-list-tests (Makefile.am): Likewise.
20643         * modules/carray-list-tests (Makefile.am): Likewise.
20644         * modules/dirname-tests (Makefile.am): Likewise.
20645         * modules/frexp-tests (Makefile.am): Likewise.
20646         * modules/isnanl-tests (Makefile.am): Likewise.
20647         * modules/linked-list-tests (Makefile.am): Likewise.
20648         * modules/linkedhash-list-tests (Makefile.am): Likewise.
20649         * modules/lock-tests (Makefile.am): Likewise.
20650         * modules/rbtree-list-tests (Makefile.am): Likewise.
20651         * modules/rbtree-oset-tests (Makefile.am): Likewise.
20652         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
20653         * modules/tls-tests (Makefile.am): Likewise.
20654         * modules/tsearch-tests (Makefile.am): Likewise.
20655         * modules/xvasprintf-tests (Makefile.am): Likewise.
20656
20657         Fix fpurge for cygwin.
20658         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
20659         value.
20660         * modules/fpurge-tests (Depends-on): Clean up trash.
20661
20662 2007-04-16  Simon Josefsson  <simon@josefsson.org>
20663
20664         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
20665
20666         * m4/autobuild.m4: Re-indent.
20667
20668 2007-04-13  Bruno Haible  <bruno@clisp.org>
20669
20670         * modules/fpurge-tests: New file.
20671         * tests/test-fpurge.c: New file.
20672
20673         * modules/fpurge: New file.
20674         * lib/fpurge.h: New file.
20675         * lib/fpurge.c: New file.
20676         * m4/fpurge.m4: New file.
20677
20678 2007-04-13  Bruno Haible  <bruno@clisp.org>
20679
20680         * modules/fbufmode-tests: New file.
20681         * tests/test-fbufmode.c: New file.
20682
20683         * modules/fbufmode: New file.
20684         * lib/fbufmode.h: New file.
20685         * lib/fbufmode.c: New file.
20686         * m4/fbufmode.m4: New file.
20687
20688 2007-04-13  Bruno Haible  <bruno@clisp.org>
20689
20690         * modules/fwritable-tests: New file.
20691         * tests/test-fwritable.c: New file.
20692
20693         * modules/fwritable: New file.
20694         * lib/fwritable.h: New file.
20695         * lib/fwritable.c: New file.
20696         * m4/fwritable.m4: New file.
20697
20698 2007-04-13  Bruno Haible  <bruno@clisp.org>
20699
20700         * modules/freadable-tests: New file.
20701         * tests/test-freadable.c: New file.
20702
20703         * modules/freadable: New file.
20704         * lib/freadable.h: New file.
20705         * lib/freadable.c: New file.
20706         * m4/freadable.m4: New file.
20707
20708 2007-04-13  Bruno Haible  <bruno@clisp.org>
20709
20710         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
20711         MOSTLYCLEANFILES.
20712
20713 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
20714
20715         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
20716         gzip bootstrap.conf to avoid dragging in i18n machinery.
20717         (gnulib_tool_option): Use it.
20718
20719 2007-04-13  Bruno Haible  <bruno@clisp.org>
20720
20721         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
20722         %F directives.
20723         * tests/test-vasprintf-posix.c (test_function): Likewise.
20724         * tests/test-snprintf-posix.h (test_function): Likewise.
20725         * tests/test-sprintf-posix.h (test_function): Likewise.
20726         * tests/test-fprintf-posix.h (test_function): Likewise.
20727         * tests/test-printf-posix.h (test_function): Likewise.
20728         * tests/test-fprintf-posix.out: Likewise.
20729
20730 2007-04-13  Bruno Haible  <bruno@clisp.org>
20731
20732         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
20733         * modules/tls-tests (configure.ac): Likewise.
20734         Reported by Arto C. Nirkko <anirkko@insel.ch>.
20735
20736 2007-04-13  Bruno Haible  <bruno@clisp.org>
20737
20738         * lib/tls.c (glthread_tls_get): Fix return type.
20739         Patch by Arto C. Nirkko <anirkko@insel.ch>.
20740
20741 2007-04-12  Eric Blake  <ebb9@byu.net>
20742
20743         * modules/gettime (Depends-on): Remove gettime.
20744         Reported by Dmitry V. Levin.
20745
20746 2007-04-12  Bruno Haible  <bruno@clisp.org>
20747
20748         * modules/fflush (Include): Mention <stdio.h>.
20749         * modules/strtoimax (Include): Mention <inttypes.h>.
20750         * modules/strtoumax (Include): Likewise.
20751
20752 2007-04-12  Eric Blake  <ebb9@byu.net>
20753
20754         * .cvsignore: New file.
20755         * .gitignore: Likewise.
20756
20757 2007-04-12  Bruno Haible  <bruno@clisp.org>
20758
20759         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
20760         not before, since $(LDADD) often contains libgnu.a.
20761         * modules/striconv-tests (test_striconv_LDADD): Likewise.
20762         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
20763         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
20764         Needed on Cygwin.
20765
20766 2007-04-12  Eric Blake  <ebb9@byu.net>
20767
20768         Work around glibc's failure to flush stdin on fclose.
20769         * lib/closein.c (close_stdin): Flush stdin before closing.
20770
20771         Work around glibc's failure to reset seekable stdin on exit.
20772         * modules/closein: New module.
20773         * lib/closein.c: New file.
20774         * lib/closein.h: Likewise.
20775         * m4/closein.m4: Likewise.
20776         * MODULES.html.sh (File stream based Input/Output): Document it.
20777
20778 2007-04-12  Simon Josefsson  <simon@josefsson.org>
20779
20780         * gnulib-tool: Rename generated 'autobuild' script to
20781         'do-autobuild' in --create-megatestdir output.
20782
20783         * doc/gnulib.texi (Build robot for gnulib): Fix.
20784
20785 2007-04-12  Simon Josefsson  <simon@josefsson.org>
20786
20787         * modules/sysexits (Depends-on): Add absolute-header.
20788
20789 2007-04-12  Eric Blake  <ebb9@byu.net>
20790
20791         No need to preserve errno on success.
20792         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
20793         Reported by Bruno Haible.
20794
20795 2007-04-12  Simon Josefsson  <simon@josefsson.org>
20796
20797         * MODULES.html.sh (Support for maintaining and releasing
20798         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
20799
20800 2007-04-12  Simon Josefsson  <simon@josefsson.org>
20801
20802         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
20803
20804 2007-04-12  Simon Josefsson  <simon@josefsson.org>
20805
20806         * modules/autobuild: New module.
20807
20808         * m4/autobuild.m4: New file.
20809
20810 2007-04-11  Bruno Haible  <bruno@clisp.org>
20811
20812         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
20813         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
20814         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
20815         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
20816         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20817         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20818         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20819         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20820         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20821         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20822         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
20823         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20824         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20825         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
20826         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20827         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20828         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
20829         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20830         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20831         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
20832         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20833         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20834         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
20835         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20836         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20837         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
20838         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
20839         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
20840         Reported by Eric Blake.
20841
20842 2007-04-11  Bruno Haible  <bruno@clisp.org>
20843
20844         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
20845
20846 2007-04-10  Bruno Haible  <bruno@clisp.org>
20847
20848         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
20849         for NaN and Infinity. Needed on FreeBSD 6.1.
20850         * tests/test-vasnprintf-posix.c (test_function): Undo last change
20851         regarding results for "%010a" of Infinity and NaN.
20852         * tests/test-vasprintf-posix.c (test_function): Likewise.
20853         * tests/test-snprintf-posix.h (test_function): Likewise.
20854         * tests/test-sprintf-posix.h (test_function): Likewise.
20855         * tests/test-fprintf-posix.h (test_function): Likewise.
20856         * tests/test-printf-posix.h (test_function): Likewise.
20857         * tests/test-fprintf-posix.out: Likewise.
20858
20859 2007-04-10  Bruno Haible  <bruno@clisp.org>
20860
20861         * modules/locale-tests: New file.
20862         * tests/test-locale.c: New file.
20863
20864         * modules/locale: New file.
20865         * lib/locale_.h: New file.
20866         * m4/locale_h.m4: New file.
20867
20868 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
20869             Bruno Haible  <bruno@clisp.org>
20870
20871         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
20872         be determined, test for availability of the copysignf, copysign,
20873         copysignl functions.
20874         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
20875         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
20876         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
20877
20878 2007-04-09  Eric Blake  <ebb9@byu.net>
20879
20880         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
20881         * modules/stdio (Makefile.am): Support fflush.
20882         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20883         * modules/fflush: New file.
20884         * lib/fflush.c: Likewise.
20885         * m4/fflush.m4: Likewise.
20886         * modules/fflush-tests: New test.
20887         * tests/test-fflush.c: Likewise.
20888         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
20889
20890 2007-04-06  Bruno Haible  <bruno@clisp.org>
20891
20892         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
20893         (VASNPRINTF): Use signbit for faster determination whether to print a
20894         minus sign.
20895         * modules/vasnprintf (Files): Remove lib/float+.h.
20896         * modules/fprintf-posix (Depends-on): Add signbit.
20897         * modules/snprintf-posix (Depends-on): Likewise.
20898         * modules/sprintf-posix (Depends-on): Likewise.
20899         * modules/vasnprintf-posix (Depends-on): Likewise.
20900         * modules/vasprintf-posix (Depends-on): Likewise.
20901         * modules/vfprintf-posix (Depends-on): Likewise.
20902         * modules/vsnprintf-posix (Depends-on): Likewise.
20903         * modules/vsprintf-posix (Depends-on): Likewise.
20904
20905 2007-04-06  Bruno Haible  <bruno@clisp.org>
20906
20907         * tests/test-frexp.c (main): Test also the sign bit of zero results.
20908         * tests/test-frexpl.c (main): Likewise.
20909         * tests/test-ldexpl.c (main): Likewise.
20910         * modules/frexp-tests (Depends-on): Add signbit.
20911         * modules/frexpl-tests (Depdends-on): Likewise.
20912         * modules/ldexpl-tests (Depdends-on): Likewise.
20913
20914 2007-04-06  Bruno Haible  <bruno@clisp.org>
20915
20916         * modules/signbit-tests: New file.
20917         * tests/test-signbit.c: New file.
20918
20919         * modules/signbit: New file.
20920         * lib/signbitf.c: New file.
20921         * lib/signbitd.c: New file.
20922         * lib/signbitl.c: New file.
20923         * m4/signbit.m4: New file.
20924         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
20925         (signbit): New macro.
20926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
20927         REPLACE_SIGNBIT.
20928         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
20929         REPLACE_FREXPL into math.h.
20930
20931 2007-04-06  Bruno Haible  <bruno@clisp.org>
20932
20933         * modules/isnanf-nolibm-tests: New file.
20934         * tests/test-isnanf.c: New file.
20935
20936         * modules/isnanf-nolibm: New file.
20937         * lib/isnanf.h: New file.
20938         * lib/isnanf.c: New file.
20939         * lib/isnan.c: Consider the USE_FLOAT macro.
20940         * m4/isnanf.m4: New file.
20941
20942 2007-04-06  Bruno Haible  <bruno@clisp.org>
20943
20944         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
20945         (Link): New section.
20946
20947         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
20948
20949 2007-04-06  Bruno Haible  <bruno@clisp.org>
20950
20951         Assume the 'long double' type.
20952         * m4/longdouble.m4: Remove file.
20953         * config/srclist.txt: Don't mention longdouble.m4.
20954         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
20955         * lib/float+.h: Likewise.
20956         * lib/frexp.c: Likewise.
20957         * lib/printf-args.h: Likewise.
20958         * lib/printf-args.c: Likewise.
20959         * lib/printf-frexp.c: Likewise.
20960         * lib/printf-parse.c: Likewise.
20961         * lib/vasnprintf.c: Likewise.
20962         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
20963         * m4/intl.m4: Likewise.
20964         * m4/isnanl.m4: Likewise.
20965         * m4/printf.m4: Likewise.
20966         * m4/printf-frexpl.m4: Likewise.
20967         * m4/vasnprintf.m4: Likewise.
20968         * modules/allocsa (Files): Remove m4/longdouble.m4.
20969         * modules/gettext (Files): Likewise.
20970         * modules/relocatable-prog-wrapper (Files): Likewise.
20971         * modules/vasnprintf (Files): Likewise.
20972         * modules/isnanl (Files): Likewise.
20973         (Include): Simplify.
20974         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
20975         (Include): Simplify.
20976         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
20977         (Include): Simplify.
20978         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
20979         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
20980         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
20981         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
20982         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
20983         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
20984         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
20985         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
20986         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
20987         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
20988         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
20989         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
20990         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
20991         * tests/test-isnanl.c: Likewise.
20992         * tests/test-snprintf-posix.h: Likewise.
20993         * tests/test-sprintf-posix.h: Likewise.
20994         * tests/test-vasnprintf-posix.c: Likewise.
20995         * tests/test-vasnprintf-posix2.c: Likewise.
20996         * tests/test-vasprintf-posix.c: Likewise.
20997
20998 2007-04-06  Bruno Haible  <bruno@clisp.org>
20999
21000         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
21001         * lib/math_.h [__DECC]: Include the overridden include file through
21002         #include_next, outside the double-inclusion guard.
21003         * lib/stdio_.h [__DECC]: Likewise.
21004         * lib/stdlib_.h [__DECC]: Likewise.
21005         * lib/string_.h [__DECC]: Likewise.
21006         * lib/time_.h [__DECC]: Likewise.
21007         * lib/wchar_.h [__DECC]: Likewise.
21008         * lib/wctype_.h [__DECC]: Likewise.
21009         * lib/inttypes_.h [__DECC]: Likewise.
21010         Reported by Albert Chin <china@thewrittenword.com> in
21011         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
21012
21013 2007-04-04  Eric Blake  <ebb9@byu.net>
21014
21015         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
21016         1.5.x.
21017
21018 2007-04-04  Bruno Haible  <bruno@clisp.org>
21019
21020         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
21021         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
21022
21023 2007-04-04  Bruno Haible  <bruno@clisp.org>
21024
21025         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
21026         results for "%010a" of Infinity and NaN.
21027         * tests/test-vasprintf-posix.c (test_function): Likewise.
21028         * tests/test-snprintf-posix.h (test_function): Likewise.
21029         * tests/test-sprintf-posix.h (test_function): Likewise.
21030         * tests/test-fprintf-posix.h (test_function): Remove these tests.
21031         * tests/test-printf-posix.h (test_function): Likewise.
21032         * tests/test-fprintf-posix.out: Update.
21033         Needed for FreeBSD 6.1.
21034
21035 2007-04-04  Bruno Haible  <bruno@clisp.org>
21036
21037         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
21038         directly used by the gnulib modules nor by gnulib-tool.
21039
21040 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
21041
21042         * DEPENDENCIES: Give overall description of version dependency
21043         desirability.  Use more-typical names for apps.
21044         Add shell, coreutils, diffutils, grep, tar, gzip.
21045
21046 2007-04-04  Simon Josefsson  <simon@josefsson.org>
21047
21048         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
21049
21050 2007-04-04  Karl Berry  <karl@gnu.org>
21051
21052         * MODULES.html.sh (func_module): missing '.
21053
21054 2007-04-03  Bruno Haible  <bruno@clisp.org>
21055
21056         * modules/argmatch-tests (Makefile.am): New variable
21057         test_argmatch_LDADD.
21058         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
21059         * modules/array-list-tests (Makefile.am): New variable
21060         test_array_list_LDADD.
21061         * modules/array-oset-tests (Makefile.am): New variable
21062         test_array_oset_LDADD.
21063         * modules/avltree-list-tests (Makefile.am): New variable
21064         test_avltree_list_LDADD.
21065         * modules/avltree-oset-tests (Makefile.am): New variable
21066         test_avltree_oset_LDADD.
21067         * modules/avltreehash-list-tests (Makefile.am): New variable
21068         test_avltreehash_list_LDADD.
21069         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
21070         test_canonicalize_lgpl_LDADD.
21071         * modules/carray-list-tests (Makefile.am): New variable
21072         test_carray_list_LDADD.
21073         * modules/dirname-tests (Makefile.am): New variable
21074         test_dirname_LDADD.
21075         * modules/linked-list-tests (Makefile.am): New variable
21076         test_linked_list_LDADD.
21077         * modules/linkedhash-list-tests (Makefile.am): New variable
21078         test_linkedhash_list_LDADD.
21079         * modules/rbtree-list-tests (Makefile.am): New variable
21080         test_rbtree_list_LDADD.
21081         * modules/rbtree-oset-tests (Makefile.am): New variable
21082         test_rbtree_oset_LDADD.
21083         * modules/rbtreehash-list-tests (Makefile.am): New variable
21084         test_rbtreehash_list_LDADD.
21085         * modules/xvasprintf-tests (Makefile.am): New variable
21086         test_xvasprintf_LDADD.
21087         Reported by Eric Blake.
21088
21089 2007-04-03  Eric Blake  <ebb9@byu.net>
21090
21091         * DEPENDENCIES: Weaken m4 requirements.
21092
21093 2007-04-03  Bruno Haible  <bruno@clisp.org>
21094
21095         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
21096         * modules/isnanl-tests (configure.ac): Likewise.
21097
21098 2007-04-03  Ben Pfaff  <blp@gnu.org>
21099
21100         * modules/iconv_open: Add $(srcdir)/ to source directory
21101         references in Makefile fragments that call gperf, to fix VPATH
21102         builds.
21103
21104 2007-04-03  Bruno Haible  <bruno@clisp.org>
21105
21106         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
21107         * lib/ldexpl.c: Undo last change.
21108
21109 2007-04-03  Bruno Haible  <bruno@clisp.org>
21110
21111         * modules/printf-frexpl (Depends-on): Undo last change.
21112         (Files): Add m4/ldexpl.m4.
21113
21114 2007-04-03  Bruno Haible  <bruno@clisp.org>
21115
21116         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
21117         * modules/isnanl (Link): New section.
21118
21119         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
21120         * modules/frexp (Link): New section.
21121
21122         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
21123         * modules/frexpl (Link): New section.
21124
21125         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
21126         * modules/ldexpl (Link): New section.
21127
21128 2007-04-03  Bruno Haible  <bruno@clisp.org>
21129
21130         * modules/TEMPLATE-EXTENDED: New file.
21131         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
21132
21133 2007-04-03  Bruno Haible  <bruno@clisp.org>
21134
21135         * DEPENDENCIES: New file.
21136         Suggested by Simon Josefsson.
21137
21138 2007-04-03  Bruno Haible  <bruno@clisp.org>
21139
21140         * doc/gnulib.texi: Escape @.
21141
21142 2007-04-03  James Youngman  <jay@gnu.org>
21143         and Paul Eggert  <eggert@cs.ucla.edu>
21144
21145         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
21146         birthtime on all systems that have birthtime, not just those which
21147         use st_birthtimensec rather than st_birthtim.  Putting zero in
21148         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
21149         that the birth time is not available for files on an NFS mount.
21150
21151 2007-04-03  Simon Josefsson  <simon@josefsson.org>
21152
21153         * modules/memxor: Move back from crypto/, suggested by Bruno.
21154         * modules/crypto/hmac-sha1: Fix memxor dependency.
21155
21156         * modules/crypto/gc: Moved from ../.
21157
21158 2007-04-02  Eric Blake  <ebb9@byu.net>
21159
21160         * lib/ldexpl.c (includes): Avoid libm.
21161
21162         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
21163
21164 2007-04-02  Bruno Haible  <bruno@clisp.org>
21165
21166         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
21167         on IRIX.
21168
21169 2007-04-02  Bruno Haible  <bruno@clisp.org>
21170
21171         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
21172         x86 or x86_64 platforms running MacOS X.
21173         Reported by Ryan Schmidt <@ryandesign.com>.
21174
21175 2007-04-02  Bruno Haible  <bruno@clisp.org>
21176
21177         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
21178         i386.
21179
21180 2007-04-01  Simon Josefsson  <simon@josefsson.org>
21181
21182         * modules/crypto/arcfour: Moved from ../.
21183         * modules/crypto/arcfour-tests: Moved from ../.
21184         * modules/crypto/arctwo: Moved from ../.
21185         * modules/crypto/arctwo-tests: Moved from ../.
21186         * modules/crypto/des: Moved from ../.
21187         * modules/crypto/des-tests: Moved from ../.
21188         * modules/crypto/gc-arcfour: Moved from ../.
21189         * modules/crypto/gc-arcfour-tests: Moved from ../.
21190         * modules/crypto/gc-arctwo: Moved from ../.
21191         * modules/crypto/gc-arctwo-tests: Moved from ../.
21192         * modules/crypto/gc-des: Moved from ../.
21193         * modules/crypto/gc-des-tests: Moved from ../.
21194         * modules/crypto/gc-hmac-md5: Moved from ../.
21195         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
21196         * modules/crypto/gc-hmac-sha1: Moved from ../.
21197         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
21198         * modules/crypto/gc-md2: Moved from ../.
21199         * modules/crypto/gc-md2-tests: Moved from ../.
21200         * modules/crypto/gc-md4: Moved from ../.
21201         * modules/crypto/gc-md4-tests: Moved from ../.
21202         * modules/crypto/gc-md5: Moved from ../.
21203         * modules/crypto/gc-md5-tests: Moved from ../.
21204         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
21205         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
21206         * modules/crypto/gc-random: Moved from ../.
21207         * modules/crypto/gc-rijndael: Moved from ../.
21208         * modules/crypto/gc-rijndael-tests: Moved from ../.
21209         * modules/crypto/gc-sha1: Moved from ../.
21210         * modules/crypto/gc-sha1-tests: Moved from ../.
21211         * modules/crypto/gc-tests: Moved from ../.
21212         * modules/crypto/hmac-md5: Moved from ../.
21213         * modules/crypto/hmac-md5-tests: Moved from ../.
21214         * modules/crypto/hmac-sha1: Moved from ../.
21215         * modules/crypto/hmac-sha1-tests: Moved from ../.
21216         * modules/crypto/md2: Moved from ../.
21217         * modules/crypto/md2-tests: Moved from ../.
21218         * modules/crypto/md4: Moved from ../.
21219         * modules/crypto/md4-tests: Moved from ../.
21220         * modules/crypto/md5: Moved from ../.
21221         * modules/crypto/md5-tests: Moved from ../.
21222         * modules/crypto/memxor: Moved from ../.
21223         * modules/crypto/rijndael: Moved from ../.
21224         * modules/crypto/rijndael-tests: Moved from ../.
21225         * modules/crypto/sha1: Moved from ../.
21226
21227 2007-03-30  James Youngman  <jay@gnu.org>
21228
21229         * tests/test-stat-time.c (prepare_test): use chmod() rather than
21230         rename() to change the ctime of a file (because ctime is unaffected
21231         by rename on jfs2 on AIX 5.1).
21232         (main): Start by doing cleanup, in case a previous run failed leaving
21233         test files behind.
21234
21235 2007-03-31  Bruno Haible  <bruno@clisp.org>
21236
21237         Support old proprietary implementations of iconv.
21238         * modules/iconv_open: New file.
21239         * lib/iconv_.h: New file.
21240         * m4/iconv_h.m4: New file.
21241         * lib/iconv_open.c: New file.
21242         * lib/iconv_open-aix.gperf: New file.
21243         * lib/iconv_open-hpux.gperf: New file.
21244         * lib/iconv_open-irix.gperf: New file.
21245         * lib/iconv_open-osf.gperf: New file.
21246         * m4/iconv_open.m4: New file.
21247         * modules/linebreak (Depends-on): Add iconv_open.
21248         * modules/striconv (Depends-on): Likewise.
21249         * modules/striconveh (Depends-on): Likewise.
21250         * modules/unicodeio (Depends-on): Likewise.
21251         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
21252         (iconv_t)(-1).
21253         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
21254         conversion if cd is (iconv_t)(-1).
21255         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
21256         is not possible.
21257
21258 2007-03-31  Bruno Haible  <bruno@clisp.org>
21259
21260         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
21261         work on Solaris either. Protect also second use of "autodetect_jp".
21262
21263 2007-03-31  Bruno Haible  <bruno@clisp.org>
21264
21265         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
21266         the function is not present.
21267
21268 2007-03-31  Bruno Haible  <bruno@clisp.org>
21269
21270         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
21271         the function is not present.
21272
21273 2007-03-31  Bruno Haible  <bruno@clisp.org>
21274
21275         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
21276         a bug in HP-UX iconv_open().
21277
21278 2007-03-31  Bruno Haible  <bruno@clisp.org>
21279
21280         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
21281         (Mathematics <math.h>): New section, add fpieee.
21282         (Input/output <stdio.h>): Add fseterr.
21283         (Mathematics <math.h>): New section, add printf-frexp.
21284         (Container data structures): Add sublist.
21285         (Core language properties): Add fpucw, inline.
21286         (Functions for greatest-width integer types <inttypes.h>): Add
21287         imaxabs, imaxdiv, inttypes.
21288         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
21289         isnanl-nolibm, ldexp.
21290         (Mathematics <math.h>): New section, add printf-frexpl.
21291         (Support for systems lacking POSIX:2001): Add fprintf-posix,
21292         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
21293         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
21294         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
21295         (Unicode string functions): Add unistr/u*-mbtoucr.
21296         (Java): Add javacomp-script, javaexec-script.
21297         (C#): Add csharpcomp-script, csharpexec-script.
21298         (Support for building libraries and executables): Add havelib,
21299         relocatable-*.
21300         (Support for maintaining and releasing projects): Renamed from
21301         'Support for maintaining and release projects'. Add announce-gen.
21302
21303 2007-03-31  Bruno Haible  <bruno@clisp.org>
21304
21305         * README: Talk primarily about git.
21306         (git and CVS): Renamed from CVS.
21307         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
21308         gnulib is available through git.
21309         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
21310
21311 2007-03-30  Bruno Haible  <bruno@clisp.org>
21312
21313         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
21314         * lib/poll_.h: Likewise.
21315         * lib/stat_.h: Likewise.
21316         * lib/sys_time_.h: Likewise.
21317         * lib/sysexit_.h: Likewise.
21318         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
21319         * lib/stdbool_.h: Likewise.
21320         * lib/byteswap_.h: Add double-inclusion guard.
21321
21322 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
21323
21324         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
21325
21326 2007-03-30  Karl Berry  <karl@gnu.org>
21327
21328         * config/srclist-update: double space after USA in the license
21329         substitution, since that's how it's usually (?) written.
21330
21331 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
21332
21333         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
21334         reported by Bruno Haible.
21335
21336 2007-03-29  Bruno Haible  <bruno@clisp.org>
21337
21338         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
21339         a bug in AIX iconv().
21340
21341 2007-03-29  Bruno Haible  <bruno@clisp.org>
21342
21343         * modules/ldexpl-tests: New file.
21344         * tests/test-ldexpl.c: New file.
21345
21346 2007-03-29  Bruno Haible  <bruno@clisp.org>
21347
21348         * lib/ldexpl.c: Include fpucw.h.
21349         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
21350         multiplication.
21351         * modules/ldexpl (Depends-on): Add fpucw.
21352
21353 2007-03-29  Bruno Haible  <bruno@clisp.org>
21354
21355         * modules/ldexpl: New file.
21356         * m4/ldexpl.m4: New file.
21357         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
21358         set.
21359         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
21360         REPLACE_LDEXPL.
21361         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
21362         REPLACE_LDEXPL.
21363         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
21364         gl_FUNC_LDEXPL_WORKS.
21365         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
21366         * modules/mathl (Files): Remove lib/ldexpl.c.
21367         (Depends-on): Add ldexpl.
21368
21369 2007-03-29  Bruno Haible  <bruno@clisp.org>
21370
21371         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
21372
21373 2007-03-29  Bruno Haible  <bruno@clisp.org>
21374
21375         * tests/test-striconveh.c (main): Don't assume that a direct conversion
21376         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
21377         and possibly also HP-UX.
21378         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
21379         work on AIX, IRIX, HP-UX, OSF/1.
21380         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
21381         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
21382         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
21383         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
21384         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
21385         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
21386
21387 2007-03-29  Bruno Haible  <bruno@clisp.org>
21388
21389         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
21390
21391 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
21392
21393         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
21394         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
21395
21396 2007-03-29  Eric Blake  <ebb9@byu.net>
21397
21398         * lib/acl-internal.h: Remove redundant include.
21399         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
21400         Cygwin when a file is locked.
21401
21402 2007-03-29  Bruno Haible  <bruno@clisp.org>
21403
21404         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
21405         file.
21406         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
21407
21408 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
21409
21410         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
21411         try to remove a parent directory if the child couldn't be removed
21412         (except for the first rmdir, which could fail because the child
21413         doesn't exist).  Problem reported by Jeff Blaine in
21414         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
21415
21416 2007-03-28  Bruno Haible  <bruno@clisp.org>
21417
21418         * lib/striconveh.c (utf8conv_carefully): New function.
21419         (mem_cd_iconveh_internal): Invoke it.
21420
21421 2007-03-28  Bruno Haible  <bruno@clisp.org>
21422
21423         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
21424         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
21425         input.
21426         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
21427         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
21428         unistr/u8-uctomb.
21429
21430 2007-03-28  Bruno Haible  <bruno@clisp.org>
21431
21432         * modules/unistr/u8-mbtoucr: New file.
21433         * lib/unistr/u8-mbtoucr.c: New file.
21434         * modules/unistr/u16-mbtoucr: New file.
21435         * lib/unistr/u16-mbtoucr.c: New file.
21436         * modules/unistr/u16-mbtoucr: New file.
21437         * lib/unistr/u16-mbtoucr.c: New file.
21438         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
21439
21440 2007-03-27  Simon Josefsson  <simon@josefsson.org>
21441             Bruno Haible  <bruno@clisp.org>
21442
21443         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
21444         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
21445         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
21446
21447         * m4/stdio_h.m4: Add stubs for vasprintf too.
21448
21449         * modules/stdio: Support vasprintf in sed command.
21450
21451         * modules/vasprintf: Depend on stdio for prototypes.  Remove
21452         vasprintf.h.  Add stdio module indicator.
21453
21454         * lib/stdio_.h: Declare asprintf and vasprintf, based on
21455         vasprintf.h.
21456
21457         * lib/vasprintf.h: File removed.
21458
21459         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
21460         * lib/vasprintf.c: Ditto.
21461         * lib/xvasprintf.c: Ditto.
21462         * tests/test-vasprintf-posix.c: Ditto.
21463         * tests/test-vasprintf.c: Ditto.
21464
21465 2007-03-27  Bruno Haible  <bruno@clisp.org>
21466
21467         Make vasnprintf multithread-safe.
21468         * lib/vasnprintf.c (decimal_point_char): New function.
21469         (VASNPRINTF): Use it.
21470         Suggested by Simon Josefsson.
21471
21472 2007-03-27  Eric Blake  <ebb9@byu.net>
21473
21474         Support sub-second birthtime on cygwin.
21475         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
21476         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
21477         (get_stat_birthtime): Also work with st_birthtim.
21478
21479 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
21480
21481         * lib/stat-time.h (USE_BIRTHTIME): Remove.
21482         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
21483         (get_stat_birthtime_ns): Do not try to use "spare" fields.
21484         (get_stat_birthtime_ns): Simplify compile-time tests.
21485         (get_stat_birthtime): Change the API to look like
21486         get_stat_mtime etc., except return a negative tv_nsec on error.
21487         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
21488         Don't check for "spare" fields.
21489         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
21490         or for struct stat.st_birthtime, as these tests aren't used.
21491         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
21492
21493 2007-03-27  Bruno Haible  <bruno@clisp.org>
21494
21495         * lib/stat-time.h: Include <sys/stat.h>.
21496
21497 2007-03-27  James Youngman  <jay@gnu.org>
21498
21499         * lib/stat-time.h (get_stat_birthtime): New function for
21500           retrieving st_birthtime as provided by UFS2 (hence *BSD).
21501         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
21502           and its variants.
21503         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
21504         * modules/stat-time-test: New file.
21505         * tests/test-stat-time.c: New test, devised by Bruno Haible.
21506
21507 2007-03-26  Bruno Haible  <bruno@clisp.org>
21508
21509         Better support of signalling NaNs.
21510         * lib/atanl.c: Include isnanl.h.
21511         (atanl): Perform test for NaN at the beginning of the function and
21512         through a call to isnanl.
21513         * lib/cosl.c: Include isnanl.h.
21514         (cosl): Perform test for NaN at the beginning of the function and
21515         through a call to isnanl.
21516         * lib/ldexpl.c: Include isnanl.h.
21517         (ldexpl): Perform test for NaN through a call to isnanl.
21518         * lib/logl.c: Include isnanl.h.
21519         (logl): Perform test for NaN at the beginning of the function and
21520         through a call to isnanl.
21521         * lib/sinl.c: Include isnanl.h.
21522         (sinl): Perform test for NaN at the beginning of the function and
21523         through a call to isnanl.
21524         * lib/sqrtl.c: Include isnanl.h.
21525         (sqrtl): Perform test for NaN at the beginning of the function and
21526         through a call to isnanl.
21527         * lib/tanl.c: Include isnanl.h.
21528         (tanl): Perform test for NaN at the beginning of the function and
21529         through a call to isnanl.
21530         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
21531         * modules/mathl (Depends-on): Add isnanl.
21532
21533 2007-03-26  Eric Blake  <ebb9@byu.net>
21534
21535         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
21536         regression in logic sense of previous patch.
21537
21538 2007-03-26  Bruno Haible  <bruno@clisp.org>
21539
21540         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
21541         unportable shell command "if ! ...".
21542         Reported by Ralf Wildenhues.
21543
21544 2007-03-25  Bruno Haible  <bruno@clisp.org>
21545
21546         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
21547         <sysexits.h> file, and only add EX_CONFIG.
21548         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
21549         absolute file name and whether it is sufficient. Substitute also
21550         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
21551         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
21552         ABSOLUTE_SYSEXITS_H into sysexits.h.
21553
21554 2007-03-25  Bruno Haible  <bruno@clisp.org>
21555
21556         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
21557         hints is NULL.
21558
21559 2007-03-25  Bruno Haible  <bruno@clisp.org>
21560
21561         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
21562         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
21563
21564 2007-03-25  Bruno Haible  <bruno@clisp.org>
21565
21566         * lib/vasnprintf.c: Include langinfo.h.
21567         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
21568         multithread-safe.
21569         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
21570         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
21571         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
21572         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
21573         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
21574         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
21575         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
21576         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
21577         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
21578         Reported by Simon Josefsson.
21579
21580 2007-03-25  Bruno Haible  <bruno@clisp.org>
21581
21582         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
21583         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
21584         * modules/vasnprintf (Depends-on): Add stdint.
21585
21586 2007-03-25  Bruno Haible  <bruno@clisp.org>
21587
21588         * modules/fpieee: New file.
21589         * m4/fpieee.m4: New file.
21590         * modules/isnan-nolibm (Depends-on): Add fpieee.
21591         * modules/isnanl-nolibm (Depends-on): Add fpieee.
21592         * modules/isnanl (Depends-on): Add fpieee.
21593
21594 2007-03-25  Bruno Haible  <bruno@clisp.org>
21595
21596         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
21597
21598 2007-03-25  Bruno Haible  <bruno@clisp.org>
21599
21600         Avoid test failures on IRIX 6.5.
21601         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
21602         (main): Use it.
21603         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
21604         macros.
21605         (main): Use them.
21606
21607 2007-03-25  Bruno Haible  <bruno@clisp.org>
21608
21609         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
21610         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
21611         exists but doesn't work.
21612         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
21613         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
21614         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
21615         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
21616
21617 2007-03-25  Bruno Haible  <bruno@clisp.org>
21618
21619         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
21620         returns inf. Needed on IRIX 6.5.
21621
21622 2007-03-25  Bruno Haible  <bruno@clisp.org>
21623
21624         * tests/test-frexpl.c: Include isnanl-nolibm.h.
21625         (main): Use isnanl instead of x != x idiom.
21626         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
21627
21628         * tests/test-frexp.c: Include isnan.h.
21629         (main): Use isnan instead of x != x idiom.
21630         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
21631
21632 2007-03-25  Bruno Haible  <bruno@clisp.org>
21633
21634         * tests/test-frexp.c (NaN): New function/macro.
21635         (main): Use it instead of 0.0 / 0.0.
21636         * tests/test-isnan.c (NaN): New function/macro.
21637         (main): Use it instead of 0.0 / 0.0.
21638         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
21639         (test_function): Use it instead of 0.0 / 0.0.
21640         * tests/test-vasprintf-posix.c (NaN): New function/macro.
21641         (test_function): Use it instead of 0.0 / 0.0.
21642         * tests/test-snprintf-posix.h (NaN): New function/macro.
21643         (test_function): Use it instead of 0.0 / 0.0.
21644         * tests/test-sprintf-posix.h (NaN): New function/macro.
21645         (test_function): Use it instead of 0.0 / 0.0.
21646         * tests/test-fprintf-posix.h (NaN): New function/macro.
21647         (test_function): Use it instead of 0.0 / 0.0.
21648         * tests/test-printf-posix.h (NaN): New function/macro.
21649         (test_function): Use it instead of 0.0 / 0.0.
21650
21651         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
21652
21653 2007-03-25  Bruno Haible  <bruno@clisp.org>
21654
21655         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
21656
21657 2007-03-25  Bruno Haible  <bruno@clisp.org>
21658
21659         * lib/regexec.c (merge_state_with_log): Make static.
21660
21661 2007-03-25  Bruno Haible  <bruno@clisp.org>
21662
21663         * lib/trigl.c (kernel_rem_pio2): Make static.
21664
21665 2007-03-25  Bruno Haible  <bruno@clisp.org>
21666
21667         * lib/sincosl.c (sincosl_table): Make static.
21668
21669 2007-03-25  Bruno Haible  <bruno@clisp.org>
21670
21671         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
21672         if the compiler does not support C99.
21673
21674 2007-03-25  Bruno Haible  <bruno@clisp.org>
21675
21676         * modules/time (Makefile.am): Ensure all rule action lines start with a
21677         tab.
21678
21679 2007-03-24  Bruno Haible  <bruno@clisp.org>
21680
21681         * modules/tsearch-tests: New file.
21682         * tests/test-tsearch.sh: New file.
21683         * tests/test-tsearch.c: New file, mostly copied from glibc.
21684
21685         * modules/search-tests: New file.
21686         * tests/test-search.c: New file.
21687
21688         * modules/search: New file.
21689         * lib/search_.h: New file, incorporating lib/tsearch.h.
21690         * m4/search_h.m4: New file.
21691         * lib/tsearch.h: Remove file.
21692         * lib/tsearch.c: Include search.h instead of tsearch.h.
21693         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
21694         HAVE_TSEARCH.
21695         * modules/tsearch (Files): Remove lib/tsearch.h.
21696         (Depends-on): Add search.
21697         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
21698         (Include): Change tsearch.h into search.h.
21699
21700 2007-03-24  Bruno Haible  <bruno@clisp.org>
21701
21702         * modules/fpucw: New file.
21703         * lib/fpucw.h: New file.
21704         * lib/frexp.c: Include fpucw.h.
21705         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
21706         (FUNC): Use them.
21707         * lib/printf-frexp.c: Include fpucw.h.
21708         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
21709         (FUNC): Use them.
21710         * lib/vasnprintf.c: Include fpucw.h.
21711         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
21712         'long double' calculations.
21713         * tests/test-frexpl.c: Include fpucw.h.
21714         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
21715         * tests/test-printf-frexpl.c: Include fpucw.h.
21716         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
21717         * modules/frexpl (Depends-on): Add fpucw.
21718         * modules/printf-frexpl (Depends-on): Likewise.
21719         * modules/fprintf-posix (Depends-on): Likewise.
21720         * modules/snprintf-posix (Depends-on): Likewise.
21721         * modules/sprintf-posix (Depends-on): Likewise.
21722         * modules/vasnprintf-posix (Depends-on): Likewise.
21723         * modules/vasprintf-posix (Depends-on): Likewise.
21724         * modules/vfprintf-posix (Depends-on): Likewise.
21725         * modules/vsnprintf-posix (Depends-on): Likewise.
21726         * modules/vsprintf-posix (Depends-on): Likewise.
21727         * modules/frexpl-tests (Depends-on): Likewise.
21728         * modules/printf-frexpl-tests (Depends-on): Likewise.
21729
21730 2007-03-24  Bruno Haible  <bruno@clisp.org>
21731
21732         * lib/float+.h: New file.
21733         * lib/isnan.c: Include float+.h.
21734         (SIZE): New macro.
21735         (FUNC): Compare only SIZE bytes of the value.
21736         * lib/vasnprintf.c: Include float+.h.
21737         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
21738         SIZEOF_LDBL or SIZEOF_DBL bytes.
21739         * modules/isnan-nolibm (Files): Add lib/float+.h.
21740         * modules/isnanl-nolibm (Files): Add lib/float+.h.
21741         * modules/isnanl (Files): Add lib/float+.h.
21742         * modules/vasnprintf (Files): Add lib/float+.h.
21743
21744 2007-03-24  Bruno Haible  <bruno@clisp.org>
21745
21746         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
21747         include isnanl-nolibm.h.
21748
21749 2007-03-24  Bruno Haible  <bruno@clisp.org>
21750
21751         * tests/test-read-file.c (main): Don't produce spurious output for
21752         expected situations. Make the test fail if it encountered unexpected
21753         results.
21754
21755 2007-03-24  Bruno Haible  <bruno@clisp.org>
21756
21757         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
21758         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
21759
21760 2007-03-24  Bruno Haible  <bruno@clisp.org>
21761
21762         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
21763
21764 2007-03-24  Bruno Haible  <bruno@clisp.org>
21765
21766         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
21767         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
21768
21769         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
21770         * modules/utf8-ucs4: Turn into a symbolic link to module
21771         unistr/u8-mbtouc.
21772
21773         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
21774         utf8-ucs4-unsafe.
21775         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
21776         unistr/u8-mbtouc-unsafe.
21777
21778         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
21779         * modules/utf16-ucs4: Turn into a symbolic link to module
21780         unistr/u16-mbtouc.
21781
21782         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
21783         utf16-ucs4-unsafe.
21784         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
21785         unistr/u16-mbtouc-unsafe.
21786
21787         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
21788         * modules/ucs4-utf8: Turn into a symbolic link to module
21789         unistr/u8-ubtomb.
21790
21791         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
21792         * modules/ucs4-utf16: Turn into a symbolic link to module
21793         unistr/u16-ubtomb.
21794
21795 2007-03-24  Bruno Haible  <bruno@clisp.org>
21796
21797         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
21798         Enable the function only if HAVE_INLINE.
21799         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
21800         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
21801         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
21802         Enable the function only if HAVE_INLINE.
21803         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
21804         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
21805         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
21806         Enable the function only if HAVE_INLINE.
21807         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
21808         Enable the function only if HAVE_INLINE.
21809         * modules/utf8-ucs4: Update.
21810         * modules/utf8-ucs4-unsafe: Update.
21811         * modules/utf16-ucs4: Update.
21812         * modules/utf16-ucs4-unsafe: Update.
21813         * modules/ucs4-utf8: Update.
21814         * modules/ucs4-utf16: Update.
21815
21816 2007-03-24  Bruno Haible  <bruno@clisp.org>
21817
21818         * lib/utf8-ucs4.h: Remove file.
21819         * lib/utf8-ucs4-unsafe.h: Remove file.
21820         * lib/utf16-ucs4.h: Remove file.
21821         * lib/utf16-ucs4-unsafe.h: Remove file.
21822         * lib/ucs4-utf8.h: Remove file.
21823         * lib/ucs4-utf16.h: Remove file.
21824         * lib/unistr.h: Include their previous contents.
21825         * m4/utf-ucs4.m4: Remove file.
21826         * m4/ucs4-utf.m4: Remove file.
21827         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
21828         (Depends-on): Add unistr/base.
21829         (configure.ac): Remove gl_UTF_UCS4.
21830         (Makefile.am): Update.
21831         (Include): Change to unistr.h.
21832         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
21833         (Depends-on): Add unistr/base.
21834         (configure.ac): Remove gl_UTF_UCS4.
21835         (Makefile.am): Update.
21836         (Include): Change to unistr.h.
21837         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
21838         (Depends-on): Add unistr/base.
21839         (configure.ac): Remove gl_UTF_UCS4.
21840         (Makefile.am): Update.
21841         (Include): Change to unistr.h.
21842         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
21843         (Depends-on): Add unistr/base.
21844         (configure.ac): Remove gl_UTF_UCS4.
21845         (Makefile.am): Update.
21846         (Include): Change to unistr.h.
21847         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
21848         (Depends-on): Add unistr/base.
21849         (configure.ac): Remove gl_UCS4_UTF.
21850         (Makefile.am): Update.
21851         (Include): Change to unistr.h.
21852         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
21853         (Depends-on): Add unistr/base.
21854         (configure.ac): Remove gl_UCS4_UTF.
21855         (Makefile.am): Update.
21856         (Include): Change to unistr.h.
21857         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
21858         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
21859         utf8-ucs4-unsafe.h.
21860         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
21861         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
21862         utf16-ucs4-unsafe.h.
21863         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
21864         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
21865         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
21866         * lib/unistr/u8-strchr.c: Likewise.
21867         * lib/unistr/u8-strrchr.c: Likewise.
21868         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
21869         * lib/unistr/u16-strchr.c: Likewise.
21870         * lib/unistr/u16-strrchr.c: Likewise.
21871         * lib/striconveh.c: Update.
21872         * lib/linebreak.c: Update.
21873
21874 2007-03-24  Bruno Haible  <bruno@clisp.org>
21875
21876         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
21877         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
21878
21879 2007-03-22  Bruno Haible  <bruno@clisp.org>
21880
21881         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
21882
21883 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
21884
21885         * MODULES.html.sh (File system functions): New module write-any-file.
21886         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
21887         * m4/write-any-file.m4: New files.
21888
21889 2007-03-23  Eric Blake  <ebb9@byu.net>
21890
21891         * gnulib-tool: Rearrange space-tab sequences, since some editors
21892         like to eat them.
21893
21894 2007-03-23  Eric Blake  <ebb9@byu.net>
21895
21896         * lib/version-etc.c (version_etc_va): Update license wording to
21897         be more concise.  Recommended by Richard Stallman.
21898
21899 2007-03-22  Bruno Haible  <bruno@clisp.org>
21900
21901         * lib/poll.c (MSG_PEEK): New fallback definition.
21902
21903 2007-03-22  Bruno Haible  <bruno@clisp.org>
21904
21905         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
21906         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
21907         (main): Update.
21908         Fixes a compilation error on BeOS.
21909
21910 2007-03-22  Bruno Haible  <bruno@clisp.org>
21911
21912         * modules/frexpl-tests: New file.
21913         * tests/test-frexpl.c: New file.
21914
21915         * modules/frexpl: New file.
21916         * m4/frexpl.m4: New file.
21917         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
21918         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
21919         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
21920         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
21921         (Depends-on): Add frexpl. Remove isnanl-nolibm.
21922         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
21923
21924 2007-03-22  Bruno Haible  <bruno@clisp.org>
21925
21926         * lib/frexpl.c: Share code with lib/frexp.c.
21927         * modules/mathl (Files): Add lib/frexp.c.
21928         (Depends-on): Add isnanl-nolibm.
21929
21930 2007-03-22  Bruno Haible  <bruno@clisp.org>
21931
21932         * modules/printf-frexp (Files): Add m4/frexp.m4.
21933         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
21934         only if the found frexp function actually works.
21935
21936 2007-03-22  Bruno Haible  <bruno@clisp.org>
21937
21938         * lib/frexp.c: Remove older implementation that uses divisions.
21939
21940 2007-03-21  Bruno Haible  <bruno@clisp.org>
21941
21942         * modules/frexp-tests: New file.
21943         * tests/test-frexp.c: New file.
21944
21945         * modules/frexp: New file.
21946         * lib/frexp.c: New file.
21947         * m4/frexp.m4: New file.
21948         * lib/math_.h (frexp): New declaration.
21949         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
21950         REPLACE_FREXP.
21951         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
21952
21953 2007-03-21  Bruno Haible  <bruno@clisp.org>
21954
21955         * modules/isnanl-tests: New file.
21956         * tests/test-isnanl.c: New file.
21957
21958         * modules/isnanl: New file.
21959         * lib/isnanl.h: New file.
21960         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
21961         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
21962         gl_FUNC_ISNANL_WORKS.
21963         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
21964         New macros.
21965
21966 2007-03-21  Bruno Haible  <bruno@clisp.org>
21967
21968         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
21969         lib/isnanl.h.
21970         (Include): Update.
21971         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
21972         * lib/vasnprintf.c: Update.
21973         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
21974         tests/test-isnanl.h, remove tests/test-isnanl.c.
21975         (Makefile.am): Update.
21976         * tests/test-isnanl-nolibm.c: New file.
21977         * tests/test-isnanl.h: New file.
21978         * tests/test-isnanl.c: Remove file.
21979
21980 2007-03-21  Jim Meyering  <jim@meyering.net>
21981
21982         When trying to open ".", treat ESTALE like EACCES.
21983         * lib/savewd.c (savewd_save): Resort to forking not just upon
21984         failure with EACCES, but also when errno is ESTALE.
21985
21986 2007-03-20  Bruno Haible  <bruno@clisp.org>
21987
21988         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
21989         Needed on AIX 5.1. Reported by Matthew Woehlke.
21990
21991 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21992
21993         Suggestions by Bruno Haible:
21994         * lib/acl-internal.h: Include "gettext.h" rather than rolling
21995         our own.
21996         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
21997         * modules/acl (Depends-on): Add gettext.
21998
21999 2007-03-19  Bruno Haible  <bruno@clisp.org>
22000
22001         * modules/iconvme: Remove file.
22002         * lib/iconvme.h: Remove file.
22003         * lib/iconvme.c: Remove file.
22004         * m4/iconvme.m4: Remove file.
22005
22006 2007-03-19  Bruno Haible  <bruno@clisp.org>
22007
22008         * doc/relocatable-maint.texi: Break long shell script line.
22009         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
22010
22011 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22012
22013         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
22014         handle file_has_acl.
22015         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
22016         * lib/acl.c: Move header inclusions and related macro defns into
22017         lib/acl-internal.h.
22018         (S_ISLNK): Remove defn, since that's now done for us.
22019         (file_has_acl): Move to lib/file-has-acl.c.
22020         Call acl_trivial if available.  This is the crucial part of the fix.
22021         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
22022         shared within the library.  Rewrite a bit, partly to make it compatible
22023         with the GNU coding style.
22024         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
22025         Remove unnecessary double-quotes.
22026         Don't test for acl_to_text; the build will catch that.
22027         Replace acl_entries if it doesn't exist and it is needed.
22028         Check for -lsec and acl_trivial (as used on Solaris 10).
22029         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
22030         lib/file-has-acl.c.
22031         (Depends-on): Add sys_stat, for S_ISLNK.
22032
22033 2007-03-19  Ben Pfaff  <blp@gnu.org>
22034
22035         * doc/gnulib.texi: Fix typos.
22036         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
22037
22038 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22039
22040         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
22041         If size is zero here, buf must be zero.
22042
22043 2007-03-19  Simon Josefsson  <simon@josefsson.org>
22044
22045         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
22046         <bruno@clisp.org>.
22047
22048 2007-03-18  Bruno Haible  <bruno@clisp.org>
22049
22050         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
22051         Suggested by Eric Blake.
22052
22053 2007-03-18  Ben Pfaff  <blp@gnu.org>
22054
22055         * doc/relocatable.texi: Recommend using as prefix a directory
22056         that does not exist and will never be created.  Based on
22057         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
22058         and others.
22059
22060 2007-03-17  Bruno Haible  <bruno@clisp.org>
22061
22062         * lib/fchownat.c: Include lchown.h.
22063
22064 2007-03-17  Bruno Haible  <bruno@clisp.org>
22065
22066         Fix endless loop when the given allocated size was > INT_MAX.
22067         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
22068         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
22069         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
22070         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
22071         * lib/sprintf.c (sprintf): Likewise.
22072
22073 2007-03-17  Bruno Haible  <bruno@clisp.org>
22074
22075         * tests/test-argp-2.sh (func_compare): Output a context diff.
22076
22077 2007-03-17  Bruno Haible  <bruno@clisp.org>
22078
22079         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
22080         locale's decimal-point character.
22081
22082 2007-03-17  Bruno Haible  <bruno@clisp.org>
22083
22084         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
22085         before comparing it. Needed because on some platforms (e.g. x86) a
22086         'long double' occupies less bytes than sizeof (long double).
22087
22088 2007-03-17  Bruno Haible  <bruno@clisp.org>
22089
22090         * tests/test-crc.c (main): Make printf statements 64-bit clean.
22091         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
22092         * tests/test-getaddrinfo.c (simple): Likewise.
22093         * tests/test-read-file.c (main): Likewise.
22094
22095 2007-03-17  Bruno Haible  <bruno@clisp.org>
22096
22097         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
22098
22099 2007-03-17  Bruno Haible  <bruno@clisp.org>
22100
22101         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
22102         unused variable.
22103
22104 2007-03-17  Bruno Haible  <bruno@clisp.org>
22105
22106         * tests/test-c-strcasecmp.c: Include c-strcase.h.
22107         * tests/test-c-strncasecmp.c: Likewise.
22108
22109 2007-03-17  Bruno Haible  <bruno@clisp.org>
22110
22111         * modules/stdlib (Depends-on): Add unistd.
22112         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
22113         Needed for MacOS X 10.3.
22114
22115 2007-03-17  Bruno Haible  <bruno@clisp.org>
22116
22117         * lib/unistr/u-strdup.h: Include <stdlib.h>.
22118
22119 2007-03-17  Bruno Haible  <bruno@clisp.org>
22120
22121         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
22122
22123 2007-03-17  Bruno Haible  <bruno@clisp.org>
22124
22125         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
22126         to reflect files copied from gnulib (with or without modifications).
22127         Suggested by Jim Meyering.
22128
22129 2007-03-17  Eric Blake  <ebb9@byu.net>
22130
22131         * NEWS: Document stdlib change from 2007-02-18.
22132
22133 2007-03-17  Jim Meyering  <jim@meyering.net>
22134
22135         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
22136         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
22137         someone uses a name containing shell meta-characters.
22138         Reported by Alfred M. Szmidt.
22139
22140         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
22141
22142 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
22143
22144         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
22145         and copy gettext configuration files only if configure.ac contains
22146         a use of AM_GNU_GETTEXT_VERSION.
22147
22148 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
22149
22150         * build-aux/bootstrap (gnulib_name): New variable.
22151         (gnulib_tool_options): Use it.
22152
22153 2007-03-13  Simon Josefsson  <simon@josefsson.org>
22154
22155         * tests/test-des.c: Use new namespace.
22156
22157 2007-03-15  Bruno Haible  <bruno@clisp.org>
22158
22159         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
22160         Reported by James Youngman <jay@gnu.org>.
22161
22162 2007-03-15  Bruno Haible  <bruno@clisp.org>
22163
22164         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
22165         declared prototype. Needed with cc on OSF/1 5.1.
22166
22167 2007-03-15  Bruno Haible  <bruno@clisp.org>
22168
22169         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
22170         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
22171         (struct gl_list_implementation): Add dispose_fn argument to the
22172         'create_empty', 'create' methods.
22173         (struct gl_list_impl_base): Add field 'dispose_fn'.
22174         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
22175         argument.
22176         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
22177         dispose_fn argument.
22178         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
22179         dispose_fn on the dropped values.
22180         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
22181         dispose_fn argument.
22182         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
22183         dropped values.
22184         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
22185         (gl_tree_remove_node): Call dispose_fn on the dropped value.
22186         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
22187         (gl_tree_remove_node): Call dispose_fn on the dropped value.
22188         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
22189         argument.
22190         (gl_tree_list_free): Call dispose_fn on the dropped values.
22191         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
22192         the dropped values.
22193         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
22194         Add dispose_fn argument.
22195         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
22196         Call dispose_fn on the dropped values.
22197         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
22198         Add dispose_fn argument.
22199         (gl_sublist_create): Initialize the 'dispose_fn' field.
22200         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
22201         * tests/test-array_list.c (main): Update.
22202         * tests/test-carray_list.c (main): Update.
22203         * tests/test-avltree_list.c (main): Update.
22204         * tests/test-rbtree_list.c (main): Update.
22205         * tests/test-avltreehash_list.c (main): Update.
22206         * tests/test-rbtreehash_list.c (main): Update.
22207         * tests/test-linked_list.c (main): Update.
22208         * tests/test-linkedhash_list.c (main): Update.
22209         * tests/test-array_oset.c (main): Update.
22210
22211 2007-03-15  Bruno Haible  <bruno@clisp.org>
22212
22213         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
22214         (gl_oset_create_empty): Add dispose_fn argument.
22215         (struct gl_oset_implementation): Add dispose_fn argument to
22216         'create_empty' method.
22217         (struct gl_oset_impl_base): Add dispose_fn field.
22218         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
22219         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
22220         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
22221         values.
22222         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
22223         (gl_tree_oset_free): Call dispose_fn on the dropped values.
22224         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
22225         dropped value.
22226         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
22227         dropped value.
22228         * tests/test-array_oset.c (main): Update.
22229         * tests/test-avltree_oset.c (main): Update.
22230         * tests/test-rbtree_oset.c (main): Update.
22231         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
22232
22233 2007-03-13  Bruno Haible  <bruno@clisp.org>
22234
22235         * tests/test-stdbool.c (i): Update after last patch.
22236
22237 2007-03-12  Bruno Haible  <bruno@clisp.org>
22238
22239         * lib/quotearg.c: Include <wctype.h> early, before the definition of
22240         the iswprint macro. Needed on Solaris 2.5.1.
22241
22242 2007-03-12  Bruno Haible  <bruno@clisp.org>
22243
22244         * tests/test-printf-frexp.c (main): Declare x as volatile.
22245
22246 2007-03-12  Simon Josefsson  <simon@josefsson.org>
22247
22248         * doc/gnulib.texi (Build robot for gnulib): New section.
22249
22250 2007-03-12  Jim Meyering  <jim@meyering.net>
22251
22252         * build-aux/bootstrap: New file.
22253         * build-aux/bootstrap.conf: New file, from coreutils.
22254
22255 2007-03-11  Bruno Haible  <bruno@clisp.org>
22256
22257         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
22258
22259 2007-03-12  Simon Josefsson  <simon@josefsson.org>
22260
22261         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
22262         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
22263         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
22264
22265 2007-03-11  Bruno Haible  <bruno@clisp.org>
22266
22267         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
22268         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
22269
22270 2007-03-11  Bruno Haible  <bruno@clisp.org>
22271
22272         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
22273         formula. Needed for SunPRO C 5.0.
22274
22275 2007-03-11  Bruno Haible  <bruno@clisp.org>
22276
22277         * modules/long-options (Depends-on): Add getopt.
22278
22279 2007-03-11  Bruno Haible  <bruno@clisp.org>
22280
22281         * modules/modechange (Depends-on): Add stdbool.
22282
22283 2007-03-11  Bruno Haible  <bruno@clisp.org>
22284
22285         * modules/i-ring (Depends-on): Add stdbool.
22286
22287 2007-03-11  Bruno Haible  <bruno@clisp.org>
22288
22289         * modules/gc-des (Depends-on): Add stdbool.
22290
22291 2007-03-11  Bruno Haible  <bruno@clisp.org>
22292
22293         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
22294
22295 2007-03-11  Bruno Haible  <bruno@clisp.org>
22296
22297         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
22298
22299 2007-03-11  Bruno Haible  <bruno@clisp.org>
22300
22301         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
22302
22303 2007-03-11  Bruno Haible  <bruno@clisp.org>
22304
22305         * lib/vasnprintf.c (sprintf): Undefine.
22306
22307 2007-03-11  Bruno Haible  <bruno@clisp.org>
22308
22309         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
22310         initializers in SunPRO C and Compaq C compilers.
22311
22312 2007-03-11  Bruno Haible  <bruno@clisp.org>
22313
22314         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
22315         decrementing code ANSI C compliant.
22316
22317 2007-03-11  Bruno Haible  <bruno@clisp.org>
22318
22319         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
22320         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
22321
22322 2007-03-11  Bruno Haible  <bruno@clisp.org>
22323
22324         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
22325         <stdbool.h> substitute doesn't pass.
22326
22327 2007-03-11  Bruno Haible  <bruno@clisp.org>
22328
22329         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
22330
22331 2007-03-11  Bruno Haible  <bruno@clisp.org>
22332
22333         * gnulib-tool (func_create_megatestdir): Create also an autobuild
22334         script, for submission to autobuild.josefsson.org.
22335
22336 2007-03-10  Bruno Haible  <bruno@clisp.org>
22337
22338         * modules/canonicalize-lgpl-tests: New file.
22339         * tests/test-canonicalize-lgpl.sh: New file.
22340         * tests/test-canonicalize-lgpl.c: New file.
22341
22342         * modules/c-strcase-tests: New file.
22343         * tests/test-c-strcase.sh: New file.
22344         * tests/test-c-strcasecmp.c: New file.
22345         * tests/test-c-strncasecmp.c: New file.
22346
22347         * modules/atexit-tests: New file.
22348         * tests/test-atexit.sh: New file.
22349         * tests/test-atexit.c: New file.
22350
22351 2007-03-10  Bruno Haible  <bruno@clisp.org>
22352
22353         * tests/test-binary-io.sh: Use temporary filenames that are not so
22354         likely to clash with those of other tests (in a parallel make).
22355         * tests/test-binary-io.c: Likewise.
22356
22357 2007-03-10  Bruno Haible  <bruno@clisp.org>
22358
22359         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
22360         fallback; use #error instead.
22361         Suggested by Simon Josefsson.
22362
22363 2007-03-10  Bruno Haible  <bruno@clisp.org>
22364
22365         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
22366         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
22367         first and the last.
22368
22369 2007-03-10  Bruno Haible  <bruno@clisp.org>
22370
22371         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
22372
22373 2007-03-10  Bruno Haible  <bruno@clisp.org>
22374
22375         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
22376         "make distcheck".
22377         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
22378         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
22379         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
22380
22381 2007-03-10  Bruno Haible  <bruno@clisp.org>
22382
22383         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
22384         variable.
22385         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
22386         variable.
22387
22388 2007-03-09  Eric Blake  <ebb9@byu.net>
22389         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
22390
22391         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
22392         types are not being provided by gnulib.
22393         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
22394         types are supported.
22395
22396 2007-03-10  Bruno Haible  <bruno@clisp.org>
22397
22398         * lib/stdio_.h (__attribute__): New macro.
22399         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
22400         vsprintf): Specify __attribute__ __format__ for GCC.
22401         Suggested by Eric Blake.
22402
22403 2007-03-09  Bruno Haible  <bruno@clisp.org>
22404
22405         * modules/printf-posix-tests: New file.
22406         * tests/test-printf-posix.sh: New file.
22407         * tests/test-printf-posix.c: New file.
22408
22409         * modules/printf-posix: New file.
22410         * lib/printf.c: New file.
22411         * m4/printf-posix-rpl.m4: New file.
22412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
22413         REPLACE_PRINTF.
22414         * lib/stdio_.h (printf): New declaration.
22415         (format, __format__, ____printf____, ____scanf____, ____strftime____,
22416         ____strfmon____): New macros.
22417         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
22418         REPLACE_PRINTF.
22419
22420 2007-03-09  Bruno Haible  <bruno@clisp.org>
22421
22422         * tests/test-vasnprintf-posix2.sh: New file.
22423         * tests/test-vasnprintf-posix2.c: New file.
22424         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
22425         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
22426         (Makefile.am): Activate test-vasnprintf-posix2.sh.
22427
22428         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
22429         a locale dependent decimal point, rather than always '.'.
22430
22431 2007-03-09  Eric Blake  <ebb9@byu.net>
22432
22433         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
22434         spite of platforms like Tandem/NSK that define it to -1.
22435
22436 2007-03-08  Bruno Haible  <bruno@clisp.org>
22437
22438         * modules/vprintf-posix-tests: New file.
22439         * tests/test-vprintf-posix.sh: New file.
22440         * tests/test-vprintf-posix.c: New file.
22441         * tests/test-printf-posix.h: New file.
22442
22443         * modules/vprintf-posix: New file.
22444         * lib/vprintf.c: New file.
22445         * m4/vprintf-posix.m4: New file.
22446         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
22447         REPLACE_VPRINTF.
22448         * lib/stdio_.h (vprintf): New declaration.
22449         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
22450         REPLACE_VPRINTF.
22451
22452 2007-03-08  Bruno Haible  <bruno@clisp.org>
22453
22454         * modules/fprintf-posix-tests: New file.
22455         * tests/test-fprintf-posix.sh: New file.
22456         * tests/test-fprintf-posix.c: New file.
22457
22458         * modules/fprintf-posix: New file.
22459         * lib/fprintf.c: New file.
22460         * m4/fprintf-posix.m4: New file.
22461         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
22462         REPLACE_FPRINTF.
22463         * lib/stdio_.h (fprintf): New declaration.
22464         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
22465         REPLACE_FPRINTF.
22466
22467 2007-03-08  Bruno Haible  <bruno@clisp.org>
22468
22469         * modules/vfprintf-posix-tests: New file.
22470         * tests/test-vfprintf-posix.sh: New file.
22471         * tests/test-vfprintf-posix.c: New file.
22472         * tests/test-fprintf-posix.h: New file.
22473         * tests/test-fprintf-posix.out: New file.
22474
22475         * modules/vfprintf-posix: New file.
22476         * lib/vfprintf.c: New file.
22477         * m4/vfprintf-posix.m4: New file.
22478         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
22479         REPLACE_VFPRINTF.
22480         * lib/stdio_.h (vfprintf): New declaration.
22481         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
22482         REPLACE_VFPRINTF.
22483
22484 2007-03-08  Bruno Haible  <bruno@clisp.org>
22485
22486         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
22487
22488 2007-03-08  Bruno Haible  <bruno@clisp.org>
22489
22490         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
22491         instead of 'expr' invocations.
22492         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22493         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22494         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22495         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22496         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22497         Suggested by Paul Eggert.
22498
22499 2007-03-08  Bruno Haible  <bruno@clisp.org>
22500
22501         * modules/fseterr-tests: New file.
22502         * tests/test-fseterr.c: New file.
22503
22504         * modules/fseterr: New file.
22505         * lib/fseterr.h: New file.
22506         * lib/fseterr.c: New file.
22507
22508 2007-03-08  Bruno Haible  <bruno@clisp.org>
22509
22510         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
22511         * lib/getopt_.h: Likewise.
22512         * lib/mbswidth.h: Likewise.
22513         * lib/setenv.h: Likewise.
22514         * lib/vasnprintf.h: Likewise.
22515         * lib/vasprintf.h: Likewise.
22516         * lib/verror.h: Likewise.
22517         * lib/xsetenv.h: Likewise.
22518         * lib/xvasprintf.h: Likewise.
22519
22520 2007-03-08  Jim Meyering  <jim@meyering.net>
22521
22522         * users.txt: Add parted.
22523
22524         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
22525
22526 2007-03-07  Bruno Haible  <bruno@clisp.org>
22527
22528         * m4/printf.m4: Make the shell script snippets copy&pastable.
22529
22530 2007-03-02  Bruno Haible  <bruno@clisp.org>
22531
22532         * lib/netinet_in_.h: New file.
22533         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
22534         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
22535         * modules/netinet_in (Files): Add lib/netinet_in_.h.
22536         (Depends-on): Add absolute-header.
22537         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
22538         into netinet/in.h.
22539
22540 2007-03-03  Bruno Haible  <bruno@clisp.org>
22541
22542         * lib/sys_select_.h: New file.
22543         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
22544         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
22545         * modules/sys_select (Files): Add lib/sys_select_.h.
22546         (Depends-on): Add absolute-header.
22547         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
22548         into sys/select.h.
22549
22550 2007-03-02  Bruno Haible  <bruno@clisp.org>
22551
22552         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
22553         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
22554         values.
22555         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
22556         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
22557         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
22558         * modules/sys_socket (Depends-on): Add absolute-header.
22559         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
22560         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
22561         (Include): Remove requirement of inclusion of <sys/types.h>.
22562
22563 2007-03-02  Bruno Haible  <bruno@clisp.org>
22564
22565         * lib/byteswap_.h (bswap_32): Fix formula.
22566
22567 2007-03-06  Bruno Haible  <bruno@clisp.org>
22568
22569         * modules/sprintf-posix-tests: New file.
22570         * tests/test-sprintf-posix.c: New file.
22571
22572         * modules/sprintf-posix: New file.
22573         * lib/sprintf.c: New file.
22574         * m4/sprintf-posix.m4: New file.
22575         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
22576         REPLACE_SPRINTF.
22577         * lib/stdio_.h (sprintf): New declaration.
22578         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
22579         REPLACE_SPRINTF.
22580
22581 2007-03-06  Bruno Haible  <bruno@clisp.org>
22582
22583         * modules/vsprintf-posix-tests: New file.
22584         * tests/test-vsprintf-posix.c: New file.
22585         * tests/test-sprintf-posix.h: New file.
22586
22587         * modules/vsprintf-posix: New file.
22588         * lib/vsprintf.c: New file.
22589         * m4/vsprintf-posix.m4: New file.
22590         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
22591         REPLACE_VSPRINTF.
22592         * lib/stdio_.h (vsprintf): New declaration.
22593         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
22594         REPLACE_VSPRINTF.
22595
22596 2007-03-06  Bruno Haible  <bruno@clisp.org>
22597
22598         * modules/vsnprintf (Depend-on): Remove minmax.
22599
22600 2007-03-06  Bruno Haible  <bruno@clisp.org>
22601
22602         * modules/snprintf-posix-tests: New file.
22603         * tests/test-snprintf-posix.c: New file.
22604
22605         * modules/snprintf-posix: New file.
22606         * m4/snprintf-posix.m4: New file.
22607         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
22608         gl_FUNC_SNPRINTF.
22609         (gl_FUNC_SNPRINTF): Invoke it.
22610         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
22611         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
22612         is set.
22613         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
22614
22615 2007-03-06  Bruno Haible  <bruno@clisp.org>
22616
22617         * modules/vsnprintf-posix-tests: New file.
22618         * tests/test-vsnprintf-posix.c: New file.
22619         * tests/test-snprintf-posix.h: New file.
22620
22621         * modules/vsnprintf-posix: New file.
22622         * m4/vsnprintf-posix.m4: New file.
22623         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
22624         gl_FUNC_VSNPRINTF.
22625         (gl_FUNC_VSNPRINTF): Invoke it.
22626         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
22627         * lib/stdio_.h (vsnprintf): Define as a replacement if
22628         REPLACE_VSNPRINTF is set.
22629         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
22630
22631 2007-03-06  Bruno Haible  <bruno@clisp.org>
22632
22633         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
22634         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
22635
22636 2007-03-06  Bruno Haible  <bruno@clisp.org>
22637
22638         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
22639         (asinl): Declare also if HAVE_DECL_ASINL is set.
22640         (atanl): Declare also if HAVE_DECL_ATANL is set.
22641         (ceill): Declare also if HAVE_DECL_CEILL is set.
22642         (cosl): Declare also if HAVE_DECL_COSL is set.
22643         (expl): Declare also if HAVE_DECL_EXPL is set.
22644         (floorl): Declare also if HAVE_DECL_FLOORL is set.
22645         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
22646         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
22647         (logl): Declare also if HAVE_DECL_LOGL is set.
22648         (sinl): Declare also if HAVE_DECL_SINL is set.
22649         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
22650         (tanl): Declare also if HAVE_DECL_TANL is set.
22651         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
22652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
22653         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
22654         declaration of frexpl, ldexpl.
22655         * modules/printf-frexpl (Depends-on): Add math.
22656         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
22657
22658 2007-03-05  Bruno Haible  <bruno@clisp.org>
22659
22660         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
22661         frexpl and ldexpl are declared.
22662         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
22663
22664 2007-03-05  Bruno Haible  <bruno@clisp.org>
22665
22666         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
22667         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
22668
22669 2007-03-05  Bruno Haible  <bruno@clisp.org>
22670
22671         * lib/stdio_.h: Include <stddef.h>.
22672
22673 2007-03-05  Bruno Haible  <bruno@clisp.org>
22674
22675         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
22676
22677 2007-03-05  Bruno Haible  <bruno@clisp.org>
22678
22679         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
22680         NetBSD 4, from Ralf Wildenhues.
22681
22682 2007-03-04  Bruno Haible  <bruno@clisp.org>
22683
22684         * lib/vasprintf.h: Update #if logic for the case when the functions
22685         exist but are overridden.
22686
22687 2007-03-04  Bruno Haible  <bruno@clisp.org>
22688
22689         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
22690         implementations: glibc-2.4 and MacOS X 10.3.
22691         * tests/test-vasnprintf-posix.c (test_function): Test also the case
22692         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
22693         * tests/test-vasprintf-posix.c (test_function): Likewise.
22694
22695 2007-03-04  Bruno Haible  <bruno@clisp.org>
22696
22697         * modules/vasprintf-posix-tests: New file.
22698         * tests/test-vasprintf-posix.c: New file.
22699
22700         * modules/vasprintf-posix: New file.
22701         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
22702         defined.
22703         * m4/vasprintf-posix.m4: New file.
22704         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
22705         gl_FUNC_VASPRINTF.
22706         (gl_FUNC_VASPRINTF): Invoke it.
22707         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
22708         here.
22709         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
22710
22711 2007-03-04  Bruno Haible  <bruno@clisp.org>
22712
22713         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
22714         REPLACE_GETTIMEOFDAY.
22715         * modules/sys_time (Makefile.am): Likewise.
22716         * m4/sys_time_h.m4: Likewise.
22717         * m4/gettimeofday.m4: Likewise.
22718
22719 2007-03-04  Bruno Haible  <bruno@clisp.org>
22720
22721         * modules/vasnprintf-posix-tests: New file.
22722         * tests/test-vasnprintf-posix.c: New file.
22723
22724         * modules/vasnprintf-posix: New file.
22725         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
22726         printf-frexpl.h.
22727         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
22728         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
22729         REPLACE_VASNPRINTF is defined.
22730         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
22731         gl_FUNC_VASNPRINTF.
22732         (gl_FUNC_VASNPRINTF): Invoke it.
22733         * m4/vasnprintf-posix.m4: New file.
22734         * m4/printf.m4: New file.
22735
22736 2007-03-04  Bruno Haible  <bruno@clisp.org>
22737
22738         Compile progreloc.c only if --enable-relocatable is specified.
22739         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
22740         if --enable-relocatable was specified.
22741         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
22742         lib_SOURCES.
22743
22744 2007-03-04  Jim Meyering  <jim@meyering.net>
22745
22746         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
22747         Use it consistently, rather than enumerating errno constants.
22748
22749 2007-03-04  Bruno Haible  <bruno@clisp.org>
22750
22751         * modules/xvasprintf-tests: New file.
22752         * tests/test-xvasprintf.c: New file.
22753
22754         * modules/vasprintf-tests: New file.
22755         * tests/test-vasprintf.c: New file.
22756
22757         * modules/vasnprintf-tests: New file.
22758         * tests/test-vasnprintf.c: New file.
22759
22760         * modules/vsnprintf-tests: New file.
22761         * tests/test-vsnprintf.c: New file.
22762
22763         * modules/snprintf-tests: New file.
22764         * tests/test-snprintf.c: New file.
22765
22766 2007-03-04  Bruno Haible  <bruno@clisp.org>
22767
22768         Compile relocatable.c only if --enable-relocatable is specified.
22769         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
22770         gl_RELOCATABLE_LIBRARY.
22771         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
22772         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
22773         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
22774         gl_RELOCATABLE_LIBRARY.
22775         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
22776         (Makefile.am): Remove lib_SOURCES.
22777         * modules/relocatable-lib-lgpl (configure.ac): Invoke
22778         gl_RELOCATABLE_LIBRARY.
22779         (Makefile.am): Remove lib_SOURCES.
22780         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
22781         always.
22782         * modules/relocatable-prog-wrapper (configure.ac): Invoke
22783         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
22784
22785 2007-03-04  Bruno Haible  <bruno@clisp.org>
22786
22787         * modules/argmatch-tests: New file.
22788         * tests/test-argmatch.c: New file.
22789
22790         * tests/test-allocsa.c (main): Halve the number of loop runs.
22791
22792         * modules/alloca-opt-tests: New file.
22793         * tests/test-alloca-opt.c: New file.
22794
22795 2007-03-04  Jim Meyering  <jim@meyering.net>
22796
22797         Work around difference between Linux ACLs and Solaris 10 ZFS.
22798         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
22799         for EINVAL.
22800
22801 2007-03-03  Bruno Haible  <bruno@clisp.org>
22802
22803         * modules/relocatable-prog (Depends-on): Add back progreloc's
22804         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
22805
22806 2007-03-03  Bruno Haible  <bruno@clisp.org>
22807
22808         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
22809         * modules/relocatable-lib: New file.
22810
22811 2007-03-03  Bruno Haible  <bruno@clisp.org>
22812
22813         * modules/relocatable-prog: Renamed from modules/relocatable.
22814         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
22815
22816 2007-03-03  Bruno Haible  <bruno@clisp.org>
22817
22818         * modules/relocatable-script (Files): Add doc/relocatable.texi,
22819         m4/relocatable-lib.m4.
22820         (Depends-on): Remove 'relocatable'.
22821         (configure.ac): Add gl_RELOCATABLE_NOP.
22822
22823 2007-03-03  Bruno Haible  <bruno@clisp.org>
22824
22825         * modules/relocatable-prog-wrapper: New file.
22826         * modules/relocatable (Depends-on): Add it. Remove all other
22827         dependencies except progname.
22828         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
22829
22830         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
22831         (gl_FUNC_STRERROR): Nop.
22832         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
22833
22834         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
22835         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
22836
22837         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
22838         (gl_FUNC_READLINK): Update.
22839
22840         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
22841
22842 2007-03-03  Bruno Haible  <bruno@clisp.org>
22843
22844         * lib/xreadlink.c: Include <unistd.h> unconditionally.
22845         * modules/xreadlink (Depends-on): Add unistd.
22846         * modules/xreadlink-with-size (Depends-on): Likewise.
22847
22848 2007-03-03  Bruno Haible  <bruno@clisp.org>
22849
22850         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
22851         extracted from gt_FUNC_SETENV.
22852         (gt_FUNC_SETENV): Remove macro.
22853         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
22854         remove gt_FUNC_SETENV.
22855
22856 2007-03-03  Bruno Haible  <bruno@clisp.org>
22857
22858         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
22859         ENABLE_RELOCATABLE here.
22860         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
22861
22862 2007-03-03  Bruno Haible  <bruno@clisp.org>
22863
22864         * modules/rbtreehash-list-tests (Depends-on): Add progname.
22865         * tests/test-rbtreehash_list.c: Include progname.h.
22866         (main): Call set_program_name.
22867
22868         * modules/rbtree-oset-tests (Depends-on): Add progname.
22869         * tests/test-rbtree_oset.c: Include progname.h.
22870         (main): Call set_program_name.
22871
22872         * modules/rbtree-list-tests (Depends-on): Add progname.
22873         * tests/test-rbtree_list.c: Include progname.h.
22874         (main): Call set_program_name.
22875
22876         * modules/linked-list-tests (Depends-on): Add progname.
22877         * tests/test-linked_list.c: Include progname.h.
22878         (main): Call set_program_name.
22879
22880 2007-03-03  Bruno Haible  <bruno@clisp.org>
22881
22882         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
22883         All uses of __restrict changed to _Restrict_.
22884         * lib/glob_.h (__restrict): Remove macro.
22885
22886 2007-03-02  Bruno Haible  <bruno@clisp.org>
22887
22888         * modules/gettext (configure.ac): Require gettext infrastructure
22889         from version 0.16.1.
22890
22891 2007-03-02  Bruno Haible  <bruno@clisp.org>
22892
22893         * modules/linkedhash-list-tests (Depends-on): Add progname.
22894         * tests/test-linkedhash_list.c: Include progname.h.
22895         (main): Call set_program_name.
22896
22897         * modules/carray-list-tests (Depends-on): Add progname.
22898         * tests/test-carray_list.c: Include progname.h.
22899         (main): Call set_program_name.
22900
22901         * modules/avltreehash-list-tests (Depends-on): Add progname.
22902         * tests/test-avltreehash_list.c: Include progname.h.
22903         (main): Call set_program_name.
22904
22905         * modules/avltree-oset-tests (Depends-on): Add progname.
22906         * tests/test-avltree_oset.c: Include progname.h.
22907         (main): Call set_program_name.
22908
22909         * modules/avltree-list-tests (Depends-on): Add progname.
22910         * tests/test-avltree_list.c: Include progname.h.
22911         (main): Call set_program_name.
22912
22913         * modules/array-oset-tests (Depends-on): Add progname.
22914         * tests/test-array_oset.c: Include progname.h.
22915         (main): Call set_program_name.
22916
22917         * modules/array-list-tests (Depends-on): Add progname.
22918         * tests/test-array_list.c: Include progname.h.
22919         (main): Call set_program_name.
22920
22921         * modules/argp-tests (Depends-on): Add progname.
22922         * tests/test-argp.c: Include argp.h first. Include progname.h.
22923         (main): Call set_program_name.
22924
22925 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
22926
22927         * doc/gnulib-tool.texi (Initial import): Reword description of
22928         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
22929         limited effect even if defined after the first system include.
22930
22931 2007-03-01  Bruno Haible  <bruno@clisp.org>
22932
22933         * build-aux/config.libpath: Update to libtool-1.5.22.
22934         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22935
22936 2007-03-01  Bruno Haible  <bruno@clisp.org>
22937
22938         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
22939         foo_CFLAGS.
22940         Reported by Ralf Wildenhues.
22941
22942 2007-03-01  Bruno Haible  <bruno@clisp.org>
22943
22944         * build-aux/install-reloc: Remove object files left over by some
22945         compilers.
22946         Reported by Ralf Wildenhues.
22947
22948 2007-03-01  Bruno Haible  <bruno@clisp.org>
22949
22950         * build-aux/install-reloc: Break long lines.
22951
22952 2007-03-01  Bruno Haible  <bruno@clisp.org>
22953
22954         * doc/relocatable.texi: Document that it may not work on OpenBSD.
22955         Reported by Ralf Wildenhues.
22956
22957 2007-03-01  Bruno Haible  <bruno@clisp.org>
22958
22959         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
22960         include ordering constraints.
22961
22962 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
22963
22964         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
22965         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
22966         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
22967         as another example.
22968         * lib/time_.h: Fix misspelling.
22969         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
22970         Require gl_HEADER_TIME_H_DEFAULTS.
22971         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
22972         * m4/time_r.m4 (gl_TIME_R): Likewise.
22973         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
22974
22975 2007-03-01  Bruno Haible  <bruno@clisp.org>
22976
22977         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
22978         * m4/utimens.m4 (gl_UTIMENS): Likewise.
22979
22980 2007-03-01  Jim Meyering  <jim@meyering.net>
22981
22982         * modules/xreadlink (Maintainer): Add my name.
22983         * modules/xreadlink-with-size (Depends-on): Alphabetize.
22984
22985 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
22986             Bruno Haible  <bruno@clisp.org>
22987
22988         * build-aux/install-reloc: Compile also c-ctype.c.
22989         * build-aux/relocatable.sh.in: New file.
22990         * doc/relocatable.texi: New file.
22991         * doc/relocatable-maint.texi: New file.
22992         * doc/gnulib.texi: Include relocatable-maint.texi.
22993         * lib/progreloc.c: Include unistd.h unconditionally.
22994         * lib/relocwrapper.c: Include unistd.h unconditionally.
22995         Include c-ctype.h.
22996         (add_dotbin): Use c_tolower.
22997         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
22998         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
22999         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
23000         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
23001         to m4/relocatable-lib.m4.
23002         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
23003         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
23004         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
23005         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
23006         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
23007         * modules/relocatable: New file.
23008         * modules/relocatable-lib: New file.
23009         * modules/relocatable-script: New file.
23010
23011 2007-02-28  Bruno Haible  <bruno@clisp.org>
23012
23013         Import --enable-relocatable infrastructure.
23014         * build-aux/config.libpath: New file, from GNU gettext.
23015         * build-aux/install-reloc: New file, from GNU gettext.
23016         * build-aux/reloc-ldflags: New file, from GNU gettext.
23017         * lib/relocatable.h: New file, from GNU gettext.
23018         * lib/relocatable.c: New file, from GNU gettext.
23019         * lib/relocwrapper.c: New file, from GNU gettext.
23020         * m4/relocatable.m4: New file, from GNU gettext.
23021
23022 2007-02-28  Bruno Haible  <bruno@clisp.org>
23023
23024         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
23025
23026         * modules/xreadlink: New file, from GNU gettext with modifications.
23027         * lib/xreadlink.c: New file, from GNU gettext.
23028         * lib/xreadlink.h: Add comments.
23029         (xreadlink): New declaration.
23030
23031         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
23032         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
23033         lib/xreadlink-with-size.c.
23034         (configure.ac): Remove gl_XREADLINK invocation.
23035         (Makefile.am): Augment lib_SOURCES.
23036         * m4/xreadlink.m4: Remove file.
23037         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
23038         (xreadlink_with_size): Renamed from xreadink.
23039         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
23040         * modules/canonicalize (Depends-on): Replace xreadlink with
23041         xreadlink-with-size.
23042         * lib/canonicalize.c (canonicalize_filename_mode): Update.
23043
23044 2007-02-25  Jim Meyering  <jim@meyering.net>
23045
23046         * build-aux/announce-gen: When complaining about excess arguments,
23047         list them.
23048
23049 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
23050
23051         * README: Document signed integer overflow situation more
23052         accurately.
23053
23054 2007-02-25  Bruno Haible  <bruno@clisp.org>
23055
23056         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
23057         'a' or 'A' conversion.
23058
23059 2007-02-25  Bruno Haible  <bruno@clisp.org>
23060
23061         * modules/filename: Renamed from modules/pathname.
23062         (Files): Replace lib/pathname.h with lib/filename.h. Replace
23063         lib/concatpath.c with lib/concat-filename.c.
23064         (Makefile.am): Update.
23065         (Include): Replace pathname.h with filename.h.
23066         * lib/filename.h: Renamed from lib/pathname.h.
23067         (concatenated_filename): Renamed from concatenated_pathname.
23068         * lib/concat-filename.c: Renamed from lib/concatpath.c.
23069         (concatenated_filename): Renamed from concatenated_pathname.
23070         * lib/findprog.c: Include filename.h instead of pathname.h.
23071         (find_in_path): Update.
23072         * lib/javacomp.c: Include filename.h instead of pathname.h.
23073         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
23074         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
23075         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
23076         is_oldgcj_14_13_usable, is_javac_usable): Update.
23077         * lib/javaexec.c: Include filename.h instead of pathname.h.
23078         (execute_java_class): Update.
23079         * modules/findprog: Update.
23080         * modules/javacomp: Update.
23081         * modules/javaexec: Update.
23082         * MODULES.html.sh (File system functions): Add 'filename', remove
23083         'pathname'.
23084
23085 2007-02-25  Bruno Haible  <bruno@clisp.org>
23086
23087         * modules/printf-frexpl-tests: New file.
23088         * tests/test-printf-frexpl.c: New file.
23089
23090         * modules/printf-frexpl: New file.
23091         * lib/printf-frexpl.h: New file.
23092         * lib/printf-frexpl.c: New file.
23093         * m4/printf-frexpl.m4: New file.
23094
23095 2007-02-25  Bruno Haible  <bruno@clisp.org>
23096
23097         * modules/printf-frexp-tests: New file.
23098         * tests/test-printf-frexp.c: New file.
23099
23100         * modules/printf-frexp: New file.
23101         * lib/printf-frexp.h: New file.
23102         * lib/printf-frexp.c: New file.
23103         * m4/printf-frexp.m4: New file.
23104
23105 2007-02-25  Bruno Haible  <bruno@clisp.org>
23106
23107         Assume automake >= 1.10 for the tests.
23108         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
23109         * modules/arctwo-tests: Likewise.
23110         * modules/argp-tests: Likewise.
23111         * modules/avltree-list-tests: Likewise.
23112         * modules/avltree-oset-tests: Likewise.
23113         * modules/avltreehash-list-tests: Likewise.
23114         * modules/carray-list-tests: Likewise.
23115         * modules/crc-tests: Likewise.
23116         * modules/des-tests: Likewise.
23117         * modules/gc-arcfour-tests: Likewise.
23118         * modules/gc-arctwo-tests: Likewise.
23119         * modules/gc-des-tests: Likewise.
23120         * modules/gc-hmac-md5-tests: Likewise.
23121         * modules/gc-hmac-sha1-tests: Likewise.
23122         * modules/gc-md2-tests: Likewise.
23123         * modules/gc-md4-tests: Likewise.
23124         * modules/gc-md5-tests: Likewise.
23125         * modules/gc-pbkdf2-sha1-tests: Likewise.
23126         * modules/gc-rijndael-tests: Likewise.
23127         * modules/gc-sha1-tests: Likewise.
23128         * modules/gc-tests: Likewise.
23129         * modules/getaddrinfo-tests: Likewise.
23130         * modules/hmac-md5-tests: Likewise.
23131         * modules/hmac-sha1-tests: Likewise.
23132         * modules/linked-list-tests: Likewise.
23133         * modules/linkedhash-list-tests: Likewise.
23134         * modules/lock-tests: Likewise.
23135         * modules/md2-tests: Likewise.
23136         * modules/md4-tests: Likewise.
23137         * modules/md5-tests: Likewise.
23138         * modules/rbtree-list-tests: Likewise.
23139         * modules/rbtree-oset-tests: Likewise.
23140         * modules/rbtreehash-list-tests: Likewise.
23141         * modules/read-file-tests: Likewise.
23142         * modules/rijndael-tests: Likewise.
23143         * modules/stdint-tests: Likewise.
23144         * modules/tls-tests: Likewise.
23145
23146 2007-02-24  Bruno Haible  <bruno@clisp.org>
23147
23148         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
23149         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
23150         function; instead check whether isnan with a double argument links.
23151         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
23152         function; instead check whether isnan with a 'long double' argument
23153         links.
23154         Reported by Eric Blake <ebb9@byu.net>.
23155
23156 2007-02-24  Bruno Haible  <bruno@clisp.org>
23157
23158         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
23159         defined.
23160         * lib/isnanl.c: Remove all code. Just include isnan.c.
23161         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
23162
23163 2007-02-25  Jim Meyering  <jim@meyering.net>
23164
23165         Avoid conflicting types for 'unsetenv' on FreeBSD.
23166         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
23167         conflicting with FreeBSD's (5.0 and 6.1) function declaration
23168         in stdlib.h.
23169
23170 2007-02-24  Bruno Haible  <bruno@clisp.org>
23171
23172         * modules/isnanl-nolibm-tests: New file.
23173         * tests/test-isnanl.c: New file.
23174
23175         * modules/isnanl-nolibm: New file.
23176         * lib/isnanl.h: New file.
23177         * lib/isnanl.c: New file.
23178         * m4/isnanl.m4: New file.
23179
23180 2007-02-24  Bruno Haible  <bruno@clisp.org>
23181
23182         * modules/isnan-nolibm-tests: New file.
23183         * tests/test-isnan.c: New file.
23184
23185         * modules/isnan-nolibm: New file.
23186         * lib/isnan.h: New file.
23187         * lib/isnan.c: New file.
23188         * m4/isnan.m4: New file.
23189
23190 2007-02-24  Bruno Haible  <bruno@clisp.org>
23191
23192         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
23193         assume that an exponent fits in 20 bits.
23194
23195 2007-02-24  Jim Meyering  <jim@meyering.net>
23196
23197         * m4/regex.m4: Update the description of the configure-time option,
23198         --without-included-regex, to state accurately what the defaults are,
23199         and perhaps to give people an idea why using this option is risky.
23200
23201 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23202
23203         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
23204         loops on small arguments.  This attempts to avoid the problem
23205         Bruno Haible reported for AIX 4.3.2 in
23206         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
23207
23208 2007-02-23  Bruno Haible  <bruno@clisp.org>
23209
23210         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
23211         Needed for help2man.
23212
23213 2007-02-23  Karl Berry  <karl@gnu.org>
23214
23215         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
23216         exists, foo.h should be cvs-ignored, not committed.
23217
23218 2007-02-23  Eric Blake  <ebb9@byu.net>
23219
23220         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
23221         * lib/stat-time.h (includes): Likewise.
23222         * lib/utimecmp.c (includes): Likewise.
23223         * lib/utimens.h (includes): Likewise.
23224         * lib/getdate.y (includes): Also include "timespec.h" for use
23225         internal to the module.
23226         * modules/utimens (Depends-on): Revert yesterday's patch.
23227         * modules/nanosleep (Depends-on): Add missing dependency.
23228
23229 2007-02-22  Bruno Haible  <bruno@clisp.org>
23230
23231         * lib/glob.c: Don't include getlogin_r.h.
23232
23233 2007-02-22  Jim Meyering  <jim@meyering.net>
23234
23235         * modules/utimens (Depends-on): Add timespec, required for
23236         utimens.h's inclusion of timespec.h.
23237
23238 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
23239
23240         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
23241         long unreadable paths in GNU/Linux.  Problem reported by Andreas
23242         Schwab in
23243         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
23244         I'll try to think of a better way to fix the Solaris problem.
23245
23246         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
23247         like glibc; on Solaris 10, it fails with errno == EINVAL.
23248         POSIX says the behavior is unspecified if the first argument is NULL,
23249         so play it safe and never pass NULL to the system getcwd.
23250
23251 2007-02-21  Jim Meyering  <jim@meyering.net>
23252
23253         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
23254         of gettimeofday.  It would conflict with the one now always
23255         provided via sys_time_.h.  Reported by Matthew Woehlke, as
23256         an IRIX 6.5 build failure.
23257
23258 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
23259
23260         Minor fixups to port to Solaris 10 with Sun C 5.8.
23261         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
23262         * modules/getcwd (Depends-on): Add dirfd.
23263         * lib/putenv.c (putenv): #undef it.
23264         (rpl_putenv): New decl.
23265         (malloc, free): Include <stdlib.h> rather than prototyping separately.
23266
23267 2007-02-20  Bruno Haible  <bruno@clisp.org>
23268
23269         * modules/stdio-tests: New file.
23270         * tests/test-stdio.c: New file.
23271
23272         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
23273         (Depends-on): Add stdio.
23274         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23275         (Include): Use <stdio.h> instead of vsnprintf.h.
23276         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
23277         HAVE_DECL_VSNPRINTF.
23278         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
23279
23280         * modules/snprintf (Files): Remove lib/snprintf.h.
23281         (Depends-on): Add stdio.
23282         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23283         (Include): Use <stdio.h> instead of snprintf.h.
23284         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
23285         HAVE_DECL_SNPRINTF.
23286         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
23287         * lib/getaddrinfo.c: Likewise.
23288
23289         * modules/stdio: New file.
23290         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
23291         * lib/snprintf.h: Remove file.
23292         * lib/vsnprintf.h: Remove file.
23293         * lib/.cppi-disable: Remove snprintf.h.
23294         * m4/stdio_h.m4: New file.
23295         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
23296
23297 2007-02-20  Jim Meyering  <jim@meyering.net>
23298
23299         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
23300         used by e.g., mingw.  From Bruno Haible.
23301
23302 2007-02-19  Bruno Haible  <bruno@clisp.org>
23303
23304         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
23305         warnings.
23306         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23307
23308 2007-02-19  Bruno Haible  <bruno@clisp.org>
23309
23310         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
23311         from mingw users.
23312
23313 2007-02-19  Bruno Haible  <bruno@clisp.org>
23314
23315         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
23316         warnings.
23317         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
23318
23319 2007-02-19  Jim Meyering  <jim@meyering.net>
23320
23321         Don't use FD after a successful "fdopendir (fd)".
23322         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
23323         Reset it by calling dirfd on the just-obtained DIR*.
23324
23325         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
23326         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
23327
23328 2007-02-18  Bruno Haible  <bruno@clisp.org>
23329
23330         * lib/readlink.c: Include <unistd.h>.
23331         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
23332         HAVE_READLINK.
23333         * modules/readlink (Depends-on): Add unistd.
23334         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23335         (Include): Add <unistd.h>.
23336
23337         * lib/getlogin_r.h: Remove file.
23338         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
23339         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
23340         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
23341         HAVE_DECL_GETLOGIN_R.
23342         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
23343         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23344         (Include): Use <unistd.h> instead of getlogin_r.h.
23345
23346         * lib/getcwd.h: Remove file.
23347         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
23348         * lib/xgetcwd.c: Likewise.
23349         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
23350         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
23351         * modules/getcwd (Files): Remove lib/getcwd.h.
23352         (Depends-on): Add unistd.
23353         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23354         (Include): Use <unistd.h> instad of getcwd.h.
23355
23356         * lib/ftruncate.c: Include <unistd.h> first.
23357         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
23358         Set HAVE_FTRUNCATE.
23359         * modules/ftruncate (Depends-on): Add unistd.
23360         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23361
23362         * lib/fchdir.c: Include <unistd.h> first.
23363         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
23364         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
23365         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
23366         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23367         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
23368
23369         * lib/dup2.c: Include <unistd.h> first.
23370         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
23371         HAVE_DUP2.
23372         * modules/dup2 (Depends-on): Add unistd.
23373         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23374
23375         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
23376         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
23377         REPLACE_CHOWN. Don't define chown as a macro here.
23378         * modules/chown (Depends-on): Add unistd.
23379         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23380
23381         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
23382         Add definition for GL_LINK_WARNING.
23383         (chown, dup2): New declarations.
23384         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
23385         link warning.
23386         (ftruncate): New declaration.
23387         (getcwd): New declaration, taken from old getcwd.h.
23388         (getlogin_r): New declaration, taken from old getlogin_r.h.
23389         (readlink): New declaration.
23390         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
23391         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
23392         (gl_PREREQ_UNISTD): Remove macro.
23393         (gl_UNISTD_MODULE_INDICATOR): New macro.
23394         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
23395         many new variables. Don't set UNISTD_H.
23396         * modules/unistd (Description): Change.
23397         (Depends-on): Add link-warning.
23398         (configure.ac): Update.
23399         (Makefile.am): Create unistd.h always. Substitute many new variables
23400         into it.
23401
23402 2007-02-18  Bruno Haible  <bruno@clisp.org>
23403
23404         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
23405         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
23406         HAVE_GETSUBOPT.
23407         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
23408         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
23409         * lib/getsubopt.h: Remove file.
23410         * modules/getsubopt (Files): Remove lib/getsubopt.h.
23411         (Depends-on): Add stdlib.
23412         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23413         (Includes): Use <stdlib.h> instead of getsubopt.h.
23414         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
23415         Set HAVE_GETSUBOPT.
23416         * lib/getsubopt.c: Don't include getsubopt.h.
23417
23418 2007-02-18  Bruno Haible  <bruno@clisp.org>
23419
23420         * modules/fchdir (Depends-on): Add dup2.
23421
23422 2007-02-18  Bruno Haible  <bruno@clisp.org>
23423
23424         * lib/stdlib_.h: Handle glibc's special invocation convention
23425         specially.
23426
23427 2007-02-18  Bruno Haible  <bruno@clisp.org>
23428
23429         * modules/stdlib-tests: New file.
23430         * tests/test-stdlib.c: New file.
23431
23432         * modules/mkstemp (Files): Remove lib/mkstemp.h.
23433         (Depends-on): Add stdlib.
23434         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23435         (Includes): Use <stdlib.h> instead of mkstemp.h.
23436         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
23437         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
23438         * lib/mkstemp.c: Don't include mkstemp.h.
23439         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
23440         * lib/stdlib--.h: Don't include mkstemp.h.
23441
23442         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
23443         (Depends-on): Add stdlib.
23444         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23445         (Includes): Use <stdlib.h> instead of mkdtemp.h.
23446         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
23447         HAVE_MKDTEMP.
23448         * lib/mkdtemp.c: Don't include mkdtemp.h.
23449         * lib/clean-temp.c: Don't include mkdtemp.h.
23450
23451         * modules/exit (Files): Remove lib/exit.h.
23452         (Depends-on): Add stdlib.
23453         (Makefile.am): Remove lib_SOURCES.
23454         (Include): Use <stdlib.h> instead of exit.h.
23455         * lib/argmatch.c: Don't include exit.h.
23456         * lib/execute.c: Likewise.
23457         * lib/pagealign_alloc.c: Likewise.
23458         * lib/pipe.c: Likewise.
23459         * lib/wait-process.c: Likewise.
23460         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
23461         * lib/exitfail.c: Likewise.
23462         * lib/savewd.c: Likewise.
23463         * lib/xsetenv.c: Likewise.
23464
23465         * modules/stdlib: New file.
23466         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
23467         and extra comments about mkstemp().
23468         * lib/exit.h: Remove file.
23469         * lib/mkdtemp.h: Remove file.
23470         * lib/mkstemp.h: Remove file.
23471         * m4/stdlib_h.m4: New file.
23472         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
23473
23474 2007-02-18  Bruno Haible  <bruno@clisp.org>
23475
23476         * modules/math-tests: New file.
23477         * tests/test-math.c: New file.
23478
23479         * modules/math: New file.
23480         * modules/mathl (Files): Remove lib/mathl.h.
23481         (Depends-on): Add math.
23482         (Makefile.am): Don't mention mathl.h.
23483         (Include): Use <math.h> instead of mathl.h.
23484         * lib/math_.h: New file.
23485         * lib/mathl.h: Remove file.
23486         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
23487         mathl.h.
23488         * lib/asinl.c: Likewise.
23489         * lib/atanl.c: Likewise.
23490         * lib/ceill.c: Likewise.
23491         * lib/cosl.c: Likewise.
23492         * lib/expl.c: Likewise.
23493         * lib/floorl.c: Likewise.
23494         * lib/frexpl.c: Likewise.
23495         * lib/ldexpl.c: Likewise.
23496         * lib/logl.c: Likewise.
23497         * lib/sincosl.c: Likewise.
23498         * lib/sinl.c: Likewise.
23499         * lib/sqrtl.c: Likewise.
23500         * lib/tanl.c: Likewise.
23501         * lib/trigl.c: Likewise.
23502         * m4/math_h.m4: New file.
23503         * MODULES.html.sh (Mathematics): Add math.
23504
23505 2007-02-17  Bruno Haible  <bruno@clisp.org>
23506
23507         * modules/wctype-tests: New file.
23508         * tests/test-wctype.c: New file.
23509
23510         * modules/wchar-tests: New file.
23511         * tests/test-wchar.c: New file.
23512
23513         * modules/unistd-tests: New file.
23514         * tests/test-unistd.c: New file.
23515
23516         * modules/time-tests: New file.
23517         * tests/test-time.c: New file.
23518
23519         * modules/sysexits-tests: New file.
23520         * tests/test-sysexits.c: New file.
23521
23522         * modules/sys_time-tests: New file.
23523         * tests/test-sys_time.c: New file.
23524
23525         * modules/sys_stat-tests: New file.
23526         * tests/test-sys_stat.c: New file.
23527
23528         * modules/sys_socket-tests: New file.
23529         * tests/test-sys_socket.c: New file.
23530
23531         * modules/sys_select-tests: New file.
23532         * tests/test-sys_select.c: New file.
23533
23534         * modules/string-tests: New file.
23535         * tests/test-string.c: New file.
23536
23537         * modules/stdbool-tests: New file.
23538         * tests/test-stdbool.c: New file.
23539
23540         * modules/netinet_in-tests: New file.
23541         * tests/test-netinet_in.c: New file.
23542
23543         * modules/inttypes-tests: New file.
23544         * tests/test-inttypes.c: New file.
23545
23546         * modules/fcntl-tests: New file.
23547         * tests/test-fcntl.c: New file.
23548
23549         * modules/byteswap-tests: New file.
23550         * tests/test-byteswap.c: New file.
23551
23552         * modules/arpa_inet-tests: New file.
23553         * tests/test-arpa_inet.c: New file.
23554
23555 2007-02-17  Bruno Haible  <bruno@clisp.org>
23556
23557         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
23558         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
23559         if the corresponding module is not enabled. Emit link warnings if
23560         the function is used nevertheless.
23561         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
23562         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
23563         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
23564         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
23565         * modules/inttypes (Depends-on): Add link-warning.
23566         (Makefile.am): Copy the contents of build-aux/link-warning.h into
23567         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
23568         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
23569         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
23570         * modules/imaxdiv (configure.ac): Likewise.
23571         * modules/strtoimax (configure.ac): Likewise.
23572         * modules/strtoumax (configure.ac): Likewise.
23573
23574 2007-02-17  Bruno Haible  <bruno@clisp.org>
23575
23576         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
23577         gl_STRING_MODULE_INDICATOR_DEFAULTS.
23578         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
23579         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
23580
23581 2007-02-17  Bruno Haible  <bruno@clisp.org>
23582
23583         * modules/link-warning: New file.
23584         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
23585         * lib/string_.h (GL_LINK_WARNING): Remove definition.
23586         * modules/string (Depends-on): Add link-warning.
23587         (Makefile.am): Copy the contents of build-aux/link-warning.h into
23588         string.h.
23589         * MODULES.html.sh (Support for building libraries and executables): Add
23590         link-warning.
23591
23592 2007-02-17  Bruno Haible  <bruno@clisp.org>
23593
23594         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
23595         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
23596         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
23597         long lines.
23598
23599 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
23600             Bruno Haible  <bruno@clisp.org>
23601
23602         * modules/tmpfile: New file.
23603         * lib/tmpfile.c: New file.
23604         * m4/tmpfile.m4: New file.
23605         * MODULES.html.sh (func_all_modules): New section "Input/output".
23606
23607 2007-02-15  Bruno Haible  <bruno@clisp.org>
23608
23609         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
23610         (supports_delete_on_close): New function.
23611         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
23612
23613 2007-02-14  Bruno Haible  <bruno@clisp.org>
23614
23615         * modules/mbspcasecmp-tests: New file.
23616         * tests/test-mbspcasecmp.sh: New file.
23617         * tests/test-mbspcasecmp.c: New file.
23618
23619         New module mbspcasecmp.
23620         * modules/mbspcasecmp: New file.
23621         * lib/mbspcasecmp.c: New file.
23622         * lib/string_.h (strncasecmp): Change warning message.
23623         (mbspcasecmp): New declaration.
23624         * m4/mbspcasecmp.m4: New file.
23625         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23626         GNULIB_MBSPCASECMP.
23627         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
23628         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
23629
23630 2007-02-14  Bruno Haible  <bruno@clisp.org>
23631
23632         * modules/mbsncasecmp-tests: New file.
23633         * tests/test-mbsncasecmp.sh: New file.
23634         * tests/test-mbsncasecmp.c: New file.
23635
23636         New module mbsncasecmp.
23637         * modules/mbsncasecmp: New file.
23638         * lib/mbsncasecmp.c: New file.
23639         * lib/string_.h (mbsncasecmp): New declaration.
23640         * m4/mbsncasecmp.m4: New file.
23641         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23642         GNULIB_MBSNCASECMP.
23643         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
23644         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
23645
23646 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
23647
23648         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
23649         Verify that it doesn't overlap with our flags.
23650         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
23651         do not have the desired effect in multibyte locales; instead, use
23652         mbscasecmp.
23653         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
23654         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
23655         we don't require GNU fnmatch ourselves (if our users require it, they
23656         should do so explicitly).
23657
23658         Fix regex code so it doesn't rely on strcasecmp.
23659         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
23660         Otherwise, include gnulib's langinfo.h.
23661         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
23662         undesirable behavior in non-C locales.  Instead, rely on localecharset.
23663         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
23664         * modules/regex (FILES): Remove m4/codeset.m4.
23665         (Depends-on): Add localcharset.  Remove strcase.
23666
23667 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23668
23669         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
23670         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23671
23672 2007-02-13  Bruno Haible  <bruno@clisp.org>
23673
23674         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
23675         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23676
23677 2007-02-12  Bruno Haible  <bruno@clisp.org>
23678
23679         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
23680         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
23681         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
23682         time warning rather than a link error.
23683
23684 2007-02-12  Bruno Haible  <bruno@clisp.org>
23685
23686         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
23687         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23688         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23689
23690 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23691
23692         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
23693         args, not 2.
23694
23695 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23696
23697         New module 'time', so that apps can include <time.h> as per
23698         POSIX and GNU instead of separate include files like time_r.h
23699         and timegm.h.  This implementation tries out a simpler approach
23700         for replacing decls in standard include files (as compared to
23701         the string module), somewhat as an experiment.
23702
23703         * config/srclist.txt: Comment out mktime.c for now.
23704         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
23705         since it doesn't apply any more.  Use generic wording instead.
23706         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
23707         'time'.
23708         * lib/time_.h, m4/time_h.m4, modules/time: New files.
23709         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
23710         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
23711         Don't include <sys/types.h>; no longer needed since we assume C89.
23712         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
23713         * lib/strftime.c: Likewise.
23714         * lib/time_r.c: Likewise.
23715         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
23716         * lib/nanosleep.c: Include <time.h> first, to check interface.
23717         * lib/strptime.c: Likewise.
23718         * lib/time_r.c: Likewise.
23719         * lib/timegm.c: Likewise.
23720         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
23721         needed.
23722         * lib/timegm.c: Don't include timegm.h; no longer needed.
23723         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
23724         time.h now handles any problems in that area.
23725         (struct timespec, nanosleep): Remove; time.h now arranges for these.
23726         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
23727         that time.h defines struct timespec.
23728         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
23729         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
23730         handles that.
23731         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
23732         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
23733         needed.  Set REPLACE_LOCALTIME.
23734         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
23735         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
23736         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
23737         nanosleep; time_h.m4 now does that.  Don't require
23738         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
23739         module handles this now.
23740         * modules/getdate (Depends-on): Remove timespec.  Add time.
23741         * modules/nanosleep (Depends-on): Likewise.
23742         * modules/stat-time (Depends-on): Likewise.
23743         * modules/nanosleep (Include): Include time.h, not timespec.h.
23744         * modules/strptime (Files): Remove lib/strptime.h.
23745         (Depends-on): Add extensions, time.
23746         (Include): Include time.h, not strptime.h.
23747         * modules/time_r (Files): Remove lib/time_r.h.
23748         (Depends-on): Add time.
23749         (Include): Include time.h, not time_r.h.
23750         * modules/timegm: Likewise.
23751         * modules/timespec (Description): Now does timespec-related decls
23752         of our own, instead of struct timespec itself.
23753         (Depends-on): Add time; remove extensions.
23754         (Maintainer): Add self.
23755         * modules/utimecmp (Depends-on): Add time; remove timespec.
23756         * modules/utimens (Depends-on): Likewise.
23757         * modules/xnanosleep (Depends-on): Likewise.
23758
23759 2007-02-11  Bruno Haible  <bruno@clisp.org>
23760
23761         * lib/c-strstr.c: Include allocsa.h.
23762         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
23763         * lib/c-strcasestr.c: Include allocsa.h.
23764         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
23765         * lib/strcasestr.c: Include allocsa.h.
23766         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
23767         * lib/mbsstr.c: Include allocsa.h.
23768         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
23769         allocsa/freesa instead of malloc/free.
23770         * lib/mbscasestr.c: Include allocsa.h.
23771         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
23772         allocsa/freesa instead of malloc/free.
23773         * modules/c-strstr (Depends-on): Add allocsa.
23774         * modules/c-strcasestr (Depends-on): Likewise.
23775         * modules/strcasestr (Depends-on): Likewise.
23776         * modules/mbsstr (Depends-on): Likewise.
23777         * modules/mbscasestr (Depends-on): Likewise.
23778
23779 2007-02-11  Bruno Haible  <bruno@clisp.org>
23780
23781         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
23782
23783         * modules/mbsspn-tests: New file.
23784         * tests/test-mbsspn.sh: New file.
23785         * tests/test-mbsspn.c: New file.
23786
23787 2007-02-11  Bruno Haible  <bruno@clisp.org>
23788
23789         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
23790
23791         * modules/mbspbrk-tests: New file.
23792         * tests/test-mbspbrk.sh: New file.
23793         * tests/test-mbspbrk.c: New file.
23794
23795 2007-02-11  Bruno Haible  <bruno@clisp.org>
23796
23797         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
23798         unneeded cast.
23799
23800         * modules/mbscspn-tests: New file.
23801         * tests/test-mbscspn.sh: New file.
23802         * tests/test-mbscspn.c: New file.
23803
23804 2007-02-11  Bruno Haible  <bruno@clisp.org>
23805
23806         * modules/mbscasecmp-tests: New file.
23807         * tests/test-mbscasecmp.sh: New file.
23808         * tests/test-mbscasecmp.c: New file.
23809
23810 2007-02-11  Bruno Haible  <bruno@clisp.org>
23811
23812         Ensure O(n) worst-case complexity of mbscasestr.
23813         * lib/mbscasestr.c: Include stdbool.h.
23814         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
23815         functions.
23816         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
23817         the bookkeeping indicates that it's worth it.
23818         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
23819
23820         * modules/mbscasestr-tests: New file.
23821         * tests/test-mbscasestr1.c: New file.
23822         * tests/test-mbscasestr2.sh: New file.
23823         * tests/test-mbscasestr2.c: New file.
23824         * tests/test-mbscasestr3.sh: New file.
23825         * tests/test-mbscasestr3.c: New file.
23826         * tests/test-mbscasestr4.sh: New file.
23827         * tests/test-mbscasestr4.c: New file.
23828         * m4/locale-tr.m4: New file.
23829
23830 2007-02-11  Bruno Haible  <bruno@clisp.org>
23831
23832         Ensure O(n) worst-case complexity of mbsstr.
23833         * lib/mbsstr.c: Include stdbool.h.
23834         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
23835         functions.
23836         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
23837         bookkeeping indicates that it's worth it.
23838         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
23839
23840         * modules/mbsstr-tests: New file.
23841         * tests/test-mbsstr1.c: New file.
23842         * tests/test-mbsstr2.sh: New file.
23843         * tests/test-mbsstr2.c: New file.
23844         * tests/test-mbsstr3.sh: New file.
23845         * tests/test-mbsstr3.c: New file.
23846         * m4/locale-fr.m4: New file.
23847
23848 2007-02-11  Bruno Haible  <bruno@clisp.org>
23849
23850         * lib/mbsrchr.c (mbsrchr): Fix bug.
23851
23852         * modules/mbsrchr-tests: New file.
23853         * tests/test-mbsrchr.sh: New file.
23854         * tests/test-mbsrchr.c: New file.
23855
23856 2007-02-11  Bruno Haible  <bruno@clisp.org>
23857
23858         * lib/mbschr.c (mbschr): Fix bug.
23859
23860         * modules/mbschr-tests: New file.
23861         * tests/test-mbschr.sh: New file.
23862         * tests/test-mbschr.c: New file.
23863         * m4/locale-zh.m4: New file.
23864
23865 2007-02-11  Bruno Haible  <bruno@clisp.org>
23866
23867         Support for copying multibyte string iterators.
23868         * lib/mbiter.h: Include <string.h>.
23869         (mbiter_multi_copy): New function.
23870         (mbi_copy): New macro.
23871         * lib/mbuiter.h: Include <string.h>.
23872         (mbuiter_multi_copy): New function.
23873         (mbui_copy): New macro.
23874
23875 2007-02-11  Bruno Haible  <bruno@clisp.org>
23876
23877         New module mbslen.
23878         * modules/mbslen: New file.
23879         * lib/mbslen.c: New file.
23880         * lib/string_.h (mbslen): New declaration.
23881         * m4/mbslen.m4: New file.
23882         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23883         GNULIB_MBSLEN.
23884         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
23885         * MODULES.html.sh (Internationalization functions): Add mbslen.
23886
23887 2007-02-11  Bruno Haible  <bruno@clisp.org>
23888
23889         Ensure O(n) worst-case complexity of strcasestr substitute.
23890         * lib/strcasestr.c: Include stdbool.h.
23891         (knuth_morris_pratt): New function.
23892         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
23893         bookkeeping indicates that it's worth it.
23894         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
23895
23896         * modules/strcasestr-tests: New file.
23897         * tests/test-strcasestr.c: New file.
23898
23899 2007-02-11  Bruno Haible  <bruno@clisp.org>
23900
23901         Ensure O(n) worst-case complexity of c_strcasestr.
23902         * lib/c-strcasestr.c: Include stdbool.h, string.h.
23903         (knuth_morris_pratt): New function.
23904         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
23905         the bookkeeping indicates that it's worth it.
23906         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
23907
23908         * modules/c-strcasestr-tests: New file.
23909         * tests/test-c-strcasestr.c: New file.
23910
23911 2007-02-11  Bruno Haible  <bruno@clisp.org>
23912
23913         Ensure O(n) worst-case complexity of c_strstr.
23914         * lib/c-strstr.c: Include stdbool.h, string.h.
23915         (knuth_morris_pratt): New function.
23916         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
23917         bookkeeping indicates that it's worth it.
23918         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
23919
23920         * lib/c-strstr.c: Complete rewrite for maintainability.
23921
23922         * modules/c-strstr-tests: New file.
23923         * tests/test-c-strstr.c: New file.
23924
23925 2007-02-11  Bruno Haible  <bruno@clisp.org>
23926
23927         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
23928         5.2.1 and earlier, whereby \055 was treated just like the range
23929         delimiter '-'.
23930         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23931
23932 2007-02-08  Bruno Haible  <bruno@clisp.org>
23933
23934         * modules/regex (Depends-on): Add stdbool.
23935         Reported by Dalibor Topic <robilad@kaffe.org>.
23936
23937 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
23938
23939         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
23940         Prefer returning from main to exiting from it.
23941         Remove unnecessary parens after sizeof.
23942
23943 2007-02-05  Bruno Haible  <bruno@clisp.org>
23944
23945         New module mbssep.
23946         * modules/mbssep: New file.
23947         * lib/mbssep.c: New file.
23948         * lib/string_.h (strsep): Add a conditional link warning.
23949         (mbssep): New declaration.
23950         * m4/mbssep.m4: New file.
23951         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23952         GNULIB_MBSSEP.
23953         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
23954         * MODULES.html.sh (Internationalization functions): Add mbssep.
23955
23956 2007-02-05  Bruno Haible  <bruno@clisp.org>
23957
23958         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
23959         Optimize search in case of 1 delimiter.
23960
23961 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
23962
23963         * lib/acl.h: Include sys/types.h before sys/acl.h.
23964
23965 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
23966
23967         Merge upstream fix for glibc bugzilla #3957:
23968
23969         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
23970
23971         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
23972         bit for RE_HAT_LISTS_NOT_NEWLINE.
23973         (build_charclass_op): Remove bogus comment.
23974
23975 2007-02-05  Simon Josefsson  <simon@josefsson.org>
23976
23977         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
23978
23979 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
23980
23981         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
23982         * lib/memmem.c [!defined _LIBC]: Include config.h.
23983
23984 2007-02-04  Bruno Haible  <bruno@clisp.org>
23985
23986         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
23987         warning message.
23988
23989 2007-02-04  Bruno Haible  <bruno@clisp.org>
23990
23991         New module mbstok_r.
23992         * modules/mbstok_r: New file.
23993         * lib/mbstok_r.c: New file.
23994         * lib/string_.h (strtok_r): Change argument names to match the
23995         comments. Add a conditional link warning.
23996         (mbstok_r): New declaration.
23997         * m4/mbstok_r.m4: New file.
23998         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
23999         GNULIB_MBSTOK_R.
24000         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
24001         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
24002
24003 2007-02-04  Bruno Haible  <bruno@clisp.org>
24004
24005         New module mbsspn.
24006         * modules/mbsspn: New file.
24007         * lib/mbsspn.c: New file.
24008         * lib/string_.h (strspn): Add a conditional link warning.
24009         (mbsspn): New declaration.
24010         * m4/mbsspn.m4: New file.
24011         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24012         GNULIB_MBSSPN.
24013         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
24014         * MODULES.html.sh (Internationalization functions): Add mbsspn.
24015
24016 2007-02-04  Bruno Haible  <bruno@clisp.org>
24017
24018         New module mbspbrk.
24019         * modules/mbspbrk: New file.
24020         * lib/mbspbrk.c: New file.
24021         * lib/string_.h (strpbrk): Add a conditional link warning.
24022         (mbspbrk): New declaration.
24023         * m4/mbspbrk.m4: New file.
24024         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24025         GNULIB_MBSPBRK.
24026         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
24027         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
24028
24029 2007-02-04  Bruno Haible  <bruno@clisp.org>
24030
24031         New module mbscspn.
24032         * modules/mbscspn: New file.
24033         * lib/mbscspn.c: New file.
24034         * lib/string_.h (strcspn): Add a conditional link warning.
24035         (mbscspn): New declaration.
24036         * m4/mbscspn.m4: New file.
24037         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24038         GNULIB_MBSCSPN.
24039         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
24040         * MODULES.html.sh (Internationalization functions): Add mbscspn.
24041
24042 2007-02-04  Bruno Haible  <bruno@clisp.org>
24043
24044         New module mbscasestr, reduced goal of strcasestr.
24045         * modules/mbscasestr: New file.
24046         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
24047         (mbscasestr): Renamed from strcasestr.
24048         * lib/strcasestr.c: Don't include mbuiter.h.
24049         (strcasestr): Remove support for multibyte locales.
24050         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
24051         Change the conditional link warning.
24052         (mbscasestr): New declaration.
24053         * m4/mbscasestr.m4: New file.
24054         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
24055         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
24056         REPLACE_STRCASESTR.
24057         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
24058         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24059         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
24060         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
24061         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
24062         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
24063         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
24064         (Depends-on): Remove mbuiter.
24065         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
24066
24067 2007-02-04  Bruno Haible  <bruno@clisp.org>
24068
24069         Simplify handling of strncasecmp.
24070         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
24071         the conditional link warning.
24072         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24073         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
24074         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
24075         * modules/strcase (configure.ac): Don't invoke
24076         gl_STRING_MODULE_INDICATOR.
24077         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
24078
24079 2007-02-04  Bruno Haible  <bruno@clisp.org>
24080
24081         New module mbscasecmp, reduced goal of strcasecmp.
24082         * modules/mbscasecmp: New file.
24083         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
24084         (mbscasecmp): Renamed from strcasecmp.
24085         * lib/strcasecmp.c: Don't include mbuiter.h.
24086         (strcasecmp): Remove support for multibyte locales.
24087         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
24088         Change the conditional link warning.
24089         (mbscasecmp): New declaration.
24090         * m4/mbscasecmp.m4: New file.
24091         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
24092         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
24093         REPLACE_STRCASECMP.
24094         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
24095         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24096         GNULIB_MBSCASECMP.
24097         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
24098         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
24099         * modules/strcase (Files): Remove m4/mbrtowc.m4.
24100         (Depends-on): Remove mbuiter.
24101         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
24102
24103 2007-02-04  Bruno Haible  <bruno@clisp.org>
24104
24105         New module mbsstr. Remove module strstr.
24106         * modules/mbsstr: New file.
24107         * modules/strstr: Remove file.
24108         * lib/mbsstr.c: Renamed from lib/strstr.c.
24109         (mbsstr): Renamed from strstr.
24110         * lib/string_.h (strstr): Remove declaration. Change the conditional
24111         link warning.
24112         (mbsstr): New declaration.
24113         * m4/mbsstr.m4: New file.
24114         * m4/strstr.m4: Remove file.
24115         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24116         REPLACE_STRSTR.
24117         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
24118         Don't initialize GNULIB_STRSTR.
24119         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
24120         substitute GNULIB_STRSTR and REPLACE_STRSTR.
24121         * MODULES.html.sh (Internationalization functions): Add mbsstr.
24122         (Support for systems lacking ANSI C 89): Remove strstr.
24123
24124 2007-02-04  Bruno Haible  <bruno@clisp.org>
24125
24126         New module mbsrchr.
24127         * modules/mbsrchr: New file.
24128         * lib/mbsrchr.c: New file.
24129         * lib/string_.h (strrchr): Add a conditional link warning.
24130         (mbsrchr): New declaration.
24131         * m4/mbsrchr.m4: New file.
24132         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24133         GNULIB_MBSRCHR.
24134         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
24135         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
24136
24137 2007-02-04  Bruno Haible  <bruno@clisp.org>
24138
24139         New module mbschr.
24140         * modules/mbschr: New file.
24141         * lib/mbschr.c: New file.
24142         * lib/string_.h (strchr): Add a conditional link warning.
24143         (mbschr): New declaration.
24144         * m4/mbschr.m4: New file.
24145         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
24146         GNULIB_MBSCHR.
24147         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
24148         * MODULES.html.sh (Internationalization functions): Add mbschr.
24149
24150 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24151
24152         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
24153
24154         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
24155
24156 2007-02-04  Bruno Haible  <bruno@clisp.org>
24157
24158         New module description section 'configure.ac-early'.
24159         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
24160         (func_get_autoconf_early_snippet): New function.
24161         (func_import, func_create_testdir): Use it. Remove special cases for
24162         modules 'extensions' and 'lock'.
24163         * modules/extensions (configure.ac-early): Require
24164         gl_USE_SYSTEM_EXTENSIONS.
24165         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
24166
24167 2007-02-04  Bruno Haible  <bruno@clisp.org>
24168
24169         Make use of gcj-4.3's -fsource and -ftarget option.
24170         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
24171         and if so try the options -fsource and -ftarget.
24172         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
24173         source_version, ftarget_option, target_version arguments.
24174         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
24175         (is_envjavac_oldgcj_14_14_usable): Renamed from
24176         is_envjavac_gcj_14_14_usable.
24177         (is_envjavac_oldgcj_14_13_usable): Renamed from
24178         is_envjavac_gcj_14_13_usable.
24179         (is_gcj_present): Update.
24180         (is_gcj_43, is_gcj43_usable): New functions.
24181         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
24182         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
24183         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
24184         try the options -fsource and -ftarget.
24185
24186 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
24187
24188         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
24189         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
24190         larger value.
24191
24192 2007-02-03  Jim Meyering  <jim@meyering.net>
24193
24194         Give tools a better chance to allocate space for very large buffers.
24195         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
24196
24197         Make pwd and readlink work also when run with an unreadable parent dir
24198         on systems with openat support.
24199         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
24200         provided getcwd function, even when we have openat support.
24201         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
24202
24203 2007-02-02  Bruno Haible  <bruno@clisp.org>
24204
24205         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
24206         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
24207         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
24208         portability problems if one of these functions is only used on specific
24209         platforms.
24210         Reported by Paul Eggert.
24211
24212 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
24213
24214         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
24215         is causing more trouble than it's curing.
24216         * lib/regex_internal.h (__mempcpy): Remove.
24217         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
24218         (and make the code a tad smaller to boot).
24219         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
24220
24221 2007-02-02  Jim Meyering  <jim@meyering.net>
24222
24223         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
24224         section, not in the Makefile.am: one.
24225
24226 2007-02-02  Eric Blake  <ebb9@byu.net>
24227
24228         * lib/strchrnul.c: Always include config.h first.
24229
24230         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
24231         gnulib strstr is not necessary here.
24232
24233 2007-02-02  Simon Josefsson  <simon@josefsson.org>
24234
24235         * m4/socklen.m4: Fix typo.
24236
24237 2007-02-02  Eric Blake  <ebb9@byu.net>
24238
24239         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
24240         * modules/netinet_in (Makefile.am): Likewise.
24241
24242 2007-02-01  Bruno Haible  <bruno@clisp.org>
24243
24244         * lib/string_.h (GL_LINK_WARNING): New macro.
24245         (strcasecmp, strstr, strcasestr): If provided by the system,
24246         conditionally define as a macro that leads to a warning instead of to
24247         an error.
24248         (strncasecmp): Conditionally define as a macro that leads to a warning.
24249
24250 2007-02-01  Karl Berry  <karl@gnu.org>
24251
24252         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
24253
24254 2007-02-01  Bruno Haible  <bruno@clisp.org>
24255
24256         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
24257         renamings.
24258
24259 2007-02-01  Eric Blake  <ebb9@byu.net>
24260
24261         * modules/regex (Depends-on): Revert dependence on mempcpy.
24262         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
24263         module's definition of mempcpy.
24264         Reported by Paul Eggert.
24265
24266 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
24267
24268         * lib/string_.h: If the gnulib module XYZ is not present, undefine
24269         the symbol XYZ before redefining it.  This fixes a problem with
24270         programs that don't use XYZ, when compiled on systems that define
24271         XYZ to something else.
24272
24273 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
24274
24275         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
24276         occurs when "mkdir -m foo" creates a setgid directory that is (1)
24277         writeable to group or other and (2) is intended to have a special
24278         mode bit that is set or cleared.  In such a case, the directory
24279         should be neither group- nor other-writeable until the special
24280         mode bits are right.
24281
24282 2007-01-31  Eric Blake  <ebb9@byu.net>
24283
24284         * modules/mountlist (Depends-on): Add strstr.
24285
24286         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
24287         bug.
24288         * modules/string (Makefile.am): Remove redundant replacement.
24289         * modules/regex (Depends-on): Add mempcpy.
24290
24291 2007-01-31  Bruno Haible  <bruno@clisp.org>
24292
24293         New module description field 'Link'.
24294         * gnulib-tool (func_usage): Document --extract-link-directive.
24295         (sed_extract_prog): Recognize 'Link' directive.
24296         (func_get_link_directive): New function.
24297         (func_import): Show summary of link directives.
24298         Handle --extract-link-directive option.
24299         * modules/acl (Link): New section.
24300         * modules/clock-time (Link): New section.
24301         * modules/euidaccess (Link): New section.
24302         * modules/gettext (Link): New section.
24303         * modules/iconv (Link): New section.
24304         * modules/lock (Link): New section.
24305         * modules/nanosleep (Link): New section.
24306         * modules/readline (Link): New section.
24307
24308 2007-01-27  Bruno Haible  <bruno@clisp.org>
24309
24310         Enforce the use of gnulib modules for unportable <string.h> functions.
24311         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
24312         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
24313         (gl_HEADER_STRING_H_BODY): Require it.
24314         * lib/string_.h: If the gnulib module XYZ is not present, redefine
24315         the symbol XYZ to one that gives a link error.
24316         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
24317         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
24318         * modules/mempcpy (configure.ac): Likewise.
24319         * modules/memrchr (configure.ac): Likewise.
24320         * modules/stpcpy (configure.ac): Likewise.
24321         * modules/stpncpy (configure.ac): Likewise.
24322         * modules/strcase (configure.ac): Likewise.
24323         * modules/strcasestr (configure.ac): Likewise.
24324         * modules/strchrnul (configure.ac): Likewise.
24325         * modules/strdup (configure.ac): Likewise.
24326         * modules/strndup (configure.ac): Likewise.
24327         * modules/strnlen (configure.ac): Likewise.
24328         * modules/strpbrk (configure.ac): Likewise.
24329         * modules/strsep (configure.ac): Likewise.
24330         * modules/strstr (configure.ac): Likewise.
24331         * modules/strtok_r (configure.ac): Likewise.
24332
24333 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
24334
24335         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
24336
24337 2007-01-30  Jim Meyering  <jim@meyering.net>
24338
24339         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
24340
24341 2007-01-29  Bruno Haible  <bruno@clisp.org>
24342
24343         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
24344         * lib/execute.c: Likewise.
24345         * lib/pipe.c: Likewise.
24346         * lib/printf-args.h: Likewise.
24347         * lib/printf-args.c: Likewise.
24348         * lib/printf-parse.c: Likewise.
24349         * lib/vasnprintf.c: Likewise.
24350
24351 2007-01-29  Eric Blake  <ebb9@byu.net>
24352
24353         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
24354         declaration.
24355
24356 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
24357
24358         * lib/strptime.h (strptime): Use 'restrict' for args where
24359         POSIX requires this.
24360         * lib/strptime.c (strptime): Likewise.
24361         Change license notice from LGPL to GPL, since gnulib-tool will
24362         change this as needed.
24363         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
24364         defined.
24365         Include "strptime.h" first, to check interface.
24366         Do not #undef _LIBC and _NL_CURRENT.
24367         Do not include <stdlib.h>; no longer needed.
24368         Include "time_r.h" and declare ptime_locale_status
24369         only if _LIBC is not defined.
24370         (__P): Remove unused macro.
24371         (match_string): Bring back glibc version, but use it only if _LIBC
24372         is defined.
24373         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
24374         Remove unnecessary assertion and abort() call.
24375         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
24376         * m4/strptime.m4: Fix serial number comment.
24377         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
24378         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
24379         (Depends-on): Add time_r.
24380
24381 2007-01-29  Bruno Haible  <bruno@clisp.org>
24382
24383         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24384         strptime.
24385         * modules/strptime (Depends-on): Add stdbool.
24386         * lib/strptime.h: Include <time.h> always. Add comments.
24387
24388 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24389
24390         * modules/strptime: New file.
24391         * lib/strptime.h: New file.
24392         * lib/strptime.c: New file.
24393         * m4/strptime.m4: New file.
24394
24395 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24396
24397         * MODULES.html.sh: New module mpsort.
24398         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
24399
24400         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
24401         a circularity problem with HP-UX ia64 reported by Bob Proulx in
24402         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
24403         All uses changed.
24404         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
24405         All uses changed.
24406         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
24407         to _Restrict_.
24408         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
24409         the parameter matches the prototype.
24410
24411 2007-01-28  Jim Meyering  <jim@meyering.net>
24412
24413         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
24414         sys/time.h here, reverting that part of the previous patch:
24415         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
24416
24417 2007-01-28  Bruno Haible  <bruno@clisp.org>
24418
24419         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
24420         value of $(SYS_TIME_H).
24421         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
24422         remove it conditionally, too. [added by Jim Meyering]
24423         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
24424         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
24425         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
24426         GETTIMEOFDAY_REPLACEMENT to 1.
24427
24428 2007-01-28  Bruno Haible  <bruno@clisp.org>
24429
24430         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
24431         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
24432         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
24433         Set UNISTD_H instead of UNISTD_H2.
24434         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
24435
24436 2007-01-28  Bruno Haible  <bruno@clisp.org>
24437
24438         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
24439         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
24440
24441 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24442
24443         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
24444         (func_create_testdir): Ensure C locale for `grep' and `tr'
24445         character ranges.
24446         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
24447         ACLOCAL_AMFLAGS parsing state machine.
24448
24449 2007-01-27  Bruno Haible  <bruno@clisp.org>
24450
24451         * modules/unistr/base: Update.
24452
24453 2007-01-27  Bruno Haible  <bruno@clisp.org>
24454
24455         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
24456         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
24457         * modules/unistr/u32-mbtouc-unsafe: Renamed from
24458         modules/unistr/u32-mbtouc.
24459         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
24460         * lib/unistr.h: Update.
24461         * lib/linebreak.c: Update.
24462         * modules/unistr/u32-mbtouc: Renamed from
24463         modules/unistr/u32-mbtouc-safe.
24464         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
24465         * lib/unistr.h: Update.
24466         * lib/unistr/u32-to-u8.c: Update.
24467         * lib/unistr/u32-to-u16.c: Update.
24468
24469 2007-01-27  Bruno Haible  <bruno@clisp.org>
24470
24471         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
24472         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
24473         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
24474         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
24475         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
24476         * modules/unistr/u16-mbtouc-unsafe: Renamed from
24477         modules/unistr/u16-mbtouc.
24478         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
24479         * lib/unistr.h: Update.
24480         * lib/linebreak.c: Update.
24481         * modules/linebreak: Update.
24482         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
24483         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
24484         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
24485         * modules/unistr/u16-mbtouc: Renamed from
24486         modules/unistr/u16-mbtouc-safe.
24487         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
24488         * lib/unistr.h: Update.
24489         * lib/unistr/u16-to-u8.c: Update.
24490         * modules/unistr/u16-to-u8: Update.
24491         * lib/unistr/u16-to-u32.c: Update.
24492         * modules/unistr/u16-to-u32: Update.
24493
24494 2007-01-27  Bruno Haible  <bruno@clisp.org>
24495
24496         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
24497         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
24498         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
24499         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
24500         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
24501         * modules/unistr/u8-mbtouc-unsafe: Renamed from
24502         modules/unistr/u8-mbtouc.
24503         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
24504         * lib/unistr.h: Update.
24505         * lib/striconveh.c: Update.
24506         * modules/striconveh: Update.
24507         * lib/linebreak.c: Update.
24508         * modules/linebreak: Update.
24509         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
24510         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
24511         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
24512         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
24513         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
24514         * lib/unistr.h: Update.
24515         * lib/striconveh.c: Update.
24516         * modules/striconveh: Update.
24517         * lib/unistr/u8-to-u16.c: Update.
24518         * modules/unistr/u8-to-u16: Update.
24519         * lib/unistr/u8-to-u32.c: Update.
24520         * modules/unistr/u8-to-u32: Update.
24521
24522 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24523
24524         Sync from Libtool.
24525         * lib/argz.c: Do not include strings.h nor memory.h, include
24526         string.h unconditionally.  Patch by Simon Josefsson.
24527
24528 2007-01-27  Bruno Haible  <bruno@clisp.org>
24529
24530         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
24531         from gl_HEADER_STRING_H_BODY.
24532         (gl_HEADER_STRING_H_BODY): Require it.
24533         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
24534         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
24535         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
24536         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
24537         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24538         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
24539         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24540         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
24541         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
24542         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
24543         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
24544         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
24545         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
24546         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24547         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
24548
24549 2007-01-27  Bruno Haible  <bruno@clisp.org>
24550
24551         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
24552         check_PROGRAMS into noinst_PROGRAMS.
24553         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
24554         check_PROGRAMS in this case.
24555         (func_import): Set for_test to false.
24556         (func_create_testdir): Set for_test to true.
24557
24558 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
24559             Bruno Haible  <bruno@clisp.org>
24560
24561         * modules/strcasestr (Files): Remove lib/strcasestr.h.
24562         (Depends-on): Add string.
24563         (Includes): Use <string.h> instead of strcasestr.h.
24564         * modules/string (Makefile.am): Also substitute the value of
24565         REPLACE_STRCASESTR.
24566         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
24567         assume strcasestr is declared in <string.h> not <strings.h>. Also
24568         set REPLACE_STRCASESTR.
24569         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
24570         REPLACE_STRCASESTR.
24571         * lib/strcasestr.h: Remove file.
24572         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
24573         * lib/string_.h (strcasestr): New declaration.
24574
24575 2007-01-27  Bruno Haible  <bruno@clisp.org>
24576
24577         * lib/string_.h: Use 'extern'.
24578
24579 2007-01-27  Jim Meyering  <jim@meyering.net>
24580
24581         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
24582         of set-but-not-used local, "q".
24583
24584         * lib/mempcpy.c: Include <config.h> before <string.h>.
24585         This fixes a compilation error on HP-UX, due to the system's
24586         "restrict"-using mempcpy prototype.
24587
24588 2007-01-26  Bruno Haible  <bruno@clisp.org>
24589
24590         Small optimization.
24591         * lib/javacomp.c: Include c-strstr.h.
24592          (is_envjavac_gcj): Use c_strstr instead of strstr.
24593         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
24594
24595 2007-01-26  Bruno Haible  <bruno@clisp.org>
24596
24597         * MODULES.html.sh (Unicode string functions): Add the new modules.
24598
24599         * modules/uniconv/u32-strconv-to-locale: New file.
24600         * lib/uniconv/u32-strconv-to-locale.c: New file.
24601
24602         * modules/uniconv/u16-strconv-to-locale: New file.
24603         * lib/uniconv/u16-strconv-to-locale.c: New file.
24604
24605         * modules/uniconv/u8-strconv-to-locale: New file.
24606         * lib/uniconv/u8-strconv-to-locale.c: New file.
24607
24608         * modules/uniconv/u32-strconv-from-locale: New file.
24609         * lib/uniconv/u32-strconv-from-locale.c: New file.
24610
24611         * modules/uniconv/u16-strconv-from-locale: New file.
24612         * lib/uniconv/u16-strconv-from-locale.c: New file.
24613
24614         * modules/uniconv/u8-strconv-from-locale: New file.
24615         * lib/uniconv/u8-strconv-from-locale.c: New file.
24616
24617         * modules/uniconv/u32-strconv-to-enc: New file.
24618         * lib/uniconv/u32-strconv-to-enc.c: New file.
24619         * modules/uniconv/u32-strconv-to-enc-tests: New file.
24620         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
24621
24622         * modules/uniconv/u16-strconv-to-enc: New file.
24623         * lib/uniconv/u16-strconv-to-enc.c: New file.
24624         * lib/uniconv/u-strconv-to-enc.h: New file.
24625         * modules/uniconv/u16-strconv-to-enc-tests: New file.
24626         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
24627
24628         * modules/uniconv/u8-strconv-to-enc: New file.
24629         * lib/uniconv/u8-strconv-to-enc.c: New file.
24630         * modules/uniconv/u8-strconv-to-enc-tests: New file.
24631         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
24632
24633         * modules/uniconv/u32-strconv-from-enc: New file.
24634         * lib/uniconv/u32-strconv-from-enc.c: New file.
24635         * modules/uniconv/u32-strconv-from-enc-tests: New file.
24636         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
24637
24638         * modules/uniconv/u16-strconv-from-enc: New file.
24639         * lib/uniconv/u16-strconv-from-enc.c: New file.
24640         * modules/uniconv/u16-strconv-from-enc-tests: New file.
24641         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
24642
24643         * modules/uniconv/u8-strconv-from-enc: New file.
24644         * lib/uniconv/u8-strconv-from-enc.c: New file.
24645         * lib/uniconv/u-strconv-from-enc.h: New file.
24646         * modules/uniconv/u8-strconv-from-enc-tests: New file.
24647         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
24648
24649         * modules/uniconv/u32-conv-from-enc: New file.
24650         * lib/uniconv/u32-conv-from-enc.c: New file.
24651         * modules/uniconv/u32-conv-from-enc-tests: New file.
24652         * tests/uniconv/test-u32-conv-from-enc.c: New file.
24653
24654         * modules/uniconv/u16-conv-from-enc: New file.
24655         * lib/uniconv/u16-conv-from-enc.c: New file.
24656         * lib/uniconv/u-conv-from-enc.h: New file.
24657         * modules/uniconv/u16-conv-from-enc-tests: New file.
24658         * tests/uniconv/test-u16-conv-from-enc.c: New file.
24659
24660         * modules/uniconv/u8-conv-from-enc: New file.
24661         * lib/uniconv/u8-conv-from-enc.c: New file.
24662         * modules/uniconv/u8-conv-from-enc-tests: New file.
24663         * tests/uniconv/test-u8-conv-from-enc.c: New file.
24664
24665         * modules/uniconv/base: New file.
24666         * lib/uniconv.h: New file.
24667
24668 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
24669
24670         * doc/gnulib-tool.texi (Initial import): Update to match current
24671         behavior with strdup module.
24672         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
24673         * lib/memmem.h: Remove; all uses removed.  This is now done
24674         by <string.h>.
24675         * lib/mempcpy.h: Likewise.
24676         * lib/memrchr.h: Likewise.
24677         * lib/stpcpy.h: Likewise.
24678         * lib/stpncpy.h: Likewise.
24679         * lib/strcase.h: Likewise.
24680         * lib/strchrnul.h: Likewise.
24681         * lib/strdup.h: Likewise.
24682         * lib/strndup.h: Likewise.
24683         * lib/strnlen.h: Likewise.
24684         * lib/strpbrk.h: Likewise.
24685         * lib/strsep.h: Likewise.
24686         * lib/strstr.h: Likewise.
24687         * lib/strtok_r.h: Likewise.
24688         * lib/string_.h: New file.
24689         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
24690         Rely on <string.h> instead.
24691         * lib/canon-host.c: Likewise.
24692         * lib/chdir-long.c: Likewise.
24693         * lib/concatpath.c: Likewise.
24694         * lib/exclude.c: Likewise.
24695         * lib/fchdir.c: Likewise.
24696         * lib/getaddrinfo.c: Likewise.
24697         * lib/getcwd.c: Likewise.
24698         * lib/getsubopt.c: Likewise.
24699         * lib/glob.c: Likewise.
24700         * lib/hard-locale.c: Likewise.
24701         * lib/iconvme.c: Likewise.
24702         * lib/javacomp.c: Likewise.
24703         * lib/mempcpy.c: Likewise.
24704         * lib/memrchr.c: Likewise.
24705         * lib/regex_internal.h: Likewise.
24706         * lib/stpncpy.c: Likewise.
24707         * lib/strcasecmp.c: Likewise.
24708         * lib/strchrnul.c: Likewise.
24709         * lib/strdup.c: Likewise.
24710         * lib/striconv.c: Likewise.
24711         * lib/striconveh.c: Likewise.
24712         * lib/striconveha.c: Likewise.
24713         * lib/strncasecmp.c: Likewise.
24714         * lib/strndup.c: Likewise.
24715         * lib/strnlen.c: Likewise.
24716         * lib/strsep.c: Likewise.
24717         * lib/strstr.c: Likewise.
24718         * lib/strtok_r.c: Likewise.
24719         * lib/userspec.c: Likewise.
24720         * lib/w32spawn.h: Likewise.
24721         * lib/xstrndup.c: Likewise.
24722         * lib/mountlist.c (strstr): Remove decl.
24723         * m4/string_h.m4: New file.
24724         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
24725         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
24726         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
24727         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
24728         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
24729         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
24730         Set REPLACE_STRCASECMP if necessary.
24731         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
24732         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
24733         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
24734         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
24735         HAVE_DECL_STRDUP if necessary.
24736         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
24737         since gl_FUNC_STRNDUP does that now.
24738         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
24739         Check for decl here...
24740         (gl_PREREQ_STRNLEN): ... not here.
24741         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
24742         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
24743         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
24744         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
24745         necessary.
24746         * modules/string: New file.
24747         * modules/memmem (Files): Remove special-purpose include file.
24748         (Depends-on): Add string.
24749         (Include): Include <string.h>, not the removed file.
24750         * modules/mempcpy: Likewise.
24751         * modules/memrchr: Likewise.
24752         * modules/stpcpy: Likewise.
24753         * modules/stpncpy: Likewise.
24754         * modules/strcase: Likewise.
24755         * modules/strchrnul: Likewise.
24756         * modules/strdup: Likewise.
24757         * modules/strndup: Likewise.
24758         * modules/strnlen: Likewise.
24759         * modules/strpbrk: Likewise.
24760         * modules/strsep: Likewise.
24761         * modules/strstr: Likewise.
24762         * modules/strtok_r: Likewise.
24763         * tests/test-dirname.c: Don't include "strdup.h", since
24764         <string.h> now suffices.
24765         * tests/test-memmem.c: Don't include "memmem.h", since
24766         <string.h> now suffices.
24767
24768 2007-01-25  Bruno Haible  <bruno@clisp.org>
24769
24770         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
24771         *resultp is 0.
24772
24773         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
24774         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
24775         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
24776         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
24777
24778         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
24779         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
24780         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
24781         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
24782         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
24783         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
24784
24785 2007-01-24  Bruno Haible  <bruno@clisp.org>
24786
24787         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
24788         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
24789         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
24790         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
24791         gl_FUNC_FTS_CORE.
24792         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
24793         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
24794         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24795         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
24796         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
24797         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
24798         gl_FUNC_FCHOWNAT.
24799         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
24800         gl_FUNC_STRFTIME.
24801         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
24802         Reported by Ralf Wildenhues.
24803
24804 2007-01-24  Bruno Haible  <bruno@clisp.org>
24805
24806         Drop AC_REQUIRE calls that are redundant with the module dependencies.
24807         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
24808         gl_GETADDRINFO.
24809         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
24810         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
24811         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
24812
24813 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
24814
24815         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
24816         Don't use 'exit'; just return from 'main'.
24817         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
24818
24819         * lib/fnmatch_.h: Readjust white space and comments to match
24820         glibc, to avoid spurious diffs.
24821
24822 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24823
24824         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
24825         2004-12-01 change by Jakub Jelinek, since this code won't compile
24826         if !LIBC.  Problem reported by Bob Proulx.
24827
24828 2007-01-23  Bruno Haible  <bruno@clisp.org>
24829
24830         * lib/striconveh.c: Include c-strcaseeq.h.
24831         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
24832         * modules/striconveh (Depends-on): Add c-strcaseeq.
24833
24834 2007-01-23  Bruno Haible  <bruno@clisp.org>
24835
24836         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
24837
24838         * modules/c-strcaseeq: New file.
24839         * lib/c-strcaseeq.h: New file.
24840
24841         * modules/streq: New file.
24842         * lib/streq.h: New file.
24843
24844 2007-01-23  Bruno Haible  <bruno@clisp.org>
24845
24846         * modules/striconveha-tests: New file.
24847         * tests/test-striconveha.c: New file.
24848
24849         * lib/striconveha.h: Include <stdbool.h>.
24850         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
24851         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
24852         (mem_iconveha_notranslit): Renamed from mem_iconveha.
24853         (mem_iconveha): New function.
24854         (str_iconveha_notranslit): Renamed from str_iconveha.
24855         (str_iconveha): New function.
24856         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
24857         c-strcase.
24858
24859 2007-01-23  Bruno Haible  <bruno@clisp.org>
24860
24861         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
24862         encodings without forgiving before trying any encoding with handler.
24863         (str_iconveha): Try all encodings without forgiving before trying any
24864         encoding with handler.
24865
24866 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24867
24868         Import the following changes from libc.
24869
24870         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
24871
24872         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
24873
24874         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
24875
24876         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
24877         normal_bracket label.
24878
24879         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
24880
24881         [BZ #361]
24882         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
24883         to normal_bracket after fetching the next character.
24884
24885 2007-01-22  Bruno Haible  <bruno@clisp.org>
24886
24887         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
24888         argument.
24889         * lib/striconveh.c (iconv_carefully_1): New function.
24890         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
24891         argument.
24892         (str_cd_iconveh): Update.
24893         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
24894         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
24895         * tests/test-striconveh.c (MAGIC): New macro.
24896         (new_offsets): New function.
24897         (main): Test call with and without offsets.
24898
24899 2007-01-22  Bruno Haible  <bruno@clisp.org>
24900
24901         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
24902         * modules/sys_select (Makefile.am): Likewise.
24903         * modules/sys_socket (Makefile.am): Likewise.
24904         * modules/sys_time (Makefile.am): Likewise.
24905
24906 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
24907
24908         * modules/gettimeofday (License): Change from GPL to LGPL, since
24909         gettimeofday is a library function.
24910
24911 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24912
24913         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
24914
24915 2007-01-21  Bruno Haible  <bruno@clisp.org>
24916
24917         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
24918
24919 2007-01-21  Bruno Haible  <bruno@clisp.org>
24920
24921         * modules/striconveha: New file.
24922         * lib/striconveha.h: New file.
24923         * lib/striconveha.c: New file.
24924         * MODULES.html.sh (Internationalization functions): Add striconveha.
24925         * lib/striconv.c (str_iconv): Optimize the case of an empty input
24926         string.
24927         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
24928
24929 2007-01-21  Bruno Haible  <bruno@clisp.org>
24930
24931         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
24932         * lib/striconveh.c (str_iconveh): Likewise.
24933
24934 2007-01-21  Bruno Haible  <bruno@clisp.org>
24935
24936         * lib/striconveh.h (mem_iconveh): New declaration.
24937         * lib/striconveh.c (mem_iconveh): New function.
24938         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
24939
24940 2007-01-21  Bruno Haible  <bruno@clisp.org>
24941
24942         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
24943
24944         * lib/striconveh.h (mem_cd_iconveh): Change specification.
24945         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
24946         original result buffer.
24947         (str_cd_iconveh): Update.
24948         * tests/test-striconveh.c (main): Update.
24949
24950         * lib/striconv.h (mem_cd_iconv): Change specification.
24951         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
24952         result buffer.
24953         (str_cd_iconv): Update.
24954         * tests/test-striconv.c (main): Update.
24955
24956 2007-01-21  Bruno Haible  <bruno@clisp.org>
24957
24958         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
24959
24960 2007-01-20  Jim Meyering  <jim@meyering.net>
24961
24962         * lib/userspec.c (parse_with_separator): If a user or group string
24963         starts with "+", skip the corresponding name-to-ID look-up, since
24964         such a look-up must fail: user and group names may not include "+".
24965
24966 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
24967
24968         * lib/poll.c: Include sys/time.h and time.h unconditionally,
24969         since we now assume the sys_time module.
24970         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
24971         check for sys/time.h; no longer needed.
24972         * modules/poll (Depends-on): Depend on sys_time.
24973
24974 2007-01-18  Bruno Haible  <bruno@clisp.org>
24975
24976         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
24977         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
24978
24979         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
24980         gettimeofday.
24981
24982         * tests/test-gettimeofday.c: Include <time.h>.
24983         (dummy): Remove variable.
24984
24985         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
24986         gl_HEADER_SYS_TIME_H.
24987         (gl_HEADER_SYS_TIME_H): New macro.
24988
24989         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
24990         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
24991         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
24992         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
24993         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
24994         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
24995         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
24996         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
24997         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
24998         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
24999         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25000
25001         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
25002         last change; it caused a compilation error when cross-compiling to
25003         Cygwin.
25004
25005 2007-01-18  Jim Meyering  <jim@meyering.net>
25006
25007         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
25008         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
25009         than the race-prone "test -d sys || mkdir sys".
25010         (configure.ac): Use AC_PROG_MKDIR_P.
25011         * modules/sys_select: Likewise.
25012         * modules/sys_socket: Likewise.
25013         * modules/sys_time: Likewise.
25014
25015 2007-01-18  Eric Blake  <ebb9@byu.net>
25016
25017         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
25018         replace gettimeofday.
25019         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
25020         name, to avoid infinite recursion.
25021
25022 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
25023
25024         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
25025         module sys_time.
25026         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
25027         assume timespec.h defines struct timeval.
25028         * lib/settime.c: Likewise.
25029         * lib/utimens.c: Likewise.
25030         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
25031         since we now assume the gettimeofday module.
25032         * lib/tempname.c (__gen_tempname): Likewise.
25033         * lib/gettimeofday.h: Remove.
25034         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
25035         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
25036         Include <time.h>, for 'time()'.
25037         (localtime_buffer_addr): Also use this workaround if
25038         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
25039         to simplify the uses.  All uses changed.
25040         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
25041         that #undef is inside {}, and 'const' follows type name consistently.
25042         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
25043         (gettimeofday): Do not use the maximum possible value for
25044         tv->tv_usec, since that might break usages other than ls.c.
25045         Instead, we'll leave ls.c alone.  This undoes today's patch
25046         by Bruno.  Add a compile-time warning for 1s-clock resolution;
25047         we've never observed the problem but might as well keep the
25048         canary.
25049         * lib/nanosleep.c: Include timespec.h first, for interface check.
25050         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
25051         now assume the sys_time module.
25052         * lib/tempname.c: Likewise.
25053         * lib/timespec.h: Likewise.
25054         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
25055         needed.
25056         * lib/strftime.c: Likewise.
25057         * lib/timespec.h: Likewise.
25058         * lib/posixtm.c: Include posixtm.h first, for interface check.
25059         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
25060         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
25061         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
25062         * lib/sys_time_.h: New file.
25063         * lib/timespec.h (struct timespec): Use long int, not long.
25064         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
25065         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
25066         Remove obsolescent call to AC_HEADER_TIME.
25067         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25068         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25069         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
25070         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
25071         Likewise.
25072         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
25073         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
25074         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
25075         into the sys_time module.  Check for gettimeofday just once.
25076         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
25077         for gettimeofday signature to just check the signature.  Merely
25078         compile it, since linking doesn't test signature.  Improve test for
25079         whether gettimeofday.o is actually needed.
25080         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
25081         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
25082         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
25083         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25084         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
25085         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
25086         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
25087         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
25088         than worrying about sys/time.h.
25089         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
25090         Don't bother worrying about TIME_WITH_SYS_TIME.
25091         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
25092         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
25093         * m4/sys_time_h.m4: New file.
25094         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
25095         Don't include sys/time.h.  Return from main rather than exiting.
25096         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
25097         all uses changed.
25098         * modules/gethrxtime (Depends-on): Add sys_time.
25099         * modules/gettime (Depends-on): Likewise.
25100         * modules/gettimeofday (Depends-on): Likewise.
25101         * modules/nanosleep (Depends-on): Likewise.
25102         * modules/settime (Depends-on): Likewise.
25103         * modules/tempname (Depends-on): Likewise.
25104         * modules/utimens (Depends-on): Likewise.
25105         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
25106         (Include:) Change back to <sys/time.h>.
25107         (Maintainer:) Add self.
25108         * modules/sys_time: New file.
25109         * modules/tempname (Depends-on): Add gettimeofday.
25110         * tests/test-gettimeofday.c: Include <sys/time.h>
25111         rather than gettimeofday.h.
25112
25113 2007-01-17  Bruno Haible  <bruno@clisp.org>
25114
25115         * gnulib-tool (func_get_license): Revert last patch. Instead, let
25116         the license default to GPL.
25117         (func_create_testdir): Don't complain if a module is LGPL and its
25118         tests module depends on GPLed modules.
25119
25120 2007-01-17  Bruno Haible  <bruno@clisp.org>
25121
25122         * lib/gettimeofday.c (gettimeofday): Add code for the case
25123         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
25124         maximum possible value for tv->tv_usec, rather than the minimum one.
25125
25126 2005-10-08  Martin Lambers  <marlam@marlam.de>
25127 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25128 2007-01-16  Bruno Haible  <bruno@clisp.org>
25129
25130         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
25131         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
25132         gl_FUNC_GETTIMEOFDAY.
25133         (Include): Add gettimeofday.h.
25134         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
25135         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
25136         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
25137         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
25138         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
25139         * lib/gettimeofday.h: New file.
25140         * lib/gettimeofday.c: Include <sys/timeb.h>.
25141         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
25142         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
25143         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
25144         fall back on time().
25145
25146         * tests/test-gettimeofday.c: New file.
25147         * modules/gettimeofday-tests: New file.
25148
25149 2007-01-16  Eric Blake  <ebb9@byu.net>
25150
25151         * modules/fnmatch (Depends-on): Depend on wchar.
25152         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
25153         * m4/fnmatch.m4: Likewise.
25154         * modules/mbchar (Makefile.am): Assume <wchar.h>.
25155         * m4/mbchar.m4: Likewise.
25156         * modules/mbswidth (Depends-on): Depend on wchar.
25157         * lib/mbswidth.c: Assume <wchar.h>.
25158         * m4/mbswidth.m4: Likewise.
25159         * modules/quotearg (Depends-on): Depend on wchar.
25160         * lib/quotearg.c: Assume <wchar.h>.
25161         * m4/quotearg.m4: Likewise.
25162         * modules/regex (Depends-on): Depend on wchar.
25163         * lib/regex_internal.h: Assume <wchar.h>.
25164         * m4/regex.m4: Likewise.
25165         * modules/stdint (Depends-on): Depend on wchar.
25166         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
25167         * m4/stdint.m4: Likewise.
25168         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
25169         * modules/strftime (Depends-on): Depend on wchar.
25170         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
25171         * modules/strtol (Depends-on): Depend on wchar.
25172         * lib/strtol.c: Assume <wchar.h>.
25173         * modules/wcwidth (Depends-on): Depend on wchar.
25174         * lib/wcwidth.h: Assume <wchar.h>.
25175         * m4/wcwidth.m4: Likewise.
25176
25177 2007-01-16  Bruno Haible  <bruno@clisp.org>
25178
25179         * modules/csharpexec-script: New, created from...
25180         * modules/csharpexec: ... this.
25181
25182 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
25183
25184         * modules/javaexec-script: New, created from...
25185         * modules/javaexec: ... this.
25186
25187 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25188
25189         * modules/poll (Dependencies): Add sys_select.
25190
25191 2007-01-15  Jim Meyering  <jim@meyering.net>
25192
25193         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
25194         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
25195         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
25196         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
25197
25198 2007-01-15  Bruno Haible  <bruno@clisp.org>
25199
25200         * modules/striconveh: New file.
25201         * lib/striconveh.h: New file.
25202         * lib/striconveh.c: New file.
25203         * MODULES.html.sh (Internationalization functions): Add striconveh.
25204
25205         * modules/striconveh-tests: New file.
25206         * tests/test-striconveh.c: New file.
25207
25208 2007-01-15  Bruno Haible  <bruno@clisp.org>
25209
25210         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
25211         not from GNU libiconv or GNU libc.
25212
25213 2007-01-15  Bruno Haible  <bruno@clisp.org>
25214
25215         * doc/gnulib-intro.texi (Copyright): Explain the different license
25216         terms for module descriptions, autoconf macros, tests, documentation.
25217
25218 2007-01-14  Bruno Haible  <bruno@clisp.org>
25219
25220         * modules/striconv-tests: New file.
25221         * tests/test-striconv.c: New file.
25222
25223 2007-01-14  Bruno Haible  <bruno@clisp.org>
25224
25225         * modules/iconv-tests: New file.
25226         * tests/test-iconv.c: New file.
25227
25228 2007-01-14  Bruno Haible  <bruno@clisp.org>
25229
25230         * gnulib-tool (func_get_license): For test modules, use the license of
25231         the main module.
25232
25233 2007-01-14  Bruno Haible  <bruno@clisp.org>
25234
25235         * modules/iconv (Include): Clarify that <iconv.h> can only be included
25236         if iconv is found to exist.
25237
25238 2007-01-14  Bruno Haible  <bruno@clisp.org>
25239
25240         * modules/c-ctype-tests: New file.
25241         * tests/test-c-ctype.c: New file.
25242
25243 2007-01-14  Bruno Haible  <bruno@clisp.org>
25244
25245         * modules/binary-io-tests: New file.
25246         * tests/test-binary-io.sh: New file.
25247         * tests/test-binary-io.c: New file.
25248
25249 2007-01-14  Bruno Haible  <bruno@clisp.org>
25250
25251         * modules/array-oset-tests: New file.
25252         * tests/test-array_oset.c: New file.
25253
25254 2007-01-14  Bruno Haible  <bruno@clisp.org>
25255
25256         * modules/array-list-tests: New file.
25257         * tests/test-array_list.c: New file.
25258
25259 2007-01-14  Bruno Haible  <bruno@clisp.org>
25260
25261         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
25262         and make.
25263         Reported by Simon Josefsson in
25264         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
25265
25266 2007-01-14  Bruno Haible  <bruno@clisp.org>
25267
25268         * modules/allocsa-tests: New file.
25269         * tests/test-allocsa.c: New file.
25270
25271 2007-01-14  Bruno Haible  <bruno@clisp.org>
25272
25273         * modules/fchdir (Depends-on): Add absolute-header.
25274         * modules/unistd (Depends-on): Likewise.
25275
25276 2006-12-30  Bruno Haible  <bruno@clisp.org>
25277
25278         * modules/fchdir: New file.
25279         * modules/unistd (Files): Add lib/unistd_.h.
25280         (Makefile.am): Generate unistd.h from unistd_.h.
25281         * lib/fchdir.c: New file.
25282         * lib/dirent_.h: New file.
25283         * lib/unistd_.h: New file.
25284         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
25285         * m4/fchdir.m4: New file.
25286         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
25287         (gl_HEADER_UNISTD): Invoke it.
25288         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
25289         function.
25290         * lib/backupfile.c (opendir, closedir): Undefine.
25291         * lib/chown.c (open, close): Undefine.
25292         * lib/clean-temp.c (open, close): Undefine.
25293         * lib/copy-file.c (open, close): Undefine.
25294         * lib/execute.c (open, close): Undefine.
25295         * lib/fsusage.c (open, close): Undefine.
25296         * lib/gc-gnulib.c (open, close): Undefine.
25297         * lib/getcwd.c (opendir, closedir): Undefine.
25298         * lib/glob.c (opendir, closedir): Undefine.
25299         * lib/javacomp.c (open, close): Undefine.
25300         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
25301         * lib/openat-proc.c (open, close): Undefine.
25302         * lib/pagealign_alloc.c (open, close): Undefine.
25303         * lib/pipe.c (open, close): Undefine.
25304         * lib/progreloc.c (open, close): Undefine.
25305         * lib/savedir.c (opendir, closedir): Undefine.
25306         * lib/utime.c (open, close): Undefine.
25307         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
25308
25309 2007-01-10  Bruno Haible  <bruno@clisp.org>
25310
25311         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
25312
25313 2007-01-12  Eric Blake  <ebb9@byu.net>
25314
25315         Provide a robust <wchar.h>.  Further simplifications are now
25316         possible in other modules, but not included here.
25317         * modules/wchar: New module.
25318         * m4/wchar.m4: New file.
25319         * lib/wchar_.h: Likewise.
25320         * modules/mbchar (Depends-on): Depend on wchar, as the first use
25321         of the new module.
25322         * MODULES.html.sh (Extended multibyte and wide character utilities):
25323         New section.
25324
25325 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
25326
25327         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
25328         to a reasonable default for memory allocation.
25329         (xreadlink): Don't allocate a huge buffer, to work around a buggy
25330         file system that reports garbage st_size values for symlinks.
25331         Problem reported by Liyang Hu.
25332
25333 2007-01-11  Simon Josefsson  <simon@josefsson.org>
25334
25335         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
25336         Emacs .#* auto-save files).
25337
25338 2007-01-11  Bruno Haible  <bruno@clisp.org>
25339
25340         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
25341         directory.
25342
25343 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25344
25345         Use @...@ consistently in lib/wctype_.h.
25346         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
25347         on it being set to 1 or 0.
25348         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
25349         go back to AC_SUBSTing it.
25350         * modules/wctype (Makefile.am): Undo previous change.
25351
25352 2007-01-10  Eric Blake  <ebb9@byu.net>
25353
25354         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
25355         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
25356         * modules/wctype (Makefile.am): Likewise.
25357         Reported by Chris McGuire.
25358
25359 2007-01-10  Jim Meyering  <jim@meyering.net>
25360
25361         fts.c: a small readability/maintainability improvement
25362         * lib/fts.c (fts_read): Make this code slightly more readable and
25363         maintainable by hoisting the "sp->fts_cur = p" assignments to
25364         immediately follow the statements that set P.  Derived from
25365         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
25366
25367 2007-01-10  Eric Blake  <ebb9@byu.net>
25368
25369         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
25370         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
25371         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25372         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25373         Reported by Chris McGuire.
25374
25375 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25376
25377         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
25378         in sed script.
25379
25380 2007-01-09  Bruno Haible  <bruno@clisp.org>
25381
25382         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
25383         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
25384         variables.
25385         (func_module): Use them.
25386
25387 2007-01-09  Bruno Haible  <bruno@clisp.org>
25388
25389         * modules/unistr/base: New file.
25390         * lib/unistr.h: New file.
25391
25392         * modules/unistr/u8-to-u16: New file.
25393         * lib/unistr/u8-to-u16.c: New file.
25394
25395         * modules/unistr/u8-to-u32: New file.
25396         * lib/unistr/u8-to-u32.c: New file.
25397
25398         * modules/unistr/u16-to-u8: New file.
25399         * lib/unistr/u16-to-u8.c: New file.
25400
25401         * modules/unistr/u16-to-u32: New file.
25402         * lib/unistr/u16-to-u32.c: New file.
25403
25404         * modules/unistr/u32-to-u8: New file.
25405         * lib/unistr/u32-to-u8.c: New file.
25406
25407         * modules/unistr/u32-to-u16: New file.
25408         * lib/unistr/u32-to-u16.c: New file.
25409
25410         * modules/unistr/u8-check: New file.
25411         * modules/unistr/u16-check: New file.
25412         * modules/unistr/u32-check: New file.
25413         * lib/unistr/u8-check.c: New file.
25414         * lib/unistr/u16-check.c: New file.
25415         * lib/unistr/u32-check.c: New file.
25416
25417         * modules/unistr/u8-chr: New file.
25418         * modules/unistr/u16-chr: New file.
25419         * modules/unistr/u32-chr: New file.
25420         * lib/unistr/u8-chr.c: New file.
25421         * lib/unistr/u16-chr.c: New file.
25422         * lib/unistr/u32-chr.c: New file.
25423
25424         * modules/unistr/u8-cmp: New file.
25425         * modules/unistr/u16-cmp: New file.
25426         * modules/unistr/u32-cmp: New file.
25427         * lib/unistr/u8-cmp.c: New file.
25428         * lib/unistr/u16-cmp.c: New file.
25429         * lib/unistr/u32-cmp.c: New file.
25430
25431         * modules/unistr/u8-cpy: New file.
25432         * modules/unistr/u16-cpy: New file.
25433         * modules/unistr/u32-cpy: New file.
25434         * lib/unistr/u8-cpy.c: New file.
25435         * lib/unistr/u16-cpy.c: New file.
25436         * lib/unistr/u32-cpy.c: New file.
25437         * lib/unistr/u-cpy.h: New file.
25438
25439         * modules/unistr/u8-cpy-alloc: New file.
25440         * modules/unistr/u16-cpy-alloc: New file.
25441         * modules/unistr/u32-cpy-alloc: New file.
25442         * lib/unistr/u8-cpy-alloc.c: New file.
25443         * lib/unistr/u16-cpy-alloc.c: New file.
25444         * lib/unistr/u32-cpy-alloc.c: New file.
25445         * lib/unistr/u-cpy-alloc.h: New file.
25446
25447         * modules/unistr/u8-endswith: New file.
25448         * modules/unistr/u16-endswith: New file.
25449         * modules/unistr/u32-endswith: New file.
25450         * lib/unistr/u8-endswith.c: New file.
25451         * lib/unistr/u16-endswith.c: New file.
25452         * lib/unistr/u32-endswith.c: New file.
25453         * lib/unistr/u-endswith.h: New file.
25454
25455         * modules/unistr/u8-mblen: New file.
25456         * modules/unistr/u16-mblen: New file.
25457         * modules/unistr/u32-mblen: New file.
25458         * lib/unistr/u8-mblen.c: New file.
25459         * lib/unistr/u16-mblen.c: New file.
25460         * lib/unistr/u32-mblen.c: New file.
25461
25462         * modules/unistr/u8-mbtouc: New file.
25463         * modules/unistr/u16-mbtouc: New file.
25464         * modules/unistr/u32-mbtouc: New file.
25465         * lib/unistr/u8-mbtouc.c: New file.
25466         * lib/unistr/u16-mbtouc.c: New file.
25467         * lib/unistr/u32-mbtouc.c: New file.
25468
25469         * modules/unistr/u8-mbtouc-safe: New file.
25470         * modules/unistr/u16-mbtouc-safe: New file.
25471         * modules/unistr/u32-mbtouc-safe: New file.
25472         * lib/unistr/u8-mbtouc-safe.c: New file.
25473         * lib/unistr/u16-mbtouc-safe.c: New file.
25474         * lib/unistr/u32-mbtouc-safe.c: New file.
25475
25476         * modules/unistr/u8-move: New file.
25477         * modules/unistr/u16-move: New file.
25478         * modules/unistr/u32-move: New file.
25479         * lib/unistr/u8-move.c: New file.
25480         * lib/unistr/u16-move.c: New file.
25481         * lib/unistr/u32-move.c: New file.
25482         * lib/unistr/u-move.h: New file.
25483
25484         * modules/unistr/u8-next: New file.
25485         * modules/unistr/u16-next: New file.
25486         * modules/unistr/u32-next: New file.
25487         * lib/unistr/u8-next.c: New file.
25488         * lib/unistr/u16-next.c: New file.
25489         * lib/unistr/u32-next.c: New file.
25490
25491         * modules/unistr/u8-prev: New file.
25492         * modules/unistr/u16-prev: New file.
25493         * modules/unistr/u32-prev: New file.
25494         * lib/unistr/u8-prev.c: New file.
25495         * lib/unistr/u16-prev.c: New file.
25496         * lib/unistr/u32-prev.c: New file.
25497
25498         * modules/unistr/u8-set: New file.
25499         * modules/unistr/u16-set: New file.
25500         * modules/unistr/u32-set: New file.
25501         * lib/unistr/u8-set.c: New file.
25502         * lib/unistr/u16-set.c: New file.
25503         * lib/unistr/u32-set.c: New file.
25504         * lib/unistr/u-set.h: New file.
25505
25506         * modules/unistr/u8-startswith: New file.
25507         * modules/unistr/u16-startswith: New file.
25508         * modules/unistr/u32-startswith: New file.
25509         * lib/unistr/u8-startswith.c: New file.
25510         * lib/unistr/u16-startswith.c: New file.
25511         * lib/unistr/u32-startswith.c: New file.
25512         * lib/unistr/u-startswith.h: New file.
25513
25514         * modules/unistr/u8-stpcpy: New file.
25515         * modules/unistr/u16-stpcpy: New file.
25516         * modules/unistr/u32-stpcpy: New file.
25517         * lib/unistr/u8-stpcpy.c: New file.
25518         * lib/unistr/u16-stpcpy.c: New file.
25519         * lib/unistr/u32-stpcpy.c: New file.
25520         * lib/unistr/u-stpcpy.h: New file.
25521
25522         * modules/unistr/u8-stpncpy: New file.
25523         * modules/unistr/u16-stpncpy: New file.
25524         * modules/unistr/u32-stpncpy: New file.
25525         * lib/unistr/u8-stpncpy.c: New file.
25526         * lib/unistr/u16-stpncpy.c: New file.
25527         * lib/unistr/u32-stpncpy.c: New file.
25528         * lib/unistr/u-stpncpy.h: New file.
25529
25530         * modules/unistr/u8-strcat: New file.
25531         * modules/unistr/u16-strcat: New file.
25532         * modules/unistr/u32-strcat: New file.
25533         * lib/unistr/u8-strcat.c: New file.
25534         * lib/unistr/u16-strcat.c: New file.
25535         * lib/unistr/u32-strcat.c: New file.
25536         * lib/unistr/u-strcat.h: New file.
25537
25538         * modules/unistr/u8-strchr: New file.
25539         * modules/unistr/u16-strchr: New file.
25540         * modules/unistr/u32-strchr: New file.
25541         * lib/unistr/u8-strchr.c: New file.
25542         * lib/unistr/u16-strchr.c: New file.
25543         * lib/unistr/u32-strchr.c: New file.
25544
25545         * modules/unistr/u8-strcmp: New file.
25546         * modules/unistr/u16-strcmp: New file.
25547         * modules/unistr/u32-strcmp: New file.
25548         * lib/unistr/u8-strcmp.c: New file.
25549         * lib/unistr/u16-strcmp.c: New file.
25550         * lib/unistr/u32-strcmp.c: New file.
25551
25552         * modules/unistr/u8-strcpy: New file.
25553         * modules/unistr/u16-strcpy: New file.
25554         * modules/unistr/u32-strcpy: New file.
25555         * lib/unistr/u8-strcpy.c: New file.
25556         * lib/unistr/u16-strcpy.c: New file.
25557         * lib/unistr/u32-strcpy.c: New file.
25558         * lib/unistr/u-strcpy.h: New file.
25559
25560         * modules/unistr/u8-strcspn: New file.
25561         * modules/unistr/u16-strcspn: New file.
25562         * modules/unistr/u32-strcspn: New file.
25563         * lib/unistr/u8-strcspn.c: New file.
25564         * lib/unistr/u16-strcspn.c: New file.
25565         * lib/unistr/u32-strcspn.c: New file.
25566         * lib/unistr/u-strcspn.h: New file.
25567
25568         * modules/unistr/u8-strdup: New file.
25569         * modules/unistr/u16-strdup: New file.
25570         * modules/unistr/u32-strdup: New file.
25571         * lib/unistr/u8-strdup.c: New file.
25572         * lib/unistr/u16-strdup.c: New file.
25573         * lib/unistr/u32-strdup.c: New file.
25574         * lib/unistr/u-strdup.h: New file.
25575
25576         * modules/unistr/u8-strlen: New file.
25577         * modules/unistr/u16-strlen: New file.
25578         * modules/unistr/u32-strlen: New file.
25579         * lib/unistr/u8-strlen.c: New file.
25580         * lib/unistr/u16-strlen.c: New file.
25581         * lib/unistr/u32-strlen.c: New file.
25582         * lib/unistr/u-strlen.h: New file.
25583
25584         * modules/unistr/u8-strmblen: New file.
25585         * modules/unistr/u16-strmblen: New file.
25586         * modules/unistr/u32-strmblen: New file.
25587         * lib/unistr/u8-strmblen.c: New file.
25588         * lib/unistr/u16-strmblen.c: New file.
25589         * lib/unistr/u32-strmblen.c: New file.
25590
25591         * modules/unistr/u8-strmbtouc: New file.
25592         * modules/unistr/u16-strmbtouc: New file.
25593         * modules/unistr/u32-strmbtouc: New file.
25594         * lib/unistr/u8-strmbtouc.c: New file.
25595         * lib/unistr/u16-strmbtouc.c: New file.
25596         * lib/unistr/u32-strmbtouc.c: New file.
25597
25598         * modules/unistr/u8-strncat: New file.
25599         * modules/unistr/u16-strncat: New file.
25600         * modules/unistr/u32-strncat: New file.
25601         * lib/unistr/u8-strncat.c: New file.
25602         * lib/unistr/u16-strncat.c: New file.
25603         * lib/unistr/u32-strncat.c: New file.
25604         * lib/unistr/u-strncat.h: New file.
25605
25606         * modules/unistr/u8-strncmp: New file.
25607         * modules/unistr/u16-strncmp: New file.
25608         * modules/unistr/u32-strncmp: New file.
25609         * lib/unistr/u8-strncmp.c: New file.
25610         * lib/unistr/u16-strncmp.c: New file.
25611         * lib/unistr/u32-strncmp.c: New file.
25612
25613         * modules/unistr/u8-strncpy: New file.
25614         * modules/unistr/u16-strncpy: New file.
25615         * modules/unistr/u32-strncpy: New file.
25616         * lib/unistr/u8-strncpy.c: New file.
25617         * lib/unistr/u16-strncpy.c: New file.
25618         * lib/unistr/u32-strncpy.c: New file.
25619         * lib/unistr/u-strncpy.h: New file.
25620
25621         * modules/unistr/u8-strnlen: New file.
25622         * modules/unistr/u16-strnlen: New file.
25623         * modules/unistr/u32-strnlen: New file.
25624         * lib/unistr/u8-strnlen.c: New file.
25625         * lib/unistr/u16-strnlen.c: New file.
25626         * lib/unistr/u32-strnlen.c: New file.
25627         * lib/unistr/u-strnlen.h: New file.
25628
25629         * modules/unistr/u8-strpbrk: New file.
25630         * modules/unistr/u16-strpbrk: New file.
25631         * modules/unistr/u32-strpbrk: New file.
25632         * lib/unistr/u8-strpbrk.c: New file.
25633         * lib/unistr/u16-strpbrk.c: New file.
25634         * lib/unistr/u32-strpbrk.c: New file.
25635         * lib/unistr/u-strpbrk.h: New file.
25636
25637         * modules/unistr/u8-strrchr: New file.
25638         * modules/unistr/u16-strrchr: New file.
25639         * modules/unistr/u32-strrchr: New file.
25640         * lib/unistr/u8-strrchr.c: New file.
25641         * lib/unistr/u16-strrchr.c: New file.
25642         * lib/unistr/u32-strrchr.c: New file.
25643
25644         * modules/unistr/u8-strspn: New file.
25645         * modules/unistr/u16-strspn: New file.
25646         * modules/unistr/u32-strspn: New file.
25647         * lib/unistr/u8-strspn.c: New file.
25648         * lib/unistr/u16-strspn.c: New file.
25649         * lib/unistr/u32-strspn.c: New file.
25650         * lib/unistr/u-strspn.h: New file.
25651
25652         * modules/unistr/u8-strstr: New file.
25653         * modules/unistr/u16-strstr: New file.
25654         * modules/unistr/u32-strstr: New file.
25655         * lib/unistr/u8-strstr.c: New file.
25656         * lib/unistr/u16-strstr.c: New file.
25657         * lib/unistr/u32-strstr.c: New file.
25658         * lib/unistr/u-strstr.h: New file.
25659
25660         * modules/unistr/u8-strtok: New file.
25661         * modules/unistr/u16-strtok: New file.
25662         * modules/unistr/u32-strtok: New file.
25663         * lib/unistr/u8-strtok.c: New file.
25664         * lib/unistr/u16-strtok.c: New file.
25665         * lib/unistr/u32-strtok.c: New file.
25666         * lib/unistr/u-strtok.h: New file.
25667
25668         * modules/unistr/u8-uctomb: New file.
25669         * modules/unistr/u16-uctomb: New file.
25670         * modules/unistr/u32-uctomb: New file.
25671         * lib/unistr/u8-uctomb.c: New file.
25672         * lib/unistr/u16-uctomb.c: New file.
25673         * lib/unistr/u32-uctomb.c: New file.
25674
25675         * MODULES.html.sh (Unicode string functions): Add the new modules.
25676
25677 2007-01-08  Bruno Haible  <bruno@clisp.org>
25678
25679         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
25680         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
25681         subdirectories.
25682
25683 2007-01-08  Karl Berry  <karl@gnu.org>
25684
25685         * doc/error.texi: mention that main() fns must set program_name
25686         when progname is used.
25687
25688 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
25689
25690         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
25691         WCTYPE_H is empty, for the benefit of builds from non-distclean
25692         directories.  Problem reported by Eric Blake in
25693         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
25694
25695 2007-01-08  Bruno Haible  <bruno@clisp.org>
25696
25697         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
25698         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
25699         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
25700         PROVIDE_CANONICALIZE_FILENAME_MODE.
25701         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
25702
25703 2007-01-08  Bruno Haible  <bruno@clisp.org>
25704
25705         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
25706         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
25707         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
25708         * lib/fts.c: Likewise.
25709         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
25710
25711 2006-12-25  Bruno Haible  <bruno@clisp.org>
25712
25713         * modules/utf8-ucs4-safe: New file.
25714         * lib/utf8-ucs4-safe.h: New file.
25715         * lib/unistr/utf8-ucs4-safe.c: New file.
25716
25717         * modules/utf16-ucs4-safe: New file.
25718         * lib/utf16-ucs4-safe.h: New file.
25719         * lib/unistr/utf16-ucs4-safe.c: New file.
25720
25721         * MODULES.html.sh (Unicode string functions): Add the new modules.
25722
25723 2007-01-08  Bruno Haible  <bruno@clisp.org>
25724
25725         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
25726         (Depends-on): Add unitypes.
25727         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
25728         (u8_mbtouc_aux): Move out to separate file.
25729         (u8_mbtouc): Use ucs4_t, uint8_t types.
25730         * lib/unistr/utf8-ucs4.c: New file.
25731
25732         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
25733         (Depends-on): Add unitypes.
25734         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
25735         (u16_mbtouc_aux): Move out to separate file.
25736         (u16_mbtouc): Use ucs4_t, uint16_t types.
25737         * lib/unistr/utf16-ucs4.c: New file.
25738
25739         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
25740         (Depends-on): Add unitypes.
25741         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
25742         (u8_uctomb_aux): Move out to separate file.
25743         (u8_uctomb): Use ucs4_t, uint8_t types.
25744         * lib/unistr/ucs4-utf8.c: New file.
25745
25746         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
25747         (Depends-on): Add unitypes.
25748         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
25749         (u16_uctomb_aux): Move out to separate file.
25750         (u16_uctomb): Use ucs4_t, uint16_t types.
25751         * lib/unistr/ucs4-utf16.c: New file.
25752
25753 2006-12-25  Bruno Haible  <bruno@clisp.org>
25754
25755         * modules/unitypes: New file.
25756         * lib/unitypes.h: New file.
25757         * MODULES.html.sh (func_all_modules): New section "Unicode string
25758         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
25759         this section. Add unitypes.
25760
25761 2007-01-08  Bruno Haible  <bruno@clisp.org>
25762
25763         Avoid variable names that conflict with those from libtool.
25764         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
25765         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
25766         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
25767         library_names_spec to acl_library_names_spec, hardcode_* to
25768         acl_hardcode_*.
25769         Reported by Ralf Wildenhues.
25770
25771 2007-01-08  Bruno Haible  <bruno@clisp.org>
25772
25773         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
25774         definition.
25775         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
25776         definition.
25777         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
25778         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
25779         definition.
25780         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
25781         definition.
25782         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
25783         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
25784         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
25785         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
25786         definition.
25787         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
25788         definition.
25789         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
25790         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
25791         GC_USE_<algorithm>.
25792         * lib/gc-libgcrypt.c: Likewise.
25793         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
25794         * modules/gc-arctwo (configure.ac): Likewise.
25795         * modules/gc-des (configure.ac): Likewise.
25796         * modules/gc-hmac-md5 (configure.ac): Likewise.
25797         * modules/gc-hmac-sha1 (configure.ac): Likewise.
25798         * modules/gc-md2 (configure.ac): Likewise.
25799         * modules/gc-md4 (configure.ac): Likewise.
25800         * modules/gc-md5 (configure.ac): Likewise.
25801         * modules/gc-random (configure.ac): Likewise.
25802         * modules/gc-rijndael (configure.ac): Likewise.
25803         * modules/gc-sha1 (configure.ac): Likewise.
25804
25805 2007-01-08  Bruno Haible  <bruno@clisp.org>
25806
25807         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
25808         macro definition.
25809         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
25810         definition.
25811         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
25812         definition.
25813         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
25814         * modules/fcntl-safer (configure.ac): Likewise.
25815         * modules/fopen-safer (configure.ac): Likewise.
25816         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
25817         GNULIB_FWRITEERROR macro definition.
25818
25819 2007-01-08  Bruno Haible  <bruno@clisp.org>
25820
25821         * m4/gnulib-common.m4: New file.
25822         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
25823         (func_get_filelist): Add m4/gnulib-common.m4.
25824
25825 2007-01-08  Bruno Haible  <bruno@clisp.org>
25826
25827         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
25828         command.
25829
25830 2007-01-08  Jim Meyering  <jim@meyering.net>
25831
25832         Use a more robust test for a "can't happen" condition.
25833         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
25834         narrowed the st_size value.  Presuming the "can't happen" condition
25835         is true, that narrowing could conceivably convert an invalid st_size
25836         value into a valid one.  Instead, use a change based on Matthew
25837         Woehlke's original patch.
25838
25839         Slight readability improvement: use an assert-like macro
25840         in place of literal "abort ()" uses.
25841         * lib/fts.c (fts_assert): Define.
25842         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
25843         Use this macro instead of a bare 'abort'.
25844
25845 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
25846
25847         Don't worry about using IRIX 5.3's wctype.h broken definitions;
25848         simply work around them.
25849         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
25850         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
25851         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
25852         declaring.
25853         Don't bother to define as macros, since the standard doesn't require it.
25854         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
25855         longer worry about IRIX 5.3.
25856         (HAVE_WCTYPE_CTMP_BUG): Remove.
25857
25858 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
25859
25860         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
25861         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
25862         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
25863         Problems reported by Georg Schwarz for IRIX 5.3.
25864
25865         * gnulib-tool (autoconf_minversion): Take the maximum version number
25866         found, not the minimum.  Problem reported by James Youngman.
25867
25868 2007-01-03  Karl Berry  <karl@gnu.org>
25869
25870         * doc/error.texi: new file, explaining interaction with progname.
25871         * doc/gnulib.texi: include it.  Update copyright.
25872
25873 2007-01-03  Simon Josefsson  <simon@josefsson.org>
25874
25875         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
25876         AC_CANONICAL_HOST, to improve autobuild outputs.
25877
25878 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
25879             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
25880
25881         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
25882         sockets, server sockets, and other file descriptors.  Count errors
25883         to compute the return value.  Reorder the code a bit to be easier
25884         to follow.  Don't set event bits that were not requested (except
25885         POLLERR and POLLHUP).
25886
25887 2007-01-01  Bruno Haible  <bruno@clisp.org>
25888
25889         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
25890
25891 2007-01-03  Jim Meyering  <jim@meyering.net>
25892
25893         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
25894
25895 2007-01-02  Bruno Haible  <bruno@clisp.org>
25896
25897         * modules/settime (Include): Require timespec.h.
25898         * modules/nanosleep (Include): Likewise.
25899
25900 2007-01-01  Bruno Haible  <bruno@clisp.org>
25901
25902         * gnulib-tool (func_emit_copyright_notice): Bump year.
25903         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
25904
25905 2007-01-01  Bruno Haible  <bruno@clisp.org>
25906
25907         Improve support for OpenBSD.
25908         * build-aux/config.rpath (libname_spec): Export.
25909         (library_names_spec): New variable. Export.
25910         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
25911         library_names_spec from the config.rpath output. Locate shared library
25912         through the name pattern in library_names_spec.
25913
25914 2007-01-01  Eric Blake  <ebb9@byu.net>
25915
25916         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
25917
25918 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
25919
25920         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
25921         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
25922         assume the C locale, and avoid an "eval" that could cause trouble.
25923         Problem with SORT reported by Bob Proulx.
25924
25925         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
25926         Define.  Trivial patch from Henning Nielsen Lund, originally
25927         sent to bug-grep@gnu.org today.
25928
25929 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25930
25931         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
25932         struct stat.  Problem reported by Henning Nielsen Lund.
25933         * lib/acl.c: Include acl.h first, to check interface.  Don't
25934         bother to include sys/types.h and sys/stat.h again.
25935
25936 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25937
25938         Import the following change from libc; problem reported by
25939         Sven Verdoolaege.
25940
25941         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
25942
25943         [BZ #1373]
25944         * lib/argp.h: Remove __NTH for __argp_usage inline function.
25945
25946 2006-12-28  Jim Meyering  <jim@meyering.net>
25947
25948         * build-aux/announce-gen: Do not assume that the package
25949         builds any of tar.gz, tar.bz2, and .xdelta files.
25950         Suggestion from Simon Josefsson.
25951
25952 2006-12-28  Simon Josefsson  <simon@josefsson.org>
25953
25954         * modules/announce-gen: New file.
25955
25956 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25957
25958         * lib/mbchar.h: Just include <wctype.h>; the wctype module
25959         handles its gotchas now.
25960         * lib/mbswidth.c: Likewise.
25961         * lib/wcwidth.h: Likewise.
25962         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
25963         and iswcntrl; the wctype module does this stuff now.
25964         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25965         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25966         * modules/mbchar (Depends-on): Add wctype.
25967         * modules/mbswidth (Depends-on): Likewise.
25968         * modules/wcwidth (Depends-on): Likewise.
25969
25970 2006-12-27  Eric Blake  <ebb9@byu.net>
25971
25972         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
25973         module uses more than what <wctype.h> is required to provide.
25974
25975 2006-12-26  Eric Blake  <ebb9@byu.net>
25976
25977         * gnulib-tool (sed_extract_prog): Avoid space-tab.
25978
25979 2006-12-26  Eric Blake  <ebb9@byu.net>
25980
25981         * modules/absolute-header: New module.
25982         * modules/fcntl (Depends-on): Depend on it.
25983         * modules/inttypes (Depends-on): Likewise.
25984         * modules/stdint (Depends-on): Likewise.
25985         * modules/sys_stat (Depends-on): Likewise.
25986         * modules/wctype (Depends-on): Likewise.
25987         * MODULES.html.sh (Support for building libraries and
25988         executables): Document it.
25989
25990 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25991
25992         * gnulib-tool (SED): Remove, undoing previous change.
25993         The problem was that it broke coreutils on Solaris, because
25994         "sed --posix" leaked into a makefile.
25995         (sed): New alias, if 'alias' and GNU sed.
25996
25997 2006-12-24  Jim Meyering  <jim@meyering.net>
25998
25999         Work around an fchownat bug in glibc-2.4:
26000         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
26001         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
26002         in spite of the -P option.
26003         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
26004         New macros.
26005         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
26006         * modules/openat (Files): Add lib/fchownat.c.
26007         * lib/openat.c (fchownat): Don't define here.  Move to...
26008         * lib/fchownat.c: ...this new file.
26009
26010 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26011
26012         Fix bug reported by Bruno Haible in
26013         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
26014         where quotearg.c didn't compile on Mac OS X 10.2 because it
26015         lacks <wchar.h> and wint_t.
26016         * lib/wctype_.h (__wctype_wint_t): New type.
26017         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
26018         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
26019         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
26020         Arg is now of type __wctype_wint_t, not wint_t.
26021         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
26022         substitute HAVE_WINT_T.
26023         * modules/wctype (Files): Add m4/wint_t.m4.
26024         (wctype.h): Substitute HAVE_WINT_T.
26025
26026 2006-12-23  Bruno Haible  <bruno@clisp.org>
26027
26028         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
26029
26030 2006-12-23  Bruno Haible  <bruno@clisp.org>
26031
26032         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
26033         S_ISLNK.
26034         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
26035         mingw.
26036
26037 2006-12-22  Bruno Haible  <bruno@clisp.org>
26038
26039         * lib/copy-file.c: Include acl.h.
26040         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
26041         Close the file descriptors only after being done with copy_acl.
26042         * modules/copy-file (Depends-on): Add acl.
26043
26044 2006-12-22  Bruno Haible  <bruno@clisp.org>
26045
26046         * gnulib-tool (SED): New variable.
26047         Use $SED instead of sed everywhere.
26048
26049 2006-12-22  Bruno Haible  <bruno@clisp.org>
26050
26051         * modules/no-c++: New file.
26052         * m4/no-c++.m4: New file.
26053         * MODULES.html.sh (Support for building libraries and executables):
26054         Add no-c++.
26055
26056 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26057
26058         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
26059         Include <limits.h>, and use its INT_MAX to rewrite the
26060         j loop so that it does not overflow 'int'.  Problem reported by
26061         Ralf Wildenhues in
26062         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
26063         Play it safe by shifting left by 1 rather than multiplying by 2,
26064         as GCC is less likely to optimize this away when the value
26065         is signed (when it assumes overflow leads to undefined behavior).
26066         Also, don't assume time_t uses two's complement.
26067
26068 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
26069
26070         * MODULES.html.sh: New module wctype.
26071         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
26072         * lib/fnmatch.c: Don't bother to include <wchar.h> before
26073         <wctype.h>, since the new wctype module should fix this.
26074         * lib/quotearg.c: Include <wctype.h> unconditionally, since
26075         the wctype module should arrange for it.
26076         * lib/regex_internal.h: Likewise.
26077         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
26078         since the wctype module should handle this now.
26079         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
26080         * modules/fnmatch (Depends-on): Add wctype.
26081         * modules/quotearg (Depends-on): Likewise.
26082         * modules/regex (Depends-on): Likewise.
26083
26084 2006-12-19  Bruno Haible  <bruno@clisp.org>
26085
26086         * lib/strdup.h [C++]: Wrap definitions in extern "C".
26087         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
26088
26089 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26090
26091         * modules/savewd (Depends-on): Fix dependency on fcntl.
26092
26093 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26094
26095         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
26096         conforms to C99, rather than relying on the user's environment
26097         setting of STDINT_H.
26098
26099 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26100         and Eric Blake  <ebb9@byu.net>
26101
26102         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
26103         This is more consistent with the other defines here.
26104         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
26105         Port to z/OS.  Problem reported by Paul Gilmartin.
26106         Change local vars to use gl_ prefix rather than ac_.
26107         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
26108         with other defines.
26109         * modules/double-slash-root: New module.
26110         * modules/dirname (Files): Remove m4/double-slash-root.m4.
26111         (Depends-on): Add double-slash-root.
26112         * MODULES.html.sh (File system functions): Mention new module.
26113
26114 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
26115
26116         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
26117         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
26118         This is for the benefit of gzip, which doesn't do i18n.
26119
26120 2006-12-12  Jim Meyering  <jim@meyering.net>
26121
26122         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
26123         Reported by Andreas Schwab <schwab@suse.de>.
26124
26125 2006-12-12  Bruno Haible  <bruno@clisp.org>
26126
26127         Merge these changes.
26128         2006-09-05  Bruno Haible  <bruno@clisp.org>
26129         * lib/iconvme.c (iconv_string): No need to save and restore errno when
26130         iconv_alloc succeeded.
26131         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
26132         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
26133         test for " && dest " at the end - dest is always != NULL there. Call
26134         iconv with 4xNULL arguments initially, to reset the state. Call iconv
26135         with 2xNULL arguments, also to flush the state storage. Handle the
26136         IRIX iconv behaviour. Realloc the final result, to throw away unused
26137         memory.
26138
26139 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
26140
26141         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
26142         and fchmodat unconditionally, since glibc 2.4 has them.
26143         Problem reported by Arkadiusz Miskiewicz.
26144
26145 2006-12-10  Bruno Haible  <bruno@clisp.org>
26146
26147         * gnulib-tool (func_import): Show the include files only for those
26148         modules that are copied and specified.
26149         Reported by Karl Berry.
26150
26151 2006-12-08  Jim Meyering  <jim@meyering.net>
26152
26153         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
26154         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
26155
26156         * build-aux/announce-gen: Add two new options, both optional:
26157         --bootstrap-tools=TOOL_LIST
26158               a comma-separated list of tools, e.g.,
26159               autoconf,automake,bison,gnulib
26160         --gnulib-snapshot-date=DATE
26161               if gnulib is in the bootstrap tool list,
26162               then report this as the snapshot date.
26163               If not specified, use the current date/time.
26164               If you specify a date here, be sure it's UTC.
26165
26166 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26167
26168         * tests/test-argp-2.sh: Fix test to match actual output.
26169         (func_compare): Fix sed script to be portable.
26170
26171 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
26172
26173         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
26174         workaround for this case.  It is not autoconfigured now; offhand
26175         it's hard to see how to autoconfigure it.
26176
26177 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
26178
26179         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
26180         a directory that is about to be chowned.  Such a directory's
26181         initial file permissions should permit the owner only and this
26182         should not be changed until after the chown, since the group and
26183         other bits would be incorrect if they granted permission before
26184         the chown.
26185
26186         Fix porting problem for iswctype reported by Georg Schwarz in:
26187         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
26188         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
26189         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
26190         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
26191         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
26192
26193 2006-12-03  Jim Meyering  <jim@meyering.net>
26194
26195         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
26196         p->fts_statp may not yet be defined.
26197         (fts_read): Instead, set it in the caller, once p->fts_statp is
26198         sure to be defined, and corresponds to a top-level directory.
26199         This bug made du -x fail.  Here's the coreutils test case:
26200         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
26201         Reported by Mike Frysinger.
26202
26203 2006-12-01  Jim Meyering  <jim@meyering.net>
26204
26205         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
26206         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
26207         Reported by Simon Josefsson.
26208
26209 2006-11-30  Jim Meyering  <jim@meyering.net>
26210
26211         * m4/warning.m4: Use the all-permissive copyright notice
26212         recommended by RMS (rather than LGPL).
26213         * m4/vararrays.m4: Likewise.
26214         * m4/flexmember.m4: Likewise.
26215
26216 2006-11-29  Bruno Haible  <bruno@clisp.org>
26217
26218         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
26219         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
26220         using +=.
26221         Reported by Simon Josefsson <simon@josefsson.org>.
26222
26223 2006-11-28  James Youngman <jay@gnu.org>
26224
26225         * README: Advise users that they might find the bug-gnulib@gnu.org
26226         and autotools-announce@gnu.org mailing lists useful.
26227
26228 2006-11-28  Bruno Haible  <bruno@clisp.org>
26229
26230         * m4/ptrdiff_max.m4: Remove file.
26231
26232 2006-11-21  Bruno Haible  <bruno@clisp.org>
26233
26234         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
26235         _AC_COMPUTE_INT.
26236         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26237         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
26238         _AC_COMPUTE_INT.
26239         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26240         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
26241         _AC_COMPUTE_INT.
26242         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26243
26244 2006-11-28  Jim Meyering  <jim@meyering.net>
26245
26246         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
26247         warning from "gcc -Wshadow" about shadowing the builtin.
26248
26249 2006-11-27  Bruno Haible  <bruno@clisp.org>
26250
26251         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
26252         _AC_COMPUTE_INT.
26253         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
26254
26255 2006-11-27  Bruno Haible  <bruno@clisp.org>
26256             Paul Eggert  <eggert@cs.ucla.edu>
26257
26258         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
26259
26260 2006-11-26  Bruno Haible  <bruno@clisp.org>
26261
26262         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
26263         noinst_LTLIBRARIES.
26264
26265 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
26266             Bruno Haible  <bruno@clisp.org>
26267
26268         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
26269         if compiling with "gcc -ansi".
26270
26271 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
26272
26273         Fix some incompatibilities with gcc -ansi -pedantic.
26274         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
26275         if compiling pedantically with GCC, unless it's C99 or later.
26276         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
26277         it mishandles gcc -ansi -pedantic as well.
26278         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
26279         if gcc -pedantic.
26280         * lib/regexec.c (check_node_accept_bytes): Don't use auto
26281         initializers for struct if -pedantic, unless it's C99 or later.
26282
26283 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
26284
26285         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
26286         Don't close an fd more than once. Identical atimes indicate
26287         success, not failure.
26288
26289 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
26290
26291         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
26292
26293 2006-11-23  Jim Meyering  <jim@meyering.net>
26294
26295         * build-aux/announce-gen: New file.  From coreutils.
26296
26297 2006-11-22  Jim Meyering  <jim@meyering.net>
26298
26299         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
26300         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
26301         (fts_read): Use a temporary to narrow the overused st_size member
26302         before using it in a switch statement.  Reported by Matthew Woehlke.
26303
26304         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
26305         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26306
26307 2006-11-20  Bruno Haible  <bruno@clisp.org>
26308
26309         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
26310         changequote instead of pairs of brackets.
26311         Reported by Andreas Schwab <schwab@suse.de>.
26312
26313 2006-11-21  Jim Meyering  <jim@meyering.net>
26314
26315         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
26316         so as to remain compatible with older compilers.
26317         Patch from Michael Deutschmann.
26318
26319 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
26320
26321         * MODULES.html.sh (File system functions): Add openat.
26322
26323         * lib/openat.h (rpl_fstatat): New macro, if
26324         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
26325         (fstatat): Define to rpl_fstatat under the same conditions,
26326         unless COMPILING_FSTATAT.
26327         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
26328         seems to have the bug.
26329         * lib/fstatat.c: New file.
26330         * modules/openat (Files): Add it.
26331
26332 2006-11-20  Bruno Haible  <bruno@clisp.org>
26333
26334         * Makefile: New file.
26335
26336 2006-11-20  Jim Meyering  <jim@meyering.net>
26337
26338         The beginnings of syntax-related checks for gnulib.
26339         * lib/Makefile: New file.
26340         * lib/t-idcache: New script.  Ensure that the two halves of
26341         idcache.c stay in sync.
26342
26343         * lib/idcache.c: Adjust comments in user- and group- portions to
26344         be more accurate, and to be consistent with one another.
26345
26346 2006-11-20  Jim Meyering  <jim@meyering.net>
26347
26348         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
26349         continue using the flexible array member (thus, this module performs
26350         half as many malloc calls), with the addition that...
26351         (getgroup, getuser): Consistently record a non-match via an empty
26352         "name" string, and map an empty string match to a NULL return value.
26353         * modules/idcache (Depends-on): Re-add flexmember.
26354
26355         * lib/idcache.c (getuser): Remove all uses of the register keyword.
26356         (getuidbyname, getgroup, getgidbyname): Likewise.
26357
26358         Use cleaner syntax: NULL rather than 0.
26359         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
26360
26361 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
26362
26363         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
26364         It mishandled the case where the group was missing.
26365         Problem reported by Greg Schafer.
26366         * modules/idcache: Likewise.
26367
26368 2006-11-18  Jim Meyering  <jim@meyering.net>
26369
26370         * check-module (%exempt_header): Add exception for some
26371         conditionally-included headers.
26372
26373         * modules/i-ring (Depends-on): Add verify.
26374         (License): Change to LGPL.
26375
26376 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
26377
26378         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
26379         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
26380         and inttostr.h.  Use snprintf rather than uinttostr, so that
26381         LGPLed code doesn't depend on GPLed.
26382
26383 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26384
26385         * modules/inline (License): Change from GPL to LGPL.
26386
26387 2006-11-17  Jim Meyering  <jim@meyering.net>
26388
26389         * modules/d-type (License): Switch to LGPL.
26390
26391 2006-11-15  Bruno Haible  <bruno@clisp.org>
26392
26393         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
26394
26395 2006-11-15  Eric Blake  <ebb9@byu.net>
26396
26397         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
26398         the module dependency.
26399
26400 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26401             Bruno Haible  <bruno@clisp.org>
26402
26403         * gnulib-tool (func_create_testdir): Add license consistency check.
26404
26405 2006-11-15  Eric Blake  <ebb9@byu.net>
26406
26407         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
26408         random "(cached)" in configure output.
26409
26410 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26411
26412         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
26413         test for conforming inttypes.h is both announced and cached.
26414
26415         * MODULES.html.sh (seen_modules, seen_files): New variables.
26416         (func_module): Rewrite to use a few less gnulib-tool and sed
26417         invocations.  Avoid a couple of quadratic algorithms for ...
26418         (missed_modules, missed_files): ... these, with ...
26419         (func_append, func_tmpdir): ... these new functions, from
26420         gnulib-tool.  Analogously, install traps for cleanup.
26421
26422         * tests/test-gc.c (main): Remove unused variables.
26423         * tests/test-read-file.c: Include stdlib.h, for 'free'.
26424
26425 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
26426
26427         * modules/inttostr (License): Change to LGPL.
26428
26429 2006-11-14  Eric Blake  <ebb9@byu.net>
26430
26431         * modules/tempname (License): Change to LGPL.
26432
26433 2006-11-14  Eric Blake  <ebb9@byu.net>
26434
26435         * doc/functions.texi (Function Portability): *printf functions on
26436         Cygwin now understand all POSIX size specifiers.
26437
26438 2006-11-14  Bruno Haible  <bruno@clisp.org>
26439
26440         * modules/c-ctype (License): Change to LGPL.
26441
26442 2006-11-12  Bruno Haible  <bruno@clisp.org>
26443
26444         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26445         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
26446         for GNOME libraries, for which the include files are installed in
26447         subdirectories of $prefix/include.
26448
26449 2006-11-12  Bruno Haible  <bruno@clisp.org>
26450
26451         * m4/lib-link.m4: Require at least autoconf-2.54.
26452         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
26453         name to underscores for the --with option.
26454
26455 2006-11-13  Bruno Haible  <bruno@clisp.org>
26456
26457         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
26458         the tests directory.
26459         Reported by Ralf Wildenhues.
26460
26461 2006-11-13  Bruno Haible  <bruno@clisp.org>
26462
26463         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
26464         (func_emit_initmacro_end): Undo the override here.
26465         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
26466         Works around the famous automake error in coreutils.
26467
26468 2006-11-13  Eric Blake  <ebb9@byu.net>
26469
26470         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
26471         element, not its node.
26472
26473 2006-11-12  Bruno Haible  <bruno@clisp.org>
26474
26475         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
26476         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
26477
26478 2006-11-12  Bruno Haible  <bruno@clisp.org>
26479
26480         * gnulib-tool: New option --local-symlink.
26481         (func_usage): Document it.
26482         (lsymbolic): New variable.
26483         (func_import, func_create_testdir): If --symlink was not specified,
26484         test whether --local-symlink was specified and the file comes from
26485         the local_gnulib_dir.
26486
26487 2006-11-12  Bruno Haible  <bruno@clisp.org>
26488
26489         * gnulib-tool (func_ln): New function.
26490         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
26491
26492 2006-11-12  Bruno Haible  <bruno@clisp.org>
26493
26494         Finish support for source files in subdirectories.
26495         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
26496         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
26497         AUTOMAKE_OPTIONS.
26498         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
26499
26500 2006-11-12  Bruno Haible  <bruno@clisp.org>
26501
26502         * gnulib-tool (func_get_automake_snippet): Synthesize also an
26503         EXTRA_lib_SOURCES augmentation.
26504         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
26505
26506 2006-11-12  Jim Meyering  <jim@meyering.net>
26507
26508         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
26509         file descriptors.  This also averts a failure on systems with
26510         native openat support when a traversed directory lacks "x" access.
26511         * lib/fts_.h: Include "i-ring.h"
26512         (struct FTS) [fts_fd_ring]: New member.
26513         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
26514         (FCHDIR): Add parentheses.
26515         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
26516         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
26517         When descending, rather than simply closing the previous
26518         fts_cwd_fd value, push that file descriptor onto the ring.
26519         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
26520         (fts_open): Initialize the new fd_ring member.
26521         (fts_close): Clear the ring.
26522         (fts_safe_changedir): When possible, use our new fd_ring to skip
26523         the diropen and fstat and dev/ino comparison that would normally
26524         accompany a virtual `chdir ("..")'.
26525
26526         * modules/fts (Depends-on): Add i-ring.
26527         * modules/i-ring: New module.
26528         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
26529         * m4/i-ring.m4: New file.
26530
26531 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26532
26533         * gnulib-tool (func_create_testdir): Fix replacement of
26534         `build-aux' in configure.ac.  Run autotools in gltests
26535         subdirectory.
26536         (func_create_testdir, func_create_megatestdir, test): There is
26537         no need for '--force' in most autotool invocations in a new
26538         tree.  Actually fail the whole test if any of the tools, or the
26539         configure or make stages fail.
26540
26541         Sync from Automake.
26542         * build-aux/gnupload: Revert last change.  Add pointer to upload
26543         instructions of the GNU Maintenance Instructions.
26544         Suggestion by Karl Berry.
26545
26546 2006-11-10  Jim Meyering  <jim@meyering.net>
26547
26548         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
26549
26550 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
26551
26552         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
26553         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
26554         (bind_textdomain_codeset) [! ENABLE_NLS]:
26555         Evaluate all the arguments.  That way, callers get compatible behavior
26556         if the arguments have side effects.  Also, it avoids some GCC
26557         diagnostics in some cases; Joel E. Denny reported problems when Bison
26558         was configured with --enable-gcc-warnigs.
26559
26560 2006-11-10  Jim Meyering  <jim@meyering.net>
26561
26562         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
26563         relevant options in CFLAGS (like -O, -fno-inline) are taken into
26564         account.
26565
26566 2006-11-10  Jim Meyering  <jim@meyering.net>
26567
26568         * modules/inline: New file/module.
26569         * modules/xalloc (Files): Remove m4/inline.m4.
26570         (Depends-on): Add inline, instead.
26571         * modules/oset: Likewise.
26572         * modules/list: Likewise.
26573
26574 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
26575
26576         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
26577         Problem reported by Matthew Woehlke.
26578
26579 2006-11-09  Bruno Haible  <bruno@clisp.org>
26580
26581         * lib/tempname.c (gen_tempname): Remove variant that invokes
26582         __gen_tempname.
26583         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
26584         __gen_tempname.
26585
26586 2006-11-08  Bruno Haible  <bruno@clisp.org>
26587
26588         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
26589         to 'yes' instead of 'cross-compiling'.
26590
26591 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
26592
26593         * lib/quotearg.h (quotearg_free): New decl.
26594         * lib/quotearg.c (quotearg_free): New function.
26595         (slot0, nslots, slotvec0, slotvec):
26596         Now file-scope so that quotearg_free can get at them.
26597
26598 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26599
26600         Sync from Automake.
26601         * build-aux/gnupload: Add missing 'gnu' to example URL.
26602         Report by Karl Berry.
26603
26604 2006-11-08  Bruno Haible  <bruno@clisp.org>
26605
26606         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
26607         Suggested by Paul Eggert.
26608
26609 2006-11-08  Jim Meyering  <jim@meyering.net>
26610
26611         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
26612         It's already included if !_LIBC.
26613         (fts_safe_changedir): Add a comment.
26614
26615 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
26616
26617         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
26618         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
26619         Matthew Woehlke.
26620
26621         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
26622         definitions up, to avoid colliding with change below.
26623         (static_inline) [HAVE_INLINE]: New macro.
26624         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
26625         Provide extern decls when !HAVE_INLINE.  Do not define unless
26626         static_inline is defined, either by us or by xmalloc.c.  Use
26627         static_inline rather than static inline.
26628         (XCALLOC): Optimize sizeof(T) = 1 case.
26629         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
26630
26631 2006-11-07  Bruno Haible  <bruno@clisp.org>
26632
26633         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
26634         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
26635         AC_C_INLINE.
26636         * modules/xalloc (Files): Add m4/inline.m4.
26637
26638 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26639
26640         * README: Fix typo.
26641         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
26642         (Miscellanous Notes): ...from this.
26643
26644 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
26645
26646         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
26647         Mention that offsetof should be used instead of sizeof.
26648         From Bruno Haible.
26649
26650 2006-11-07  Bruno Haible  <bruno@clisp.org>
26651
26652         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
26653
26654 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
26655
26656         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
26657         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
26658         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
26659         (gl_tree_add_before, gl_tree_add_after):
26660         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
26661         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
26662         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
26663         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
26664         (gl_linked_add_after, gl_linked_add_at): Likewise.
26665         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
26666         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
26667         (gl_tree_add_before, gl_tree_add_after): Likewise.
26668         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
26669         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
26670         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
26671
26672 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26673
26674         * lib/gl_oset.h: Use C comment style, not C++ comment style.
26675
26676 2006-11-06  Bruno Haible  <bruno@clisp.org>
26677
26678         * m4/inline.m4: New file.
26679         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
26680         * modules/list (Files): Add m4/inline.m4.
26681         * modules/oset (Files): Likewise.
26682
26683 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
26684
26685         * lib/idcache.c: Include <stddef.h>, for offsetof.
26686         (struct userid.name): Change from char * to a flexible array member.
26687         All uses changed.
26688         * modules/idcache (Depends-on): Add flexmember.
26689
26690         * MODULES.html.sh (Core language properties): New module flexmember.
26691         * modules/flexmember, m4/flexmember.m4: New files.
26692
26693         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
26694         inline functions that are identical with the old xnmalloc_inline,
26695         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
26696         that we can avoid some unnecessary integer multiplications and
26697         divisions in the common case where the element size is known at
26698         compile time.
26699         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
26700         needed.
26701         (xnboundedmalloc): Remove.
26702         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
26703         arguments, for consistency with rest of this header.
26704         (xcharalloc): Rewrite using XNMALLOC.
26705         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
26706         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
26707         versions have been moved to lib/xalloc.h and renamed to be the
26708         non-*_inline versions.
26709         (xmalloc, xrealloc): Implement without reference to the xnmalloc
26710         and xnrealloc functions, since those functions are now inline and
26711         now call us.
26712         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
26713         renaming described above.
26714         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
26715         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
26716         captures the dependency in AC_C_INLINE.
26717
26718         New module canonicalize-lgpl, proposed by Charles Wilson in
26719         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
26720         with a few small changes afterwards.
26721         * MODULES.html.sh (File system functions): New module
26722         canonicalize-lgpl.
26723         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
26724         and canonicalize_file_name.
26725         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
26726         * modules/canonicalize-lgpl: New files.
26727
26728 2006-11-05  Bruno Haible  <bruno@clisp.org>
26729
26730         * gnulib-tool (func_import, func_create_testdir): Create directories
26731         also for files in subdirectories of lib/.
26732
26733 2006-11-05  Bruno Haible  <bruno@clisp.org>
26734
26735         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
26736         ANSI C compliant.
26737
26738 2006-11-03  Bruno Haible  <bruno@clisp.org>
26739
26740         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
26741         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
26742         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
26743         (xnboundedmalloc): New inline function.
26744         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
26745         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
26746         xmalloc.
26747         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
26748         xmalloc.
26749         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
26750         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
26751         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
26752         xmalloc.
26753         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
26754         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
26755         xmalloc.
26756         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
26757         gl_tree_add_after): Use XMALLOC instead of xmalloc.
26758         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
26759         xmalloc.
26760         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
26761         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
26762         gl_tree_add_after): Use XMALLOC instead of xmalloc.
26763         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
26764         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
26765         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
26766         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
26767
26768 2006-11-03  Bruno Haible  <bruno@clisp.org>
26769
26770         * lib/c-ctype.h [C++]: Define functions without name mangling.
26771         * lib/fwriteerror.h [C++]: Likewise.
26772         * lib/gcd.h [C++]: Likewise.
26773         * lib/linebreak.h [C++]: Likewise.
26774
26775 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
26776
26777         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
26778         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
26779         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
26780         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
26781         Check for functions and headers just once.
26782         Check for declaration of canonicalize_file_name.
26783         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
26784
26785 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
26786
26787         * gnulib-tool (func_import): Fix typo in actioncmd.
26788
26789 2006-11-02  Bruno Haible  <bruno@clisp.org>
26790
26791         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
26792         newline sequence in the Makefile.am snippet as a space, like "make"
26793         does.
26794         Reported by Roger Persson <perrog@gmail.com>.
26795
26796 2006-11-01  Bruno Haible  <bruno@clisp.org>
26797
26798         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
26799         already declared in <string.h>.
26800         * lib/strcase.h (strncasecmp): Don't declare it if yes.
26801
26802 2006-11-01  Bruno Haible  <bruno@clisp.org>
26803
26804         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
26805         * lib/strcase.h: Include <string.h>.
26806         (strcasecmp): Define to rpl_strcasecmp here.
26807
26808 2006-11-01  Bruno Haible  <bruno@clisp.org>
26809
26810         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
26811
26812 2006-11-01  Eric Blake  <ebb9@byu.net>
26813
26814         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
26815
26816         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
26817
26818 2006-10-29  Bruno Haible  <bruno@clisp.org>
26819
26820         Make it compile in C++ mode.
26821         * lib/full-write.c (full_rw): Add a cast.
26822
26823 2006-11-01  Bruno Haible  <bruno@clisp.org>
26824
26825         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
26826         be POSIX compliant.
26827         Reported by Roger Persson <perrog@gmail.com>.
26828
26829 2006-11-01  Eric Blake  <ebb9@byu.net>
26830
26831         * lib/getopt_.h: Fix comments.
26832
26833 2006-10-31  Eric Blake  <ebb9@byu.net>
26834
26835         * modules/tmpdir (Depends-on): Add sys_stat.
26836         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
26837         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
26838         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
26839         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
26840         tempname.
26841
26842 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
26843
26844         Avoid some C++ diagnostics reported by Bruno Haible.
26845         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
26846         xmalloc.
26847         (quotearg_alloc): Use xcharalloc rather than xmalloc.
26848         (struct slotvec): Move to top level.
26849         (quotearg_n_options): Rewrite to avoid xmalloc.
26850         * lib/xalloc.h (xcharalloc): New function.
26851         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
26852         [defined __cplusplus]: Add function template that provides result
26853         type propagation.  This part of the change is from Bruno Haible.
26854
26855 2006-10-29  Bruno Haible  <bruno@clisp.org>
26856
26857         Make it compile in C++ mode.
26858         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
26859         * lib/strnlen1.c (strnlen1): Cast memchr result.
26860         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
26861         * lib/clean-temp.c (string_equals, string_hash): Add casts.
26862         (create_temp_dir): Rename local variable 'template'.
26863         (compile_csharp_using_sscli): Add cast.
26864         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
26865         * lib/findprog.c (find_in_path): Likewise.
26866         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
26867         * lib/wait-process.c (register_slave_subprocess): Likewise.
26868
26869 2006-10-22  Bruno Haible  <bruno@clisp.org>
26870
26871         * modules/tsearch: New file.
26872         * lib/tsearch.h: New file.
26873         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
26874         * m4/tsearch.m4: New file.
26875         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
26876
26877 2006-10-29  Eric Blake  <ebb9@byu.net>
26878
26879         * lib/arcfour.c: Assume config.h.
26880         * lib/arctwo.c: Likewise.
26881         * lib/base64.c: Likewise.
26882         * lib/check-version.c: Likewise.
26883         * lib/crc.c: Likewise.
26884         * lib/des.c: Likewise.
26885         * lib/gc-gnulib.c: Likewise.
26886         * lib/gc-libgcrypt.c: Likewise.
26887         * lib/gc-pbkdf2-sha1.c: Likewise.
26888         * lib/getaddrinfo.c: Likewise.
26889         * lib/getdelim.c: Likewise.
26890         * lib/getline.c: Likewise.
26891         * lib/hmac-md5.c: Likewise.
26892         * lib/hmac-sha1.c: Likewise.
26893         * lib/iconvme.c: Likewise.
26894         * lib/md2.c: Likewise.
26895         * lib/md4.c: Likewise.
26896         * lib/memxor.c: Likewise.
26897         * lib/read-file.c: Likewise.
26898         * lib/readline.c: Likewise.
26899         * lib/rijndael-alg-fst.c: Likewise.
26900         * lib/rijndael-api-fst.c: Likewise.
26901         * lib/xgetdomainname.c: Likewise.
26902
26903 2006-10-28  Eric Blake  <ebb9@byu.net>
26904
26905         * lib/xstrndup.c: Assume config.h.
26906
26907 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
26908
26909         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
26910         stat-macros.h is now for our own macros, whereas stat_h is for
26911         macros in the <sys/stat.h> name space.
26912         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
26913         (STAT_MACROS_H): Remove.
26914         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
26915         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
26916         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
26917         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
26918         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
26919         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
26920         Move these macros to ...
26921         * lib/stat_.h: here.  Don't include stat-macros.h.
26922         * lib/canonicalize.c: Don't include stat-macros.h.
26923         * lib/chown.c: Likewise.
26924         * lib/euidaccess.c: Likewise.
26925         * lib/file-type.c: Likewise.
26926         * lib/filemode.c: Likewise.
26927         * lib/glob.c: Likewise.
26928         * lib/isapipe.c: Likewise.
26929         * lib/lchown.c: Likewise.
26930         * lib/lstat.c: Likewise.
26931         * lib/mkdir-p.c: Likewise.
26932         * lib/rmdir.c: Likewise.
26933         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
26934         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
26935         unless mkdir isn't declared, to speed up 'configure'.
26936         Always create sys/stat.h, since it's unlikely any real sys/stat.h
26937         would define all the S_* symbols.
26938         * modules/canonicalize (Depends-on):
26939         Depend on sys_stat, not stat-macros.
26940         * modules/chown: Likewise.
26941         * modules/euidaccess: Likewise.
26942         * modules/filemode: Likewise.
26943         * modules/file-type: Likewise.
26944         * modules/glob: Likewise.
26945         * modules/isapipe: Likewise.
26946         * modules/lchown: Likewise.
26947         * modules/lstat: Likewise.
26948         * modules/mkancesdirs: Likewise.
26949         * modules/rmdir: Likewise.
26950         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
26951         * modules/modechange: Likewise.
26952         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
26953         (configure.ac): Remove gl_STAT_MACROS.
26954         * modules/sys_stat (Depends-on): Remove stat-macros.
26955
26956 2006-10-27  Bruno Haible  <bruno@clisp.org>
26957
26958         * m4/signed.m4: Remove file.
26959         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
26960         invocation.
26961         * modules/vasnprintf (Files): Remove m4/signed.m4.
26962
26963 2006-10-27  Bruno Haible  <bruno@clisp.org>
26964
26965         Update to GNU gettext 0.16.
26966         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
26967         m4/inttypes-h.m4, m4/signed.m4.
26968         * m4/gettext.m4: Update to GNU gettext 0.16.
26969         * m4/intl.m4: New file, from GNU gettext.
26970         * m4/intldir.m4: New file, from GNU gettext.
26971         * config/srclist.txt: Update
26972
26973 2006-10-27  Eric Blake  <ebb9@byu.net>
26974
26975         * MODULES.html.sh: Document tempname.
26976         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
26977         dependencies.
26978         (Files): Move lib/tempname.c...
26979         * modules/tempname: ...to this new module.
26980         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
26981         (gl_PREREQ_TEMPNAME): Move...
26982         * m4/tempname.m4: ...to this new file.
26983         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
26984         * modules/sys_stat (Depends-on): Add stat-macros.
26985         * lib/stat_.h (includes): Pick up stat macros.
26986         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
26987         if stat macros are broken.
26988         * lib/tempname.c (includes): No need to include "stat-macros.h".
26989         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
26990         (direxists, __path_search) [!_LIBC]: Don't compile these in
26991         gnulib; the tmpdir module covers that.
26992         * lib/tempname.h: New file.
26993
26994 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
26995
26996         * COPYING: Explain how gnulib-tool converts licence headers.
26997         Almost all wording by Eric Blake.
26998
26999 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
27000
27001         * lib/mbchar.h (is_basic_table): Make read-only.
27002         * lib/mbchar.c (is_basic_table): Likewise.
27003         Reported by John Darrington.
27004
27005 2006-10-25  Bruno Haible  <bruno@clisp.org>
27006
27007         * lib/progname.h (set_program_name): Undefine before defining.
27008
27009 2006-10-25  Bruno Haible  <bruno@clisp.org>
27010
27011         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
27012         false for non-gcc C++ compilers.
27013         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
27014
27015 2006-10-24  Bruno Haible  <bruno@clisp.org>
27016
27017         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
27018         iconv implementations like Irix iconv.
27019
27020 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27021
27022         * modules/vararrays: New file.
27023         * m4/vararrays.m4: New file, taken from diffutils.
27024         * MODULES.html.sh: New module vararrays.
27025
27026 2006-10-24  Karl Berry  <karl@gnu.org>
27027
27028         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
27029         Don't call GNU Unix.
27030
27031 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27032
27033         * users.txt: Add Libtool.
27034
27035         Sync from Libtool:
27036
27037         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27038
27039         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
27040         to gnulib's policy of including config.h unconditionally.
27041
27042 2006-10-24  Bruno Haible  <bruno@clisp.org>
27043
27044         * modules/wcwidth (Files): Add m4/wint_t.m4.
27045         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
27046         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
27047
27048 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
27049
27050         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
27051         to pacify GCC with some -W flags enabled.  Problem reported by
27052         Bruno Haible.
27053
27054 2006-10-24  Jim Meyering  <jim@meyering.net>
27055
27056         * MODULES.html.sh: Remove uinttostr.  It's not a module.
27057         Reported by Karl Berry.
27058
27059 2006-10-23  Bruno Haible  <bruno@clisp.org>
27060
27061         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
27062
27063 2006-10-24  Bruno Haible  <bruno@clisp.org>
27064
27065         * lib/gl_list.h: Use C comment style, not C++ comment style.
27066
27067 2006-10-23  Eric Blake  <ebb9@byu.net>
27068
27069         * lib/getaddrinfo.c (includes): Add missing include.
27070
27071 2006-10-23  Bruno Haible  <bruno@clisp.org>
27072             Paul Eggert  <eggert@cs.ucla.edu>
27073
27074         Ability to rename obstack_free.
27075         * lib/obstack.h (__obstack_free): New macro. Declare instead of
27076         obstack_free.
27077         (obstack_free): Invoke the __obstack_free macro.
27078         * lib/obstack.c (obstack_free): Use __obstack_free macro.
27079
27080 2006-10-23  Bruno Haible  <bruno@clisp.org>
27081             Paul Eggert  <eggert@cs.ucla.edu>
27082
27083         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
27084         __argc, __argv from the declaration. (They are defined as macros on
27085         mingw.)
27086
27087 2006-10-22  Bruno Haible  <bruno@clisp.org>
27088
27089         * doc/gnulib-intro.texi: New file.
27090         * doc/gnulib.texi: Include it.
27091
27092 2006-10-21  Bruno Haible  <bruno@clisp.org>
27093
27094         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
27095         "Introduction", "Miscellanous Notes", "Particular Modules".
27096
27097 2006-10-21  Bruno Haible  <bruno@clisp.org>
27098
27099         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27100         Change mostlyclean-local rule to avoid sh syntax error from bash
27101         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
27102
27103 2006-10-23  Jim Meyering  <jim@meyering.net>
27104
27105         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
27106         in place of snprintf.
27107
27108         * modules/inttostr (Files): Add lib/uinttostr.c.
27109         * lib/uinttostr.c (inttostr): New file/function.
27110         * lib/inttostr.h (uinttostr): Declare.
27111         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
27112         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
27113         Add uinttostr.
27114         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
27115
27116 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
27117
27118         * lib/canonicalize.c (ELOOP): Define if not already defined.
27119         Problem reported by Bruno Haible in
27120         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
27121
27122 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
27123
27124         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
27125         Problem reported by Perry Smith and Ville Laurikari.
27126
27127         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
27128         uses.
27129
27130 2006-10-19  Bruno Haible  <bruno@clisp.org>
27131
27132         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
27133         for mingw.
27134
27135 2006-10-19  Bruno Haible  <bruno@clisp.org>
27136
27137         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
27138         Needed for mingw.
27139
27140 2006-10-19  Bruno Haible  <bruno@clisp.org>
27141
27142         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
27143
27144 2006-10-19  Bruno Haible  <bruno@clisp.org>
27145
27146         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
27147         it.
27148
27149 2006-10-19  Bruno Haible  <bruno@clisp.org>
27150
27151         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
27152         invocation.
27153
27154 2006-10-19  Bruno Haible  <bruno@clisp.org>
27155
27156         * gnulib-tool (func_create_testdir): Don't include ftruncate and
27157         mountlist by default.
27158
27159 2006-10-16  Bruno Haible  <bruno@clisp.org>
27160
27161         * lib/c-strstr.c: Include c-strstr.h.
27162
27163 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
27164
27165         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
27166         in a slash.
27167
27168 2006-10-18  Bruno Haible  <bruno@clisp.org>
27169
27170         * lib/lock.h [C++]: Wrap definitions in extern "C".
27171
27172 2006-10-18  Bruno Haible  <bruno@clisp.org>
27173
27174         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
27175         gl_LIBOBJS list.
27176
27177 2006-10-18  Bruno Haible  <bruno@clisp.org>
27178
27179         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
27180
27181 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
27182
27183         * lib/xstrtol.h: Include gettext.h.
27184         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
27185         Problem reported by Eric Blake.
27186         * modules/xstrtol (Depends-on): Add gettext-h.
27187
27188 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
27189
27190         * lib/strftime.c (advance): New macro.
27191         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
27192         incomplete type, so you can't add 0 to it.  Problem and patch
27193         reported by Eelco Dolstra for dietlibc.
27194
27195 2006-10-18  Jim Meyering  <jim@meyering.net>
27196
27197         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
27198         type for a local, and rename it: s/up/user_proc/.
27199
27200 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
27201
27202         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
27203         READ_UTMP_USER_PROCESS.
27204         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
27205
27206 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
27207
27208         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
27209         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
27210
27211 2006-10-17  Eric Blake  <ebb9@byu.net>
27212
27213         * lib/sigprocmask.c (sigprocmask): Fix typo.
27214
27215         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
27216
27217         * modules/clean-temp (Makefile.am): Don't add to make output...
27218         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
27219         config.h.
27220
27221 2006-10-17  Bruno Haible  <bruno@clisp.org>
27222
27223         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
27224         differently if DEFAULT_TEXT_DOMAIN is set.
27225
27226 2006-10-16  Bruno Haible  <bruno@clisp.org>
27227
27228         * lib/clean-temp.c: Include fwriteerror.h.
27229
27230 2006-10-16  Bruno Haible  <bruno@clisp.org>
27231
27232         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
27233
27234 2006-10-16  Bruno Haible  <bruno@clisp.org>
27235
27236         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
27237         * lib/sigprocmask.h: Include <sys/types.h>.
27238         (sigset_t): Use the system's definition if present.
27239
27240 2006-10-17  Eric Blake  <ebb9@byu.net>
27241
27242         * lib/xvasprintf.c (includes): Assume config.h.
27243         * lib/xasprintf.c (includes): Likewise.
27244
27245 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
27246
27247         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
27248         at least as wide as intmax_t.
27249
27250 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
27251
27252         (Imported from Automake.)
27253         * build-aux/gnupload: Update to version 1.1 of directive file.
27254
27255 2006-10-16  Eric Blake  <ebb9@byu.net>
27256
27257         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
27258         match Automake 1.10a.
27259
27260 2006-10-14  Bruno Haible  <bruno@clisp.org>
27261
27262         * modules/sigprocmask: New file.
27263         * lib/sigprocmask.h: New file.
27264         * lib/sigprocmask.c: New file.
27265         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
27266         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
27267         request sigprocmask.o.
27268         (gl_PREREQ_SIGPROCMASK): New macro.
27269         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
27270         (Depends-on): Add sigprocmask.
27271         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
27272         gt_SIGNALBLOCKING. Test for 'raise' only once.
27273         * lib/fatal-signal.c: Include sigprocmask.h.
27274         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
27275         unblock_fatal_signals): Define always.
27276         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27277         sigprocmask.
27278
27279 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
27280
27281         Sync from Automake.
27282         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
27283         which incorrectly sets the mode of an existing destination
27284         directory.  In some cases the unpatched install-sh could do the
27285         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
27286         system.  We hope this is rare in practice, but it's clearly worth
27287         fixing.  Problem reported by Alex Unleashed in
27288         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
27289         Also, don't bother to check for -m bugs unless we're using -m;
27290         suggested by Stepan Kasal.
27291
27292 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27293
27294         Sync from Automake.
27295         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
27296         `-c' flag, so they appear at the same position as in %FASTDEP%
27297         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
27298         which ignores unknown options only after the first non-option.
27299         Bug report against M4 by Nelson H. F. Beebe.
27300
27301 2006-10-13  Jim Meyering  <jim@meyering.net>
27302
27303         Fix a bug in yesterday's change.
27304         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
27305         p->fts_statp->st_dev would be used uninitialized.
27306         Ensures that we always call fts_stat on the very first entry.
27307         Miklos Szeredi reported that find -xdev stopped working.
27308
27309 2006-10-12  Bruno Haible  <bruno@clisp.org>
27310
27311         * gnulib-tool (func_get_automake_snippet): Append an automatically
27312         computed EXTRA_DIST augmentation.
27313         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
27314         * modules/alloca-opt (Makefile.am): Likewise.
27315         * modules/allocsa (Makefile.am): Likewise.
27316         * modules/arcfour (Makefile.am): Likewise.
27317         * modules/arctwo (Makefile.am): Likewise.
27318         * modules/argmatch (Makefile.am): Likewise.
27319         * modules/argz (Makefile.am): Likewise.
27320         * modules/atexit (Makefile.am): Likewise.
27321         * modules/backupfile (Makefile.am): Likewise.
27322         * modules/byteswap (Makefile.am): Likewise.
27323         * modules/c-strtod (Makefile.am): Likewise.
27324         * modules/c-strtold (Makefile.am): Likewise.
27325         * modules/calloc (Makefile.am): Likewise.
27326         * modules/canon-host (Makefile.am): Likewise.
27327         * modules/canonicalize (Makefile.am): Likewise.
27328         * modules/chdir-long (Makefile.am): Likewise.
27329         * modules/chdir-safer (Makefile.am): Likewise.
27330         * modules/check-version (Makefile.am): Likewise.
27331         * modules/chown (Makefile.am): Likewise.
27332         * modules/cloexec (Makefile.am): Likewise.
27333         * modules/close-stream (Makefile.am): Likewise.
27334         * modules/closeout (Makefile.am): Likewise.
27335         * modules/crc (Makefile.am): Likewise.
27336         * modules/csharpexec (Makefile.am): Likewise.
27337         * modules/cycle-check (Makefile.am): Likewise.
27338         * modules/des (Makefile.am): Likewise.
27339         * modules/dev-ino (Makefile.am): Likewise.
27340         * modules/dirfd (Makefile.am): Likewise.
27341         * modules/dirname (Makefile.am): Likewise.
27342         * modules/dup2 (Makefile.am): Likewise.
27343         * modules/eealloc (Makefile.am): Likewise.
27344         * modules/error (Makefile.am): Likewise.
27345         * modules/euidaccess (Makefile.am): Likewise.
27346         * modules/exclude (Makefile.am): Likewise.
27347         * modules/exitfail (Makefile.am): Likewise.
27348         * modules/fcntl-safer (Makefile.am): Likewise.
27349         * modules/fcntl (Makefile.am): Likewise.
27350         * modules/file-type (Makefile.am): Likewise.
27351         * modules/fileblocks (Makefile.am): Likewise.
27352         * modules/filemode (Makefile.am): Likewise.
27353         * modules/filenamecat (Makefile.am): Likewise.
27354         * modules/fnmatch (Makefile.am): Likewise.
27355         * modules/fopen-safer (Makefile.am): Likewise.
27356         * modules/fpending (Makefile.am): Likewise.
27357         * modules/fprintftime (Makefile.am): Likewise.
27358         * modules/free (Makefile.am): Likewise.
27359         * modules/fsusage (Makefile.am): Likewise.
27360         * modules/ftruncate (Makefile.am): Likewise.
27361         * modules/fts (Makefile.am): Likewise.
27362         * modules/gc-arcfour (Makefile.am): Likewise.
27363         * modules/gc-des (Makefile.am): Likewise.
27364         * modules/gc-hmac-md5 (Makefile.am): Likewise.
27365         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
27366         * modules/gc-md4 (Makefile.am): Likewise.
27367         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
27368         * modules/gc-sha1 (Makefile.am): Likewise.
27369         * modules/gc (Makefile.am): Likewise.
27370         * modules/getaddrinfo (Makefile.am): Likewise.
27371         * modules/getcwd (Makefile.am): Likewise.
27372         * modules/getdelim (Makefile.am): Likewise.
27373         * modules/getdomainname (Makefile.am): Likewise.
27374         * modules/getgroups (Makefile.am): Likewise.
27375         * modules/gethostname (Makefile.am): Likewise.
27376         * modules/gethrxtime (Makefile.am): Likewise.
27377         * modules/getline (Makefile.am): Likewise.
27378         * modules/getloadavg (Makefile.am): Likewise.
27379         * modules/getlogin_r (Makefile.am): Likewise.
27380         * modules/getndelim2 (Makefile.am): Likewise.
27381         * modules/getopt (Makefile.am): Likewise.
27382         * modules/getpagesize (Makefile.am): Likewise.
27383         * modules/getpass-gnu (Makefile.am): Likewise.
27384         * modules/getpass (Makefile.am): Likewise.
27385         * modules/getsubopt (Makefile.am): Likewise.
27386         * modules/gettime (Makefile.am): Likewise.
27387         * modules/gettimeofday (Makefile.am): Likewise.
27388         * modules/getugroups (Makefile.am): Likewise.
27389         * modules/getusershell (Makefile.am): Likewise.
27390         * modules/glob (Makefile.am): Likewise.
27391         * modules/group-member (Makefile.am): Likewise.
27392         * modules/hard-locale (Makefile.am): Likewise.
27393         * modules/hash (Makefile.am): Likewise.
27394         * modules/hmac-md5 (Makefile.am): Likewise.
27395         * modules/hmac-sha1 (Makefile.am): Likewise.
27396         * modules/human (Makefile.am): Likewise.
27397         * modules/idcache (Makefile.am): Likewise.
27398         * modules/imaxabs (Makefile.am): Likewise.
27399         * modules/imaxdiv (Makefile.am): Likewise.
27400         * modules/inet_ntop (Makefile.am): Likewise.
27401         * modules/inet_pton (Makefile.am): Likewise.
27402         * modules/intprops (Makefile.am): Likewise.
27403         * modules/inttostr (Makefile.am): Likewise.
27404         * modules/inttypes (Makefile.am): Likewise.
27405         * modules/isapipe (Makefile.am): Likewise.
27406         * modules/javaversion (Makefile.am): Likewise.
27407         * modules/lchmod (Makefile.am): Likewise.
27408         * modules/lchown (Makefile.am): Likewise.
27409         * modules/localcharset (Makefile.am): Likewise.
27410         * modules/long-options (Makefile.am): Likewise.
27411         * modules/lstat (Makefile.am): Likewise.
27412         * modules/malloc (Makefile.am): Likewise.
27413         * modules/mathl (Makefile.am): Likewise.
27414         * modules/mbchar (Makefile.am): Likewise.
27415         * modules/md2 (Makefile.am): Likewise.
27416         * modules/md4 (Makefile.am): Likewise.
27417         * modules/md5 (Makefile.am): Likewise.
27418         * modules/memcasecmp (Makefile.am): Likewise.
27419         * modules/memchr (Makefile.am): Likewise.
27420         * modules/memcmp (Makefile.am): Likewise.
27421         * modules/memcoll (Makefile.am): Likewise.
27422         * modules/memcpy (Makefile.am): Likewise.
27423         * modules/memmem (Makefile.am): Likewise.
27424         * modules/memmove (Makefile.am): Likewise.
27425         * modules/mempcpy (Makefile.am): Likewise.
27426         * modules/memrchr (Makefile.am): Likewise.
27427         * modules/memset (Makefile.am): Likewise.
27428         * modules/memxor (Makefile.am): Likewise.
27429         * modules/mkancesdirs (Makefile.am): Likewise.
27430         * modules/mkdir-p (Makefile.am): Likewise.
27431         * modules/mkdir (Makefile.am): Likewise.
27432         * modules/mkdtemp (Makefile.am): Likewise.
27433         * modules/mkstemp (Makefile.am): Likewise.
27434         * modules/mktime (Makefile.am): Likewise.
27435         * modules/modechange (Makefile.am): Likewise.
27436         * modules/mountlist (Makefile.am): Likewise.
27437         * modules/nanosleep (Makefile.am): Likewise.
27438         * modules/obstack (Makefile.am): Likewise.
27439         * modules/openat (Makefile.am): Likewise.
27440         * modules/pagealign_alloc (Makefile.am): Likewise.
27441         * modules/pathmax (Makefile.am): Likewise.
27442         * modules/physmem (Makefile.am): Likewise.
27443         * modules/poll (Makefile.am): Likewise.
27444         * modules/posixtm (Makefile.am): Likewise.
27445         * modules/posixver (Makefile.am): Likewise.
27446         * modules/putenv (Makefile.am): Likewise.
27447         * modules/quote (Makefile.am): Likewise.
27448         * modules/quotearg (Makefile.am): Likewise.
27449         * modules/raise (Makefile.am): Likewise.
27450         * modules/read-file (Makefile.am): Likewise.
27451         * modules/readline (Makefile.am): Likewise.
27452         * modules/readlink (Makefile.am): Likewise.
27453         * modules/readtokens (Makefile.am): Likewise.
27454         * modules/readutmp (Makefile.am): Likewise.
27455         * modules/realloc (Makefile.am): Likewise.
27456         * modules/regex (Makefile.am): Likewise.
27457         * modules/rename-dest-slash (Makefile.am): Likewise.
27458         * modules/rename (Makefile.am): Likewise.
27459         * modules/rijndael (Makefile.am): Likewise.
27460         * modules/rmdir (Makefile.am): Likewise.
27461         * modules/rpmatch (Makefile.am): Likewise.
27462         * modules/safe-read (Makefile.am): Likewise.
27463         * modules/safe-write (Makefile.am): Likewise.
27464         * modules/same-inode (Makefile.am): Likewise.
27465         * modules/same (Makefile.am): Likewise.
27466         * modules/save-cwd (Makefile.am): Likewise.
27467         * modules/savedir (Makefile.am): Likewise.
27468         * modules/setenv (Makefile.am): Likewise.
27469         * modules/settime (Makefile.am): Likewise.
27470         * modules/sha1 (Makefile.am): Likewise.
27471         * modules/sig2str (Makefile.am): Likewise.
27472         * modules/snprintf (Makefile.am): Likewise.
27473         * modules/stat-macros (Makefile.am): Likewise.
27474         * modules/stat-time (Makefile.am): Likewise.
27475         * modules/stdbool (Makefile.am): Likewise.
27476         * modules/stdint (Makefile.am): Likewise.
27477         * modules/stdlib-safer (Makefile.am): Likewise.
27478         * modules/stpcpy (Makefile.am): Likewise.
27479         * modules/stpncpy (Makefile.am): Likewise.
27480         * modules/strcase (Makefile.am): Likewise.
27481         * modules/strcasestr (Makefile.am): Likewise.
27482         * modules/strchrnul (Makefile.am): Likewise.
27483         * modules/strcspn (Makefile.am): Likewise.
27484         * modules/strdup (Makefile.am): Likewise.
27485         * modules/strerror (Makefile.am): Likewise.
27486         * modules/strftime (Makefile.am): Likewise.
27487         * modules/strndup (Makefile.am): Likewise.
27488         * modules/strnlen (Makefile.am): Likewise.
27489         * modules/strpbrk (Makefile.am): Likewise.
27490         * modules/strsep (Makefile.am): Likewise.
27491         * modules/strstr (Makefile.am): Likewise.
27492         * modules/strtod (Makefile.am): Likewise.
27493         * modules/strtoimax (Makefile.am): Likewise.
27494         * modules/strtok_r (Makefile.am): Likewise.
27495         * modules/strtol (Makefile.am): Likewise.
27496         * modules/strtoll (Makefile.am): Likewise.
27497         * modules/strtoul (Makefile.am): Likewise.
27498         * modules/strtoull (Makefile.am): Likewise.
27499         * modules/strtoumax (Makefile.am): Likewise.
27500         * modules/strverscmp (Makefile.am): Likewise.
27501         * modules/sys_socket (Makefile.am): Likewise.
27502         * modules/sys_stat (Makefile.am): Likewise.
27503         * modules/sysexits (Makefile.am): Likewise.
27504         * modules/time_r (Makefile.am): Likewise.
27505         * modules/timegm (Makefile.am): Likewise.
27506         * modules/timespec (Makefile.am): Likewise.
27507         * modules/tmpfile-safer (Makefile.am): Likewise.
27508         * modules/trim (Makefile.am): Likewise.
27509         * modules/unistd-safer (Makefile.am): Likewise.
27510         * modules/unlinkdir (Makefile.am): Likewise.
27511         * modules/unlocked-io (Makefile.am): Likewise.
27512         * modules/userspec (Makefile.am): Likewise.
27513         * modules/utime (Makefile.am): Likewise.
27514         * modules/utimecmp (Makefile.am): Likewise.
27515         * modules/utimens (Makefile.am): Likewise.
27516         * modules/vasnprintf (Makefile.am): Likewise.
27517         * modules/vasprintf (Makefile.am): Likewise.
27518         * modules/vsnprintf (Makefile.am): Likewise.
27519         * modules/xalloc (Makefile.am): Likewise.
27520         * modules/xgetcwd (Makefile.am): Likewise.
27521         * modules/xnanosleep (Makefile.am): Likewise.
27522         * modules/xreadlink (Makefile.am): Likewise.
27523         * modules/xstrtod (Makefile.am): Likewise.
27524         * modules/xstrtol (Makefile.am): Likewise.
27525         * modules/xstrtold (Makefile.am): Likewise.
27526         * modules/yesno (Makefile.am): Likewise.
27527         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
27528
27529 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
27530
27531         * modules/error (Makefile.am): Distribute files through
27532         EXTRA_DIST, not lib_SOURCES.
27533
27534 2006-10-12  Eric Blake  <ebb9@byu.net>
27535
27536         * modules/error (Makefile.am): Distribute files in /lib.
27537         * modules/obstack (Makefile.am): Likewise.
27538
27539 2006-10-12  Bruno Haible  <bruno@clisp.org>
27540
27541         * modules/acl (Makefile.am): Distribute all files in lib/ through
27542         EXTRA_DIST.
27543         * modules/arcfour (Makefile.am): Likewise.
27544         * modules/arctwo (Makefile.am): Likewise.
27545         * modules/argmatch (Makefile.am): Likewise.
27546         * modules/argz (Makefile.am): Likewise.
27547         * modules/atexit (Makefile.am): Likewise.
27548         * modules/backupfile (Makefile.am): Likewise.
27549         * modules/c-strtod (Makefile.am): Likewise.
27550         * modules/c-strtold (Makefile.am): Likewise.
27551         * modules/calloc (Makefile.am): Likewise.
27552         * modules/canon-host (Makefile.am): Likewise.
27553         * modules/canonicalize (Makefile.am): Likewise.
27554         * modules/chdir-long (Makefile.am): Likewise.
27555         * modules/chdir-safer (Makefile.am): Likewise.
27556         * modules/check-version (Makefile.am): Likewise.
27557         * modules/chown (Makefile.am): Likewise.
27558         * modules/cloexec (Makefile.am): Likewise.
27559         * modules/close-stream (Makefile.am): Likewise.
27560         * modules/closeout (Makefile.am): Likewise.
27561         * modules/crc (Makefile.am): Likewise.
27562         * modules/cycle-check (Makefile.am): Likewise.
27563         * modules/des (Makefile.am): Likewise.
27564         * modules/dirfd (Makefile.am): Likewise.
27565         * modules/dirname (Makefile.am): Likewise.
27566         * modules/dup2 (Makefile.am): Likewise.
27567         * modules/euidaccess (Makefile.am): Likewise.
27568         * modules/exclude (Makefile.am): Likewise.
27569         * modules/exitfail (Makefile.am): Likewise.
27570         * modules/fcntl-safer (Makefile.am): Likewise.
27571         * modules/file-type (Makefile.am): Likewise.
27572         * modules/fileblocks (Makefile.am): Likewise.
27573         * modules/filemode (Makefile.am): Likewise.
27574         * modules/filenamecat (Makefile.am): Likewise.
27575         * modules/fnmatch (Makefile.am): Likewise.
27576         * modules/fopen-safer (Makefile.am): Likewise.
27577         * modules/fpending (Makefile.am): Likewise.
27578         * modules/fprintftime (Makefile.am): Likewise.
27579         * modules/free (Makefile.am): Likewise.
27580         * modules/fsusage (Makefile.am): Likewise.
27581         * modules/ftruncate (Makefile.am): Likewise.
27582         * modules/fts (Makefile.am): Likewise.
27583         * modules/gc (Makefile.am): Likewise.
27584         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
27585         * modules/getaddrinfo (Makefile.am): Likewise.
27586         * modules/getcwd (Makefile.am): Likewise.
27587         * modules/getdelim (Makefile.am): Likewise.
27588         * modules/getdomainname (Makefile.am): Likewise.
27589         * modules/getgroups (Makefile.am): Likewise.
27590         * modules/gethostname (Makefile.am): Likewise.
27591         * modules/gethrxtime (Makefile.am): Likewise.
27592         * modules/getline (Makefile.am): Likewise.
27593         * modules/getloadavg (Makefile.am): Likewise.
27594         * modules/getlogin_r (Makefile.am): Likewise.
27595         * modules/getopt (Makefile.am): Likewise.
27596         * modules/getpass (Makefile.am): Likewise.
27597         * modules/getpass-gnu (Makefile.am): Likewise.
27598         * modules/getsubopt (Makefile.am): Likewise.
27599         * modules/gettime (Makefile.am): Likewise.
27600         * modules/gettimeofday (Makefile.am): Likewise.
27601         * modules/getugroups (Makefile.am): Likewise.
27602         * modules/getusershell (Makefile.am): Likewise.
27603         * modules/glob (Makefile.am): Likewise.
27604         * modules/group-member (Makefile.am): Likewise.
27605         * modules/hard-locale (Makefile.am): Likewise.
27606         * modules/hash (Makefile.am): Likewise.
27607         * modules/hmac-md5 (Makefile.am): Likewise.
27608         * modules/hmac-sha1 (Makefile.am): Likewise.
27609         * modules/human (Makefile.am): Likewise.
27610         * modules/idcache (Makefile.am): Likewise.
27611         * modules/imaxabs (Makefile.am): Likewise.
27612         * modules/imaxdiv (Makefile.am): Likewise.
27613         * modules/inet_ntop (Makefile.am): Likewise.
27614         * modules/inet_pton (Makefile.am): Likewise.
27615         * modules/inttostr (Makefile.am): Likewise.
27616         * modules/isapipe (Makefile.am): Likewise.
27617         * modules/lchown (Makefile.am): Likewise.
27618         * modules/long-options (Makefile.am): Likewise.
27619         * modules/lstat (Makefile.am): Likewise.
27620         * modules/malloc (Makefile.am): Likewise.
27621         * modules/mathl (Makefile.am): Likewise.
27622         * modules/mbchar (Makefile.am): Likewise.
27623         * modules/md2 (Makefile.am): Likewise.
27624         * modules/md4 (Makefile.am): Likewise.
27625         * modules/md5 (Makefile.am): Likewise.
27626         * modules/memcasecmp (Makefile.am): Likewise.
27627         * modules/memchr (Makefile.am): Likewise.
27628         * modules/memcmp (Makefile.am): Likewise.
27629         * modules/memcoll (Makefile.am): Likewise.
27630         * modules/memcpy (Makefile.am): Likewise.
27631         * modules/memmem (Makefile.am): Likewise.
27632         * modules/memmove (Makefile.am): Likewise.
27633         * modules/mempcpy (Makefile.am): Likewise.
27634         * modules/memrchr (Makefile.am): Likewise.
27635         * modules/memset (Makefile.am): Likewise.
27636         * modules/memxor (Makefile.am): Likewise.
27637         * modules/mkancesdirs (Makefile.am): Likewise.
27638         * modules/mkdir (Makefile.am): Likewise.
27639         * modules/mkdir-p (Makefile.am): Likewise.
27640         * modules/mkdtemp (Makefile.am): Likewise.
27641         * modules/mkstemp (Makefile.am): Likewise.
27642         * modules/mktime (Makefile.am): Likewise.
27643         * modules/modechange (Makefile.am): Likewise.
27644         * modules/mountlist (Makefile.am): Likewise.
27645         * modules/nanosleep (Makefile.am): Likewise.
27646         * modules/openat (Makefile.am): Likewise.
27647         * modules/pagealign_alloc (Makefile.am): Likewise.
27648         * modules/physmem (Makefile.am): Likewise.
27649         * modules/poll (Makefile.am): Likewise.
27650         * modules/posixtm (Makefile.am): Likewise.
27651         * modules/posixver (Makefile.am): Likewise.
27652         * modules/putenv (Makefile.am): Likewise.
27653         * modules/quote (Makefile.am): Likewise.
27654         * modules/quotearg (Makefile.am): Likewise.
27655         * modules/raise (Makefile.am): Likewise.
27656         * modules/read-file (Makefile.am): Likewise.
27657         * modules/readline (Makefile.am): Likewise.
27658         * modules/readlink (Makefile.am): Likewise.
27659         * modules/readtokens (Makefile.am): Likewise.
27660         * modules/readutmp (Makefile.am): Likewise.
27661         * modules/realloc (Makefile.am): Likewise.
27662         * modules/regex (Makefile.am): Likewise.
27663         * modules/rename (Makefile.am): Likewise.
27664         * modules/rename-dest-slash (Makefile.am): Likewise.
27665         * modules/rijndael (Makefile.am): Likewise.
27666         * modules/rmdir (Makefile.am): Likewise.
27667         * modules/rpmatch (Makefile.am): Likewise.
27668         * modules/safe-read (Makefile.am): Likewise.
27669         * modules/safe-write (Makefile.am): Likewise.
27670         * modules/same (Makefile.am): Likewise.
27671         * modules/save-cwd (Makefile.am): Likewise.
27672         * modules/savedir (Makefile.am): Likewise.
27673         * modules/setenv (Makefile.am): Likewise.
27674         * modules/settime (Makefile.am): Likewise.
27675         * modules/sha1 (Makefile.am): Likewise.
27676         * modules/sig2str (Makefile.am): Likewise.
27677         * modules/snprintf (Makefile.am): Likewise.
27678         * modules/stdlib-safer (Makefile.am): Likewise.
27679         * modules/stpcpy (Makefile.am): Likewise.
27680         * modules/stpncpy (Makefile.am): Likewise.
27681         * modules/strcase (Makefile.am): Likewise.
27682         * modules/strcasestr (Makefile.am): Likewise.
27683         * modules/strchrnul (Makefile.am): Likewise.
27684         * modules/strcspn (Makefile.am): Likewise.
27685         * modules/strdup (Makefile.am): Likewise.
27686         * modules/strerror (Makefile.am): Likewise.
27687         * modules/strftime (Makefile.am): Likewise.
27688         * modules/strndup (Makefile.am): Likewise.
27689         * modules/strnlen (Makefile.am): Likewise.
27690         * modules/strpbrk (Makefile.am): Likewise.
27691         * modules/strsep (Makefile.am): Likewise.
27692         * modules/strstr (Makefile.am): Likewise.
27693         * modules/strtod (Makefile.am): Likewise.
27694         * modules/strtoimax (Makefile.am): Likewise.
27695         * modules/strtok_r (Makefile.am): Likewise.
27696         * modules/strtol (Makefile.am): Likewise.
27697         * modules/strtoll (Makefile.am): Likewise.
27698         * modules/strtoul (Makefile.am): Likewise.
27699         * modules/strtoull (Makefile.am): Likewise.
27700         * modules/strtoumax (Makefile.am): Likewise.
27701         * modules/strverscmp (Makefile.am): Likewise.
27702         * modules/time_r (Makefile.am): Likewise.
27703         * modules/timegm (Makefile.am): Likewise.
27704         * modules/tmpfile-safer (Makefile.am): Likewise.
27705         * modules/unistd-safer (Makefile.am): Likewise.
27706         * modules/unlinkdir (Makefile.am): Likewise.
27707         * modules/userspec (Makefile.am): Likewise.
27708         * modules/utime (Makefile.am): Likewise.
27709         * modules/utimecmp (Makefile.am): Likewise.
27710         * modules/utimens (Makefile.am): Likewise.
27711         * modules/vasnprintf (Makefile.am): Likewise.
27712         * modules/vasprintf (Makefile.am): Likewise.
27713         * modules/vsnprintf (Makefile.am): Likewise.
27714         * modules/xalloc (Makefile.am): Likewise.
27715         * modules/xgetcwd (Makefile.am): Likewise.
27716         * modules/xnanosleep (Makefile.am): Likewise.
27717         * modules/xreadlink (Makefile.am): Likewise.
27718         * modules/xstrtod (Makefile.am): Likewise.
27719         * modules/xstrtol (Makefile.am): Likewise.
27720         * modules/xstrtold (Makefile.am): Likewise.
27721         * modules/yesno (Makefile.am): Likewise.
27722
27723 2006-10-12  Jim Meyering  <jim@meyering.net>
27724
27725         * m4/getloadavg.m4: Revert the change below.
27726
27727         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
27728         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
27729         fail with a symlink, which is what coreutils' ./bootstrap now
27730         creates by default.
27731
27732 2006-10-12  Bruno Haible  <bruno@clisp.org>
27733
27734         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
27735         mingw.
27736         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
27737         MSVC and mingw explicitly.
27738
27739 2006-10-11  Simon Josefsson  <jas@extundo.com>
27740             Bruno Haible  <bruno@clisp.org>
27741
27742         Add support for multiple gnulib-tool invocations in the scope of a
27743         single configure.ac file.
27744         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
27745         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
27746         with the same contents as the _LIBADD variable.
27747         (func_emit_initmacro_start, func_emit_initmacro_end,
27748         func_emit_initmacro_done): New functions.
27749         (func_import, func_create_testdir): Invoke them. Allow the identifiers
27750         gl_LIBOBJS and gl_LTLIBOBJS.
27751
27752 2006-10-11  Bruno Haible  <bruno@clisp.org>
27753
27754         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
27755         (func_create_testdir): Don't create po/Makefile.am, don't invoke
27756         autoreconf. Instead, invoke autopoint explicitly but move back the
27757         *.m4 files from gnulib.
27758
27759 2006-10-11  Bruno Haible  <bruno@clisp.org>
27760
27761         * gnulib-tool (func_usage): Make module names after --create-testdir
27762         optional.
27763         (func_create_testdir): If no module was specified, use nearly all
27764         modules.
27765
27766 2006-10-12  Jim Meyering  <jim@meyering.net>
27767
27768         Big performance improvement for fts-based tools that use FTS_NOSTAT.
27769         Avoid spurious inode-mismatch problems on non-POSIX file systems.
27770         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
27771         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
27772         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
27773         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
27774         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
27775         (fts_set_stat_required): New function.
27776         (fts_open): Defer the calls to fts_stat, if possible or requested.
27777         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
27778         into fts_stat itself.
27779         (fts_read): Perform any required (deferred) fts_stat call.
27780         (fts_build): Likewise, for the directory we're about to open and read.
27781         In the readdir loop, carefully decide whether each entry will require
27782         an eventual call to fts_stat, using dirent.d_type info if available.
27783         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
27784         a command line argument into this function.  Update all callers.
27785         Map a return value of FTS_DOT to FTS_D for a command line argument.
27786         * modules/fts (Depends-on): Add d-type.  Alphabetize.
27787         Thanks to Miklos Szeredi for his tenacity and for the initial
27788         bug report about "find" failing on a FUSE-based file system.
27789
27790         * lib/fts.c (fts_open): Use consistent indentation.
27791
27792 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
27793
27794         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
27795         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
27796         reported by Jim Meyering.  All uses of cache variables renamed
27797         to match Autoconf's.
27798         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
27799         the other one.
27800
27801         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
27802         Fix misspelling in diagnostic.
27803
27804 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27805
27806         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
27807         defined.  Problem reported by Matthew Woehlke.
27808
27809         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
27810         Add support for Tandem NonStop R series.
27811         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
27812         Use new macro.
27813
27814         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
27815         (has_trailing_slash): Omit size arg; all callers changed.
27816         Omit 'inline', since it doesn't help performance and we'd
27817         need to configure it.
27818         Don't count //, ///, etc. as having a trailing slash.
27819         As a side effect, this removes a C99ism reported by Matthew Woehlke.
27820         (rpl_rename_dest_slash): On failure, use rename's errno rather
27821         than (in some cases) an incorrect or junk errno.
27822         Simplify code by removing need to compute length; this does
27823         cause it to make two passes instead of one over the file name,
27824         but it's worth it.
27825
27826         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
27827         change, since Autoconf's version may no longer be appropriate now
27828         that we are using CVS Autoconf's version.  Add support for Tandem.
27829
27830 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27831             Bruno Haible  <bruno@clisp.org>
27832
27833         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
27834         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
27835         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
27836         gl_AC_TYPE_LONG_LONG.
27837
27838         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
27839         instead of HAVE_LONG_LONG.
27840         * lib/printf-args.c (printf_fetchargs): Likewise.
27841         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
27842         * lib/vasnprintf.c (VASNPRINTF): Likewise.
27843         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
27844         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
27845         gl_AC_TYPE_LONG_LONG.
27846
27847 2006-10-11  Bruno Haible  <bruno@clisp.org>
27848
27849         * m4/longlong.m4: Add comments.
27850         * m4/ulonglong.m4: Likewise.
27851
27852 2006-10-10  Bruno Haible  <bruno@clisp.org>
27853
27854         Make it possible to #define stpcpy, strdup to aliases.
27855         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
27856         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
27857
27858 2006-10-10  Bruno Haible  <bruno@clisp.org>
27859
27860         Make it possible to #define gcd to an alias.
27861         * lib/gcd.c: Include config.h.
27862
27863 2006-10-10  Bruno Haible  <bruno@clisp.org>
27864
27865         Make it possible to #define c_isascii to an alias.
27866         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
27867         defined. Undefine the macros before defining them, to avoid gcc
27868         warnings.
27869         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
27870         define NO_C_CTYPE_MACROS early.
27871
27872 2006-10-10  Bruno Haible  <bruno@clisp.org>
27873
27874         Make it possible to #define set_program_name to an alias.
27875         * lib/progname.c: Don't undefine set_program_name; instead, undefine
27876         ENABLE_RELOCATABLE early.
27877
27878 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27879
27880         Port to Tandem NSK OSS, which has 64-bit signed int but at most
27881         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
27882         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
27883         More generally, don't assume that 64-bit signed int is available
27884         if unsigned int is, and vice versa.
27885         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
27886         unsigned symbols, not on their signed counterparts.
27887         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
27888         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
27889         (UINT64_C, UINTMAX_C):
27890         Likewise.
27891         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
27892         unsigned counterparts.
27893         (Have_long_long, Unsigned): New macros.
27894         (Int): Renamed from INT.
27895         (strtoimax): Use the new macros.
27896         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
27897         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
27898         * modules/inttypes (inttypes.h): Substitute
27899         HAVE_UNSIGNED_LONG_LONG_INT.
27900         * modules/stdint (stdint.h): Likewise.
27901         (Files): Add m4/ulonglong.m4.
27902
27903 2006-10-10  Bruno Haible  <bruno@clisp.org>
27904
27905         Fix a gcc -Wshadow warning.
27906         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
27907         to 'bucket'.
27908         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
27909         gl_linked_indexof_from_to): Likewise.
27910         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
27911         Likewise.
27912         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
27913         Likewise.
27914         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
27915         Reported by Eric Blake.
27916
27917 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
27918
27919         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
27920         for NetBSD.  Problem reported by Bruno Haible.
27921
27922 2006-10-09  Jim Meyering  <jim@meyering.net>
27923
27924         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
27925         Patch from Bruno Haible.
27926
27927 2006-10-09  Jim Meyering  <jim@meyering.net>
27928
27929         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
27930         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
27931         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
27932
27933 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
27934
27935         Don't include <config.h> twice; this doesn't work in some cases,
27936         e.g., when config.h has "#define intmax_t long long int" and
27937         we include <config.h>, <inttypes.h>, <config.h> in that order.
27938         Problem reported by Matthew Woehlke in:
27939         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
27940         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
27941         * lib/fts-cycle.c: Don't include config.h.
27942         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
27943         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
27944         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
27945         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
27946         inttypes.h.
27947         * lib/xstrtoumax.c: Likewise.
27948         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
27949         __strtol and the like, so that this module is more like its siblings.
27950         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
27951         Remove; no longer needed now that we assume gnulib inttypes.h.
27952
27953 2006-10-08  Bruno Haible  <bruno@clisp.org>
27954
27955         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
27956         option.
27957
27958 2006-10-07  Jim Meyering  <jim@meyering.net>
27959
27960         * modules/inttypes (inttypes.h): Revert what seems to have been
27961         an inadvertent part of today's change: use "|", not "/" in the
27962         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
27963
27964 2006-10-07  Bruno Haible  <bruno@clisp.org>
27965
27966         * modules/sublist: New file.
27967
27968 2006-10-07  Bruno Haible  <bruno@clisp.org>
27969
27970         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
27971         * modules/argz (argz.h): Likewise.
27972         * modules/arpa_inet (arpa/inet.h): Likewise.
27973         * modules/byteswap (byteswap.h): Likewise.
27974         * modules/configmake (configmake.h): Likewise.
27975         * modules/fcntl (fcntl.h): Likewise.
27976         * modules/fnmatch (fnmatch.h): Likewise.
27977         * modules/getopt (getopt.h): Likewise.
27978         * modules/glob (glob.h): Likewise.
27979         * modules/inttypes (inttypes.h): Likewise.
27980         * modules/netinet_in (netinet/in.h): Likewise.
27981         * modules/poll (poll.h): Likewise.
27982         * modules/stdbool (stdbool.h): Likewise.
27983         * modules/stdint (stdint.h): Likewise.
27984         * modules/sys_select (sys/select.h): Likewise.
27985         * modules/sys_socket (sys/socket.h): Likewise.
27986         * modules/sys_stat (sys/stat.h): Likewise.
27987         * modules/sysexits (sysexits.h): Likewise.
27988         * modules/unistd (unistd.h): Likewise.
27989         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27990         Add a "DO NOT EDIT" comment to the generated file.
27991         (func_import): Likewise for gnulib-comp.m4.
27992
27993 2006-10-07  Bruno Haible  <bruno@clisp.org>
27994
27995         * lib/gl_sublist.h: New file.
27996         * lib/gl_sublist.c: New file.
27997
27998 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
27999
28000         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
28001         name (relative to the original working directory) and the file
28002         name component (relative to the temporary working directory).  All
28003         callers changed.
28004         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
28005         * lib/mkdir-p.c (make_dir_parents): Likewise.
28006         * lib/mkdir-p.h (make_dir_parents): Likewise.
28007
28008 2006-10-06  Eric Blake  <ebb9@byu.net>
28009
28010         Define several macros for use by the clean-temp module.
28011         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
28012         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
28013         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
28014
28015         * lib/clean-temp.h (close_stream_temp): New declaration.
28016         * lib/clean-temp.c (includes): Pull in headers according to what
28017         other modules are in use.
28018         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
28019
28020 2006-10-06  Bruno Haible  <bruno@clisp.org>
28021
28022         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
28023         instead of fopen, fwriteerror.
28024
28025 2006-10-06  Bruno Haible  <bruno@clisp.org>
28026
28027         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
28028         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
28029         int.
28030         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
28031         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
28032         Return an error indicator.
28033         Suggested by Eric Blake.
28034
28035 2006-10-06  Bruno Haible  <bruno@clisp.org>
28036
28037         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
28038         Reported by Eric Blake.
28039
28040 2006-10-06  Bruno Haible  <bruno@clisp.org>
28041
28042         * modules/closeout (Description): Mention stderr too.
28043
28044 2006-10-06  Bruno Haible  <bruno@clisp.org>
28045         and Paul Eggert  <eggert@cs.ucla.edu>
28046
28047         * lib/closeout.c (close_stdout): Also close stderr.
28048         * lib/closeout.h: Update comment.
28049
28050 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28051
28052         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
28053         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
28054         * lib/dirchownmod.c: Include lchown.h.
28055         * lib/lchown.c: Don't include files that lchown.h now includes.
28056         Don't declare chown, since lchown.h now does that.
28057         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
28058         (lchown): Define to rpl_chown if lchown is declared but
28059         does not exist.  Declare using a prototype if lchown is not
28060         declared.  Add a copyright notice.
28061         * lib/mkstemp.h: Include <unistd.h>.
28062         * lib/openat.c: Include lchown.h.
28063
28064         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
28065         we now test for that separately.
28066         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
28067         rather than O_NOFOLLOW, when testing whether it's possible to
28068         avoid a race condition reliably.
28069         * lib/savewd.c (savewd_chdir): Likewise.
28070
28071         Remove macros that are no longer needed now that stdint.h is
28072         reliable.
28073         * lib/fsusage.c (UINTMAX_MAX): Remove.
28074         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
28075         * lib/utimecmp.c (SIZE_MAX): Remove.
28076
28077         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
28078
28079         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
28080         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
28081         O_NOATIME works.
28082
28083 2006-10-05  Bruno Haible  <bruno@clisp.org>
28084
28085         * lib/gl_list.h (gl_sortedlist_search_from_to,
28086         gl_sortedlist_indexof_from_to): New declarations.
28087         (gl_list_implementation): New fields sortedlist_search_from_to,
28088         sortedlist_indexof_from_to.
28089         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
28090         inline functions.
28091         * lib/gl_list.c (gl_sortedlist_search_from_to,
28092         gl_sortedlist_indexof_from_to): New functions.
28093         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
28094         function.
28095         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
28096         (gl_array_sortedlist_search_from_to): New function.
28097         (gl_array_list_implementation): Update.
28098         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
28099         function.
28100         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
28101         (gl_carray_sortedlist_search_from_to): New function.
28102         (gl_carray_list_implementation): Update.
28103         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
28104         gl_linked_sortedlist_indexof_from_to): New functions.
28105         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
28106         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
28107         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
28108         gl_tree_sortedlist_indexof_from_to): New functions.
28109         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
28110         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
28111         Update.
28112         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
28113         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
28114         Update.
28115
28116 2006-10-05  Bruno Haible  <bruno@clisp.org>
28117
28118         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
28119         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
28120         (struct gl_list_implementation): Add fields search_from_to,
28121         indexof_from_to. Remove fields search, indexof.
28122         (gl_list_search): Use the search_from_to method.
28123         (gl_list_search_from, gl_list_search_from_to): New functions.
28124         (gl_list_indexof): Use the indexof_from_to method.
28125         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
28126         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
28127         (gl_list_search_from, gl_list_search_from_to): New functions.
28128         (gl_list_indexof): Use the indexof_from_to method.
28129         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
28130         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
28131         gl_array_indexof. Add start_index, end_index arguments.
28132         (gl_array_search_from_to): Renamed from gl_array_search. Add
28133         start_index, end_index arguments.
28134         (gl_array_remove, gl_array_list_implementation): Update.
28135         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
28136         gl_carray_indexof. Add start_index, end_index arguments.
28137         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
28138         start_index, end_index arguments.
28139         (gl_carray_remove, gl_carray_list_implementation): Update.
28140         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
28141         gl_linked_search. Add start_index, end_index arguments.
28142         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
28143         start_index, end_index arguments.
28144         (gl_linked_remove): Update.
28145         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
28146         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
28147         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
28148         field to 'size_t'.
28149         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
28150         gl_tree_search. Add start_index, end_index arguments.
28151         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
28152         start_index, end_index arguments.
28153         (gl_tree_remove): Update.
28154         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
28155         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
28156         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
28157         function.
28158         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
28159         gl_tree_search. Add start_index, end_index arguments.
28160         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
28161         start_index, end_index arguments.
28162         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
28163         Update.
28164         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
28165
28166 2006-10-05  Bruno Haible  <bruno@clisp.org>
28167
28168         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
28169
28170         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
28171         fwriteerror_temp): New declarations.
28172         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
28173         (descriptors): New variable.
28174         (cleanup): First, close the descriptors.
28175         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
28176         fclose_temp, fwriteerror_temp): New functions.
28177
28178 2006-10-04  Jim Meyering  <jim@meyering.net>
28179
28180         * lib/fts.c (fts_open): Tiny comment change.
28181
28182 2006-10-04  Bruno Haible  <bruno@clisp.org>
28183
28184         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
28185         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
28186         gl_LOCK_BODY.
28187         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
28188         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
28189         gl_LOCK_EARLY_BODY.
28190         (gl_LOCK): Require gl_LOCK_BODY.
28191
28192 2006-10-04  Bruno Haible  <bruno@clisp.org>
28193
28194         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
28195         (gl_oset_search_atleast): New declaration.
28196         (struct gl_oset_implementation): Add field 'search_atleast'.
28197         (gl_oset_search_atleast): New inline function.
28198         * lib/gl_oset.c (gl_oset_search_atleast): New function.
28199         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
28200         (gl_array_oset_implementation): Update.
28201         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
28202         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
28203         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
28204
28205 2006-10-04  Bruno Haible  <bruno@clisp.org>
28206
28207         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
28208
28209 2006-10-03  Bruno Haible  <bruno@clisp.org>
28210
28211         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
28212         from gl_avltreehash_list_implementation.
28213
28214 2006-10-03  Bruno Haible  <bruno@clisp.org>
28215
28216         * lib/gl_oset.c (gl_oset_add): Fix return type.
28217
28218 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
28219
28220         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
28221
28222 2006-10-02  Eric Blake  <ebb9@byu.net>
28223
28224         * modules/strnlen (Depends-on): Add extensions.
28225
28226 2006-10-02  Eric Blake  <ebb9@byu.net>
28227
28228         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
28229         definition in 2.60+.
28230
28231 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
28232
28233         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
28234         checks.
28235
28236 2006-10-02  Bruno Haible  <bruno@clisp.org>
28237
28238         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
28239         to the AUTOMAKE_OPTIONS.
28240         Reported by Jim Meyering.
28241
28242 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
28243
28244         Work around bug in Solaris 10 /proc file system:
28245         /proc/self/fd/NNN/.. isn't the parent directory of
28246         the directory whose file descriptor is NNN.  This needs to
28247         be worked around at run time, not compile time, since a
28248         program might be built on Solaris 8, where things work, and
28249         run on Solaris 10.
28250         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
28251         to use the following interface instead:
28252         (OPENAT_BUFFER_SIZE): New macro.
28253         (openat_proc_name): New function.
28254         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
28255         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
28256         Likewise.
28257         * lib/openat-proc.c: New file.
28258         * modules/openat (Files): Add lib/openat-proc.c.
28259         (Depends-on): Add same-inode, stdbool.
28260         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
28261
28262 2006-09-29  Bruno Haible  <bruno@clisp.org>
28263
28264         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
28265         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
28266         argument. Set stdout_closed before testing for ferror, not after.
28267         (fwriteerror, fwriteerror_no_ebadf): New functions.
28268
28269 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28270
28271         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
28272
28273 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
28274
28275         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
28276         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
28277
28278 2006-09-28  Jim Meyering  <jim@meyering.net>
28279
28280         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
28281         Include <unistd.h>.
28282
28283 2006-09-28  Bruno Haible  <bruno@clisp.org>
28284
28285         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
28286         * modules/linkedhash-list (Depends-on): Likewise.
28287         * modules/rbtreehash-list (Depends-on): Likewise.
28288
28289 2006-09-28  Bruno Haible  <bruno@clisp.org>
28290
28291         * lib/strndup.h: Simplify the redefinition of strndup.
28292         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
28293         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
28294
28295 2006-09-28  Bruno Haible  <bruno@clisp.org>
28296
28297         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
28298         * lib/gl_linkedhash_list.c: Likewise.
28299         * lib/gl_rbtreehash_list.c: Likewise.
28300
28301 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
28302
28303         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
28304         getaddrinfo.
28305
28306         * lib/__fpending.h: Don't include <stdio_ext.h> unless
28307         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
28308         it causes <stdio_ext.h> to cause a compile-time error.
28309         Problem reported by Nelson H. F. Beebe.
28310         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
28311         of HAVE_DECL___PENDING.
28312
28313         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
28314         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
28315         declaration.
28316
28317 2006-09-27  Jim Meyering  <jim@meyering.net>
28318
28319         This file could end up with a definition for a function
28320         named __strndup, rather than rpl_strndup on a system with
28321         incomplete weak_alias support.
28322         * lib/strndup.c (strndup): Rename from __strndup.
28323         Remove #defines that used to map __strndup to strndup.
28324         Don't use K&R prototypes.
28325         Remove LIBC-related code, since this file is not sync'd with glibc.
28326         * lib/strndup.h: Revamp, accordingly.
28327         * m4/strndup.m4: Modernize.
28328
28329 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
28330
28331         * modules/savewd (Depends-on): Add 'raise'.
28332         * lib/savewd.c: Include <signal.h>, for 'raise'.
28333
28334 2006-09-26  Jim Meyering  <jim@meyering.net>
28335
28336         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
28337         when we detect Darwin 8.7.0's acl_get_file bug.
28338         Rearrange to perform the new (below) run-test while $LIBS
28339         contains any acl-related library.  Set USE_ACL at the end.
28340         (gl_ACL_GET_FILE): New function.
28341
28342 2006-09-26  Eric Blake  <ebb9@byu.net>
28343
28344         * lib/verror.c: Include <config.h> unconditionally.
28345
28346 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28347
28348         * modules/clock-time (Maintainer): Add self.
28349         * modules/getlogin_r (Depends-on): Add extensions.
28350
28351 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28352
28353         * modules/clock-time: New module.
28354         * modules/nanosleep (Depends-on): Add clock-time.
28355         * modules/gethrxtime (Depends-on): Likewise.
28356         * modules/gettime (Depends-on): Likewise.
28357         * modules/settime (Depends-on): Likewise.
28358
28359         * modules/fts-lgpl: Depend on openat.
28360         * modules/mkancesdirs: Depend on savewd.
28361         * modules/mkdir-p: Likewise.
28362
28363 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28364
28365         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
28366
28367         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
28368         `gl_have_arbitrary_file_name_length_limit' to
28369         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
28370         actually works between configure runs.
28371
28372 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28373             Bruno Haible  <bruno@clisp.org>
28374
28375         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
28376
28377 2006-09-25  Jim Meyering  <jim@meyering.net>
28378
28379         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
28380         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
28381
28382 2006-09-25  Eric Blake  <ebb9@byu.net>
28383
28384         * gnulib-tool (func_import, func_create_testdir): Fix typos in
28385         exec's in 2006-09-18 patch when shuffling fds.
28386
28387 2006-09-25  Bruno Haible  <bruno@clisp.org>
28388
28389         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
28390         Reported by Jim Meyering.
28391
28392 2006-09-24  Jim Meyering  <jim@meyering.net>
28393
28394         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
28395         compare a pointer against a literal "0".  That caused failures with
28396         at least HP-UX's hpcc.
28397
28398 2006-09-22  Simon Josefsson  <jas@extundo.com>
28399
28400         * modules/gc-sha1:
28401         * modules/gc-md4:
28402         * modules/gc-hmac-sha1:
28403         * modules/gc-hmac-md5:
28404         * modules/gc-des:
28405         * modules/gc-arcfour: Distribute more files.
28406
28407 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28408
28409         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
28410         (gl_linked_iterator_from_to): Initialize struct completely.
28411         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
28412         (gl_tree_iterator_from_to): Likewise
28413         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
28414         * lib/gl_array_list.c [lint] (gl_array_iterator)
28415         (gl_array_iterator_from_to): Likewise.
28416         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
28417         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
28418         (gl_carray_iterator_from_to): Likewise.
28419
28420         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
28421         * lib/md4.c (md4_process_block): Remove unused variable.
28422         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
28423         parentheses for clarity.
28424
28425 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28426
28427         * modules/bison-i18n (Depends-on): Add gettext.
28428
28429 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28430
28431         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
28432         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
28433         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
28434         also add missing comma that caused broken test.
28435         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
28436         stdlib.h, for `abort'.
28437         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
28438         variables.
28439         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
28440         include unistd.h if present, for `rmdir'.
28441         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
28442         variables.
28443         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
28444         in the process include standard headers for prototypes.
28445         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
28446         gets declared on GNU/Linux.
28447         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
28448         unistd.h, for `rmdir'.
28449         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
28450
28451         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
28452         always true.
28453         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
28454
28455         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
28456
28457 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28458
28459         * gnulib-tool (func_version): Create output all at once.  This
28460         may help avoid triggering unnecessary SIGPIPEs, and at any
28461         rate it doesn't hurt.
28462
28463 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28464             Bruno Haible  <bruno@clisp.org>
28465
28466         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
28467         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28468         * m4/signed.m4 (bh_C_SIGNED): Likewise.
28469
28470         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
28471         (gl_FUNC_VASPRINTF): Invoke it.
28472
28473 2006-09-22  Bruno Haible  <bruno@clisp.org>
28474
28475         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
28476         getloadavg.c as first argument.
28477
28478 2006-09-22  Bruno Haible  <bruno@clisp.org>
28479
28480         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
28481         at the beginning of the gl_INIT macro.
28482         * modules/getloadavg (configure.ac): Pass $gl_source_base to
28483         gl_GETLOADAVG.
28484
28485 2006-09-22  Bruno Haible  <bruno@clisp.org>
28486
28487         * gnulib-tool (func_create_megatestdir): Don't include the config-h
28488         module.
28489         Suggested by Ralf Wildenhues.
28490
28491 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28492
28493         Import this patch from libc:
28494
28495         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
28496
28497         * lib/regex_internal.c (re_string_reconstruct): Handle
28498         offset < pstr->valid_raw_len && pstr->offsets_needed case.
28499         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
28500         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
28501         re_string_context_at.
28502
28503         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
28504         now requires it.
28505         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
28506         gl_REGEX now does it for us.
28507         (gl_REGEX): Add test taken from
28508         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
28509
28510         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
28511         Check that large offsets work.  Modernize Autoconf usages.
28512         Prefer "yes" to mean a good thing rather than a bad.
28513         Don't put "#define mkstemp" in config.h, as this might interfere
28514         with standard system headers that "#define mkstemp mkstemp64".
28515
28516         * modules/mkstemp (Depends-on): Add extensions, so that
28517         mkstemp is visible on some platforms.
28518         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
28519         (Include): Change to "mkstemp.h" from <stdlib.h>.
28520         (Files): Add mkstemp.h.
28521
28522         * lib/mkstemp.h: New file, since some standard headers
28523         #define mkstemp.
28524         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
28525         Include "mkstemp.h".
28526         Make the _LIBC code resemble glibc original more,
28527         e.g., use K&R style.
28528         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
28529         (mkstemp): Remove, since mkstemp.h does this for us.
28530         * lib/stdlib--.h: Include mkstemp.h.
28531
28532         Import this patch from libc:
28533
28534         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
28535
28536         * lib/tempname.c (__gen_tempname): Change attempts_min
28537         into a macro.  Use preprocessor to decide how to initialize
28538         attempts [Coverity CID 67].
28539
28540 2006-09-20  Bruno Haible  <bruno@clisp.org>
28541
28542         * lib/mkdtemp.c: Import from libc.
28543         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
28544                 * sysdeps/posix/tempname.c (__gen_tempname): Change
28545                 attempts_min into a macro.  Use preprocessor to decide how to
28546                 initialize attempts [Coverity CID 67].
28547         2001-11-27  Paul Eggert  <eggert@twinsun.com>
28548                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
28549                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
28550
28551 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28552
28553         * gnulib-tool (func_exit): New function, to allow to pass the
28554         exit status portably through the trap.  Use everywhere.
28555         (--help, --version): Signal a write error.
28556         (trap): catch SIGPIPE, for write errors.
28557         Exit at the end of the trap, with the correct exit status.
28558
28559 2006-09-19  Karl Berry  <karl@gnu.org>
28560
28561         * doc/gnulib.texi: note about the license texinfo files.
28562
28563 2006-09-19  Eric Blake  <ebb9@byu.net>
28564
28565         * gnulib-tool: Avoid space-tab.
28566
28567 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
28568
28569         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
28570         that prevented coreutils 6.1 from building.  Problem reported
28571         by Petter Reinholdtsen.
28572
28573 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
28574
28575         * gnulib-tool (avoidlist): Fix typo that broke options like
28576         --avoid=lock that are used by coreutils bootstrap.
28577
28578 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
28579
28580         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
28581         more systematically.
28582
28583 2006-09-18  Jim Meyering  <jim@meyering.net>
28584
28585         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
28586
28587 2006-09-18  Bruno Haible  <bruno@clisp.org>
28588
28589         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
28590
28591 2006-09-18  Bruno Haible  <bruno@clisp.org>
28592
28593         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
28594         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
28595         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
28596         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
28597         * m4/gettext.m4: Require autoconf >= 2.52.
28598         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
28599         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
28600         of gl_cv_header_inttypes_h.
28601
28602 2006-09-18  Bruno Haible  <bruno@clisp.org>
28603
28604         * lib/javaversion.c: Include configmake.h.
28605
28606 2006-09-18  Bruno Haible  <bruno@clisp.org>
28607
28608         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
28609         avoid that the while loops be executed in a subshell.
28610
28611 2006-09-18  Bruno Haible  <bruno@clisp.org>
28612
28613         * MODULES.html.sh (func_module): Break long lines.
28614         Suggested by Bruce Korb <bkorb@gnu.org>.
28615
28616 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28617
28618         Speed up by a factor of 1.12.
28619         * gnulib-tool (nl): New variable.
28620         (func_import): Rewrite include directive extraction to only read each
28621         directive once.
28622
28623 2006-09-17  Bruno Haible  <bruno@clisp.org>
28624
28625         * modules/javaversion (Makefile.am): Remove DEFS setting.
28626         (Depends-on): Add configmake, for PKGDATADIR definition.
28627
28628 2006-09-17  Bruno Haible  <bruno@clisp.org>
28629
28630         * gnulib-tool (func_create_testdir): Rewrite all files at once.
28631
28632 2006-09-17  Bruno Haible  <bruno@clisp.org>
28633
28634         * gnulib-tool (func_append): New function, stolen from libtool.m4.
28635         (func_modules_transitive_closure, func_modules_add_dummy,
28636         func_modules_to_filelist, func_import, func_create_testdir,
28637         func_create_megatestdir, ...): Use it wherever possible.
28638         Suggested by Ralf Wildenhues.
28639
28640 2006-09-16  Karl Berry  <karl@gnu.org>
28641
28642         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
28643         to avoid sectioning errors.
28644         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
28645         [ifinfo]: blank line after @center-ed titles.
28646         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
28647         Spell FSF address consistently with others.
28648         (These changes approved by rms.)
28649
28650 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28651
28652         Speed up by a factor of 1.61.
28653         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
28654         already checked module names again.
28655
28656 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28657
28658         Speed up by a factor of 1.13.
28659         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
28660         for new_files, and the input to func_add_or_update.
28661
28662 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28663
28664         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
28665         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
28666
28667 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28668
28669         * modules/mkancesdirs (Depends-on): Add fcntl.
28670         * modules/savewd: New file.
28671         * MODULES.html.sh (File system functions): Add savewd.
28672
28673         * modules/configmake (Makefile.am): Add support for the
28674         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
28675
28676 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28677
28678         * m4/savewd.m4: New file.
28679
28680 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
28681
28682         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
28683         (dirchownmod): New arg FD.  All callers changed.
28684         Use FD rather than opening the directory ourself, as opening is
28685         now the caller's responsibility.
28686         * lib/dirchownmod.h: Likewise.
28687         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
28688         hosts that require <sys/types.h> before <sys/stat.h>.  Include
28689         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
28690         (test_dir): Remove.
28691         (mkancesdirs): Return length of prefix of FILE that has already
28692         been made, or -2 if there is a child doing the work.  Redo
28693         algorithm so that it is O(N) rather than O(N**2).  Optimize away
28694         ".", and treat ".." specially since it might stray back into
28695         already-created areas.  Use a subprocess if necessary.  New arg
28696         WD; all users changed.  MAKE_DIR function should now return 1
28697         if it creates a directory that is not readable.  Return -2 if
28698         a child process is spun off.
28699         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
28700         Adjust signature to match code.
28701         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
28702         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
28703         all users changed.
28704         * lib/savewd.c, lib/savewd.h: New files.
28705
28706 2006-09-15  Jim Meyering  <jim@meyering.net>
28707
28708         * modules/rename-dest-slash: New module.
28709         * MODULES.html.sh (posix_compat): Add it here.
28710
28711         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
28712
28713 2006-09-15  Jim Meyering  <jim@meyering.net>
28714
28715         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
28716         file.
28717
28718         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
28719
28720 2006-09-15  Jim Meyering  <jim@meyering.net>
28721
28722         * lib/rename-dest-slash.c (has_trailing_slash): Use
28723         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
28724         (rpl_rename_dest_slash): Perform the cheaper trailing slash
28725         test before testing whether SRC is a directory.
28726         Suggestions from Bruno Haible.
28727
28728         Avoid a warning about an unused variable.
28729         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
28730         into the #ifdef block where it's used.
28731
28732         * lib/rename-dest-slash.c: New file.
28733
28734 2006-09-14  Bruno Haible  <bruno@clisp.org>
28735
28736         * lib/allocsa.c: Include <config.h> unconditionally.
28737         * lib/asnprintf.c: Likewise.
28738         * lib/asprintf.c: Likewise.
28739         * lib/c-strcasecmp.c: Likewise.
28740         * lib/c-strcasestr.c: Likewise.
28741         * lib/c-strncasecmp.c: Likewise.
28742         * lib/c-strstr.c: Likewise.
28743         * lib/classpath.c: Likewise.
28744         * lib/clean-temp.c: Likewise.
28745         * lib/concatpath.c: Likewise.
28746         * lib/copy-file.c: Likewise.
28747         * lib/csharpcomp.c: Likewise.
28748         * lib/csharpexec.c: Likewise.
28749         * lib/execute.c: Likewise.
28750         * lib/fatal-signal.c: Likewise.
28751         * lib/findprog.c: Likewise.
28752         * lib/fwriteerror.c: Likewise.
28753         * lib/gl_array_list.c: Likewise.
28754         * lib/gl_array_oset.c: Likewise.
28755         * lib/gl_avltree_list.c: Likewise.
28756         * lib/gl_avltree_oset.c: Likewise.
28757         * lib/gl_avltreehash_list.c: Likewise.
28758         * lib/gl_carray_list.c: Likewise.
28759         * lib/gl_linked_list.c: Likewise.
28760         * lib/gl_linkedhash_list.c: Likewise.
28761         * lib/gl_list.c: Likewise.
28762         * lib/gl_oset.c: Likewise.
28763         * lib/gl_rbtree_list.c: Likewise.
28764         * lib/gl_rbtree_oset.c: Likewise.
28765         * lib/gl_rbtreehash_list.c: Likewise.
28766         * lib/imaxabs.c: Likewise.
28767         * lib/imaxdiv.c: Likewise.
28768         * lib/javacomp.c: Likewise.
28769         * lib/javaexec.c: Likewise.
28770         * lib/javaversion.c: Likewise.
28771         * lib/linebreak.c: Likewise.
28772         * lib/localcharset.c: Likewise.
28773         * lib/lock.c: Likewise.
28774         * lib/mbchar.c: Likewise.
28775         * lib/mbswidth.c: Likewise.
28776         * lib/mkdtemp.c: Likewise.
28777         * lib/pipe.c: Likewise.
28778         * lib/printf-args.c: Likewise.
28779         * lib/printf-parse.c: Likewise.
28780         * lib/progname.c: Likewise.
28781         * lib/progreloc.c: Likewise.
28782         * lib/readlink.c: Likewise.
28783         * lib/sh-quote.c: Likewise.
28784         * lib/stpcpy.c: Likewise.
28785         * lib/stpncpy.c: Likewise.
28786         * lib/strcasecmp.c: Likewise.
28787         * lib/strcasestr.c: Likewise.
28788         * lib/strcspn.c: Likewise.
28789         * lib/striconv.c: Likewise.
28790         * lib/strncasecmp.c: Likewise.
28791         * lib/strnlen1.c: Likewise.
28792         * lib/strstr.c: Likewise.
28793         * lib/strtok_r.c: Likewise.
28794         * lib/tls.c: Likewise.
28795         * lib/tmpdir.c: Likewise.
28796         * lib/unicodeio.c: Likewise.
28797         * lib/unsetenv.c: Likewise.
28798         * lib/vasnprintf.c: Likewise.
28799         * lib/vasprintf.c: Likewise.
28800         * lib/wait-process.c: Likewise.
28801         * lib/xallocsa.c: Likewise.
28802         * lib/xsetenv.c: Likewise.
28803         * lib/xstriconv.c: Likewise.
28804
28805 2006-09-13  Simon Josefsson  <jas@extundo.com>
28806
28807         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
28808         that internally, suggested by Ralf Wildenhues
28809         <Ralf.Wildenhues@gmx.de>.
28810
28811 2006-09-13  Simon Josefsson  <jas@extundo.com>
28812
28813         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
28814         @LIBOBJS@.
28815         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28816
28817 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28818
28819         * lib/_fpending.c: Include <config.h> unconditionally, since we no
28820         longer worry about uses that don't define HAVE_CONFIG_H.
28821         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
28822         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
28823         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
28824         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
28825         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
28826         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
28827         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
28828         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
28829         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
28830         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
28831         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
28832         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
28833         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
28834         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
28835         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
28836         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
28837         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
28838         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
28839         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
28840         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
28841         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
28842         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
28843         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
28844         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
28845         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
28846         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
28847         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
28848         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
28849         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
28850         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
28851         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
28852         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
28853         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
28854         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
28855         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
28856         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
28857         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
28858         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
28859         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
28860         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
28861         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
28862         Likewise.
28863
28864 2006-09-13  Eric Blake  <ebb9@byu.net>
28865
28866         * lib/getopt.c: Fix typo in last commit.
28867
28868 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28869
28870         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
28871         dgettext.
28872
28873 2006-09-12  Jim Meyering  <jim@meyering.net>
28874
28875         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
28876         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
28877         Reported by Nelson H. F. Beebe.
28878
28879 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
28880
28881         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
28882         program_invocation_name and program_invocation_short_name are
28883         initialized.
28884         * lib/argp-namefrob.h: Move declarations of program_invocation_name
28885         and program_invocation_short_name to argp.h, so they are visible
28886         to user programs.
28887         * lib/argp.h: Likewise
28888
28889 2006-09-10  Bruno Haible  <bruno@clisp.org>
28890
28891         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
28892         m4/inttypes_h.m4, m4/uintmax_t.m4.
28893
28894 2006-09-10  Bruno Haible  <bruno@clisp.org>
28895
28896         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
28897         gl_AC_TYPE_UINTMAX_T.
28898
28899 2006-09-10  Bruno Haible  <bruno@clisp.org>
28900
28901         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
28902
28903 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
28904
28905         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
28906         convention.  Text proposed by Bruno Haible.
28907         (struct argp_option): Document the use of N_() wrappers.
28908
28909         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
28910         '\v', and translate the two parts separately, instead of feeding
28911         the whole string to gettext.  This allows to exclude
28912         '\v' from the strings visible to the translator by writing doc
28913         strings as N_("..") "\v" N_("..").
28914
28915 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
28916
28917         * config/srclist.txt: Undo latest change; the bug was fixed.
28918
28919 2006-09-09  Bruno Haible  <bruno@clisp.org>
28920
28921         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
28922         assignments if building a library without libtool.
28923         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
28924         in func_emit_lib_Makefile_am.
28925         (func_import): When building a static library libfoo.a, arrange to
28926         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
28927         (func_create_testdir): Likewise.
28928         * modules/gc (configure.ac, Makefile.am): If building statically,
28929         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
28930         * modules/iconvme (configure.ac, Makefile.am): Likewise.
28931         * modules/striconv (configure.ac, Makefile.am): Likewise.
28932         Based on a suggestion by Ralf Wildenhues.
28933
28934 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28935
28936         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
28937         Check for unistd.h too, since Autoconf doesn't assume POSIX.
28938         Also:
28939
28940         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28941         Add year_2050_test to catch glibc bug 2821
28942         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
28943
28944         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
28945         Prefer #ifdef to #if.
28946
28947         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
28948         Return from 'main' instead of calling 'exit'.
28949
28950 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28951
28952         * lib/mktime.c (guess_time_tm): Fix bug where mktime
28953         returned the maximum time_t value rather than (time_t) -1.
28954         Problem originally reported by William Bardwell
28955         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
28956
28957         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
28958         Moved to here ...
28959         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
28960         ... from here.
28961
28962 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
28963
28964         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
28965         2821 is fixed.
28966
28967 2006-09-08  Jim Meyering  <jim@meyering.net>
28968
28969         Don't make generated files read-only.  That would bother too many
28970         people.  However, do retain the ability to work when targets are
28971         read-only: remove the destination and temporary files before writing
28972         them (when generated via sed or echo), or by using the -f option for
28973         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
28974         * modules/alloca-opt, modules/argz, modules/arpa_inet:
28975         * modules/byteswap, modules/configmake, modules/fcntl:
28976         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
28977         * modules/localcharset, modules/netinet_in, modules/poll:
28978         * modules/stdbool, modules/stdint, modules/sys_select:
28979         * modules/sys_socket, modules/sys_stat, modules/sysexits:
28980
28981 2006-09-08  Jim Meyering  <jim@meyering.net>
28982
28983         Avoid new build failure on FreeBSD 6.0.
28984         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
28985         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
28986         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
28987
28988 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28989
28990         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
28991
28992 2006-09-07  Jim Meyering  <jim@meyering.net>
28993
28994         Fix global typo in last change: use chmod u-w, not chmod u-x.
28995         Spotted by Paul Eggert and Bruce Korb.
28996         * modules/alloca-opt, modules/argz, modules/arpa_inet:
28997         * modules/byteswap, modules/configmake, modules/fcntl:
28998         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
28999         * modules/localcharset, modules/netinet_in, modules/poll:
29000         * modules/stdbool, modules/stdint, modules/sys_select:
29001         * modules/sys_socket, modules/sys_stat, modules/sysexits:
29002
29003 2006-09-06  Jim Meyering  <jim@meyering.net>
29004
29005         Make generated files be read-only.
29006         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
29007         Ensure that each generated file is now read-only.
29008         * modules/argz: Likewise.
29009         * modules/arpa_inet: Likewise.
29010         * modules/byteswap: Likewise.
29011         * modules/configmake: Likewise.
29012         * modules/fcntl: Likewise.
29013         * modules/fnmatch: Likewise.
29014         * modules/getopt: Likewise.
29015         * modules/glob: Likewise.
29016         * modules/inttypes: Likewise.
29017         * modules/netinet_in: Likewise.
29018         * modules/poll: Likewise.
29019         * modules/stdbool: Likewise.
29020         * modules/stdint: Likewise.
29021         * modules/sys_select: Likewise.
29022         * modules/sys_socket: Likewise.
29023         * modules/sys_stat: Likewise.
29024         * modules/sysexits: Likewise.
29025         * modules/localcharset: Same as above, but continue using temporary
29026         file named "t-$@" (why different?) rather than the "$@-t" used
29027         everywhere else.
29028
29029         * modules/sysexits (Makefile.am): Replace literal occurrences
29030         of "sysexit.h" more readable, and more consistent, "$@".
29031
29032 2006-09-06  Bruno Haible  <bruno@clisp.org>
29033
29034         * modules/striconv: New file.
29035         * modules/xstriconv: New file.
29036         * MODULES.html.sh (Internationalization functions): Add striconv,
29037         xstriconv.
29038
29039 2006-09-06  Bruno Haible  <bruno@clisp.org>
29040
29041         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
29042         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
29043         not using libtool correctly.
29044
29045 2006-09-06  Bruno Haible  <bruno@clisp.org>
29046
29047         * lib/striconv.h: New file.
29048         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
29049         iconvstring.c.
29050         * lib/xstriconv.h: New file.
29051         * lib/xstriconv.c: New file.
29052
29053 2006-09-06  Bruno Haible  <bruno@clisp.org>
29054
29055         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
29056         lib_..._LDFLAGS.
29057
29058 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29059
29060         * lib/argz_.h: Sync from Libtool.
29061
29062         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
29063                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29064
29065         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
29066
29067 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
29068
29069         * modules/trim: New file.
29070
29071 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
29072
29073         * lib/trim.h: New file.
29074         * lib/trim.c: New file.
29075
29076 2006-09-05  Bruno Haible  <bruno@clisp.org>
29077
29078         * MODULES.html.sh (String handling): Add trim.
29079
29080 2006-09-04  Karl Berry  <karl@gnu.org>
29081
29082         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
29083         until next release.
29084
29085 2006-09-03  Bruno Haible  <bruno@clisp.org>
29086
29087         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
29088         correctly.
29089
29090 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29091
29092         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
29093         not gl_GETLOADAVG.  Omit unneeded semicolons.
29094         Problems reported by Ralf Wildenhues in
29095         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
29096         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
29097         at the end, which is the usual gnulib style.
29098
29099         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
29100         of doing all the work ourselves.
29101         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
29102         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
29103
29104 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29105
29106         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
29107         Problem reported by Ralf Wildenhues in
29108         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
29109
29110         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
29111         HAVE_STRUCT_STATFS_F_FSTYPENAME.
29112
29113 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29114
29115         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
29116         yesterday's patch by changing test -n to test -z.
29117
29118 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29119
29120         * modules/getloadavg (Files): Add m4/getloadavg.m4.
29121         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
29122         the former is now obsolescent.
29123
29124         * modules/chdir-long (Depends-on): Add fcntl.
29125
29126 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29127
29128         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
29129         obsolescent, and programs should use gnulib instead.
29130         * m4/getloadavg.m4: New file, with contents taken from Autoconf
29131         but with prefixes changed.
29132
29133 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29134
29135         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
29136         or stdbool.h, because they might not exist while configuring.
29137
29138         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
29139         Don't include unistd.h or limits.h; not needed, since chdir-long.h
29140         does that for us.
29141         (O_DIRECTORY): Remove.
29142
29143 2006-08-31  Eric Blake  <ebb9@byu.net>
29144
29145         * gnulib-tool: Don't let emacs change spaces to TAB.
29146
29147 2006-08-31  Bruno Haible  <bruno@clisp.org>
29148
29149         * gnulib-tool: When calling func_import more than once, do it in a
29150         subshell.
29151         Reported by Eric Blake <ebb9@byu.net>.
29152
29153 2006-08-31  Bruno Haible  <bruno@clisp.org>
29154
29155         * gnulib-tool (nl): Remove variable.
29156         (sed_transform_lib_file): Use more robust test for config-h module.
29157         (func_import): Fix typo in 2006-08-25 patch.
29158
29159 2006-08-31  Bruno Haible  <bruno@clisp.org>
29160
29161         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
29162         specified, augment Makefile.am variables instead of assigning them.
29163
29164 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29165
29166         Work around a bug in both the Linux and SunOS 64-bit kernels:
29167         nanosleep mishandles sleeps for longer than 2**31 seconds.
29168         Problem reported by Frank v Waveren in
29169         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
29170         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
29171         Check for nanosleep bug.
29172         (LIB_NANOSLEEP): Append clock_gettime library if needed.
29173
29174 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29175
29176         Work around a bug in both the Linux and SunOS 64-bit kernels:
29177         nanosleep mishandles sleeps for longer than 2**31 seconds.
29178         Problem reported by Frank v Waveren in
29179         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
29180         * lib/nanosleep.c (BILLION): New constant.
29181         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
29182         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
29183         implementation.
29184
29185 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29186
29187         * modules/nanosleep (Depends-on): Add gettime.
29188
29189 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29190         and Simon Josefsson  <jas@extundo.com>
29191         and Oskar Liljeblad  <oskar@osk.mine.nu>
29192
29193         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
29194         * gnulib-tool (func_import): New license type 'unmodifiable license
29195         text'.
29196         * modules/fdl: Use it.  Longer description.
29197         * module/gpl, module/lgpl: New files.
29198
29199 2006-08-30  Jim Meyering  <jim@meyering.net>
29200
29201         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
29202         shadowing the parameter.
29203
29204 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29205
29206         Sync from Libtool:
29207
29208         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29209
29210         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
29211         sharing with gnulib.  Report by Eric Blake.
29212
29213 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29214
29215         * modules/isapipe: New file.
29216         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
29217
29218 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29219
29220         * modules/configmake (Makefile.am): Add a comment, and omit
29221         the CONFIGMAKE_ prefix from generated macro names.  Suggested
29222         by Bruno Haible.
29223
29224 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29225
29226         * m4/isapipe.m4: New file.
29227
29228 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29229
29230         * lib/isapipe.c, lib/isapipe.h: New files.
29231
29232 2006-08-29  Jim Meyering  <jim@meyering.net>
29233
29234         * modules/configmake (Makefile.am): Make configmake.h depend on
29235         Makefile.  Otherwise, a stale configmake.h could hang around.
29236
29237 2006-08-29  Eric Blake  <ebb9@byu.net>
29238
29239         * lib/error.c (error_at_line, print_errno_message): Match libc, after
29240         resolution of upstream bug 3044.
29241
29242 2006-08-29  Bruno Haible  <bruno@clisp.org>
29243
29244         * modules/localcharset (Depends-on): Add configmake.
29245         (Makefile.am): Remove setting of LIBDIR through DEFS.
29246
29247 2006-08-29  Bruno Haible  <bruno@clisp.org>
29248
29249         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
29250         defined.
29251
29252 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29253
29254         * modules/fcntl: New file.
29255         * modules/chdir-safer (Depends-on): Add fcntl.
29256         * modules/fts: Likewise.
29257         * modules/mkdir-p: Likewise.
29258
29259         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
29260         This undoes the most recent change, since we're now addressing the
29261         problem in a different way.
29262
29263         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
29264         into output, since the output might be called Makefile.am even
29265         if $makefile_name is something different.
29266         (func_import): Use $makefile_am rather than
29267         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
29268         empty.
29269
29270         * modules/inttypes (Files): Add m4/inttypes-h.m4.
29271
29272 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29273
29274         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
29275         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
29276         recent change to stdint.m4, since we're now addressing the problem in a
29277         different way.
29278
29279 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29280
29281         * m4/fcntl_h.m4: New file.
29282
29283 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
29284
29285         * lib/fcntl_.h: New file.
29286         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
29287         the fcntl module.
29288         * lib/dirchownmod.c: Likewise.
29289         * lib/fts.c: Likewise.
29290
29291         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
29292         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
29293         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
29294         just before including <inttypes.h>, to avoid circular inclusion.
29295
29296 2006-08-28  Jim Meyering  <jim@meyering.net>
29297
29298         * doc/visibility.texi: Actually read and correct the grammar of the
29299         sentence affected by yesterday's change.
29300
29301 2006-08-28  Eric Blake  <ebb9@byu.net>
29302
29303         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
29304         needs wrapper.
29305
29306 2006-08-28  Eric Blake  <ebb9@byu.net>
29307
29308         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
29309
29310 2006-08-28  Eric Blake  <ebb9@byu.net>
29311
29312         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
29313
29314 2006-08-28  Bruno Haible  <bruno@clisp.org>
29315
29316         * modules/c-strstr: New file, from GNU gettext.
29317         * MODULES.html.sh (String handling): Add c-strstr.
29318
29319 2006-08-28  Bruno Haible  <bruno@clisp.org>
29320
29321         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
29322         macros.
29323         Reported by Eric Blake.
29324
29325 2006-08-28  Bruno Haible  <bruno@clisp.org>
29326
29327         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
29328         (VASNPRINTF): Return a string of length > INT_MAX without failing.
29329         * lib/vasprintf.c: Include errno.h, limits.h.
29330         (EOVERFLOW): New fallback definition.
29331         (vasprintf): Test here whether the string length is > INT_MAX.
29332         * lib/vsnprintf.c: Include errno.h, limits.h.
29333         (EOVERFLOW): New fallback definition.
29334         (vsnprintf): Fix bug when generated string was too long for the buffer.
29335         Test here whether the string length is > INT_MAX.
29336
29337 2006-08-28  Bruno Haible  <bruno@clisp.org>
29338
29339         * lib/inttypes_.h (SCNX*): Remove definitions.
29340         Reported by Eric Blake.
29341
29342 2006-08-28  Bruno Haible  <bruno@clisp.org>
29343
29344         * lib/c-strstr.h: New file, from GNU gettext.
29345         * lib/c-strstr.c: New file, from GNU gettext.
29346
29347 2006-08-28  Bruno Haible  <bruno@clisp.org>
29348
29349         * gnulib-tool: Reorder some statements.
29350
29351 2006-08-28  Bruno Haible  <bruno@clisp.org>
29352
29353         * gnulib-tool: New option --makefile-name.
29354         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
29355         $makefile_name.
29356         (func_import): Write $makefile_name to the cache file, and read it from
29357         there unless explicitly specified. Use $makefile_name as file name
29358         instead of Makefile.am. Adjust the recommendations accordingly.
29359
29360 2006-08-28  Bruno Haible  <bruno@clisp.org>
29361
29362         * gnulib-tool (func_verify_module): Check against misapplying patch.
29363
29364 2006-08-28  Bruno Haible  <bruno@clisp.org>
29365
29366         * gnulib-tool (func_relativize, func_relconcat): New functions.
29367         Give an error if --local-dir is given with --update.
29368         Remove trailing slashes from $local_gnulib_dir.
29369         (func_import): Store the relativized $local_gnulib_dir in
29370         gnulib-cache.m4, and read it from there if not specified explicitly.
29371
29372 2006-08-28  Bruno Haible  <bruno@clisp.org>
29373
29374         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
29375         is the current directory. Respect also $local_gnulib_dir.
29376
29377 2006-08-28  Bruno Haible  <bruno@clisp.org>
29378             Simon Josefsson  <jas@extundo.com>
29379
29380         BeOS portability.
29381         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
29382
29383 2006-08-27  Jim Meyering  <jim@meyering.net>
29384
29385         * doc/visibility.texi: Remove duplicate word: "pointer".
29386
29387 2006-08-26  Bruno Haible  <bruno@clisp.org>
29388
29389         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
29390         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
29391         (Makefile.am): Create inttypes.h from inttypes_.h.
29392         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
29393
29394         * modules/imaxabs: New file.
29395
29396         * modules/imaxdiv: New file.
29397
29398 2006-08-26  Bruno Haible  <bruno@clisp.org>
29399
29400         * m4/inttypes.m4: New file.
29401         * m4/_inttypes_h.m4: Remove file.
29402         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
29403         PRI_MACROS_BROKEN.
29404         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
29405
29406         * m4/imaxabs.m4: New file.
29407
29408         * m4/imaxdiv.m4: New file.
29409
29410 2006-08-26  Bruno Haible  <bruno@clisp.org>
29411
29412         * lib/inttypes_.h: New file.
29413         * lib/inttypes.h: Remove file.
29414         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
29415
29416         * lib/imaxabs.c: New file.
29417
29418         * lib/imaxdiv.c: New file.
29419
29420 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29421
29422         New config-h module, so that "make" output needn't be cluttered
29423         by -DHAVE_CONFIG_H.
29424         * MODULES.html.sh (Support for building libraries and executables):
29425         Add config-h.
29426         * modules/config-h: New file.
29427         * gnulib-tool (nl, sed_transform_lib_file): New vars.
29428         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
29429         the config-h module is used.
29430
29431         New configmake module, so that "make" output needn't be cluttered
29432         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
29433         * MODULES.html.sh (Support for building libraries and executables):
29434         Add configmake.
29435         * modules/configmake: New file.
29436
29437 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
29438
29439         * m4/config-h.m4: New file.
29440
29441 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29442
29443         * config/srclist.txt: Add elisp-comp.
29444
29445 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29446
29447         * MODULES.html.sh (Support for building libraries and executables):
29448         Add elisp-comp.
29449         * build-aux/elisp-comp: New file.
29450         * modules/elisp-comp: New file.
29451
29452 2006-08-24  Bruno Haible  <bruno@clisp.org>
29453
29454         * gnulib-tool (func_create_testdir): Use non-default values of
29455         sourcebase and m4base.
29456
29457 2006-08-24  Bruno Haible  <bruno@clisp.org>
29458
29459         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
29460         HTML structure.
29461
29462 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29463
29464         * modules/openat (Depends-on): Add lchown.
29465
29466 2006-08-23  Bruno Haible  <bruno@clisp.org>
29467
29468         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
29469         of gl_LOCK_EARLY instead of gl_LOCK.
29470
29471 2006-08-23  Bruno Haible  <bruno@clisp.org>
29472
29473         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
29474         on OSF/1 to no.
29475         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
29476
29477 2006-08-23  Bruno Haible  <bruno@clisp.org>
29478
29479         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
29480         as unusable.
29481
29482         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
29483         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
29484         (gl_LOCK): New macro.
29485
29486 2006-08-22  Simon Josefsson  <jas@extundo.com>
29487
29488         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
29489         to md5 module.
29490
29491 2006-08-22  Simon Josefsson  <jas@extundo.com>
29492
29493         * MODULES.html.sh: Add "Support for maintaining and release
29494         projects".
29495
29496         * build-aux/gnupload: New file, from coreutils.
29497
29498 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
29499
29500         Avoid the need for AC_LIBSOURCES in m4 macros.
29501         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
29502         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
29503         * modules/check-version (EXTRA_DIST): Add check-version.h.
29504         * modules/crc (EXTRA_DIST): Add crc.h.
29505         * modules/des (EXTRA_DIST): Add des.h.
29506         * modules/gc (EXTRA_DIST): Add gc.h.
29507         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
29508         * modules/getline (EXTRA_DIST): Add getline.h.
29509         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
29510         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
29511         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
29512         * modules/md2 (EXTRA_DIST): Add md2.h.
29513         * modules/md4 (EXTRA_DIST): Add md4.h.
29514         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
29515         * modules/read-file (EXTRA_DIST): Add read-file.h.
29516         * modules/readline (EXTRA_DIST): Add readline.h.
29517         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
29518         rijndael-api-fst.h.
29519
29520 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
29521
29522         * m4/rijndael.m4 (gl_ARCFOUR):
29523         * m4/arctwo.m4 (gl_ARCTWO):
29524         * m4/check-version.m4 (gl_CHECK_VERSION):
29525         * m4/crc.m4 (gl_CRC):
29526         * m4/des.m4 (gl_DES):
29527         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
29528         * m4/gc.m4 (gl_GC):
29529         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
29530         * m4/getline.m4 (gl_FUNC_GETLINE):
29531         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
29532         * m4/hmac-md5.m4 (gl_HMAC_MD5):
29533         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
29534         * m4/md2.m4 (gl_MD2):
29535         * m4/md4.m4 (gl_MD4):
29536         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
29537         * m4/read-file.m4 (gl_FUNC_READ_FILE):
29538         * m4/readline.m4 (gl_FUNC_READLINE):
29539         * m4/rijndael.m4 (gl_RIJNDAEL):
29540         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
29541         to get the necessary .h files and whatnot.
29542
29543 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
29544
29545         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
29546         gnulib rather than the other way around.
29547         * config/srclistvars.sh (COREUTILS): Remove.
29548
29549 2006-08-22  Jim Meyering  <jim@meyering.net>
29550
29551         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
29552
29553         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
29554
29555 2006-08-22  Eric Blake  <ebb9@byu.net>
29556
29557         * modules/regexprops-generic: New file.
29558         * MODULES.html.sh (Support for building documentation): List it.
29559
29560 2006-08-22  Eric Blake  <ebb9@byu.net>
29561
29562         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
29563         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29564         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
29565         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
29566
29567 2006-08-22  Bruno Haible  <bruno@clisp.org>
29568
29569         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
29570         and lib_LTLIBRARIES like the other lib_* variables.
29571
29572 2006-08-22  Bruno Haible  <bruno@clisp.org>
29573
29574         * build-aux/x-to-1.in: New file, from GNU gettext.
29575
29576 2006-08-22  Bruno Haible  <bruno@clisp.org>
29577
29578         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
29579         <utmpx.h> exists.
29580
29581 2006-08-22  Bruno Haible  <bruno@clisp.org>
29582
29583         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
29584         <utmpx.h> exists.
29585
29586 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
29587
29588         BeOS portability.
29589         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
29590         exist.
29591         Problem reported by Bruno Haible.
29592
29593 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
29594
29595         Avoid the need for AC_LIBSOURCES in m4 macros.
29596         * modules/acl (EXTRA_DIST): Add acl.h.
29597         * modules/argmatch (Files): Add m4/argmatch.m4.
29598         (configure.ac): Add gl_ARGMATCH.
29599         (EXTRA_DIST): Renamed from lib_SOURCES, for
29600         consistency with the other modules.  Remove argmatch.c.
29601         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
29602         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
29603         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
29604         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
29605         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
29606         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
29607         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
29608         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
29609         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
29610         * modules/closeout (EXTRA_DIST): Add closeout.h.
29611         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
29612         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
29613         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
29614         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
29615         dirname.h; remove basename.c and stripslash.c.
29616         * modules/exclude (EXTRA_DIST): Add exclude.h.
29617         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
29618         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
29619         * modules/file-type (EXTRA_DIST): Add file-type.h.
29620         * modules/filemode (EXTRA_DIST): Add filemode.h.
29621         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
29622         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
29623         * modules/fpending (EXTRA_DIST): Add __fpending.h.
29624         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
29625         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
29626         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
29627         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
29628         * modules/getdate (EXTRA_DIST): Add getdate.c.
29629         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
29630         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
29631         * modules/getpass (EXTRA_DIST): Add getpass.h.
29632         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
29633         * modules/group-member (EXTRA_DIST): Add group-member.h.
29634         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
29635         * modules/hash (EXTRA_DIST): Add hash.h.
29636         * modules/human (EXTRA_DIST): Add human.h.
29637         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
29638         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
29639         * modules/lchown (EXTRA_DIST): Add lchown.h.
29640         * modules/long-options (EXTRA_DIST): Add long-options.h.
29641         * modules/lstat (EXTRA_DIST): Add lstat.h.
29642         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
29643         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
29644         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
29645         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
29646         * modules/memxor (EXTRA_DIST): Add memxor.h.
29647         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
29648         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
29649         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
29650         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
29651         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
29652         * modules/physmem (EXTRA_DIST): Add physmem.h.
29653         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
29654         * modules/posixver (EXTRA_DIST): Add posixver.h.
29655         * modules/quote (EXTRA_DIST): Add quote.h.
29656         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
29657         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
29658         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
29659         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
29660         regex_internal.h regexec.c.
29661         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
29662         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
29663         * modules/same (EXTRA_DIST): Add same.h.
29664         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
29665         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
29666         * modules/savedir (EXTRA_DIST): Add savedir.h.
29667         * modules/sha1 (EXTRA_DIST): Add sha1.h.
29668         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
29669         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
29670         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
29671         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
29672         * modules/strdup (EXTRA_DIST): Add strdup.h.
29673         * modules/strftime (EXTRA_DIST): Add strftime.h.
29674         * modules/strndup (EXTRA_DIST): Add strndup.h.
29675         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
29676         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
29677         * modules/time_r (EXTRA_DIST): Add time_r.h.
29678         * modules/timespec (EXTRA_DIST): Add timespec.h.
29679         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
29680         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
29681         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
29682         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
29683         * modules/userspec (EXTRA_DIST): Add userspec.h.
29684         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
29685         * modules/utimens (EXTRA_DIST): Add utimens.h.
29686         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
29687         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
29688         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
29689         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
29690         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
29691         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
29692         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
29693         * modules/yesno (EXTRA_DIST): Add yesno.h.
29694
29695 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
29696
29697         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
29698
29699         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
29700         * m4/dev-ino.m4, same-inode.m4: Remove.
29701
29702         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
29703         * m4/acl.m4 (AC_FUNC_ACL):
29704         * m4/backupfile.m4 (gl_BACKUPFILE):
29705         * m4/c-strtod.m4 (gl_C99_STRTOLD):
29706         * m4/canon-host.m4 (gl_CANON_HOST):
29707         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
29708         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
29709         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
29710         * m4/cloexec.m4 (gl_CLOEXEC):
29711         * m4/close-stream.m4 (gl_CLOSE_STREAM):
29712         * m4/closeout.m4 (gl_CLOSEOUT):
29713         * m4/dirfd.m4 (gl_FUNC_DIRFD):
29714         * m4/dirname.m4 (gl_DIRNAME):
29715         * m4/exclude.m4 (gl_EXCLUDE):
29716         * m4/exitfail.m4 (gl_EXITFAIL):
29717         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
29718         * m4/file-type.m4 (gl_FILE_TYPE):
29719         * m4/filemode.m4 (gl_FILEMODE):
29720         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
29721         * m4/fpending.m4 (gl_FUNC_FPENDING):
29722         * m4/fprintftime.m4 (gl_FPRINTFTIME):
29723         * m4/fts.m4 (gl_FUNC_FTS):
29724         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
29725         * m4/getdate.m4 (gl_GETDATE):
29726         * m4/gethrxtime.m4 (gl_GETHRXTIME):
29727         * m4/getpagesize.m4 (gl_GETPAGESIZE):
29728         * m4/getpass.m4 (gl_FUNC_GETPASS):
29729         * m4/gettime.m4 (gl_GETTIME):
29730         * m4/getugroups.m4 (gl_GETUGROUPS):
29731         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
29732         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
29733         * m4/hard-locale.m4 (gl_HARD_LOCALE):
29734         * m4/hash.m4 (gl_HASH):
29735         * m4/idcache.m4 (gl_IDCACHE):
29736         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
29737         * m4/lchown.m4 (gl_FUNC_LCHOWN):
29738         * m4/long-options.m4 (gl_LONG_OPTIONS):
29739         * m4/lstat.m4 (gl_FUNC_LSTAT):
29740         * m4/md5.m4 (gl_MD5):
29741         * m4/memcasecmp.m4 (gl_MEMCASECMP):
29742         * m4/memcoll.m4 (gl_MEMCOLL):
29743         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
29744         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
29745         * m4/memxor.m4 (gl_MEMXOR):
29746         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
29747         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
29748         * m4/modechange.m4 (gl_MODECHANGE):
29749         * m4/mountlist.m4 (gl_MOUNTLIST):
29750         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
29751         * m4/openat.m4 (gl_FUNC_OPENAT):
29752         * m4/pathmax.m4 (gl_PATHMAX):
29753         * m4/physmem.m4 (gl_PHYSMEM):
29754         * m4/posixtm.m4 (gl_POSIXTM):
29755         * m4/posixver.m4 (gl_POSIXVER):
29756         * m4/quote.m4 (gl_QUOTE):
29757         * m4/quotearg.m4 (gl_QUOTEARG):
29758         * m4/readtokens.m4 (gl_READTOKENS):
29759         * m4/readutmp.m4 (gl_READUTMP):
29760         * m4/regex.m4 (gl_REGEX):
29761         * m4/safe-read.m4 (gl_SAFE_READ):
29762         * m4/safe-write.m4 (gl_SAFE_WRITE):
29763         * m4/same.m4 (gl_SAME):
29764         * m4/save-cwd.m4 (gl_SAVE_CWD):
29765         * m4/savedir.m4 (gl_SAVEDIR):
29766         * m4/settime.m4 (gl_SETTIME):
29767         * m4/sha1.m4 (gl_SHA1):
29768         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
29769         * m4/stat-macros.m4 (gl_STAT_MACROS):
29770         * m4/stat-time.m4 (gl_STAT_TIME):
29771         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
29772         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
29773         * m4/strdup.m4 (gl_FUNC_STRDUP):
29774         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
29775         * m4/strndup.m4 (gl_FUNC_STRNDUP):
29776         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
29777         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
29778         * m4/time_r.m4 (gl_TIME_R):
29779         * m4/timespec.m4 (gl_TIMESPEC):
29780         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
29781         * m4/unlinkdir.m4 (gl_UNLINKDIR):
29782         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
29783         * m4/userspec.m4 (gl_USERSPEC):
29784         * m4/utimecmp.m4 (gl_UTIMECMP):
29785         * m4/utimens.m4 (gl_UTIMENS):
29786         * m4/xalloc.m4 (gl_XALLOC):
29787         * m4/xgetcwd.m4 (gl_XGETCWD):
29788         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
29789         * m4/xreadlink.m4 (gl_XREADLINK):
29790         * m4/xstrtod.m4 (gl_XSTRTOD):
29791         * m4/yesno.m4 (gl_YESNO):
29792         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
29793         to get the necessary .h files and whatnot.
29794
29795 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
29796             Bruno Haible  <bruno@clisp.org>
29797
29798         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
29799         /bin/sh understanding of '!' conditional negation.
29800
29801 2006-08-21  Jim Meyering  <jim@meyering.net>
29802
29803         * modules/openat (Depends-on): Really alphabetize.
29804
29805         * modules/acl (Depends-on): Add error and quote.
29806
29807         * check-module (find_included_lib_files): Add at-func.c to the
29808         ok-to-include-more-than-once white list.
29809
29810         * modules/openat (Depends-on): Add lstat.  Alphabetize.
29811
29812 2006-08-21  Bruno Haible  <bruno@clisp.org>
29813
29814         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29815         Emit a pkgdata_DATA variable only if some snippets add contents to it.
29816         Reported by Martin Lambers <marlam@marlam.de>.
29817
29818 2006-08-21  Bruno Haible  <bruno@clisp.org>
29819
29820         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
29821         specify an installation location, don't emit a noinst_LIBRARIES or
29822         noinst_LTLIBRARIES assignment.
29823
29824 2006-08-21  Bruno Haible  <bruno@clisp.org>
29825
29826         BeOS portability.
29827         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
29828         BeOS has mbrtowc() but no <wctype.h>.
29829
29830 2006-08-21  Bruno Haible  <bruno@clisp.org>
29831
29832         BeOS portability.
29833         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
29834         exist.
29835
29836 2006-08-21  Bruno Haible  <bruno@clisp.org>
29837
29838         BeOS portability.
29839         * lib/mbchar.h: Include <wctype.h> only if it exists.
29840
29841 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29842
29843         Remove files that are no longer needed by their respective modules.
29844         * m4/obstack.m4: Remove.
29845         * m4/strerror_r.m4: Remove.
29846         * m4/uint32_t.m4: Remove.
29847         * m4/uintptr_t.m4: Remove.
29848         * m4/ullong_max.m4: Remove.
29849         * m4/xstrtoimax.m4: Remove.
29850         * m4/xstrtoumax.m4: Remove.
29851
29852         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
29853         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
29854         dependencies now capture this.
29855
29856         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
29857         Do not use AC_LIBSOURCES, since gnulib modules now do this.
29858         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
29859         * m4/human.m4 (gl_HUMAN): Likewise.
29860         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
29861         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
29862
29863         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
29864
29865         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
29866         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
29867         stdint.
29868         * m4/human.m4 (gl_HUMAN): Likewise.
29869         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
29870         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
29871         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
29872         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
29873         * m4/xstrtol (gl_XSTRTOL): Likewise.
29874
29875         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
29876         AC_TYPE_LONG_LONG_INT.
29877         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
29878         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
29879         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
29880         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
29881
29882         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
29883         on stdbool.
29884
29885         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
29886         (gl_PREREQ_XSTRTOUL): Remove.
29887
29888         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
29889
29890         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
29891         mode.
29892
29893 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29894
29895         Add and change modules to make it easier for coreutils to use
29896         gnulib-tool.
29897         * modules/backupfile (Files): Remove m4/d-ino.m4.
29898         (Depends-on): Add d-ino.
29899         * modules/cycle-check (Depends-on): Add stdint.
29900         (lib_SOURCES): Add cycle-check.h.
29901         * modules/d-ino: New module.
29902         * modules/d-type: New module.
29903         * modules/error (Files): Remove m4/strerror_r.m4.
29904         * modules/filemode (Files): Add m4/st_dm_mode.m4.
29905         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
29906         m4/inttypes_h.m4, m4/uintmax_t.m4.
29907         (Depends-on): Add stdint.
29908         (lib_SOURCES): Add fsusage.h.
29909         * modules/getcwd (Files): Remove d-ino.m4.
29910         (Depends-on): Add d-ino.
29911         * modules/getndelim2 (Depends-on): Add stdint.
29912         * modules/glob (Files): Remove m4/d-type.m4.
29913         (Depends-on): Add d-type.
29914         * modules/host-os: New module.
29915         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
29916         m4/inttypes_h.m4, m4/uintmax_t.m4.
29917         * Depends-on: Add stdint.
29918         (lib_SOURCES): Add human.h.
29919         * modules/inttostr (Files): Remove m4/intmax_t.m4,
29920         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
29921         m4/uintmax_t.m4, m4/ulonglong.m4.
29922         (Depends-on): Add stdint.
29923         (EXTRA_DIST): Add inttostr.h.
29924         * modules/lchmod: New module.
29925         * modules/link-follow: New module.
29926         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
29927         (Depends-on): Add lchmod.
29928         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
29929         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
29930         (Depends-on): Add stdint.
29931         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
29932         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
29933         (Depends-on): Add stdint.
29934         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
29935         * modules/perl: New module.
29936         * modules/regex (Depends-on): Add stdint.
29937         * modules/rmdir-errno: New module.
29938         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
29939         m4/intmax_t.m4.
29940         (Depends-on): Add stdint.
29941         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
29942         m4/uintmax_t.m4.
29943         (Depends-on): Add stdint.
29944         * modules/unlink-busy: New module.
29945         * modules/utimecmp (Depends-on): Add stdint.
29946         * modules/uptime: New module.
29947         * modules/winsz-ioctl: New module.
29948         * modules/winsz-termios: New module.
29949         * modules/xnanosleep (Depends-on): Add nanosleep.
29950         * modules/ullong_max: Remove.
29951         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
29952         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
29953         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
29954         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
29955         (Depends-on): Add inttypes.
29956         (lib_SOURCES): Add xstrtol.h.
29957         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
29958         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
29959         * MODULES.html.sh: Move 'assert' into the assert section.
29960         Move 'dummy' into the linking section.
29961         Remove ullong_max.
29962         Add section for compatibility checks for POSIX:2001 functions,
29963         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
29964         winsz-ioctl, and winsz-termios into it.
29965         Add lchmod.
29966         Add top-level Misc section and put host-os, perl, and uptime
29967         into it.
29968
29969 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
29970
29971         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
29972         now assume the stdint module.  Do not include inttypes.h.
29973         * lib/fsusage.h: Likewise.
29974         * lib/getndelim2.c: Likewise.
29975         * lib/human.h: Likewise.
29976         * lib/inttostr.h: Likewise.
29977         * lib/obstack.c: Likewise.
29978         * lib/regex_internal.h: Likewise.
29979         * lib/tempname.c: Likewise.
29980         * lib/utimecmp.c: Likewise.
29981         * lib/xstrtol.h: Likewise.
29982
29983         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
29984
29985         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
29986         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
29987         * lib/xtime.h: Likewise.
29988
29989 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29990
29991         * modules/openat (Files): Add lib/fchmodat.c.
29992         Fixes problem reported by Jay Youngman.
29993
29994 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29995
29996         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
29997         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
29998
29999 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
30000             Bruno Haible  <bruno@clisp.org>
30001
30002         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
30003         and is a script that invokes bison. Tighten the code. Add comments.
30004
30005 2006-08-18  Jim Meyering  <jim@meyering.net>
30006
30007         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
30008         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
30009         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
30010         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
30011
30012 2006-08-18  Bruno Haible  <bruno@clisp.org>
30013
30014         * modules/bison-i18n: New file.
30015         * MODULES.html.sh (Internationalization functions): Add it.
30016
30017 2006-08-18  Bruno Haible  <bruno@clisp.org>
30018
30019         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
30020         sys/statvfs.h. When getmntinfo was found, check its declaration and
30021         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
30022
30023 2006-08-18  Bruno Haible  <bruno@clisp.org>
30024
30025         * m4/bison-i18n.m4: New file, from bison.
30026
30027 2006-08-18  Bruno Haible  <bruno@clisp.org>
30028
30029         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
30030         (ME_DUMMY): Treat "kernfs" as a dummy.
30031         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
30032
30033 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
30034
30035         Update from coreutils.
30036
30037         2006-08-15  Jim Meyering  <jim@meyering.net>
30038
30039         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
30040
30041         2006-01-17  Jim Meyering  <jim@meyering.net>
30042
30043         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
30044
30045         2006-01-11  Jim Meyering  <jim@meyering.net>
30046
30047         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
30048         Check for the lchmod function.
30049
30050 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
30051
30052         Update from coreutils.
30053
30054         * lib/__fpending.h: Add copyright notice.
30055         * lib/fprintftime.h: Likewise.
30056         * lib/savedir.c: Use (C) in copyright notice.
30057         * lib/savedir.h: Likewise.
30058
30059         2006-08-15  Jim Meyering  <jim@meyering.net>
30060
30061         * lib/at-func.c: New file, with the logic of all emulated at-functions.
30062         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
30063         in support of the EXPECTED_ERRNO macro.
30064         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
30065         definitions.  Instead, define the appropriate symbols and include
30066         "at-func.c".
30067         * lib/mkdirat.c (mkdirat): Likewise.
30068         * lib/fchmodat.c (fchmodat): Likewise.
30069         (ENOSYS): Remove definition.
30070         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
30071         it.  Don't include "unistd--.h" -- it wasn't ever used.
30072
30073         2006-01-17  Jim Meyering  <jim@meyering.net>
30074
30075         Rewrite fts.c not to change the current working directory,
30076         by using openat, fstatat, fdopendir, etc..
30077
30078         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
30079         (HAVE_OPENAT_SUPPORT): Define.
30080         [_LIBC] (fchdir): Don't undef or define; no longer used.
30081         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
30082         Now, this `function' always succeeds, and consumes its file descriptor
30083         parameter -- so callers must not close such FDs.  Update callers.
30084         (diropen_fd, opendirat, cwd_advance_fd): New functions.
30085         (diropen): Add parameter, SP.  Adjust all callers.
30086         Implement using diropen_fd, rather than open.
30087         (fts_open): Initialize new member, fts_cwd_fd.
30088         Remove fts_rft-setting code.
30089         (fts_close): Close fts_cwd_fd, if necessary.
30090         (__opendir2): Define in terms of opendir or opendirat,
30091         depending on whether the FST_NOCHDIR flag is set.
30092         (fts_build): Since fts_safe_changedir consumes its FD, and since
30093         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
30094         and close the dup'd file descriptor upon failure.
30095         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
30096         (fts_safe_changedir): Tweak semantics to reflect that this function
30097         now calls cwd_advance_fd and hence consumes its FD argument.
30098         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
30099         [struct FTS] (fts_rft): Remove now-unused member.
30100         [struct FTS] (fts_cycle.state): Improve comment.
30101
30102         * lib/openat.c (openat_needs_fchdir): New function.
30103         * lib/openat.h (openat_needs_fchdir): Declare it.
30104
30105 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
30106
30107         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
30108         Problem and fix reported by Pádraig Brady in
30109         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
30110
30111 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30112
30113         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
30114
30115 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30116
30117         * lib/memcoll.c (memcoll): Optimize for the common case where the
30118         arguments are bytewise equal.
30119
30120 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30121
30122         * doc/regexprops-generic.texi: Add a copyright notice.
30123
30124 2006-08-15  Bruno Haible  <bruno@clisp.org>
30125
30126         * modules/tmpdir (License): Change to LGPL.
30127
30128 2006-08-15  Bruno Haible  <bruno@clisp.org>
30129
30130         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
30131         module.
30132
30133 2006-08-14  Simon Josefsson  <jas@extundo.com>
30134
30135         * config/srclist.txt: Add gnupload.
30136
30137 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30138
30139         Change copyright notice from LGPL 2 to GPL 2, since that's the
30140         standard form used in the gnulib repository.
30141         * tests/test-lock.c: Likewise.
30142         * tests/test-stdint.c: Likewise.
30143         * tests/test-tls.c: Likewise.
30144
30145         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
30146         prelude-manager.  User shorter URLs for GNU projects, without '?'.
30147         Add copyright notice.
30148
30149         * check-module: Add copyright notice.  Output a copyright
30150         notice if "--version" is specified.
30151         * modules/COPYING: New file.
30152         * tests/test-getaddrinfo.c: Add copyright notice.
30153         * tests/test-verify.c: Likewise.
30154
30155 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30156
30157         Change copyright notice from LGPL 2 to GPL 2, since that's the
30158         standard form used in the gnulib repository.
30159         * lib/lock.c: LGPL -> GPL.
30160         * lib/lock.h: Likewise.
30161         * lib/strnlen1.c: Likewise.
30162         * lib/strnlen1.h: Likewise.
30163         * lib/tls.c: Likewise.
30164         * lib/tls.h: Likewise.
30165         * lib/tmpdir.c: Likewise.
30166
30167         * lib/TODO: Remove; this belongs only in coreutils.
30168
30169 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30170
30171         Add copyright notices to long-enough files that lack them, since
30172         otherwise the files aren't clearly free.  Use the same notice that
30173         getdate.texi already uses.
30174         * doc/alloca-opt.texi: Add copyright notice.
30175         * doc/alloca.texi: Likewise.
30176         * doc/ctime.texi: Likewise.
30177         * doc/functions.texi: Likewise.
30178         * doc/gcd.texi: Likewise.
30179         * doc/gnulib-tool.texi: Likewise.
30180         * doc/inet_ntoa.texi: Likewise.
30181         * doc/visibility.texi: Likewise.
30182
30183         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
30184         * doc/quote.texi: Add copyright notice.
30185
30186         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
30187         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
30188         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
30189         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
30190         is now obsolete, and give a pointer to the Sun list.
30191         Add copyright notice.
30192
30193 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
30194
30195         * config/srclistvars.sh: Add copyright notice.
30196
30197 2006-08-14  Eric Blake  <ebb9@byu.net>
30198
30199         Import the following change from libc:
30200
30201         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
30202
30203         Upstream bug 2997.
30204         * lib/misc/error.c: Add space between program name and message if file
30205         name is missing.
30206
30207 2006-08-12  Karl Berry  <karl@gnu.org>
30208
30209         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
30210         remove, these originate in gnulib now.
30211
30212 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30213
30214         * doc/Makefile (standards.info standards.html standards.dvi):
30215         Also depend on make-stds.texi.
30216
30217 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
30218
30219         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
30220         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
30221
30222         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
30223         in wchar_t.  Problem reported by Eric Blake.
30224
30225         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
30226         LEN is smaller than SIZE.  Suggested by Bruno Haible.
30227         Also, help the compiler to keep LEN in a register.
30228
30229 2006-08-11  Eric Blake  <ebb9@byu.net>
30230
30231         * users.txt: Sort.  Add tar.
30232
30233 2006-08-11  Bruno Haible  <bruno@clisp.org>
30234
30235         * users.txt: New file.
30236
30237 2006-08-11  Bruno Haible  <bruno@clisp.org>
30238
30239         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
30240         before <wchar.h>. Needed for OSF/1 and BSD/OS.
30241
30242 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30243
30244         * modules/snprintf (Depends-on): Remove minmax.
30245         (Maintainer): Add self and Bruno.
30246
30247 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30248
30249         * lib/.cppi-disable: Add snprintf.h, socket_.h.
30250         * lib/snprintf.c: Include <errno.h> and <limits.h>.
30251         (EOVERFLOW): Define if the system does not.
30252         Do not include "minmax.h"; it wasn't used.
30253         (snprintf): Don't assume size_t promotes to an unsigned type.
30254         Fix bug when generated string was too long for the buffer: the
30255         buffer's contents are supposed to be the initial prefix of the
30256         output.  Don't assume vasnprintf returns EOVERFLOW if the size
30257         exceeds INT_MAX; do the check ourselves.
30258
30259         Import the following changes from libc:
30260
30261         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
30262
30263         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
30264         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
30265         set wc to the byte which couldn't be converted.
30266         (re_string_reconstruct): Don't clear valid_raw_len before calling
30267         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
30268         tip_context using re_string_context_at.
30269
30270         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
30271
30272         * lib/posix/regex.h: g++ still cannot handled [restrict].
30273
30274         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
30275
30276         * lib/posix/regex.h: Remove special handling for VMS.
30277
30278 2006-08-10  Jim Meyering  <jim@meyering.net>
30279
30280         * modules/same-inode: New module.
30281         * modules/dev-ino: New module.
30282         * modules/cycle-check: Depend on these modules, rather than simply
30283         including their .h files.
30284         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
30285         required via m4/cycle-check.m4.
30286         * modules/same: Depend on new same-inode module, rather than
30287         including same-inode.h.
30288         * modules/chdir-safer: New file.
30289
30290         * modules/chown (Depends-on): Add stat-macros.
30291
30292 2006-08-10  Jim Meyering  <jim@meyering.net>
30293
30294         * m4/cycle-check.m4: New file.
30295         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
30296         * m4/dev-ino.m4, m4/same-inode.m4: New files.
30297
30298 2006-08-10  Eric Blake  <ebb9@byu.net>
30299
30300         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
30301         in from original proposal.
30302
30303 2006-08-10  Eric Blake  <ebb9@byu.net>
30304         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30305
30306         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
30307         namespace.
30308
30309 2006-08-10  Bruno Haible  <bruno@clisp.org>
30310
30311         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
30312         as well.
30313
30314 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30315
30316         Sync from coreutils.
30317
30318         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
30319
30320         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
30321         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
30322
30323 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30324
30325         * modules/restrict: Remove; no longer needed now that we assume
30326         Autoconf 2.59 or later.
30327         * MODULES.html.sh: Remove 'restrict'.
30328         * modules/argp (Depends-on): Remove 'restrict'.
30329         * modules/base64 (Depends-on): Likewise.
30330         * modules/gc (Depends-on): Likewise.
30331         * modules/getaddrinfo (Depends-on): Likewise.
30332         * modules/glob (Depends-on): Likewise.
30333         * modules/inet_ntop (Depends-on): Likewise.
30334         * modules/inet_pton (Depends-on): Likewise.
30335         * modules/memxor (Depends-on): Likewise.
30336         * modules/regex (Depends-on): Likewise.
30337         * modules/strtok_r (Depends-on): Likewise.
30338         * modules/time_r (Depends-on): Likewise.
30339
30340 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
30341
30342         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
30343         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
30344         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
30345         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
30346         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
30347         * m4/memxor.m4 (gl_MEMXOR): Likewise.
30348         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
30349         gl_C_RESTRICT replaced by AC_C_RESTRICT.
30350
30351         Merge from coreutils.
30352         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
30353         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
30354         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
30355         * m4/time_r.m4 (gl_TIME_R): Likewise.
30356
30357 2006-08-09  Karl Berry  <karl@gnu.org>
30358
30359         * config/srclist.txt: no more gettext-tools, per Bruno.
30360
30361 2006-08-08  Eric Blake  <ebb9@byu.net>
30362
30363         * modules/verror: New module.
30364         * MODULES.html.sh: Document it.
30365
30366 2006-08-08  Eric Blake  <ebb9@byu.net>
30367
30368         * lib/verror.h, lib/verror.c: New files.
30369
30370 2006-08-08  Eric Blake  <ebb9@byu.net>
30371
30372         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
30373         verror_at_line output complies with GNU Coding Standards even when
30374         file is NULL.
30375
30376 2006-08-07  Bruno Haible  <bruno@clisp.org>
30377
30378         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
30379         versions of AIX.
30380         Reported by Ralf Wildenhues.
30381
30382 2006-08-07  Bruno Haible  <bruno@clisp.org>
30383
30384         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
30385         in an AC_DEFUN. Needed so that the autoconf snippets can use
30386         AC_REQUIRE.
30387
30388 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30389
30390         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30391         Initialize pkgdata_DATA.
30392         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
30393         overriding it.
30394
30395 2006-08-06  Eric Blake  <ebb9@byu.net>
30396
30397         * lib/error.h: Fold in some upstream changes from glibc.
30398         * lib/error.c: Likewise.
30399
30400 2006-08-04  Bruno Haible  <bruno@clisp.org>
30401
30402         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30403         Make the mostlyclean-local rule depend on mostlyclean-generic.
30404         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
30405
30406 2006-07-31  Bruno Haible  <bruno@clisp.org>
30407
30408         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
30409         <stdlib.h>, <string.h>.
30410
30411 2006-07-30  Bruno Haible  <bruno@clisp.org>
30412
30413         * modules/readlink (License): Change to LGPL.
30414
30415 2006-07-30  Bruno Haible  <bruno@clisp.org>
30416
30417         * modules/javaversion (Makefile.am): Distribute javaversion.java and
30418         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
30419         set PKGDATADIR to point to it.
30420
30421 2006-07-30  Bruno Haible  <bruno@clisp.org>
30422
30423         * modules/csharpexec (configure.ac): Comment out macro invocation.
30424         * modules/javaexec (configure.ac): Likewise.
30425         * modules/javacomp-script (configure.ac): Likewise.
30426
30427         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
30428
30429 2006-07-30  Bruno Haible  <bruno@clisp.org>
30430
30431         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
30432         linked-list.
30433
30434 2006-07-30  Bruno Haible  <bruno@clisp.org>
30435
30436         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
30437
30438 2006-07-30  Bruno Haible  <bruno@clisp.org>
30439
30440         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30441         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
30442         get removed.
30443
30444 2006-07-29  Bruno Haible  <bruno@clisp.org>
30445
30446         Make it possible for gnulib-tool to work with locally modified or
30447         augmented gnulib repositories.
30448         * gnulib-tool (func_usage): Document --local-dir option.
30449         (local_gnulib_dir): New variable.
30450         Handle --local-dir option.
30451         (func_lookup_file): New function.
30452         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
30453         (func_get_description, func_get_filelist, func_get_description,
30454         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
30455         func_get_automake_snippet, func_get_include_directive,
30456         func_get_license, func_get_maintainer): Use func_lookup_file.
30457         (func_import, func_create_testdir): Use func_lookup_file.
30458
30459 2006-07-29  Bruno Haible  <bruno@clisp.org>
30460
30461         * modules/setenv (Depends-on): Add unistd.
30462
30463 2006-07-29  Bruno Haible  <bruno@clisp.org>
30464
30465         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
30466
30467 2006-07-29  Bruno Haible  <bruno@clisp.org>
30468
30469         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
30470
30471 2006-07-29  Bruno Haible  <bruno@clisp.org>
30472
30473         * gnulib-tool (import, update): If there is no Makefile.am, look at
30474         aclocal.m4, instead of bailing out.
30475
30476 2006-07-29  Bruno Haible  <bruno@clisp.org>
30477
30478         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
30479         Categorize the options by when they are useful.
30480
30481 2006-07-29  Bruno Haible  <bruno@clisp.org>
30482
30483         * gnulib-tool (func_usage): Document option --no-libtool.
30484         Handle option --no-libtool.
30485         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
30486         for changed semantics of $libtool variable.
30487         (func_import): Likewise. If libtool is not used, show this through
30488         an option --no-libtool.
30489         (func_create_testdir): Update.
30490
30491 2006-07-29  Bruno Haible  <bruno@clisp.org>
30492
30493         * gnulib-tool (func_import): Extend error message about missing
30494         --doc-base.
30495
30496 2006-07-29  Bruno Haible  <bruno@clisp.org>
30497
30498         * gnulib-tool (func_import): Don't create the $docbase directory if
30499         there is no file to store there.
30500
30501 2006-07-29  Bruno Haible  <bruno@clisp.org>
30502
30503         * gnulib-tool (autoconf_minversion): If a --dir option is given and
30504         relevant, look for configure.ac there, not in the current directory.
30505         Also use a simple search for AC_PREREQ, not "autoconf --trace".
30506
30507 2006-07-29  Bruno Haible  <bruno@clisp.org>
30508
30509         * gnulib-tool (SORT): New variable.
30510         (func_usage): Undocument --assume-autoconf option.
30511         Remove --assume-autoconf option handling.
30512         (autoconf_minversion): Determine from the contents of configure.ac.
30513         (func_import): Remove autoconf_minversion handling.
30514         Suggested by Eric Blake.
30515
30516 2006-07-29  Bruno Haible  <bruno@clisp.org>
30517
30518         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
30519
30520 2006-07-29  Bruno Haible  <bruno@clisp.org>
30521
30522         * config/srclist.txt (*setenv.[ch]): Remove rules.
30523
30524 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30525
30526         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
30527
30528 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30529
30530         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
30531         arpa/inet.h.
30532
30533 2006-07-28  Simon Josefsson  <jas@extundo.com>
30534
30535         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
30536         * modules/inet_pton (Depends-on): Likewise.
30537
30538 2006-07-28  Simon Josefsson  <jas@extundo.com>
30539
30540         * m4/netinet_in_h.m4: New file.
30541
30542 2006-07-28  Simon Josefsson  <jas@extundo.com>
30543
30544         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
30545         #include's.
30546
30547 2006-07-28  Simon Josefsson  <jas@extundo.com>
30548
30549         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
30550         #include's.
30551
30552 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
30553
30554         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
30555         setgid on directories only if they set these bits.
30556         * lib/modechange.h: Remove obsolete comment about masks.
30557
30558 2006-07-28  Eric Blake  <ebb9@byu.net>
30559
30560         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
30561         macro expansion.
30562
30563 2006-07-28  Bruno Haible  <bruno@clisp.org>
30564
30565         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
30566
30567 2006-07-28  Bruno Haible  <bruno@clisp.org>
30568
30569         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
30570
30571 2006-07-28  Bruno Haible  <bruno@clisp.org>
30572
30573         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
30574         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
30575         Define fallbacks.
30576         Avoids link error on FreeBSD 4.x.
30577         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
30578
30579         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
30580         encoding.
30581         * lib/mbswidth.c (iswcntrl): Likewise.
30582
30583 2006-07-27  Bruno Haible  <bruno@clisp.org>
30584
30585         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
30586         test.
30587
30588 2006-07-27  Bruno Haible  <bruno@clisp.org>
30589
30590         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
30591         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
30592         defined.
30593
30594 2006-07-26  Eric Blake  <ebb9@byu.net>
30595
30596         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
30597
30598 2006-07-26  Eric Blake  <ebb9@byu.net>
30599
30600         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
30601         like mingw that lack mkstemp.
30602         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
30603         avoid compilation warning on mingw.
30604
30605 2006-07-26  Bruno Haible  <bruno@clisp.org>
30606
30607         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
30608         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
30609         INT_FAST*_MIN, INTPTR_MIN.
30610
30611 2006-07-25  Bruno Haible  <bruno@clisp.org>
30612
30613         * modules/version-etc (Depends-on): Add stdarg.
30614
30615 2006-07-25  Bruno Haible  <bruno@clisp.org>
30616
30617         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
30618         complex commands.
30619
30620 2006-07-25  Bruno Haible  <bruno@clisp.org>
30621
30622         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
30623         defined in <stdarg.h> or config.h.
30624
30625 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
30626
30627         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
30628         (gl_STDIO_SAFER): Remove.
30629
30630 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
30631
30632         * MODULES.html.sh (File stream based Input/Output):
30633         Add fopen-safer, tmpfile-safer; remove stdio-safer.
30634         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
30635         * modules/fopen-safer, modules/tmpfile-safer: New files.
30636         * modules/stdio-safer: Remove.
30637
30638 2006-07-24  Bruno Haible  <bruno@clisp.org>
30639
30640         * modules/tmpdir: New file.
30641         * MODULES.html.sh (File system functions): Add it.
30642
30643 2006-07-24  Bruno Haible  <bruno@clisp.org>
30644
30645         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
30646         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
30647
30648 2006-07-24  Bruno Haible  <bruno@clisp.org>
30649
30650         * modules/clean-temp: New file.
30651
30652 2006-07-24  Bruno Haible  <bruno@clisp.org>
30653
30654         * m4/tmpdir.m4: New file, from GNU gettext.
30655
30656 2006-07-24  Bruno Haible  <bruno@clisp.org>
30657
30658         * lib/tmpdir.h: New file, from GNU gettext.
30659         * lib/tmpdir.c: New file, from GNU gettext.
30660
30661 2006-07-24  Bruno Haible  <bruno@clisp.org>
30662
30663         * lib/clean-temp.h: New file, from GNU gettext.
30664         * lib/clean-temp.c: New file, from GNU gettext.
30665
30666 2006-07-23  Eric Blake  <ebb9@byu.net>
30667
30668         * modules/stdio-safer (Files): Add tmpfile-safer.c.
30669         (Depends-on): Add binary-io.
30670
30671 2006-07-23  Eric Blake  <ebb9@byu.net>
30672
30673         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
30674
30675 2006-07-23  Eric Blake  <ebb9@byu.net>
30676
30677         * lib/tmpfile-safer.c: New file.
30678         * lib/stdio-safer.h (fopen_safer): Add prototype.
30679         * lib/stdio--.h (tmpfile): Make safer.
30680
30681 2006-07-23  Bruno Haible  <bruno@clisp.org>
30682
30683         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
30684         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
30685         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
30686         gl_linked_remove_at): Use it.
30687
30688 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30689         and Simon Josefsson <jas@extundo.com>
30690
30691         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
30692
30693         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
30694
30695 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
30696
30697         * modules/close-stream: New file.
30698         * modules/closeout (Description): Make it clear that it exits
30699         with a diagnostic on error.
30700         (Depends-on): Add close-stream.  Remove fpending, stdbool.
30701         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
30702
30703 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
30704
30705         * m4/close-stream.m4: New file.
30706
30707 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
30708
30709         * lib/close-stream.c, lib/close-stream.h: New files.
30710
30711 2006-07-22  Bruno Haible  <bruno@clisp.org>
30712
30713         Merge from GNU gettext 0.15.
30714
30715         2006-05-01  Bruno Haible  <bruno@clisp.org>
30716
30717                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
30718
30719         2006-07-22  Bruno Haible  <bruno@clisp.org>
30720
30721                 * modules/javaversion: New file.
30722                 * MODULES.html.sh (Java): Add javaversion.
30723
30724         2006-03-12  Bruno Haible  <bruno@clisp.org>
30725
30726                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
30727
30728         2005-12-04  Bruno Haible  <bruno@clisp.org>
30729
30730                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
30731                 (untested).
30732
30733         2006-06-21  Bruno Haible  <bruno@clisp.org>
30734
30735                 Avoid warnings from recent versions of mcs.
30736                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
30737                 -o, -L, -r any more. Use options documented since mcs-1.0
30738                 instead. Similarly for -g.
30739
30740         2005-12-04  Bruno Haible  <bruno@clisp.org>
30741
30742                 * build-aux/csharpcomp.sh.in: Suffix for resources is
30743                 .resources, not .resource.
30744
30745         2005-07-09  Bruno Haible  <bruno@clisp.org>
30746
30747                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
30748                 add a .dll suffix.
30749                 Reported by Mark Junker <mjscod@gmx.de>.
30750
30751         2006-07-22  Bruno Haible  <bruno@clisp.org>
30752
30753                 * modules/gettext: Upgrade to gettext-0.15.
30754                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
30755                 m4/visibility.m4.
30756                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
30757
30758 2006-07-22  Bruno Haible  <bruno@clisp.org>
30759
30760         Merge from GNU gettext 0.15.
30761
30762         2006-03-25  Bruno Haible  <bruno@clisp.org>
30763
30764                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
30765
30766         2006-07-21  Bruno Haible  <bruno@clisp.org>
30767
30768                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
30769                 "1.1".
30770
30771         2006-05-09  Bruno Haible  <bruno@clisp.org>
30772
30773                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
30774                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
30775                 for the conftestver execution.
30776
30777         2006-05-01  Bruno Haible  <bruno@clisp.org>
30778
30779                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
30780                 optional target-version argument. Verify that the compiler
30781                 groks source of the specified source-version, or add -source
30782                 option as necessary. Verify that the compiler produces
30783                 bytecode in the specified target-version, or add -target and
30784                 -source options as necessary. Make the result of the test
30785                 available as variable CONF_JAVAC. Also log error output in
30786                 config.log.
30787
30788         2006-03-11  Bruno Haible  <bruno@clisp.org>
30789
30790                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
30791
30792         2006-05-09  Bruno Haible  <bruno@clisp.org>
30793
30794                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
30795                 CLASSPATH_SEPARATOR to a semicolon.
30796
30797         2006-03-12  Bruno Haible  <bruno@clisp.org>
30798
30799                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
30800                 available as variable CONF_JAVA, for subsequent autoconf
30801                 tests. Also log error output in config.log.
30802
30803         2006-07-19  Bruno Haible  <bruno@clisp.org>
30804
30805                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
30806                 that getline works on glibc2 systems. Needed to avoid trouble
30807                 in relocatable.c.
30808                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
30809
30810         2005-12-04  Bruno Haible  <bruno@clisp.org>
30811
30812                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
30813                 launcher (untested).
30814
30815         2005-12-04  Bruno Haible  <bruno@clisp.org>
30816
30817                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
30818
30819         2006-07-22  Bruno Haible  <bruno@clisp.org>
30820
30821                 * gettext.m4: Update from GNU gettext-0.15.
30822                 * nls.m4: Likewise.
30823                 * po.m4: Likewise.
30824                 * inttypes-pri.m4: Likewise.
30825                 * inttypes-h.m4: Renamed from inttypes.m4.
30826                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
30827
30828 2006-07-22  Bruno Haible  <bruno@clisp.org>
30829
30830         Merge from GNU gettext 0.15.
30831
30832         2005-07-05  Bruno Haible  <bruno@clisp.org>
30833
30834                 * printf-args.c (printf_fetchargs): Work around broken
30835                 definition of wint_t on mingw.
30836
30837         2005-02-12  Bruno Haible  <bruno@clisp.org>
30838
30839                 * xallocsa.h: Add extern "C" for C++.
30840
30841         2006-05-17  Bruno Haible  <bruno@clisp.org>
30842
30843                 Cygwin portability.
30844                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
30845
30846         2006-04-30  Bruno Haible  <bruno@clisp.org>
30847
30848                 * progreloc.c: Include <mach-o/dyld.h> if available.
30849                 (find_executable): Use _NSGetExecutablePath when possible.
30850
30851         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
30852
30853                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
30854                 function.
30855
30856         2005-12-29  Bruno Haible  <bruno@clisp.org>
30857
30858                 * progreloc.c (set_program_name_and_installdir): Fix
30859                 compilation error.
30860
30861         2005-12-04  Bruno Haible  <bruno@clisp.org>
30862
30863                 Cygwin portability.
30864                 * progreloc.c: Include <windows.h> also on Cygwin.
30865                 (find_executable): Add support for Cygwin.
30866                 (set_program_name_and_installdir): Handle also platforms with
30867                 nonempty EXEEXT.
30868
30869         2006-07-11  Bruno Haible  <bruno@clisp.org>
30870
30871                 * javacomp.c: Fix a comment.
30872                 Reported by Jim Meyering.
30873
30874         2006-04-30  Bruno Haible  <bruno@clisp.org>
30875
30876                 * javacomp.h (compile_java_class): Add source_version,
30877                 target_version arguments.
30878                 * javacomp.c: Rewritten to choose only a compiler that
30879                 respects the specified source_version and target_version.
30880
30881         2006-06-27  Bruno Haible  <bruno@clisp.org>
30882
30883                 Assume correct S_ISDIR macro.
30884                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
30885
30886         2006-07-22  Bruno Haible  <bruno@clisp.org>
30887
30888                 * javaversion.h: New file, from GNU gettext.
30889                 * javaversion.c: New file, from GNU gettext.
30890                 * javaversion.java: New file, from GNU gettext.
30891                 * javaversion.class: New file, from GNU gettext.
30892
30893         2006-05-17  Bruno Haible  <bruno@clisp.org>
30894
30895                 Cygwin portability.
30896                 * javaexec.c (execute_java_class): Test for jview program
30897                 also on Cygwin.
30898
30899         2006-04-09  Bruno Haible  <bruno@clisp.org>
30900
30901                 * fatal-signal.c: Don't include string.h.
30902                 (at_fatal_signal): Use a copying loop instead of memcpy.
30903
30904         2005-12-04  Bruno Haible  <bruno@clisp.org>
30905
30906                 * csharpexec.c: Add support for 'clix' launcher (untested).
30907                 (execute_csharp_using_sscli): New function.
30908                 (execute_csharp_program): Call it.
30909
30910         2006-06-21  Bruno Haible  <bruno@clisp.org>
30911
30912                 Avoid warnings from recent versions of mcs.
30913                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
30914                 -o, -L, -r any more. Use options documented since mcs-1.0
30915                 instead. Similarly for -g.
30916
30917         2005-07-09  Bruno Haible  <bruno@clisp.org>
30918
30919                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
30920                 add a .dll suffix.
30921                 Reported by Mark Junker <mjscod@gmx.de>.
30922
30923         2006-06-17  Bruno Haible  <bruno@clisp.org>
30924
30925                 * config.charset: Update for NetBSD 3.0.
30926
30927         2006-05-17  Bruno Haible  <bruno@clisp.org>
30928
30929                 Cygwin portability.
30930                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
30931
30932         2006-05-16  Bruno Haible  <bruno@clisp.org>
30933
30934                 * localcharset.c [CYGWIN]: Include <windows.h>.
30935                 (get_charset_aliases): For Cygwin, return the same CPxxx
30936                 aliases list as under WIN32.
30937                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
30938                 the environment variables. Fall back to GetACP().
30939
30940         2006-04-05  Bruno Haible  <bruno@clisp.org>
30941
30942                 * config.charset: Update Juan Manuel Guerrero's address.
30943
30944         2005-02-12  Bruno Haible  <bruno@clisp.org>
30945
30946                 * allocsa.h: Add extern "C" for C++.
30947
30948         2005-02-10  Bruno Haible  <bruno@clisp.org>
30949
30950                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
30951                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
30952
30953         2006-07-22  Bruno Haible  <bruno@clisp.org>
30954
30955                 * gettext.h: Update to GNU gettext-0.15.
30956
30957 2006-07-22  Bruno Haible  <bruno@clisp.org>
30958
30959         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
30960         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
30961         lib-prefix.m4, longdouble.m4, ssize_t.m4.
30962
30963 2006-07-21  Eric Blake  <ebb9@byu.net>
30964
30965         * modules/stdlib-safer: New file.
30966         * MODULES.html.sh (File stream based Input/Output): Add
30967         stdlib-safer.
30968
30969 2006-07-21  Eric Blake  <ebb9@byu.net>
30970
30971         * lib/stdlib-safer.h: New file from coreutils, required by
30972         stdlib--.h.
30973
30974 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
30975
30976         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
30977
30978 2006-07-20  Bruno Haible  <bruno@clisp.org>
30979
30980         * gnulib-tool: Recognize new option --assume-autoconf.
30981         (autoconf_minversion): New variable.
30982         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
30983
30984 2006-07-20  Bruno Haible  <bruno@clisp.org>
30985
30986         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
30987
30988 2006-07-19  Derek R. Price  <derek@ximbiot.com>
30989
30990         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
30991         Reindent and repaginate.
30992
30993 2006-07-19  Derek Price  <derek@ximbiot.com>
30994
30995         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
30996         Correct grammar.
30997
30998 2006-07-17  Bruno Haible  <bruno@clisp.org>
30999
31000         * modules/list: New file.
31001         * modules/array-list: New file.
31002         * modules/carray-list, modules/carray-list-tests: New files.
31003         * modules/linked-list, modules/linked-list-tests: New files.
31004         * modules/avltree-list, modules/avltree-list-tests: New files.
31005         * modules/rbtree-list, modules/rbtree-list-tests: New files.
31006         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
31007         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
31008         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
31009         * modules/oset: New file.
31010         * modules/array-oset: New file.
31011         * modules/avltree-oset, modules/avltree-oset-tests: New files.
31012         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
31013         * tests/test-carray_list.c: New file.
31014         * tests/test-linked_list.c: New file.
31015         * tests/test-avltree_list.c: New file.
31016         * tests/test-rbtree_list.c: New file.
31017         * tests/test-linkedhash_list.c: New file.
31018         * tests/test-avltreehash_list.c: New file.
31019         * tests/test-rbtreehash_list.c: New file.
31020         * tests/test-avltree_oset.c: New file.
31021         * tests/test-rbtree_oset.c: New file.
31022         * MODULES.html.sh (Container data structures): New section.
31023
31024 2006-07-17  Bruno Haible  <bruno@clisp.org>
31025
31026         * m4/gl_list.m4: New file.
31027
31028 2006-07-17  Bruno Haible  <bruno@clisp.org>
31029
31030         * lib/gl_list.h: New file.
31031         * lib/gl_list.c: New file.
31032         * lib/gl_array_list.h: New file.
31033         * lib/gl_array_list.c: New file.
31034         * lib/gl_carray_list.h: New file.
31035         * lib/gl_carray_list.c: New file.
31036         * lib/gl_linked_list.h: New file.
31037         * lib/gl_linked_list.c: New file.
31038         * lib/gl_anylinked_list1.h: New file.
31039         * lib/gl_anylinked_list2.h: New file.
31040         * lib/gl_avltree_list.h: New file.
31041         * lib/gl_avltree_list.c: New file.
31042         * lib/gl_anyavltree_list1.h: New file.
31043         * lib/gl_anyavltree_list2.h: New file.
31044         * lib/gl_rbtree_list.h: New file.
31045         * lib/gl_rbtree_list.c: New file.
31046         * lib/gl_anyrbtree_list1.h: New file.
31047         * lib/gl_anyrbtree_list2.h: New file.
31048         * lib/gl_anytree_list1.h: New file.
31049         * lib/gl_anytree_list2.h: New file.
31050         * lib/gl_linkedhash_list.h: New file.
31051         * lib/gl_linkedhash_list.c: New file.
31052         * lib/gl_anyhash_list1.h: New file.
31053         * lib/gl_anyhash_list2.h: New file.
31054         * lib/gl_avltreehash_list.h: New file.
31055         * lib/gl_avltreehash_list.c: New file.
31056         * lib/gl_rbtreehash_list.h: New file.
31057         * lib/gl_rbtreehash_list.c: New file.
31058         * lib/gl_anytreehash_list1.h: New file.
31059         * lib/gl_anytreehash_list2.h: New file.
31060
31061         * lib/gl_oset.h: New file.
31062         * lib/gl_oset.c: New file.
31063         * lib/gl_array_oset.h: New file.
31064         * lib/gl_array_oset.c: New file.
31065         * lib/gl_avltree_oset.h: New file.
31066         * lib/gl_avltree_oset.c: New file.
31067         * lib/gl_rbtree_oset.h: New file.
31068         * lib/gl_rbtree_oset.c: New file.
31069         * lib/gl_anytree_oset.h: New file.
31070
31071 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
31072
31073         * m4/mkancesdirs.m4: New file.
31074         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
31075         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
31076         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
31077         it.
31078
31079 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
31080
31081         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
31082         * lib/mkancesdirs.h: New files.
31083         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
31084         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
31085         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
31086         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
31087         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
31088         callers changed.  Revamp internals significantly, by not
31089         attempting to create directories that are temporarily more
31090         permissive than the final results.  Do not attempt to use
31091         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
31092         This removes some race conditions, fixes some bugs, and simplifies
31093         things.  Use new dirchownmod function to do owner and mode changes.
31094         * lib/mkdir-p.h: Likewise.
31095         * lib/modechange.c (octal_to_mode): New function.
31096         (struct mode_change): New member mentioned.
31097         (make_node_op_equals): New arg mentioned.  All callers changed.
31098         (mode_compile): Keep track of which mode bits the user has explicitly
31099         mentioned.
31100         (mode_adjust): New arg DIR, so that we implement the X op correctly.
31101         New arg PMODE_BITS, to keep track of which mode bits the user
31102         mentioned; it treats S_ISUID and S_ISGID speciall.
31103         All callers changed.
31104         * lib/modechange.h: Likewise.
31105
31106 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
31107
31108         * MODULES.html.sh: Add mkancestors.
31109         * modules/mkancesdirs: New module.
31110         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
31111         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
31112         The chdir-safer and afs files are now orphans; I'll remove them
31113         unless someone speaks up.
31114         Add lib/dirchownmod.c, lib/dirchownmod.h.
31115         (Depends-on): Remove alloca, chown, save-cwd, dirname.
31116         Add lchown, mkancesdirs.
31117         (Maintainer): Add self.
31118
31119 2006-07-15  Karl Berry  <karl@gnu.org>
31120
31121         * gnulib-tool: help message wording/arrangement.
31122
31123 2006-07-14  Simon Josefsson  <jas@extundo.com>
31124
31125         * doc/gnulib.texi (Libtool and Windows): New section.
31126
31127 2006-07-12  Simon Josefsson  <jas@extundo.com>
31128
31129         * modules/gendocs (License): Fix license, approved by Karl.
31130
31131 2006-07-12  Eric Blake  <ebb9@byu.net>
31132
31133         * MODULES.html.sh: Add gendocs.
31134
31135 2006-07-11  Eric Blake  <ebb9@byu.net>
31136
31137         * modules/fdl: New module, to install doc/fdl.texi.
31138         * MODULES.html.sh: Add new section for documentation modules.
31139         * gnulib-tool: Avoid space-tab.
31140         (--doc-base): New option, to manage files from doc.
31141
31142 2006-07-11  Eric Blake  <ebb9@byu.net>
31143
31144         * m4/absolute-header.m4: Fix comments to match recent change.
31145
31146 2006-07-11  Eric Blake  <ebb9@byu.net>
31147
31148         * gnulib-tool: List --doc-base before --tests-base.
31149
31150 2006-07-11  Derek R. Price  <derek@ximbiot.com>
31151
31152         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
31153
31154 2006-07-11  Bruno Haible  <bruno@clisp.org>
31155
31156         * README: Mention where to put documentation.
31157
31158 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31159
31160         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
31161
31162 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
31163
31164         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
31165         to stdint.m4.
31166
31167 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
31168
31169         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
31170         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
31171         "no/such/file/stdint.h" when there is no such file, so that
31172         the resulting C code can be parsed by dodgy compilers.
31173         Problems reported by Bob Proulx.
31174
31175 2006-07-10  Derek R. Price  <derek@ximbiot.com>
31176
31177         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
31178         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
31179         macros into the GNU _D_EXACT_NAMLEN.
31180         * lib/savedir.c:  Likewise.
31181         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
31182
31183 2006-07-10  Derek R. Price  <derek@ximbiot.com>
31184         and Paul Eggert  <eggert@cs.ucla.edu>
31185
31186         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
31187         * m4/savedir.m4:
31188         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
31189         macros into the GNU _D_EXACT_NAMLEN.
31190
31191 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31192
31193         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
31194         around the absolute name, to work around a problem with the HP-UX
31195         11.23 native C compiler, reported by Bob Proulx.
31196
31197 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31198
31199         * doc/maintain.texi, make-stds.texi: Sync from
31200         <http://savannah.gnu.org/projects/gnustandards>.
31201
31202 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31203
31204         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
31205
31206 2006-07-09  Jim Meyering  <jim@meyering.net>
31207
31208         * m4/glob.m4: Remove a doubled word in a comment.
31209
31210 2006-07-09  Jim Meyering  <jim@meyering.net>
31211
31212         * lib/argp-pv.c: Remove a doubled word in a comment.
31213         * lib/check-version.c (check_version): Likewise.
31214         * lib/javacomp.c (compile_java_class): Likewise.
31215
31216 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31217
31218         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
31219         for the benefit of people using Autoconf 2.60.  If you want to
31220         support older Autoconf versions you can copy m4/onceonly_2_57.m4
31221         (or m4/onceonly.m4, if pre-2.57) manually.
31222
31223 2006-07-08  Jim Meyering  <jim@meyering.net>
31224
31225         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
31226         comment.
31227         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
31228         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
31229         comment.
31230
31231 2006-07-08  Jim Meyering  <jim@meyering.net>
31232
31233         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
31234
31235 2006-07-07  Simon Josefsson  <jas@extundo.com>
31236
31237         * tests/test-crc.c: Change expected crc value, the test vector
31238         were probably computed using the old broken crc.c?
31239
31240 2006-07-06  Simon Josefsson  <jas@extundo.com>
31241
31242         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
31243         now the canonical place for the M4 file).
31244
31245         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
31246         from the sys_socket dependency now.
31247
31248         * modules/inet_pton (Files): Ditto.
31249
31250         * modules/inet_ntop (Files): Ditto.
31251
31252 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
31253
31254         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
31255         not gl_PREREQ_GETUSERSHELL.
31256
31257 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31258
31259         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
31260         with only one argument, for Autoconf 2.60.
31261         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
31262         expand to nothing, so add a shell command to avoid syntax error.
31263         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
31264
31265 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31266
31267         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
31268
31269 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31270
31271         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
31272         no longer needed.  Check for isblank decl.
31273         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
31274         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
31275         of existence.
31276
31277 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31278
31279         * lib/getloadavg.c: Use __VMS, not VMS.
31280         * lib/getopt.c: Likewise.
31281         * lib/getpagesize.h: Likewise.
31282         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
31283         and probably does not work.
31284
31285 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31286
31287         * lib/.cppi-disable: Add wcwidth.
31288         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
31289         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
31290         (ISGRAPH): Remove.  All uses changed to isgraph.
31291         (FOLD) [!defined _LIBC]: Remove special case.
31292         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
31293         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
31294         HAVE_ISBLANK.
31295         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
31296         case.
31297
31298 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
31299
31300         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
31301         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
31302         brackets.  Other minor changes to suppress some compiler
31303         warnings.
31304
31305 2006-07-06  Derek R. Price  <derek@ximbiot.com>
31306         and Paul Eggert  <eggert@cs.ucla.edu>
31307
31308         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
31309         of invoking obsolescent AC_HEADER_DIRENT macro.
31310         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
31311         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
31312         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
31313         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
31314         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
31315         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
31316         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
31317         * m4/readdir.m4: Remove; no longer needed.
31318
31319 2006-07-06  Derek R. Price  <derek@ximbiot.com>
31320         and Paul Eggert  <eggert@cs.ucla.edu>
31321
31322         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
31323         Don't worry about this obsolete case any more.
31324         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
31325         directories.
31326         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
31327         worry about this obsolete case any more.
31328         * lib/fts.c: Likewise.
31329         * lib/getcwd.c: Likewise.
31330         * lib/glob.h: Likewise.
31331         * lib/savedir.c: Likewise.
31332
31333 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31334
31335         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
31336         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
31337         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
31338         needed.
31339         All uses removed.
31340         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
31341         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
31342         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
31343         needed.
31344         * m4/getdate.m4 (gl_GETDATE): Likewise.
31345         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
31346         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
31347         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
31348         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
31349         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
31350         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
31351         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
31352         needed.
31353
31354 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31355
31356         * lib/memcasecmp.c: Include <limits.h>.
31357         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
31358         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
31359         Don't assume isdigit succeeds only on '0' through '9'.
31360
31361 2006-07-05  Eric Blake  <ebb9@byu.net>
31362
31363         * modules/getaddrinfo (Depends-on): Add snprintf.
31364
31365 2006-07-05  Eric Blake  <ebb9@byu.net>
31366
31367         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
31368         to avoid 'header present but could not be compiled' on cygwin.
31369
31370 2006-07-05  Eric Blake  <ebb9@byu.net>
31371
31372         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
31373         missing from netdb.h.
31374         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
31375
31376 2006-07-05  Derek R. Price  <derek@ximbiot.com>
31377
31378         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
31379         no longer needed.
31380         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
31381         * m4/getdate.m4 (gl_GETDATE): Likewise.
31382         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
31383         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
31384         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
31385         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
31386         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
31387
31388 2006-07-05  Derek R. Price  <derek@ximbiot.com>
31389
31390         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
31391         All uses of is_space replaced by isspace.
31392         * lib/exit.h: Don't talk about STDC_HEADERS.
31393         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
31394         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
31395         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
31396         replaced by isprint etc.
31397         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
31398         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
31399         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
31400         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
31401         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
31402         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
31403
31404 2006-07-05  Bruno Haible  <bruno@clisp.org>
31405
31406         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
31407         the function exists, before testing against AIX.
31408         Reported by Martin Lambers <marlam@marlam.de>.
31409
31410 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
31411
31412         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
31413         From Mark D. Baushke.
31414
31415 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
31416
31417         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
31418         to the absolute name, not just one, to bypass Sun C 5.8's
31419         "warning: #include of /usr/include/... may be non-portable".
31420
31421 2006-07-04  Eric Blake  <ebb9@byu.net>
31422
31423         * modules/dirname-tests: New test module.
31424         * tests/test-dirname.c: New file, replacing dirname.c
31425         TEST_DIRNAME section that was recently deleted.
31426
31427 2006-07-04  Bruno Haible  <bruno@clisp.org>
31428
31429         Assume ANSI C header files and <ctype.h> functions.
31430         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
31431         (mbsnwidth): Use isprint, iscntrl instead.
31432
31433 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31434
31435         Merge from coreutils.
31436         * MODULES.html.sh: Add xstrtold.
31437         * modules/xstrtold: New file.
31438         * modules/cycle-check (Files): Add lib/same-inode.h.
31439         * modules/dirname (Files): Add m4/double-slash-root.m4.
31440         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
31441         * modules/mkdir-p (Files): Add lib/same-inode.h.
31442         * modules/same (Files): Add lib/same-inode.h.
31443
31444 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31445
31446         * m4/absolute-header.m4: Renamed from full-header-path.m4.
31447         This is to keep the terminology clean; POSIX talks about
31448         "absolute pathnames", not "full pathnames", but the GNU
31449         Coding Standards say to use "path" for something else;
31450         so use "absolute" to keep both sides happy.
31451         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
31452         Set gl_absolute_header, not gl_full_header_path.
31453         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
31454         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
31455         All uses changed.
31456
31457         Merge from coreutils.
31458
31459         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
31460
31461         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
31462         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
31463         want to require the building of c-strtod.o.
31464         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
31465         needs -lm directly.
31466         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
31467
31468         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
31469
31470         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
31471         --as-needed option if available.  Problem reported by Albert Chin in
31472         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
31473         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
31474         cc merely issues a bunch of annoying warnings for --as-needed
31475         (this problem was reported by Bob Proulx).  Also, try linking with
31476         -lm to detect a bug in binutils 2.16 (this problem was reported
31477         by Ralf Wildenhues).
31478
31479         2006-06-18  Jim Meyering  <jim@meyering.net>
31480
31481         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
31482         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
31483         macro.
31484         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
31485         also check for glibc-2.4's abort-inducing bug.
31486
31487         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
31488         Low-probability clean-up should be to use rmdir to get rid of
31489         the just-created directory, not unlink.
31490
31491         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
31492         configure fail, and request a bug report to inform us about it.
31493         Add a comment that, barring reports to the contrary, in 2007 we'll
31494         assume ftruncate is universally available.
31495
31496         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
31497
31498         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
31499
31500         2006-03-12  Jim Meyering  <jim@meyering.net>
31501
31502         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
31503         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
31504         * m4/same.m4 (gl_SAME): Likewise.
31505         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
31506
31507         2006-03-11  Eric Blake  <ebb9@byu.net>
31508
31509         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
31510         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
31511         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
31512         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
31513
31514 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
31515
31516         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
31517         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
31518         reported by Mark D. Baushke, one in
31519         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
31520
31521         Merge from coreutils.
31522
31523         * lib/.cppi-disable: Add stdint_.h.
31524         * lib/.cvsignore: Add stdint.h.
31525
31526         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
31527
31528         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
31529         both double and long double versions.
31530         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
31531         * lib/xstrtold.c: New file.
31532         * lib/xstrtod.h (xstrtold): New decl.
31533
31534         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
31535
31536         * lib/filemode.c (setst): Remove.
31537         (strmode): Rewrite to avoid setst.  This makes the code shorter,
31538         (arguably) clearer, and the generated code is a bit smaller on my
31539         Debian GNU/Linux stable x86 host.
31540
31541         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
31542
31543         * lib/filemode.c: Include "filemode.h" first, to test the interface.
31544         Assume that filemode.h includes sys/types.h and sys/stat.h.
31545         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
31546         (ftypelet): Reorder to put common cases first, for efficiency.
31547         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
31548         to do 'M'.
31549         (strmode): Renamed from mode_string, and now stores 12 bytes instead
31550         of 10, for compatibility with FreeBSD.  All callers changed.
31551         (filemodestring): Now stores 12 bytes instead of 10, and sets file
31552         types that can't be deduced solely from st_mode.  First arg is now a
31553         const pointer.
31554         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
31555         (strmode): Renamed from mode_string.
31556         (filemodestring): New decl.
31557         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
31558         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
31559         needed.
31560         (S_ISPORT, S_ISWHT): New macros, if not already defined.
31561
31562         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
31563
31564         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
31565         fsusage.h now does that.  Include fsusage.h first, to test interface.
31566         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
31567         at most one method (the old code could have generated decls that
31568         didn't conform to C89, not that this was ever exercised).
31569         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
31570
31571         2006-03-19  Jim Meyering  <jim@meyering.net>
31572
31573         Work even in a chroot where d_ino values for entries in "/"
31574         don't match the stat.st_ino values for the same names.
31575         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
31576         number, iterate through all entries again, using lstat instead.
31577         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
31578         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
31579
31580         * lib/getcwd.c (__getcwd): Clarify a comment.
31581         Use memcpy in place of a call to strcpy.
31582
31583         2006-03-12  Jim Meyering  <jim@meyering.net>
31584
31585         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
31586         matches that of the current directory (which we're about to chdir ".."
31587         out of), then save the dev-ino of the parent, instead.
31588
31589         * lib/same-inode.h (SAME_INODE): New file/macro.
31590         * lib/chdir-safer.c (SAME_INODE): Remove definition.
31591         Include "same-inode.h", instead.
31592         * lib/same.c: Likewise.
31593         * lib/cycle-check.h: Include "same-inode.h".
31594         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
31595         * lib/cycle-check.c (SAME_INODE): Remove definition.
31596         * lib/root-dev-ino.h: Include "same-inode.h".
31597
31598         2006-03-11  Eric Blake  <ebb9@byu.net>
31599
31600         * lib/same.c (same_name): s/base_name/last_component/
31601         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
31602         * lib/filenamecat.c (file_name_concat): Likewise.
31603
31604         2006-03-11  Eric Blake  <ebb9@byu.net>,
31605                     Paul Eggert  <eggert@cs.ucla.edu>
31606
31607         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
31608         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
31609         drive prefix.
31610         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
31611         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
31612         (last_component): New method.
31613         * lib/dirname.c (dir_len): Determine when drive letters need a
31614         subsequent slash.  Preserve // when it is special.
31615         (dir_name): Don't append dot when drive letter is absolute.
31616         [TEST_DIRNAME]: Move into a full-blown gnulib test.
31617         * lib/basename.c (base_name): New semantics - malloc the result.
31618         Preserve // when it is special.  Preserve relative files that look
31619         like drive letters.
31620         (base_len): Preserve // when it is special.
31621         (last_component): New method, similar to old base_name semantics.
31622         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
31623         base_name.  Strip redundant slashes from ///.
31624
31625 2006-07-03  Jim Meyering  <jim@meyering.net>
31626
31627         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
31628         macro is used before the first cycle_check call.
31629
31630 2006-07-03  Eric Blake  <ebb9@byu.net>
31631
31632         * modules/dirname (Depends-on): Add xstrndup.
31633
31634 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
31635
31636         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
31637         test cases, so that config.log is a bit easier to follow.
31638
31639 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
31640
31641         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
31642         both are 64 bits, since this seems to be the tradition, and this
31643         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
31644         we ever run into a host that prefers long long to long in this
31645         case, we'll need another configure-time test.  Problem reported by
31646         Jim Meyering.
31647
31648 2006-07-02  Eric Blake  <ebb9@byu.net>
31649
31650         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
31651
31652 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
31653
31654         * modules/inttypes (Depends-on): No longer depends on stdint.
31655         * modules/stdint (Description): Say more about assumptions.
31656         Say that the fast types might differ.  Say macros are used.
31657         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
31658         (Makefile.am): Revise list of substituted symbols to match
31659         new stdint.m4.
31660         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
31661         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
31662         * tests/test-stdint.c (verify_same_types)
31663         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
31664         the code conforms to C99/C89.
31665         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
31666         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
31667
31668 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
31669
31670         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
31671         but fix a bug, by requiring at least 64 bits.
31672         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
31673         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
31674         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
31675         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
31676
31677         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
31678         changes.  Make 2.59 a prerequisite.  Check and substitute for
31679         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
31680         inttypes.h.  Do not use special include files; just use the
31681         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
31682         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
31683         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
31684         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
31685         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
31686         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
31687         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
31688         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
31689         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
31690         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
31691         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
31692         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
31693         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
31694         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
31695         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
31696         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
31697         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
31698         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
31699         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
31700         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
31701         WINT_MAX.  Check for C99 conformance more strictly, by detecting
31702         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
31703         not check for things that C99 does not require, e.g., int8_t.  If
31704         a test isn't needed unless <stdint.h> isn't working, and is
31705         unlikely to be needed for any other reason, then don't do it
31706         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
31707         size_t, since we assume C89 freestanding at least.  Do not check
31708         for sig_atomic_t, wchar_t, or wint_t, since the code now does
31709         the right thing even if the types are not defined.  Instead use:
31710         (gl_STDINT_TYPE_PROPERTIES): New macro.
31711         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
31712         testing whether <sys/types.h> clashes, as Autoconf does this for
31713         us now.  All uses removed.
31714         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
31715         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
31716         (gl_CHECK_TYPE_SAME):
31717         Remove; no longer needed.
31718         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
31719         exists, since we'll return 0 anyway in that case.
31720         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
31721
31722 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
31723
31724         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
31725         possible collision with system files.
31726         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
31727         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
31728         WCHAR_MIN and WCHAR_MAX in this case.
31729         (<stddef.h>): Do not include; no longer needed.
31730         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
31731         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
31732         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
31733         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
31734         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
31735         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
31736         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
31737         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
31738         !defined(__c99))]: Include in this case too, since it's harmless
31739         now.
31740         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
31741         dangerous to do so.
31742         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
31743         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
31744         (_STDINT_MIN, _STDINT_MAX): New macros.
31745         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
31746         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
31747         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
31748         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
31749         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
31750         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
31751         macros, not typedefs; this simplifies things quite a bit.
31752         Use long int for all types narrower than int64_t.
31753         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
31754         Define in terms of long long int or int64_t or long int,
31755         not int64_t or int32_t.  This saves some compile-time testing.
31756         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
31757         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
31758         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
31759         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
31760         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
31761         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
31762         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
31763         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
31764         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
31765         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
31766         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
31767         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
31768         undef any previous version and define our own version, for
31769         simplicity and consistency with the new macros for types.
31770         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
31771         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
31772         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
31773         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
31774         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
31775         @WINT_T_SUFFIX@ to keep things simple here.
31776         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
31777         Simplify by assuming typical 8/16/32/64 host, since we're
31778         already doing that elsewhere anyway.
31779         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
31780         and assume long long int is 64 bits if available.  This
31781         speeds up 'configure'.
31782
31783 2006-07-01  Eric Blake  <ebb9@byu.net>
31784
31785         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
31786         Reported by Andreas Buening.
31787
31788 2006-07-01  Eric Blake  <ebb9@byu.net>
31789
31790         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
31791
31792 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
31793
31794         * lib/getaddrinfo.c: fixed typo
31795
31796 2006-06-29  Jim Meyering  <jim@meyering.net>
31797
31798         * modules/strftime (Maintainer): Add my name, since with the
31799         FPRINTFTIME changes strftime.c has forked from glibc.
31800
31801 2006-06-29  Eric Blake  <ebb9@byu.net>
31802
31803         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
31804
31805 2006-06-29  Eric Blake  <ebb9@byu.net>
31806
31807         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
31808
31809 2006-06-29  Eric Blake  <ebb9@byu.net>
31810
31811         * lib/stat_.h: New file.
31812
31813 2006-06-29  Eric Blake  <ebb9@byu.net>
31814
31815         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
31816         unused static function.
31817
31818 2006-06-29  Eric Blake  <ebb9@byu.net>
31819
31820         * doc/functions.texi (Function Portability): Document missing lstat
31821         on mingw.
31822
31823 2006-06-29  Eric Blake  <ebb9@byu.net>
31824
31825         * MODULES.html.sh: Add sys_stat.
31826         * modules/sys_stat: New module.
31827         * modules/mkstemp (Depends-on): Add sys_stat.
31828
31829 2006-06-29  Derek R. Price  <derek@ximbiot.com>
31830
31831         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
31832
31833 2006-06-29  Derek R. Price  <derek@ximbiot.com>
31834
31835         * m4/c-bs-a.m4: Removed.
31836
31837 2006-06-29  Derek R. Price  <derek@ximbiot.com>
31838
31839         * lib/strftime.c: Assume strftime() exists.
31840
31841 2006-06-29  Derek Price  <derek@ximbiot.com>
31842
31843         * modules/c-bs-a: Removed - \a is C89.
31844         * MODULES.html.sh: Remove c-bs-a.
31845
31846 2006-06-29  Bruno Haible  <bruno@clisp.org>
31847
31848         * modules/wcwidth (License): Change to LGPL.
31849
31850 2006-06-28  Simon Josefsson  <jas@extundo.com>
31851
31852         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
31853         on _WIN32.
31854
31855         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
31856         getnameinfo.
31857
31858 2006-06-28  Simon Josefsson  <jas@extundo.com>
31859
31860         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
31861
31862 2006-06-28  Simon Josefsson  <jas@extundo.com>
31863
31864         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
31865         functions there.  It will succeed on Windows XP, but on Windows
31866         2000 and (presumably) earlier, it will fail, and use the internal
31867         re-implementation.
31868         (use_win32_p): New function.
31869         (getaddrinfo): Use strtoul on servname, to support numeric ports.
31870         Support AI_NUMERICSERV to disable getservbyname.
31871         (getnameinfo): New function, only supports
31872         NI_NUMERICHOST|NI_NUMERICSERV for now.
31873
31874         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
31875         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
31876         getnameinfo.
31877
31878 2006-06-28  Eric Blake  <ebb9@byu.net>
31879
31880         * modules/wcwidth: New file.
31881         * modules/mbchar (Depends-on): Add wcwidth.
31882         * modules/mbswidth (Depends-on): Add wcwidth.
31883         * MODULES.html.sh: Add wcwidth.
31884
31885 2006-06-28  Eric Blake  <ebb9@byu.net>
31886
31887         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
31888         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
31889
31890 2006-06-28  Eric Blake  <ebb9@byu.net>
31891
31892         * lib/xvasprintf.h: Fix comments.
31893
31894 2006-06-28  Eric Blake  <ebb9@byu.net>
31895
31896         * lib/mbchar.h (wcwidth): Include wcwidth.h.
31897         * lib/mbswidth.c (wcwidth): Move from here...
31898         * lib/wcwidth.h: ...to this new file.
31899
31900 2006-06-28  Derek R. Price  <derek@ximbiot.com>
31901
31902         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
31903
31904         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
31905         it's obsolete.
31906         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
31907
31908 2006-06-28  Derek R. Price  <derek@ximbiot.com>
31909
31910         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
31911         Autoconf 2.60 says this stuff was obsolete.
31912
31913 2006-06-28  Bruno Haible  <bruno@clisp.org>
31914
31915         * modules/wcwidth (Files): Add m4/wchar_t.m4.
31916
31917 2006-06-28  Bruno Haible  <bruno@clisp.org>
31918
31919         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
31920         gt_TYPE_WCHAR_T.
31921
31922 2006-06-28  Bruno Haible  <bruno@clisp.org>
31923
31924         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
31925         declaration for wcwidth.
31926         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
31927
31928 2006-06-28  Bruno Haible  <bruno@clisp.org>
31929
31930         * lib/mkdtemp.c [MINGW]: Include <io.h>.
31931         (mkdir): Define using _mkdir.
31932
31933 2006-06-28  Bruno Haible  <bruno@clisp.org>
31934
31935         * lib/getaddrinfo.h: Fix POSIX URL.
31936         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
31937         _WIN32.
31938         (use_win32_p): Make static.
31939         (getaddrinfo): Reject service name if it is empty or does not consist
31940         solely of decimal digits, or if its value is > 65535.
31941         (getnameinfo): Remove useless casts.
31942
31943 2006-06-27  Simon Josefsson  <jas@extundo.com>
31944
31945         * modules/sys_select: New file, suggested by Bruno Haible, Paul
31946         Eggert and Martin Lambers.
31947
31948 2006-06-27  Simon Josefsson  <jas@extundo.com>
31949
31950         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
31951         Eggert and Martin Lambers.
31952
31953 2006-06-27  Bruno Haible  <bruno@clisp.org>
31954
31955         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
31956         result to 0, not to empty.
31957         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
31958
31959 2006-06-27  Bruno Haible  <bruno@clisp.org>
31960
31961         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
31962
31963 2006-06-26  Simon Josefsson  <jas@extundo.com>
31964
31965         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
31966         present.
31967
31968 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
31969
31970         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
31971         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
31972         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
31973
31974 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
31975
31976         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
31977
31978 2006-06-26  Bruno Haible  <bruno@clisp.org>
31979
31980         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
31981
31982 2006-06-26  Bruno Haible  <bruno@clisp.org>
31983
31984         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
31985
31986 2006-06-26  Bruno Haible  <bruno@clisp.org>
31987
31988         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
31989         SGI C compiler in pre-C99 mode.
31990         Suggested by Mark D. Baushke and Larry Jones.
31991
31992 2006-06-26  Bruno Haible  <bruno@clisp.org>
31993
31994         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
31995         WCHAR_MAX.
31996         Reported by Mark D. Baushke and Larry Jones.
31997
31998 2006-06-26  Bruno Haible  <bruno@clisp.org>
31999
32000         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
32001         in pre-C99 mode.
32002         Suggested by Mark D. Baushke and Larry Jones.
32003
32004 2006-06-23  Simon Josefsson  <jas@extundo.com>
32005             Bruno Haible  <bruno@clisp.org>
32006
32007         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
32008         Emit mostlyclean-local rule.
32009         (func_emit_tests_Makefile_am): Likewise.
32010         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
32011
32012 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
32013
32014         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
32015
32016 2006-06-23  Bruno Haible  <bruno@clisp.org>
32017
32018         * tests/test-stdint.c: Update to match ISO C 99 Technical
32019         Corrigendum 1.
32020
32021 2006-06-23  Bruno Haible  <bruno@clisp.org>
32022
32023         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
32024
32025 2006-06-23  Bruno Haible  <bruno@clisp.org>
32026
32027         * lib/stdint_.h: Treat IRIX like OpenBSD.
32028
32029 2006-06-23  Bruno Haible  <bruno@clisp.org>
32030
32031         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
32032         ISO C 99 Technical Corrigendum 1.
32033
32034 2006-06-22  Simon Josefsson  <jas@extundo.com>
32035
32036         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
32037         MinGW.
32038
32039 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
32040
32041         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
32042         needed.  Some compiler complained about some of them.  Problem reported
32043         by Larry Jones in
32044         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
32045
32046 2006-06-21  Simon Josefsson  <jas@extundo.com>
32047
32048         * tests/test-getaddrinfo.c: New file.
32049
32050         * modules/getaddrinfo-tests: New file.
32051
32052         * MODULES.html.sh: Add inet_pton.
32053
32054         * modules/inet_pton: New file.
32055
32056 2006-06-21  Simon Josefsson  <jas@extundo.com>
32057
32058         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
32059         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
32060         of using the (limited) gnulib implementation on Windows XP.
32061
32062         * m4/inet_pton.m4: New file.
32063
32064 2006-06-21  Simon Josefsson  <jas@extundo.com>
32065
32066         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
32067         variable.
32068
32069         * lib/socket_.h: Don't define WINVER.
32070
32071         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
32072         slightly modified to work in gnulib.
32073
32074 2006-06-21  Simon Josefsson  <jas@extundo.com>
32075
32076         * doc/gnulib.texi (Windows sockets): Add.
32077
32078 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
32079
32080         * lib/read-file.c (fread_file): Start with buffer allocation of
32081         0 bytes rather than 1 byte; this simplifies the code.
32082         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
32083         code to free buffer and save/restore errno.
32084         (internal_read_file): Remove unused local.
32085
32086 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
32087
32088         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
32089         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
32090         Problem reported by Denis Excoffier in
32091         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
32092
32093 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32094
32095         * modules/sys_socket, modules/socklen: Include sys/types since
32096         FreeBSD 4.x's sys/socket.h needs it.
32097
32098 2006-06-19  Simon Josefsson  <jas@extundo.com>
32099
32100         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
32101
32102 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
32103
32104         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
32105
32106 2006-06-19  Bruno Haible  <bruno@clisp.org>
32107
32108         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
32109         and FULL_PATH_INTTYPES_H in angle brackets.
32110         Reported by Mark D. Baushke <mdb@gnu.org>.
32111
32112 2006-06-17  Eric Blake  <ebb9@byu.net>
32113
32114         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
32115         errno.
32116
32117 2006-06-17  Bruno Haible  <bruno@clisp.org>
32118
32119         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
32120         <sys/inttypes.h>.
32121
32122 2006-06-17  Bruno Haible  <bruno@clisp.org>
32123
32124         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
32125         whether errno is declared. Assume <errno.h> declares errno.
32126
32127 2006-06-17  Bruno Haible  <bruno@clisp.org>
32128
32129         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
32130
32131 2006-06-17  Bruno Haible  <bruno@clisp.org>
32132
32133         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
32134         problem on Solaris 2.5.1.
32135
32136 2006-06-16  Eric Blake  <ebb9@byu.net>
32137
32138         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
32139         * lib/unicodeio.c [!defined errno]: Likewise.
32140         * lib/strtol.c [!defined errno]: Likewise.
32141         * lib/strtod.c [!defined errno]: Likewise.
32142
32143 2006-06-15  Eric Blake  <ebb9@byu.net>
32144
32145         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
32146
32147 2006-06-15  Eric Blake  <ebb9@byu.net>
32148
32149         * config/srclist.txt (ssize_t.m4): Lose sync.
32150
32151 2006-06-15  Bruno Haible  <bruno@clisp.org>
32152
32153         * modules/stdint (Files): Include m4/full-header-path.m4,
32154         m4/size_max.m4, m4/wchar_t.m4.
32155         (Makefile.am): Many more substitutions.
32156         * modules/stdint-tests: New file.
32157         * tests/test-stdint.c: New file.
32158
32159 2006-06-15  Bruno Haible  <bruno@clisp.org>
32160
32161         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
32162         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
32163         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
32164         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
32165         gl_CHECK_TYPE_SAME): New macros.
32166
32167 2006-06-15  Bruno Haible  <bruno@clisp.org>
32168
32169         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
32170
32171 2006-06-15  Bruno Haible  <bruno@clisp.org>
32172
32173         * lib/stdint_.h: Rewritten to be fully auto-configured.
32174         Fixes bug on HP-UX/IA64.
32175
32176 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
32177
32178         * lib/getdate.y (__attribute__): Don't define if already defined.
32179         Problem reported by Larry Jones.
32180         * lib/utimens.c (__attribute__): Likewise.
32181
32182 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
32183
32184         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
32185         reported by Andreas Schwab.
32186
32187 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32188             Bruno Haible  <bruno@clisp.org>
32189
32190         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
32191         check for the declaration of strnlen and a run test that exposes the
32192         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
32193         rpl_strndup.
32194
32195 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32196             Bruno Haible  <bruno@clisp.org>
32197
32198         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
32199
32200 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32201
32202         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
32203         compile test, for Tru64 4.0D.
32204
32205 2006-05-28  Karl Berry  <karl@gnu.org>
32206
32207         * config/srclist.txt (printf-args.c): lose sync.
32208
32209 2006-05-26  Martin Lambers  <marlam@marlam.de>
32210
32211         * lib/getpass.c: Updates the test for the native W32 API, and adds
32212         missing includes, thus fixing compilation warnings.
32213
32214 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
32215
32216         * lib/exclude.c (exclude_fnmatch): New function.
32217         (excluded_file_name): Call exclude_fnmatch.
32218         * lib/exclude.h (excluded_file_name): New prototype
32219
32220 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
32221
32222         * lib/tempname.c (small_open, large_open): New macros.
32223         (__open, __open64) [!_LIBC]: Remove.
32224         (__gen_tempname): Use small_open and large_open instead of __open
32225         and __open64.  This fixes a portability bug on HP-UX 11.11i
32226         reported by Simon Wing-Tang in
32227         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
32228
32229 2006-05-24  Bruno Haible  <bruno@clisp.org>
32230
32231         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
32232         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
32233         Reported by Thorsten Maerz <torte@netztorte.de> via
32234         Aaron Stone <aaron@serendipity.cx>.
32235
32236 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
32237
32238         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
32239         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
32240         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
32241         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
32242         not really conditional on the cache.
32243         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
32244
32245 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
32246
32247         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
32248         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
32249         (my_usleep): Don't mishandle maximum value.
32250
32251 2006-05-19  Jim Meyering  <jim@meyering.net>
32252
32253         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
32254
32255 2006-05-17  Bruno Haible  <bruno@clisp.org>
32256
32257         Cygwin portability.
32258         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
32259
32260 2006-05-17  Bruno Haible  <bruno@clisp.org>
32261
32262         * lib/stdint_.h: Fix recognition of Cygwin.
32263
32264 2006-05-15  Bruno Haible  <bruno@clisp.org>
32265
32266         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
32267         on libtool patch by Ralf Wildenhues.
32268
32269 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
32270
32271         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
32272         test for C99 conformance; (bool) 0.5 is an integer constant
32273         expression, but (bool) -0.5 is not.  Problem reported by Fedor
32274         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
32275
32276 2006-05-11  Simon Josefsson  <jas@extundo.com>
32277
32278         * m4/xvasprintf.m4: Fix obvious typo.
32279
32280 2006-05-11  Jim Meyering  <jim@meyering.net>
32281
32282         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
32283         James Lemley.
32284
32285 2006-05-10  Simon Josefsson  <jas@extundo.com>
32286
32287         * lib/md4.c: Typo fix, update copyright years.
32288         (K1, K2): Don't use L because it turn computations into 64-bit on
32289         64-bit platforms.
32290
32291 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
32292
32293         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
32294         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
32295         unwanted sign propagation, e.g., on hosts with 64-bit int.
32296         There still are some problems with reeelly weird theoretical hosts
32297         (e.g., 33-bit int) but it's not worth worrying about now.
32298         * lib/sha1.c (rol): Likewise.
32299         (K1, K2, K3, K4): Remove unnecessary L suffix.
32300
32301 2006-05-10  Bruno Haible  <bruno@clisp.org>
32302
32303         * lib/des.c: Cast to avoid warnings.
32304
32305 2006-05-09  Bruno Haible  <bruno@clisp.org>
32306
32307         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
32308         (Depends-on): Depend also on xsize, stdarg.
32309         (configure.ac): Add gl_XVASPRINTF.
32310
32311 2006-05-09  Bruno Haible  <bruno@clisp.org>
32312
32313         * m4/xvasprintf.m4: New file.
32314
32315 2006-05-09  Bruno Haible  <bruno@clisp.org>
32316
32317         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
32318         (EOVERFLOW): Define fallback value.
32319         (xstrcat): New function.
32320         (xvasprintf): Recognize the special case of a string concatenation.
32321
32322 2006-05-08  Eric Blake  <ebb9@byu.net>
32323
32324         * gnulib-tool (func_version): Base copyright year on CVS date.
32325         (func_emit_copyright_notice): New function.
32326         (func_emit_lib_Makefile_am): Use it.
32327         (func_emit_tests_Makefile_am): Likewise.
32328         (func_import): Likewise.
32329
32330 2006-05-08  Bruno Haible  <bruno@clisp.org>
32331
32332         * modules/stdarg: New file.
32333         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
32334
32335 2006-05-08  Bruno Haible  <bruno@clisp.org>
32336
32337         * m4/stdarg.m4: New file, from GNU gettext.
32338
32339 2006-05-08  Bruno Haible  <bruno@clisp.org>
32340
32341         * config/srclist.txt (build-aux/config.rpath): different from latest
32342         release.
32343
32344 2006-05-08  Bruno Haible  <bruno@clisp.org>
32345
32346         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
32347
32348 2006-05-05  Jim Meyering  <jim@meyering.net>
32349
32350         * m4/warning.m4: New file, derived from bison's file by the same name.
32351
32352 2006-05-03  Bruno Haible  <bruno@clisp.org>
32353
32354         * lib/stdint_.h: Shorter URL.
32355         * lib/inttypes.h: Likewise.
32356
32357 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32358
32359         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
32360
32361 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32362
32363         * lib/verify.h: Document the internals better.  Most of this change
32364         was written by Bruno Haible.
32365
32366 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
32367
32368         * doc/verify.texi: New file, partly based on a proposal by
32369         Bruno Haible.
32370
32371 2006-05-02  Bruno Haible  <bruno@clisp.org>
32372
32373         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
32374         test from here...
32375         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
32376
32377 2006-04-29  Bruno Haible  <bruno@clisp.org>
32378
32379         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
32380         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
32381
32382 2006-04-29  Bruno Haible  <bruno@clisp.org>
32383
32384         * gnulib-tool: Make --update option actually work.
32385
32386 2006-04-29  Bruno Haible  <bruno@clisp.org>
32387
32388         * doc/gcd.texi: New file.
32389         * doc/gnulib.texi: Include it.
32390
32391 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
32392
32393         * lib/getdate.y (get_date): When adding relative date, start with the
32394         initial time, not with the result of the first mktime call.
32395
32396 2006-04-25  Bruno Haible  <bruno@clisp.org>
32397
32398         * gnulib-tool (func_import): Output the include directives in three
32399         blocks, sorted separately.
32400         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32401
32402 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
32403
32404         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
32405         to define main with arguments, for C++.  Reported by Eric Blake.
32406         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
32407         Prefer 'int main ()' to 'int main (void)', for C++.
32408         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
32409         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
32410         for 'main', for C99 and C++.
32411
32412 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
32413
32414         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
32415         Don't assume that exit status -1 is valid.
32416         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32417         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
32418         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
32419         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
32420         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
32421         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
32422         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
32423         functions can be used without declaring them, or that you can
32424         exit with status -1.
32425         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
32426
32427 2006-04-24  Karl Berry  <karl@gnu.org>
32428
32429         * config/srclist.txt (longdouble.m4): sync lost.
32430
32431 2006-04-24  Eric Blake  <ebb9@byu.net>
32432
32433         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
32434
32435 2006-04-24  Bruno Haible  <bruno@clisp.org>
32436
32437         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
32438         poll() implementation in AIX.
32439         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32440
32441 2006-04-24  Bruno Haible  <bruno@clisp.org>
32442
32443         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
32444         assigned exactly once.
32445
32446 2006-04-23  Claudio Fontana  <claudio@gnu.org>
32447             Bruno Haible  <bruno@clisp.org>
32448
32449         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
32450         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
32451         for AM_CPPFLAGS.
32452
32453 2006-04-23  Bruno Haible  <bruno@clisp.org>
32454
32455         * modules/copy-file: Depend on unistd.
32456         * modules/execute: Likewise.
32457         * modules/fatal-signal: Likewise.
32458         * modules/findprog: Likewise.
32459         * modules/mkdtemp : Likewise.
32460         * modules/pipe: Likewise.
32461         * modules/wait-process: Likewise.
32462
32463 2006-04-23  Bruno Haible  <bruno@clisp.org>
32464
32465         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
32466         condition was already detected.
32467         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32468
32469 2006-04-23  Bruno Haible  <bruno@clisp.org>
32470
32471         * lib/copy-file.c: Include <unistd.h> unconditionally.
32472         * lib/execute.c: Likewise.
32473         * lib/fatal-signal.c: Likewise.
32474         * lib/findprog.c: Likewise.
32475         * lib/mkdtemp.c: Likewise.
32476         * lib/pipe.h: Likewise.
32477         * lib/pipe.c: Likewise.
32478         * lib/wait-process.h: Likewise.
32479
32480 2006-04-23  Bruno Haible  <bruno@clisp.org>
32481
32482         * gnulib-tool (func_usage): Fix --import description. Document
32483         --update.
32484         (func_import): Create temporary file in a temporary directory, if
32485         --dry-run is specified. Silence errors from 'grep' when there are no
32486         m4 files in $m4dir.
32487         (func_create_testdir): Silence errors from 'grep' when there are no
32488         m4 files in $m4dir.
32489         Reported by Karl Berry <karl@freefriends.org>.
32490
32491 2006-04-20  Bruno Haible  <bruno@clisp.org>
32492
32493         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
32494         one argument, so that the code will be portable to Autoconf 2.60.
32495         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
32496         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
32497         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
32498
32499 2006-04-19  Derek Price  <derek@ximbiot.com>
32500             Eric Blake  <ebb9@byu.net>
32501
32502         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
32503         rather than "/full/path.h".  Update comment to match.  Shorten &
32504         generalize m4_translit call via AS_TR_CPP.
32505
32506 2006-04-19  Derek Price  <derek@ximbiot.com>
32507             Eric Blake  <ebb9@byu.net>
32508
32509         * lib/inttypes.h: Correct grammar in comment.
32510
32511 2006-04-18  Derek Price  <derek@ximbiot.com>
32512             Paul Eggert  <eggert@cs.ucla.edu>
32513
32514         * modules/inttypes: New file.
32515         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
32516
32517 2006-04-18  Derek Price  <derek@ximbiot.com>
32518             Paul Eggert  <eggert@cs.ucla.edu>
32519
32520         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
32521         New files.
32522
32523 2006-04-18  Derek Price  <derek@ximbiot.com>
32524             Paul Eggert  <eggert@cs.ucla.edu>
32525
32526         * lib/inttypes.h: New file.
32527         * lib/strtoimax.c: Assume <inttypes.h>.
32528
32529 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
32530
32531         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
32532         isn't mounted.  Problem reported by Kir Kolyshkin.
32533
32534 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
32535
32536         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
32537         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
32538         Derek R. Price.
32539         * lib/regex.h (RE_DUP_MAX): Update comment to match current
32540         implementation.
32541
32542 2006-04-12  Eric Blake  <ebb9@byu.net>
32543
32544         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
32545         is now done automatically by the corresponding Autoconf macro.
32546
32547 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
32548
32549         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
32550         time_r.h.
32551
32552 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32553
32554         Merge regex changes from libc, removing some of our
32555         POSIX-conformance changes that were rejected and redoing them in a
32556         less-intrusive way.
32557
32558         * lib/regcomp.c (re_compile_internal, init_dfa):
32559         Length arg is now size_t, not Idx.  All uses changed.
32560         (peek_token): Forward decl now says internal_function.
32561         (__re_error_msgid, __re_error_msgid_idx):
32562         Now static rather than extern with attribute_hidden.
32563         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
32564         For some reason libc prefers K&R style defns for external functions.
32565         (regerror) [!defined _LIBC]: Likewise.
32566         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
32567         (seek_collating_symbol_entry, lookup_collation_sequence_value):
32568         (build_range_exp, build_collating_symbol):
32569         Use K&R-style defn.
32570         (re_compile_fastmap): Use '\0' to memset, not 0.
32571         (utf8_sb_map): Make the calculations more obvious.
32572         (init_dfa, parse_bracket_exp, build_charclass_op):
32573         Call calloc and cast result, as glibc does.
32574         (init_word_char, fetch_token, peek_token, peek_token_bracket):
32575         (build_range_exp, build_collating_symbol):
32576         Now internal functions.
32577
32578         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
32579
32580         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
32581         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
32582         Don't depend on VMS; depend on __VMS instead, for POSIX
32583         namespace cleanness.
32584         (regoff_t): Define to ssize_t, not long int.
32585
32586         Remove the REG_ macros named below.  Instead, make the old names
32587         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
32588         __USE_GNU_REGEX.
32589         (REG_BACKSLASH_ESCAPE_IN_LISTS):
32590         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
32591         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
32592         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
32593         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
32594         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
32595         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
32596         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
32597         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
32598         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
32599         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
32600         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
32601         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
32602         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
32603         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
32604         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
32605         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
32606         (REG_NREGS):
32607         Remove.  All uses replaced by the old RE_* names.
32608         (RE_BACKSLASH_ESCAPE_IN_LISTS):
32609         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
32610         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
32611         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
32612         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
32613         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
32614         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
32615         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
32616         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
32617         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
32618         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
32619         Don't bother having these macros be independent of each others'
32620         values, since they no longer exist in the POSIX name space.
32621
32622         Rename the following member names back to their old names,
32623         unless !__USE_GNU_REGEX.  All uses changed back.
32624         (buffer): Renamed from re_buffer.
32625         (allocated): Renamed from re_allocated.
32626         (used): Renamed from re_used.
32627         (syntax): Renamed from re_syntax.
32628         (fastmap): Renamed from re_fastmap.
32629         (translate): Renamed from re_translate.
32630         (can_be_null): Renamed from re_can_be_null.
32631         (regs_allocated): Renamed from re_regs_allocated.
32632         (fastmap_accurate): Renamed from re_fastmap_accurate.
32633         (no_sub): Renamed from re_no_sub.
32634         (not_bol): Renamed from re_not_bol.
32635         (not_eol): Renamed from re_not_eol.
32636         (newline_anchor): Renamed from re_newline_anchor.
32637         (num_regs): Renamed from rm_num_regs.
32638         (start): Renamed from rm_start.
32639         (end): Renamed from rm_end.
32640
32641         (free_state): Move up a bit.
32642
32643         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
32644         #define to be empty.
32645         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
32646         when that is what is intended.
32647         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
32648         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
32649         (MAX): New macro.
32650         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
32651         All uses changed back to re_malloc, etc.  It's now the caller's
32652         responsibility to check for overflow; all callers changed.
32653         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
32654         (re_x2nrealloc): Remove.
32655         (free_state): Remove decl.
32656
32657         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
32658         (re_set_registers, re_exec):
32659         Use K&R-style defn.
32660
32661         2006-01-31  Roland McGrath  <roland@redhat.com>
32662
32663         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
32664         Reported by Mike Frysinger <vapier@gentoo.org>.
32665
32666         2006-01-15  Andreas Jaeger  <aj@suse.de>
32667
32668         [BZ #1950]
32669         * lib/regex_internal.c (re_string_reconstruct): Adjust for
32670         build_wcs_upper_buffer change.
32671         (build_wcs_upper_buffer): Change return type.
32672
32673         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
32674
32675         * lib/regex_internal.h: Include <stdint.h> if available.
32676
32677         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
32678
32679         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
32680
32681         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
32682
32683         * lib/regcomp.c: Adjust for changed secondary hash function.
32684
32685         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
32686
32687         * lib/regex.h: Pretty printing.
32688         Clean up namespace a bit.
32689
32690         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
32691
32692         * lib/regexec.c (update_cur_sifted_state, check_arrival,
32693         check_arrival_add_next_nodes): Avoid using uninitialized variable.
32694
32695         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
32696                     Ulrich Drepper  <drepper@redhat.com>
32697
32698         [BZ #1302]
32699         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
32700         changed.
32701         (bitset_word_t): Renamed from bitset_word.  All uses changed.
32702
32703         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
32704
32705         [BZ #281]
32706         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
32707         * lib/regcomp.c: Remove unnecessary uses of
32708         unsigned RE_TRANSLATE_TYPE.
32709         * lib/regex_internal.h: Likewise.
32710         * lib/regex_internal.c: Likewise.
32711         * lib/regexec.c: Likewise.
32712         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
32713
32714         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
32715
32716         * lib/regexec.c (find_recover_state): Remove unnecessary
32717         initialization.
32718         (transit_state_bkref): Make DFA a const pointer.
32719         (get_subexp): Likewise.
32720         (check_arrival): Likewise.
32721         (update_cur_sifted_state): Likewise.
32722         (re_search_internal): Likewise.
32723         (prune_impossible_nodes): Likewise.
32724         (acquire_init_state_context): Likewise.
32725         (proceed_next_node): Likewise.
32726         (set_regs): Likewise.
32727         (free_fail_stack_return): Likewise.
32728         (check_arrival_expand_ecl): Mark DFA parameter as const.
32729         (check_arrival_expand_ecl_sub): Likewise.
32730         (check_subexp_limits): Likewise.
32731         (sub_epsilon_src_nodes):  Likewise.
32732         (add_epsilon_src_nodes):  Likewise.
32733         (merge_state_array): Likewise.
32734         (update_regs): Likewise.
32735         (build_trtable): Likewise.
32736         (sift_states_backward): Mark MCTX parameter as const.
32737         (build_sifted_states): Likewise.
32738         (update_cur_sifted_state): Likewise.
32739         (sift_states_mkref): Likewise.
32740         (check_arrival_expand_ecl): Mark eclosure as const.
32741         (check_dst_limits_calc_pos_1): Likewise.
32742         * lib/regex_internal.h (re_match_context_t): Make dfa a const
32743         pointer.
32744
32745         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
32746
32747         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
32748         (transit_state_sb): Likewise.
32749         (transit_state_mb): Likewise.
32750         (sift_states_iter_mb): Likewise.
32751         (check_arrival_add_next_nodes): Likewise.
32752         (check_node_accept_bytes): Change first parameter to pointer-to-const.
32753         [_LIBC] (re_search_2_stub): Use mempcpy.
32754
32755         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
32756         mbrtowc for very simple UTF-8 case.
32757
32758         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
32759         a pointer-to-const.
32760         (re_acquire_state_context): Likewise.
32761         * lib/regex_internal.h: Adjust prototypes.
32762
32763         * lib/regex.c: Prevent using C++ compilers.
32764
32765         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
32766         (re_acquire_state_context): Likewise.
32767
32768 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32769
32770         * modules/regex (Depends-on): Add ssize_t.
32771
32772 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32773
32774         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
32775         translation table.
32776
32777 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32778
32779         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
32780
32781 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
32782             Bruno Haible  <bruno@clisp.org>
32783
32784         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
32785         <sys/types.h> and <inttypes.h>.
32786
32787 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32788
32789         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
32790         `__error_t_defined', so argp.h will not typedef the former.
32791
32792 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
32793
32794         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
32795         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
32796         glibc names.  Even if glibc is changed to conform to POSIX, the
32797         traditional names will be available anyway, since regex depends on
32798         the extensions module.  Also, fix a longstanding typo in the
32799         implementation of Spencer ERE test #75 from grep 2.3.  Problems
32800         reported by Emanuele Giaquinta.  Also, change sense of cached
32801         variable, so that the message makes sense.
32802
32803 2006-03-24  Simon Josefsson  <jas@extundo.com>
32804
32805         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
32806         including some doc fixes.
32807         (base64_encode_alloc): Fix +1 bug on allocation failures.
32808
32809 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32810
32811         * lib/base64.c (base64_encode): Do not read past end of array with
32812         unsanitized input on systems with CHAR_BIT > 8.
32813
32814 2006-03-24  Eric Blake  <ebb9@byu.net>
32815
32816         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
32817
32818 2006-03-22  Karl Berry  <karl@gnu.org>
32819
32820         * config/srclist.txt (*setenv.[ch]): get from coreutils.
32821         * config/srclistvars.sh (COREUTILS): new var.
32822
32823 2006-03-17  Jim Meyering  <jim@meyering.net>
32824
32825         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
32826         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
32827
32828 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
32829
32830         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
32831         no longer needs it.  Instead, check that regoff_t is as least
32832         as wide as ptrdiff_t.
32833
32834         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
32835         so that our regex.h stays compatible with the installed regex.
32836         This is helpful for installers who configure --without-included-regex.
32837         Problem reported by Emanuele Giaquinta.
32838
32839 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
32840
32841         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
32842         Typedef to long int, not to off_, as POSIX will likely change
32843         in that direction.
32844
32845 2006-03-15  Eric Blake  <ebb9@byu.net>
32846
32847         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
32848
32849 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
32850
32851         * lib/argp-help.c (validate_uparams): Fix typo
32852         * lib/argp-parse.c (argp_default_options): Consistently begin help
32853         messages with a lowercase letter.
32854
32855 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
32856
32857         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
32858         overrun buffers and shouldn't be used (much as gets shouldn't be
32859         used).
32860         * lib/time_r.c (asctime_r, ctime_r): Likewise.
32861
32862 2006-03-08  Simon Josefsson  <jas@extundo.com>
32863
32864         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
32865         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32866
32867 2006-03-08  Simon Josefsson  <jas@extundo.com>
32868
32869         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
32870         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32871
32872 2006-03-08  Simon Josefsson  <jas@extundo.com>
32873
32874         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
32875         signal that configure disabled the device.
32876
32877 2006-03-08  Simon Josefsson  <jas@extundo.com>
32878
32879         * build-aux/maint.mk: Fix refresh-po, to handle no translated
32880         languages.
32881
32882 2006-03-07  Simon Josefsson  <jas@extundo.com>
32883
32884         * modules/getopt (Depends-on): Add unistd.
32885
32886         * modules/unistd: New file.
32887
32888 2006-03-07  Simon Josefsson  <jas@extundo.com>
32889
32890         * modules/gc-random: New file.
32891
32892 2006-03-07  Simon Josefsson  <jas@extundo.com>
32893
32894         * m4/unistd_h.m4: New file.
32895
32896 2006-03-07  Simon Josefsson  <jas@extundo.com>
32897
32898         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
32899         test to be side-effect free by storing the result in the cache
32900         variable gl_cv_lib_readline, and moving the assignment of
32901         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
32902         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32903
32904 2006-03-07  Simon Josefsson  <jas@extundo.com>
32905
32906         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
32907         error on missing devices (the functions will return an error).
32908
32909         * m4/gc.m4: Move random stuff to gc-random.m4
32910
32911 2006-03-07  Simon Josefsson  <jas@extundo.com>
32912
32913         * lib/unistd_.h: New file.
32914
32915 2006-03-07  Simon Josefsson  <jas@extundo.com>
32916
32917         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
32918
32919 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
32920
32921         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
32922         Problem reported by Juan Manuel Guerrero.
32923
32924 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
32925
32926         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
32927         the unistd module.
32928         * lib/getlogin_r.c: Likewise.
32929         * lib/getlogin_r.h: Likewise.
32930         * lib/glob.c: Likewise.
32931         * lib/pagealign_alloc.c: Likewise.
32932         * lib/unistd_.h: Remove; no longer needed.
32933
32934 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
32935
32936         * MODULES.html.sh (Support for systems lacking POSIX:2001):
32937         Add unistd.
32938         * modules/c-stack (Depends-on): Add unistd.
32939         * modules/getlogin_r: Likewise.
32940         * modules/glob: Likewise.
32941         * modules/pagealign_alloc: Likewise.
32942         * modules/unistd (Files): Remove lib/unistd_.h.
32943         (EXTRA_DIST): Remove.
32944         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
32945         need unistd_.h.
32946         (MOSTLYCLEANFILES): Remove unistd.h-t.
32947
32948 2006-03-03  Simon Josefsson  <jas@extundo.com>
32949
32950         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
32951
32952 2006-03-03  Simon Josefsson  <jas@extundo.com>
32953
32954         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
32955         libidn and bison.
32956
32957 2006-03-03  Simon Josefsson  <jas@extundo.com>
32958
32959         * build-aux/maint.mk: Add indent target.
32960
32961 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
32962
32963         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
32964         our replacement poll.h in any case, to avoid a differing
32965         declaration from a system header.  Seen on AIX.
32966
32967 2006-03-01  Simon Josefsson  <jas@extundo.com>
32968
32969         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
32970         <kasal@ucw.cz>.
32971
32972 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
32973
32974         * modules/gettime (Depends-on): Add extensions module.
32975         * modules/nanosleep (Depends-on): Likewise.
32976         * modules/settime (Depends-on): Likewise.
32977
32978 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
32979
32980         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
32981         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
32982         pedantically.
32983         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32984         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
32985
32986         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
32987         not "==".  Reported by Ralf Wildenhues.
32988
32989 2006-03-01  Karl Berry  <karl@gnu.org>
32990
32991         * doc/Copyright/request-*: new files, synced from gnuorg.
32992
32993 2006-03-01  Karl Berry  <karl@gnu.org>
32994
32995         * config/srclist.txt (Copyright/*): new entries.
32996
32997 2006-02-28  Simon Josefsson  <jas@extundo.com>
32998
32999         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
33000
33001 2006-02-27  Simon Josefsson  <jas@extundo.com>
33002
33003         * lib/base64.h: Indent #define's.  From Jim Meyering
33004         <jim@meyering.net>.
33005
33006 2006-02-27  Jim Meyering  <jim@meyering.net>
33007
33008         Revert the change of 2006-02-24, so these files can continue
33009         to be sync'd from gettext.
33010         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
33011         of `config.h'.
33012
33013 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
33014
33015         * modules/intprops: New file.
33016         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
33017         Add intprops.
33018         * modules/getloadavg (Files): Remove lib/intprops.h.
33019         (Depends-on): Add intprops.
33020         * modules/human: Likewise.
33021         * modules/inttostr: Likewise.
33022         * modules/openat: Likewise.
33023         * modules/sig2str: Likewise.
33024         * modules/userspec: Likewise.
33025         * modules/utimecmp: Likewise.
33026         * modules/xnanosleep: Likewise.
33027         * modules/xstrtol: Likewise.
33028
33029 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
33030
33031         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
33032         * modules/lock-tests (TESTS): Use $(EXEEXT).
33033         * modules/tls-tests: Likewise.
33034         * modules/argp-tests: Likewise.
33035         (check_PROGRAMS): New var, replacing...
33036         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
33037
33038 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33039
33040         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
33041         `config.h'.
33042
33043 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
33044
33045         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
33046
33047 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33048
33049         Sync from coreutils.
33050         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
33051         gl_CHDIR_SAFER.
33052
33053 2006-02-22  Jim Meyering  <jim@meyering.net>
33054
33055         Sync from coreutils.
33056         * m4/chdir-safer.m4: New file.
33057
33058 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
33059
33060         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
33061         AT_FDCWD exceeds INT_MAX.
33062         * lib/openat.h (AT_FDCWD): Likewise.
33063
33064 2006-02-17  Eric Blake  <address@hidden>
33065
33066         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
33067
33068 2006-02-16  Simon Josefsson  <jas@extundo.com>
33069
33070         * modules/getaddrinfo (Depends-on): Add sys_socket.
33071
33072 2006-02-15  Simon Josefsson  <jas@extundo.com>
33073
33074         * build-aux/maint.mk: Add dsyntax-check rule.
33075
33076 2006-02-15  Eric Blake  <ebb9@byu.net>
33077
33078         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
33079         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
33080         'present but cannot compile' warnings on cygwin.
33081         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
33082         use ws2tcpip.h if sys/socket.h works.
33083         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
33084         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
33085
33086 2006-02-14  Simon Josefsson  <jas@extundo.com>
33087
33088         * modules/maintainer-makefile (Files): Rename.
33089
33090         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
33091         and (the local) Makefile.cfg to maint-cfg.mk.
33092
33093         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
33094         to the latter.
33095
33096         * modules/maintainer-makefile: New module.
33097
33098         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
33099         severaly stripped to make it possible to build it up from scratch
33100         with reliable tests.
33101
33102         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
33103         fixes to permit overriding the default actions when configure and
33104         makefile are not available.
33105
33106 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
33107
33108         Sync from coreutils.
33109         * modules/lstat (Depends-on): Don't depend on xalloc.
33110         (License): Change from GPL to LGPL, since this is now simply a
33111         replacement for a libc function.
33112
33113 2006-02-14  Jim Meyering  <jim@meyering.net>
33114
33115         Sync from coreutils.
33116
33117         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
33118         failure on deficient systems, and simplify gnulib lgpl dependencies.
33119         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
33120         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
33121
33122         * lib/xalloc-die.c: Remove unused definition of N_.
33123
33124 2006-02-14  Jim Meyering  <jim@meyering.net>
33125
33126         Sync from coreutils.
33127         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
33128         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
33129         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
33130         double-quote uses of that variable, to accommodate the rare case in
33131         which getmntent is available in none of the libraries checked.  This
33132         happens at least on FreeBSD 5.0.
33133
33134 2006-02-13  Simon Josefsson  <jas@extundo.com>
33135
33136         * gnulib-tool (Usage): Fix --import, from
33137         karl@freefriends.org (Karl Berry).
33138
33139 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
33140
33141         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
33142
33143 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
33144
33145         * lib/argp-namefrob.h: Restore changes accidentally lost during the
33146         "autoupdate" on 2005-12-12.
33147
33148 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
33149
33150         * modules/closeout (Depends-on): Remove atexit.
33151
33152 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
33153
33154         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
33155         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
33156
33157 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
33158
33159         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
33160         __EXTENSIONS__ if this causes compilation to fail.  Problem
33161         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
33162         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
33163
33164 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
33165
33166         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
33167         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
33168         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
33169         All uses changed.
33170
33171 2006-01-26  Simon Josefsson  <jas@extundo.com>
33172
33173         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
33174         prototype is visible on mingw32.
33175
33176         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
33177         for mingw32.
33178
33179         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
33180         mingw32).
33181
33182 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
33183
33184         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
33185         attempt to open for write; this always fails, at least on POSIX
33186         hosts.  This reinstates the 2006-01-09 change, which was
33187         inadvertently removed.
33188
33189 2006-01-26  Bruno Haible  <bruno@clisp.org>
33190
33191         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
33192         Reported by Paul Eggert.
33193
33194 2006-01-26  Bruno Haible  <bruno@clisp.org>
33195             Paul Eggert  <eggert@cs.ucla.edu>
33196
33197         * lib/stdbool_.h (_Bool)
33198         [(! (defined __cplusplus || defined __BEOS__)
33199           && !defined __GNUC__
33200           && !(defined __HP_cc || defined __xlc__
33201                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
33202                || defined __sgi))]:
33203         #define to signed char in these cases too; this simplifies
33204         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
33205         etc., separately) and makes it more conservative.
33206
33207 2006-01-25  Simon Josefsson  <jas@extundo.com>
33208
33209         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
33210         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
33211         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
33212
33213 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33214
33215         * lib/argp-namefrob.h: Bugfix. Remove stray #
33216
33217 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
33218
33219         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
33220         so that we test the test.
33221         Check for yet another HP-UX cc bug involving *bool |= bool.
33222
33223 2006-01-25  Karl Berry  <karl@gnu.org>
33224
33225         * config/srclist.txt (vasnprintf.c): sync lost.
33226
33227 2006-01-25  Jim Meyering  <jim@meyering.net>
33228
33229         Sync from the stable (b5) branch of coreutils:
33230
33231         * lib/fts.c (fts_children): Don't let close() clobber errno from
33232         failed fchdir().
33233
33234         * lib/fts.c (fts_stat): When following a symlink-to-directory,
33235         don't necessarily interpret stat-fails+lstat-succeeds as indicating
33236         a dangling symlink.  That can also happen at least for ELOOP.
33237         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
33238         FYI, this bug predates the inclusion of fts.c in coreutils.
33239
33240         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
33241         in their own block, so pre-c99 compilers don't object.
33242
33243         Avoid the double-free (first in fts_read, second in fts_close) that
33244         would occur when an `active' directory is made inaccessible (e.g.,
33245         via chmod a-x) during a traversal.
33246         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
33247         before returning.  Reproduce this failure by
33248         mkdir -p a/b; cd a; chmod a-x . b
33249         Reported by Stavros Passas.
33250
33251 2006-01-25  Jim Meyering  <jim@meyering.net>
33252
33253         * lib/fileblocks.c: Remove more useless parentheses.
33254         * lib/readutmp.h: Likewise.
33255
33256 2006-01-25  Bruno Haible  <bruno@clisp.org>
33257
33258         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
33259         warnings.
33260         Reported by Paul Eggert.
33261
33262 2006-01-25  Bruno Haible  <bruno@clisp.org>
33263
33264         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
33265         rid of a trap command. For Solaris sh.
33266         Reported by Mark D. Baushke <mdb@gnu.org>.
33267
33268 2006-01-24  Simon Josefsson  <jas@extundo.com>
33269
33270         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
33271         Bruno.
33272
33273 2006-01-24  Karl Berry  <karl@gnu.org>
33274
33275         * config/srclist.txt (argp-namefrob.h): sync lost.
33276
33277 2006-01-24  Jim Meyering  <jim@meyering.net>
33278
33279         * modules/openat (Files): Add lib/intprops.h.
33280         From Mark D. Baushke.
33281
33282 2006-01-24  Jim Meyering  <jim@meyering.net>
33283
33284         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
33285         Reported by Mark D. Baushke.
33286
33287 2006-01-24  Jim Meyering  <jim@meyering.net>
33288
33289         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
33290
33291 2006-01-24  Bruno Haible  <bruno@clisp.org>
33292
33293         * modules/strnlen (Maintainer): Change from glibc to all.
33294
33295 2006-01-24  Bruno Haible  <bruno@clisp.org>
33296
33297         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
33298         Patch by Paul Eggert.
33299
33300 2006-01-24  Bruno Haible  <bruno@clisp.org>
33301
33302         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
33303         already has it.
33304         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
33305         2005-11-26.
33306
33307         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
33308         'signed char' to avoid problems with the built-in _Bool type.
33309         Reported by Paul Eggert on 2005-11-26.
33310
33311 2006-01-24  Bruno Haible  <bruno@clisp.org>
33312
33313         * gnulib-tool (func_import): Avoid constructing complicated sed
33314         expressions inside backquote.
33315         Report and solution by Mark D. Baushke <mdb@gnu.org>.
33316
33317 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
33318
33319         These changes imported from libc.
33320         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
33321         test and two separate function calls.
33322         * lib/strndup.c (__strndup): Add libc_hidden_def.
33323
33324 2006-01-23  Simon Josefsson  <jas@extundo.com>
33325
33326         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
33327         Remove the test_*_SOURCES variable: automake infers it by default.
33328         * modules/tls-tests: Likewise.
33329
33330 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33331
33332         Work around porting bugs reported by Dieter in
33333         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
33334         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
33335         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
33336         Include "getopt.h" first, to check interface.
33337         (getenv): Declare only if defined HAVE_DECL_GETENV &&
33338         !HAVE_DECL_GETENV.
33339         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
33340         (__strndup): Revert to K&R-style function dfns, the glibc style.
33341         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
33342         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
33343         Include strnlen.h first, to get prototype properly.
33344         (strnlen): Renamed from __strnlen.
33345         Remove weak alias.
33346
33347 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33348
33349         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
33350
33351 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33352
33353         * config/srclist.txt: Adjust to reflect glibc reorganization.
33354         This affects only comments.
33355
33356 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
33357
33358          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
33359          Reported by Bruce Korb <bkorb@gnu.org>.
33360
33361 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
33362
33363         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
33364         to pacify gcc -Wswitch-default.
33365
33366 2006-01-22  Bruno Haible  <bruno@clisp.org>
33367
33368         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
33369         temporary buffer for sprintf, take into account the precision also
33370         for 'd', 'i', 'u', 'o', 'x', 'X'.
33371
33372 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
33373
33374         * modules/argp-tests: New module
33375         * tests/test-argp.c: New file
33376         * tests/test-argp-2.sh: New file
33377
33378 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
33379
33380         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
33381         (__argp_base_name): Removed
33382         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
33383         typo.
33384         (__argp_base_name): Provide macro definition or extern declaration
33385         depending on the configuration
33386
33387 2006-01-20  Simon Josefsson  <jas@extundo.com>
33388
33389         * modules/inet_ntop (Depends-on): Depend on sys_socket.
33390
33391 2006-01-20  Simon Josefsson  <jas@extundo.com>
33392
33393         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
33394
33395 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
33396
33397         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
33398         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
33399         Suggested by Bruno Haible.
33400
33401 2006-01-20  Karl Berry  <karl@gnu.org>
33402
33403         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
33404         until changes propagate, I guess.
33405
33406 2006-01-19  Simon Josefsson  <jas@extundo.com>
33407
33408         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
33409
33410 2006-01-19  Simon Josefsson  <jas@extundo.com>
33411
33412         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
33413
33414 2006-01-19  Simon Josefsson  <jas@extundo.com>
33415
33416         * gnulib-tool: Set check_PROGRAMS.
33417
33418         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
33419         modules/des-tests, modules/gc-arcfour-tests,
33420         modules/gc-arctwo-tests, modules/gc-des-tests,
33421         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
33422         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
33423         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
33424         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
33425         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
33426         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
33427         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
33428         test_*_SOURCES.
33429
33430 2006-01-18  Simon Josefsson  <jas@extundo.com>
33431
33432         * modules/socklen (Depends-on): Depend on sys_socket.
33433
33434 2006-01-18  Simon Josefsson  <jas@extundo.com>
33435
33436         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
33437         modules/des-tests, modules/gc-arcfour-tests,
33438         modules/gc-arctwo-tests, modules/gc-des-tests,
33439         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
33440         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
33441         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
33442         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
33443         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
33444         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
33445         $(EXEEXT) to automake TESTS variable, for mingw32.
33446
33447 2006-01-17  Simon Josefsson  <jas@extundo.com>
33448
33449         * modules/socklen (Include): Need sys/socket.h.
33450
33451 2006-01-17  Bruno Haible  <bruno@clisp.org>
33452
33453         * modules/ssize_t (Include): Add <sys/types.h>.
33454
33455 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
33456
33457         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
33458         it's not portable and it doesn't work with cross-compiles.
33459         Problem reported by Bruno Haible.  Fix missing-$ typo in
33460         'test "gl_cv_ignore_unused_libraries" ...' that prevented
33461         -zignore from being used with Sun's C compiler.
33462
33463 2006-01-12  Simon Josefsson  <jas@extundo.com>
33464
33465         * lib/base64.c: Fix warning, reported by Bruno Haible
33466         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
33467
33468 2006-01-12  Bruno Haible  <bruno@clisp.org>
33469
33470         * modules/ldd: New file.
33471         * build-aux/ldd.sh.in: New file.
33472         * MODULES.html.sh (Support for building libraries and executables): Add
33473         ldd.
33474
33475 2006-01-12  Bruno Haible  <bruno@clisp.org>
33476
33477         * m4/ldd.m4: New file.
33478
33479 2006-01-12  Bruno Haible  <bruno@clisp.org>
33480
33481         * gnulib-tool (func_import, func_create_testdir): Don't go into an
33482         endless loop while replacing $auxdir with build-aux.
33483
33484 2006-01-11  Simon Josefsson  <jas@extundo.com>
33485
33486         * lib/stdint_.h (SIZE_MAX): Add missing (.
33487
33488 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
33489
33490         Sync from coreutils.
33491         * lib/md5.c: Fix commentary typos.
33492         (alignof, UNALIGNED_P): No need for a GCC-specific version.
33493         * lib/md5.h (__attribute__): Remove; unused.
33494         * lib/sha1.c: Fix commentary to match md5 better.
33495         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
33496         so that we don't need to worry about alignment.  All uses changed.
33497         This merges the 2005-10-28 md5 change into sha1.
33498
33499 2006-01-11  Jim Meyering  <jim@meyering.net>
33500
33501         Sync from coreutils.
33502         * lib/md5.c (OP): Fix spacing.
33503
33504 2006-01-11  Bruno Haible  <bruno@clisp.org>
33505
33506         Ensure automatic ordering between gl_LOCK and gl_ARGP.
33507         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
33508         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
33509
33510 2006-01-11  Bruno Haible  <bruno@clisp.org>
33511
33512         Ensure automatic ordering between gl_LOCK and gl_ARGP.
33513         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
33514         the "early" section as well.
33515
33516 2006-01-11  Bruno Haible  <bruno@clisp.org>
33517
33518         Avoid "ar: no archive members specified" error on MacOS X.
33519         * gnulib-tool (func_modules_add_dummy): New function.
33520         (func_import, func_create_testdir): Invoke it.
33521
33522 2006-01-11  Bruno Haible  <bruno@clisp.org>
33523
33524         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
33525         with $auxdir in AC_CONFIG_FILES statements.
33526
33527 2006-01-11  Bruno Haible  <bruno@clisp.org>
33528
33529         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33530         Initialize also noinst_HEADERS to empty.
33531
33532 2006-01-11  Bruno Haible  <bruno@clisp.org>
33533
33534         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
33535         variables.
33536         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
33537         autoreconf.
33538
33539 2006-01-11  Bruno Haible  <bruno@clisp.org>
33540
33541         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
33542         overridable by the user.
33543         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33544
33545 2006-01-10  Simon Josefsson  <jas@extundo.com>
33546
33547         * modules/sys_socket: New file.
33548
33549 2006-01-10  Simon Josefsson  <jas@extundo.com>
33550
33551         * m4/sys_socket_h.m4: New file.
33552
33553 2006-01-10  Simon Josefsson  <jas@extundo.com>
33554
33555         * lib/socket_.h: New file.
33556
33557 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
33558
33559         * modules/readutmp (Maintainer): Add myself.
33560
33561 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
33562
33563         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
33564         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
33565         People who are still concerned with buggy memcmp implementations
33566         can invoke gl_FUNC_MEMCMP themselves.
33567
33568 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
33569
33570         * lib/regex_internal.h (BITSET_WORD_BITS):
33571         Work around a bug in 64-bit PGC (before version 6.1-2), where the
33572         preprocessor mishandles large unsigned values as if they were signed.
33573         Problem reported by Claudio Fontana in
33574         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
33575
33576 2006-01-10  Jim Meyering  <jim@meyering.net>
33577
33578         Avoid the double-free (first in fts_read, second in fts_close) that
33579         would occur when an `active' directory is made inaccessible (e.g.,
33580         via chmod a-x) during a traversal.
33581         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
33582         before returning.  Reproduce this failure by
33583         mkdir -p a/b; cd a; chmod a-x . b
33584         Reported by Stavros Passas.
33585
33586         Sync from coreutils.
33587         * lib/sha1.c: Tweak grammar in a comment.
33588
33589 2006-01-10  Jim Meyering  <jim@meyering.net>
33590
33591         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
33592         Patch by Joerg Sonnenberger.
33593
33594 2006-01-10  Bruno Haible  <bruno@clisp.org>
33595
33596         * modules/readutmp: Depend on module free.
33597         * modules/strtok_r: Depend on module restrict.
33598
33599 2006-01-10  Bruno Haible  <bruno@clisp.org>
33600
33601         * modules/gettext (configure.ac): Add an invocation of
33602         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
33603
33604 2006-01-10  Bruno Haible  <bruno@clisp.org>
33605
33606         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
33607         Reported by Werner Lemberg <wl@gnu.org>.
33608
33609 2006-01-10  Bruno Haible  <bruno@clisp.org>
33610
33611         * lib/localcharset.c: Update from GNU gettext.
33612
33613 2006-01-10  Bruno Haible  <bruno@clisp.org>
33614
33615         * lib/argp.h (__const): Remove macro. Use const instead.
33616         * lib/argp-fmtstream.h (__const): Likewise.
33617         * lib/glob_.h (__const): Remove macro.
33618         * lib/glob-libc.h: Use const instead of __const.
33619
33620 2006-01-10  Bruno Haible  <bruno@clisp.org>
33621
33622         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
33623         variable.
33624         Needed to avoid an automake error regarding the 'gettext' module.
33625
33626 2006-01-09  Simon Josefsson  <jas@extundo.com>
33627
33628         * modules/inet_ntop (Depends-on): Add restrict.
33629
33630 2006-01-09  Simon Josefsson  <jas@extundo.com>
33631
33632         * modules/gc-rijndael-tests (License): Put under LGPL.
33633
33634         * modules/gc-des-tests (License): Likewise.
33635
33636         * modules/gc-arcfour-tests (License): Likewise.
33637
33638         * modules/gc-arctwo-tests (License): Likewise.
33639
33640         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
33641
33642         * modules/gc-hmac-sha1-tests (Files): Likewise.
33643
33644         * modules/gc-hmac-md5-tests (License): Likewise.
33645
33646         * modules/gc-sha1-tests (License): Likewise.
33647
33648         * modules/gc-md5-tests (License): Likewise.
33649
33650         * modules/gc-md4-tests (License): Likewise.
33651
33652         * modules/gc-md2-tests (License): Likewise.
33653
33654         * modules/gc-tests (License): Likewise.
33655
33656         * modules/des-tests (License): Likewise.
33657
33658         * modules/md4-tests (License): Likewise.
33659
33660         * modules/md2-tests (License): Likewise.
33661
33662 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33663
33664         Sync from coreutils:
33665
33666         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
33667         * modules/lib-ignore: New file.
33668         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
33669         chdir-safer.m4, lchmod.m4.
33670         * modules/openat: Add mkdirat.c, openat-priv.h.
33671
33672 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33673
33674         Sync from coreutils.
33675         * m4/lib-ignore.m4: New file.
33676         * m4/lchmod.m4: New file.
33677
33678 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33679
33680         Sync from coreutils.
33681         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
33682         for write access: POSIX says that must fail.
33683         * lib/fts.c (diropen): Likewise.
33684         * lib/save-cwd.c (save_cwd): Likewise.
33685         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
33686         well, for minor improvements on hosts that lack O_DIRECTORY.
33687         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
33688         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
33689         Fall back on chown if open failed with EACCES.
33690
33691         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
33692         Report an error at compile-time if only a 1-second nominal clock
33693         resolution is found.
33694
33695         * lib/lchmod.h: New file.
33696         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
33697         (make_dir_parents): Use lchown rather than chown, and
33698         lchmod rather than chmod.
33699
33700         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
33701         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
33702         "proc" reported by n0dalus.
33703
33704         * lib/mountlist.c: Include <limits.h>.
33705         (dev_from_mount_options)
33706         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
33707         New function.  It no longer assumes "dev=" has the System V meaning
33708         on Linux (since it doesn't).  It also parses "dev=" more carefully.
33709         (read_file_system_list)
33710         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
33711         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
33712         dev= in that case.
33713
33714         * lib/posixtm.h (PDS_PRE_2000): New macro.
33715         * lib/posixtm.c (year): Arg is now syntax_bits rather than
33716         allow_century.  All usages changed.  Reject dates outside the range
33717         1969-1999 if PDS_PRE_2000 is used.
33718
33719 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33720
33721         Sync from coreutils.
33722         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
33723         (Time of day items): Mention the possibility of leap seconds.
33724         Problem reported by Dr. David Alan Gilbert.
33725
33726 2006-01-09  Jim Meyering  <jim@meyering.net>
33727
33728         Sync from coreutils.
33729
33730         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
33731
33732         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
33733
33734         * lib/modechange.c (mode_compile): Reject an invalid mode string
33735         that starts with an octal digit.  From Andreas Gruenbacher.
33736
33737         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
33738         and dup to open_safer and dup_safer, respectively.
33739         (openat_permissive): Fix typo in comment.
33740
33741         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
33742         "gettext.h"; either no longer needed or are guaranteed by openat.h.
33743         (_): Remove; no longer needed.
33744         (openat): Renamed from rpl_openat; no need for rpl_openat
33745         since openat.h renames openat for us.
33746         Replace most of the body with a call to openat_permissive,
33747         to avoid duplicate code.
33748         Port to (probably hypothetical) environments were mode_t is
33749         wider than int.
33750         (openat_permissive): Require mode arg, so that we can check
33751         types better.  Put it just after flags.  Change cwd failure
33752         indicator from pointer-to-bool to pointer-to-errno-value.
33753         All callers changed.
33754         Invoke openat_save_fail and/or openat_restore_fail if
33755         cwd_errno is null, so that openat can call us.
33756         (openat_permissive, fdopendir, fstatat, unlinkat):
33757         Simplify errno handling to avoid some duplicate code,
33758         as it's OK to set errno on success.
33759         * lib/openat.h: Revamp code so that function macros depend on
33760         __OPENAT_PREFIX only, not also on AT_FDCWD.
33761         (openat_ro): Remove.  Caller changed to use openat_permissive.
33762         (openat_permissive): Now a macro, if not a function.
33763         (openat_restore_fail, openat_save_fail): Now always functions,
33764         since mkdirat needs them even if __OPENAT_PREFIX is defined.
33765
33766         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
33767         and openat.c.
33768         * lib/mkdirat.c: Include openat-priv.h.
33769         Remove definitions of macros defined therein.
33770         * lib/openat.c: Likewise.
33771
33772         * lib/mkdirat.c (mkdirat): New file and function.
33773         * lib/openat.h (mkdirat): Declare.
33774
33775         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
33776
33777         * lib/openat.h (openat_permissive): Declare.
33778         (openat_ro): Define.
33779
33780         * lib/openat.c (EXPECTED_ERRNO): New macro.
33781         (openat_permissive): New function -- used in remove.c rewrite.
33782         (all functions): Set errno just before returning, only if there
33783         was an actual failure.
33784         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
33785
33786         Emulate openat-family functions using Linux's procfs, if possible.
33787         Idea and some code based on Ulrich Drepper's glibc changes.
33788
33789         * lib/openat.c: (BUILD_PROC_NAME): New macro.
33790         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
33791         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
33792         before falling back on save_cwd and restore_cwd.
33793         (fdopendir, fstatat, unlinkat): Likewise.
33794
33795         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
33796         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
33797
33798         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
33799         as second argument to va_arg.  Otherwise, some versions of gcc
33800         warn that `if this code is reached, the program will abort'.
33801
33802 2006-01-09  Jim Meyering  <jim@meyering.net>
33803
33804         Sync from coreutils.
33805         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
33806         Require openat-priv.h.
33807
33808 2006-01-09  Bruno Haible  <bruno@clisp.org>
33809
33810         * modules/strnlen (Include): Use strnlen.h.
33811
33812 2006-01-09  Bruno Haible  <bruno@clisp.org>
33813
33814         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
33815
33816 2006-01-09  Bruno Haible  <bruno@clisp.org>
33817
33818         * lib/sysexit_.h (EX_OK): New macro.
33819         Suggested by Martin Lambers <marlam@marlam.de>.
33820
33821 2006-01-09  Bruno Haible  <bruno@clisp.org>
33822
33823         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
33824         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
33825
33826 2006-01-09  Bruno Haible  <bruno@clisp.org>
33827
33828         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
33829         numbers.
33830
33831 2006-01-09  Bruno Haible  <bruno@clisp.org>
33832
33833         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
33834         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
33835         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
33836         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
33837
33838 2006-01-09  Bruno Haible  <bruno@clisp.org>
33839
33840         * build-aux/javacomp.sh.in: New file, moved from lib/.
33841         * modules/javacomp-script (Files): Update.
33842         (configure.ac): Add AC_CONFIG_FILES invocation.
33843         (EXTRA_DIST): Remove variable.
33844
33845         * build-aux/javaexec.sh.in: New file, moved from lib/.
33846         * modules/javaexec (Files): Update.
33847         (configure.ac): Add AC_CONFIG_FILES invocation.
33848         (EXTRA_DIST): Remove javaexec.sh.in.
33849
33850         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
33851         * modules/csharpcomp-script (Files): Update.
33852         (configure.ac): Add AC_CONFIG_FILES invocation.
33853         (EXTRA_DIST): Remove variable.
33854
33855         * build-aux/csharpexec.sh.in: New file, moved from lib/.
33856         * modules/csharpexec (Files): Update.
33857         (configure.ac): Add AC_CONFIG_FILES invocation.
33858         (EXTRA_DIST): Remove csharpexec.sh.in.
33859
33860 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
33861
33862         Sync from coreutils.
33863
33864         Add POSIX ACL support
33865         * lib/acl.h (copy_acl, set_acl): Add declarations.
33866         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
33867         systems other than Linux.
33868         (chmod_or_fchmod): New function: use fchmod when possible,
33869         and chmod otherwise.
33870         (file_has_acl): Add a POSIX ACL implementation, with a
33871         Linux-specific subcase.
33872         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
33873         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
33874         acls are unsupported.
33875         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
33876         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
33877         are unsupported.
33878
33879 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
33880
33881         Sync from coreutils.
33882         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
33883
33884 2006-01-07  Bruno Haible  <bruno@clisp.org>
33885
33886         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
33887         gl_EARLY.
33888
33889 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
33890
33891         * lib/strftime.c (tzname): Don't declare if it is already #defined.
33892         Problem reported for Mingw by Mark Junker.
33893
33894 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
33895
33896         * README: Gnulib normally doesn't generate a tarball.
33897
33898 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
33899
33900         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
33901         long int, not int, for nanosecond counts, so that people who are
33902         used to POSIX struct timespec won't be surprised.  Reported by Jim
33903         Meyering.
33904
33905 2005-12-28  Bruno Haible  <bruno@clisp.org>
33906
33907         * build-aux/config.rpath: Update from GNU gettext.
33908
33909 2005-12-16  Jim Meyering  <jim@meyering.net>
33910
33911         * modules/fprintftime: New module.
33912         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
33913
33914 2005-12-16  Jim Meyering  <jim@meyering.net>
33915
33916         * m4/fprintftime.m4: New file.
33917
33918 2005-12-16  Jim Meyering  <jim@meyering.net>
33919
33920         * lib/fprintftime.c, lib/fprintftime.h: New files.
33921
33922 2005-12-15  Simon Josefsson  <jas@extundo.com>
33923
33924         * modules/socklen (configure.ac): Fix M4 macro name, to align with
33925         new m4/socklen.m4.
33926
33927 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33928
33929         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
33930         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
33931
33932 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33933
33934         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
33935         * lib/argp-help.c (fill_in_uparams): Check if the constructed
33936         struct uparams is valid. Fall back to the default values if it is
33937         not.
33938
33939 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
33940
33941         * modules/argp (Files): Add argp-pin.c
33942         (Depends-on): dirname
33943         (lib_SOURCES): Add argp-pin.c
33944
33945 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
33946
33947         * m4/argp.m4:  Check if program_invocation_name and
33948         program_invocation_short_name are declared and define appropriate
33949         macros if they are not.
33950
33951 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
33952
33953         * lib/argp-help.c (__argp_base_name): New function
33954         (__argp_short_program_name): Rewrite using __argp_base_name
33955         * lib/argp-namefrob.h: Define program_invocation_name and
33956         program_invocation_short_name if requested
33957         (__argp_base_name): Add prototype
33958         * lib/argp-parse.c (argp_def): Use gettext wrappers
33959         (argp_default_parser): Use __argp_base_name
33960         * lib/argp-pin.c: New file. Defines program_invocation_name and
33961         program_invocation_short_name on systems that lack them.
33962
33963 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
33964
33965         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
33966         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
33967         porting problem reported by Georg Schwarz in
33968         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
33969
33970 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
33971
33972         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
33973         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
33974         porting problem reported by Georg Schwarz in
33975         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
33976
33977 2005-12-05  Bruno Haible  <bruno@clisp.org>
33978
33979         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
33980         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
33981         Reported by Mark Junker <mjscod@gmx.de>.
33982
33983 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
33984
33985         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
33986         Use implementation from Albert Chin, with some
33987         comments/corrections by Stepan Kasal and myself.
33988
33989 2005-12-02  Bruno Haible  <bruno@clisp.org>
33990
33991         * gnulib-tool (func_import): Accept GPLed build tool modules when
33992         --lgpl is given.
33993         * modules/csharpcomp-script: New file.
33994         * modules/csharpcomp: Depend on it.
33995         * modules/javacomp-script: New file.
33996         * modules/javacomp: Depend on it.
33997         Suggested by Simon Josefsson.
33998
33999 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
34000
34001         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
34002         statement, to work around an HP-UX 10.20 compiler bug reported by
34003         Peter O'Gorman.
34004
34005 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
34006
34007         * modules/savedir (Depends-on): Add openat.
34008
34009 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
34010
34011         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
34012         (uintmax_t) [defined uintmax_t]: Do not declare.
34013         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
34014         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
34015         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
34016         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
34017         sake of portability to weird hosts that C allows (though we don't
34018         know of any practical examples).
34019
34020         * lib/savedir.h (fdsavedir): New decl.
34021         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
34022         contains most of the former guts of savedir.
34023         (savedir): Use savedirstream.
34024         Include "openat.h".
34025
34026 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
34027
34028         * modules/obstack (Files): Add m4/ulonglong.m4.
34029         Problem reported by Davide Angelocola.
34030
34031 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
34032
34033         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
34034         coreutils no longer futzes with rounding modes.
34035
34036 2005-11-14  Jim Meyering  <jim@meyering.net>
34037
34038         * lib/mkstemp-safer.c: Include <config.h>, required for possible
34039         replacement of mkstemp.
34040
34041 2005-11-10  Simon Josefsson  <jas@extundo.com>
34042
34043         * lib/readline.c: Remove EOL.
34044
34045 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34046
34047         * modules/gethrxtime (Depends-on): Add gettime.
34048
34049 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34050
34051         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
34052         or gettimeofday; no longer needed.
34053
34054 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34055
34056         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
34057         time business.
34058         (gethrxtime) [! (HAVE_NANOUPTIME
34059         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
34060         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
34061         our own approximation.
34062
34063 2005-11-08  Eric Blake  <ebb9@byu.net>
34064
34065         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
34066
34067 2005-11-08  Eric Blake  <ebb9@byu.net>
34068
34069         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
34070
34071 2005-11-04  Bruno Haible  <bruno@clisp.org>
34072
34073         * gnulib-tool: Implement --update mode.
34074
34075 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34076
34077         Fix porting problem reported by Theodoros V. Kalamatianos.
34078         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
34079         Don't assume that futimes failing means we must fail.
34080
34081 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34082
34083         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
34084         variables to suggest the intended function of the PATH_MAX check.
34085
34086 2005-10-30  Kean Johnston  <jkj@sco.com>
34087
34088         Trivial changes to support SCO systems.
34089         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
34090         as PATH_MAX.
34091         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
34092         where __ptr is null when no I/O is pending.
34093
34094 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
34095
34096         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
34097         leave errno alone.  Problem reported by Dmitry V. Levin.
34098
34099 2005-10-28  Simon Josefsson  <jas@extundo.com>
34100
34101         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
34102         Test more.
34103
34104         * tests/test-gc-md2.c, tests/test-md2.c: New files.
34105
34106         * modules/md2, modules/md2-tests: New files.
34107
34108 2005-10-28  Simon Josefsson  <jas@extundo.com>
34109
34110         * m4/inet_ntop.m4: More tests.
34111
34112         * m4/gc-md2.m4, md2.m4: New file.
34113
34114 2005-10-28  Simon Josefsson  <jas@extundo.com>
34115
34116         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
34117         "restrict" keywords, as per POSIX.  Protect the function
34118         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
34119         Don't use K&R prototypes.  Check the sprintf return values.
34120         Re-define EAFNOSUPPORT if not present.  Indent.
34121
34122         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
34123         suggested by Bruno Haible <bruno@clisp.org>.
34124
34125         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
34126
34127         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
34128
34129         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
34130         libgcrypt).
34131
34132         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
34133
34134         * lib/md2.h, lib/md2.c: New files.
34135
34136 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
34137
34138         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
34139         errno alone.  Problem reported by Frederic Jolliton.
34140
34141 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
34142
34143         * modules/verify (License): Change from GPL to LGPL.  This is a
34144         tiny module and there are apparently near-equivalents that are
34145         under the BSD license.
34146
34147 2005-10-24  Simon Josefsson  <jas@extundo.com>
34148
34149         * modules/sha1: Relicense to LGPL.
34150
34151 2005-10-24  Simon Josefsson  <jas@extundo.com>
34152
34153         * lib/md4.h: Shrink buffer size, now that we changed the type.
34154
34155 2005-10-23  Simon Josefsson  <jas@extundo.com>
34156
34157         * gnulib-tool (func_import): Fix --tests-base.
34158
34159 2005-10-22  Simon Josefsson  <jas@extundo.com>
34160
34161         * modules/arcfour (Depends-on): Need stdint.
34162
34163 2005-10-22  Simon Josefsson  <jas@extundo.com>
34164
34165         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
34166         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
34167
34168 2005-10-22  Simon Josefsson  <jas@extundo.com>
34169
34170         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
34171         suggested by Bruno Haible <bruno@clisp.org>.
34172
34173 2005-10-22  Simon Josefsson  <jas@extundo.com>
34174
34175         * lib/crc.h: Include stddef.h, for size_t.
34176
34177 2005-10-22  Simon Josefsson  <jas@extundo.com>
34178
34179         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
34180         arcfour_context struct (simplify test vector testing in GNU
34181         Shishi).
34182
34183 2005-10-21  Simon Josefsson  <jas@extundo.com>
34184
34185         * modules/des, modules/des-tests: New files.
34186
34187         * modules/gc-des, modules/gc-des-tests: New files.
34188
34189         * tests/test-des.c, tests/test-gc-des.c: New file.
34190
34191 2005-10-21  Simon Josefsson  <jas@extundo.com>
34192
34193         * modules/arctwo, modules/arctwo-tests: New files.
34194
34195         * tests/test-arctwo.c: New file.
34196
34197         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
34198
34199         * tests/test-gc-arctwo.c: New file.
34200
34201 2005-10-21  Simon Josefsson  <jas@extundo.com>
34202
34203         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
34204         Bruno Haible <bruno@clisp.org>.
34205
34206         * m4/gc-des.m4: New file.
34207
34208 2005-10-21  Simon Josefsson  <jas@extundo.com>
34209
34210         * m4/arctwo.m4: New file.
34211
34212         * m4/gc-arctwo.m4: New file.
34213
34214 2005-10-21  Simon Josefsson  <jas@extundo.com>
34215
34216         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
34217         block.
34218
34219 2005-10-21  Simon Josefsson  <jas@extundo.com>
34220
34221         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
34222         <bruno@clisp.org>.
34223
34224         * lib/hmac-sha1.c (hmac_sha1): Likewise.
34225
34226         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
34227         Bruno Haible <bruno@clisp.org>.
34228
34229         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
34230         <bruno@clisp.org>.
34231
34232 2005-10-21  Simon Josefsson  <jas@extundo.com>
34233
34234         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
34235
34236 2005-10-21  Simon Josefsson  <jas@extundo.com>
34237
34238         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
34239
34240 2005-10-21  Simon Josefsson  <jas@extundo.com>
34241
34242         * lib/des.h, lib/des.c: New files.
34243
34244         * lib/gc-gnulib.c: Support DES.c
34245
34246 2005-10-21  Simon Josefsson  <jas@extundo.com>
34247
34248         * lib/arctwo.h, lib/arctwo.c: New files.
34249
34250         * lib/gc-gnulib.c: Support ARCTWO.
34251
34252 2005-10-21  Simon Josefsson  <jas@extundo.com>
34253
34254         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
34255         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34256
34257 2005-10-21  Simon Josefsson  <jas@extundo.com>
34258
34259         * gnulib-tool (func_import, func_create_testdir): Define automake
34260         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
34261         Makefile.am snippet),
34262         suggested by Bruno Haible <bruno@clisp.org>.
34263
34264         * modules/gc (Makefile.am): Use it.
34265
34266 2005-10-21  Bruno Haible  <bruno@clisp.org>
34267
34268         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
34269         patch.
34270
34271 2005-10-19  Simon Josefsson  <jas@extundo.com>
34272
34273         * tests/test-gc-rijndael.c: New file.
34274
34275         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
34276
34277 2005-10-19  Simon Josefsson  <jas@extundo.com>
34278
34279         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
34280         interface too.
34281
34282 2005-10-19  Simon Josefsson  <jas@extundo.com>
34283
34284         * tests/test-gc-arcfour.c: New file.
34285
34286         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
34287
34288 2005-10-19  Simon Josefsson  <jas@extundo.com>
34289
34290         * modules/gc-md4, modules/gc-md4-tests: New file.
34291
34292         * tests/test-gc-md4.c: New file.
34293
34294 2005-10-19  Simon Josefsson  <jas@extundo.com>
34295
34296         * m4/gc-md4.m4: New file.
34297
34298 2005-10-19  Simon Josefsson  <jas@extundo.com>
34299
34300         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
34301         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
34302         <kasal@ucw.cz>.
34303
34304 2005-10-19  Simon Josefsson  <jas@extundo.com>
34305
34306         * m4/gc-arcfour.m4: New file.
34307
34308         * m4/gc-rijndael.m4: New file.
34309
34310 2005-10-19  Simon Josefsson  <jas@extundo.com>
34311
34312         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
34313
34314 2005-10-19  Simon Josefsson  <jas@extundo.com>
34315
34316         * lib/gc-gnulib.c: Support ARCFOUR.
34317
34318 2005-10-19  Simon Josefsson  <jas@extundo.com>
34319
34320         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
34321         support.
34322
34323         * lib/gc.h: Add ECB enum type.
34324
34325         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
34326
34327 2005-10-18  Simon Josefsson  <jas@extundo.com>
34328
34329         * tests/test-md5.c: New file.
34330
34331         * modules/md5-tests: New file.
34332
34333 2005-10-18  Simon Josefsson  <jas@extundo.com>
34334
34335         * tests/test-md4.c: New file.
34336
34337         * modules/md4, modules/md4-tests: New files.
34338
34339 2005-10-18  Simon Josefsson  <jas@extundo.com>
34340
34341         * m4/md4.m4: New file.
34342
34343 2005-10-18  Simon Josefsson  <jas@extundo.com>
34344
34345         * lib/md4.h, lib/md4.c: New files, based on md5.?.
34346
34347 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
34348
34349         * gnulib-tool (func_create_testdir): Omit the second check whether
34350         BUILT_SOURCES in nonempty.
34351
34352 2005-10-17  Simon Josefsson  <jas@extundo.com>
34353
34354         * tests/test-rijndael.c: New file.
34355
34356 2005-10-17  Simon Josefsson  <jas@extundo.com>
34357
34358         * modules/sha1: Depend on stdint instead of md5.
34359
34360         * modules/md5: Depend on stdint, remove uint32_t.
34361
34362 2005-10-17  Simon Josefsson  <jas@extundo.com>
34363
34364         * modules/gc-sha1-tests: New file.
34365
34366         * tests/test-gc-sha1.c: New file.
34367
34368 2005-10-17  Simon Josefsson  <jas@extundo.com>
34369
34370         * m4/md5.m4: Remove call to uint32_t.m4.
34371
34372 2005-10-17  Simon Josefsson  <jas@extundo.com>
34373
34374         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
34375
34376         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
34377         md5.h.
34378
34379         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
34380
34381         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
34382
34383 2005-10-17  Simon Josefsson  <jas@extundo.com>
34384
34385         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
34386
34387 2005-10-17  Simon Josefsson  <jas@extundo.com>
34388
34389         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
34390
34391 2005-10-17  Simon Josefsson  <jas@extundo.com>
34392
34393         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
34394
34395         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
34396
34397 2005-10-17  Bruno Haible  <bruno@clisp.org>
34398
34399         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
34400         that it can also be used in a test.
34401
34402 2005-10-16  Bruno Haible  <bruno@clisp.org>
34403
34404         * gnulib-tool (func_emit_tests_Makefile_am): Also define
34405         TESTS_ENVIRONMENT, so that individual tests can augment it.
34406
34407         * gnulib-tool (func_create_testdir): Use an intermediate target for
34408         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
34409         macros, like $(ALLOCA_H), which cannot be passed through the command
34410         line.
34411
34412 2005-10-15  Simon Josefsson  <jas@extundo.com>
34413
34414         * modules/rijndael-tests: New file.
34415
34416         * modules/rijndael: New file.
34417
34418 2005-10-15  Simon Josefsson  <jas@extundo.com>
34419
34420         * m4/rijndael.m4: New file.
34421
34422 2005-10-15  Simon Josefsson  <jas@extundo.com>
34423
34424         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
34425
34426         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
34427
34428 2005-10-14  Simon Josefsson  <jas@extundo.com>
34429
34430         * tests/test-arcfour.c: New file.
34431
34432         * modules/arcfour, modules/arcfour-tests: New files.
34433
34434 2005-10-14  Simon Josefsson  <jas@extundo.com>
34435
34436         * m4/arcfour.m4: New file.
34437
34438 2005-10-14  Simon Josefsson  <jas@extundo.com>
34439
34440         * lib/arcfour.h, lib/arcfour.c: New files.
34441
34442 2005-10-14  Roland McGrath  <roland@redhat.com>
34443
34444         Import from libc.  [BZ #1331]
34445         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
34446         macro argument.
34447         Reported by Matej Vela <vela@debian.org>.
34448
34449 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
34450
34451         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
34452         include <wchar.h>; no longer needed.
34453
34454 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
34455
34456         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
34457
34458 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
34459         and  Ulrich Drepper  <drepper@redhat.com>
34460
34461         Import from libc.
34462         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
34463         instead of inline stream orientation test and two separate
34464         function calls.  Pay no attention to USE_IN_LIBIO.
34465
34466 2005-10-13  Simon Josefsson  <jas@extundo.com>
34467
34468         * modules/gc-hmac-md5-tests: New file.
34469
34470         * tests/test-gc-hmac-sha1.c: New file.
34471
34472         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
34473
34474         * modules/gc-hmac-md5-tests: New file.
34475
34476         * tests/test-gc-md5.c: New file.
34477
34478         * modules/gc-md5-tests: New file.
34479
34480 2005-10-13  Simon Josefsson  <jas@extundo.com>
34481
34482         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
34483         Move memory allocation outside of loop.
34484
34485 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
34486
34487         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
34488         intermediate directory is in a read-only file system.  Problem
34489         reported by Eric Blake.
34490
34491 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
34492
34493         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
34494
34495 2005-10-12  Simon Josefsson  <jas@extundo.com>
34496
34497         * tests/test-hmac-sha1.c: New file.
34498
34499         * modules/hmac-sha1-tests: New file.
34500
34501         * modules/hmac-sha1: New file.
34502
34503 2005-10-12  Simon Josefsson  <jas@extundo.com>
34504
34505         * modules/gc-sha1: New file.
34506
34507 2005-10-12  Simon Josefsson  <jas@extundo.com>
34508
34509         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
34510
34511         * tests/test-gc-pbkdf2-sha1.c: New file.
34512
34513 2005-10-12  Simon Josefsson  <jas@extundo.com>
34514
34515         * modules/gc-md5, modules/gc-hmac-md5: New files.
34516
34517         * modules/gc (Files): Remove md5, memxor and hmac files.
34518
34519 2005-10-12  Simon Josefsson  <jas@extundo.com>
34520
34521         * m4/gc-pbkdf2-sha1.m4: New file.
34522
34523         * m4/gc-hmac-sha1.m4: New file.
34524
34525         * m4/gc-sha1: New file.
34526
34527         * m4/hmac-sha1.m4: New file.
34528
34529 2005-10-12  Simon Josefsson  <jas@extundo.com>
34530
34531         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
34532
34533         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
34534
34535 2005-10-12  Simon Josefsson  <jas@extundo.com>
34536
34537         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
34538         suggested by Bruno Haible <bruno@clisp.org>.
34539
34540 2005-10-12  Simon Josefsson  <jas@extundo.com>
34541
34542         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
34543
34544 2005-10-12  Simon Josefsson  <jas@extundo.com>
34545
34546         * lib/gc-pbkdf2-sha1.c: New file.
34547
34548         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
34549
34550 2005-10-12  Simon Josefsson  <jas@extundo.com>
34551
34552         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
34553
34554         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
34555
34556 2005-10-12  Simon Josefsson  <jas@extundo.com>
34557
34558         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
34559         GC_USE_HMAC_MD5, respectively.
34560
34561         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
34562         (gc_md5): Fix typo.
34563
34564         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
34565
34566         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
34567
34568         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
34569
34570 2005-10-12  Bruno Haible  <bruno@clisp.org>
34571
34572         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
34573         Reported by Stepan Kasal <kasal@ucw.cz>.
34574
34575 2005-10-11  Simon Josefsson  <jas@extundo.com>
34576
34577         * tests/test-crc.c: New file.
34578
34579         * modules/crc, modules/crc-tests: New files.
34580
34581 2005-10-11  Simon Josefsson  <jas@extundo.com>
34582
34583         * m4/crc.m4: New file.
34584
34585 2005-10-11  Simon Josefsson  <jas@extundo.com>
34586
34587         * lib/gc.h: Add gc_hash and gc_hash_buffer.
34588
34589         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
34590
34591         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
34592
34593 2005-10-11  Simon Josefsson  <jas@extundo.com>
34594
34595         * lib/crc.h, lib/crc.c: New files.
34596
34597         * lib/gc.h (gc_hash_buffer): Add doc.
34598
34599 2005-10-11  Bruno Haible  <bruno@clisp.org>
34600
34601         * modules/c-strcasestr: New file.
34602         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
34603
34604 2005-10-11  Bruno Haible  <bruno@clisp.org>
34605
34606         * modules/c-strcase: New file.
34607         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
34608
34609 2005-10-11  Bruno Haible  <bruno@clisp.org>
34610
34611         * lib/strcasecmp.c: Include limits.h.
34612         (strcasecmp): Avoid integer overflow on exotic platforms.
34613         * lib/strncasecmp.c: Include limits.h.
34614         (strncasecmp): Avoid integer overflow on exotic platforms.
34615         Reported by Paul Eggert.
34616
34617 2005-10-11  Bruno Haible  <bruno@clisp.org>
34618
34619         * lib/c-strcasestr.h: New file, from GNU gettext.
34620         * lib/c-strcasestr.c: New file, from GNU gettext.
34621
34622 2005-10-11  Bruno Haible  <bruno@clisp.org>
34623
34624         * lib/c-strcase.h: New file, from GNU gettext.
34625         * lib/c-strcasecmp.c: New file, from GNU gettext.
34626         * lib/c-strncasecmp.c: New file, from GNU gettext.
34627
34628 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
34629
34630         * modules/mempcpy (License): GPL -> LGPL.
34631         * modules/strchrnul (License): Likewise.
34632         * modules/sysexits (License): Likewise.
34633
34634 2005-10-08  Simon Josefsson  <jas@extundo.com>
34635
34636         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
34637
34638 2005-10-07  Simon Josefsson  <jas@extundo.com>
34639
34640         * m4/memxor.m4: Remove gl_C_RESTRICT call.
34641
34642 2005-10-06  Simon Josefsson  <jas@extundo.com>
34643
34644         * tests/test-hmac-md5.c: New file.
34645
34646         * modules/hmac-md5-tests: New file.
34647
34648         * modules/hmac-md5: New file.
34649
34650 2005-10-06  Simon Josefsson  <jas@extundo.com>
34651
34652         * m4/hmac-md5.m4: New file.
34653
34654         * m4/memxor.m4: Require gl_C_RESTRICT.
34655
34656 2005-10-06  Simon Josefsson  <jas@extundo.com>
34657
34658         * lib/memxor.c (memxor): Avoid casts and warnings.
34659
34660 2005-10-06  Simon Josefsson  <jas@extundo.com>
34661
34662         * lib/hmac-md5.c: New file.
34663
34664         * lib/hmac.h: New file.
34665
34666 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
34667
34668         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
34669         promotes to int, not unsigned int, to catch the AIX 5.3
34670         compiler bug.
34671
34672 2005-10-05  Simon Josefsson  <jas@extundo.com>
34673
34674         * modules/memxor: New file.
34675
34676         * modules/iconv (Files): Move config.rpath to havelib, it is used
34677         there.
34678
34679         * modules/havelib (Files): Add config.rpath.
34680
34681 2005-10-05  Simon Josefsson  <jas@extundo.com>
34682
34683         * m4/memxor.m4: New file.
34684
34685 2005-10-05  Simon Josefsson  <jas@extundo.com>
34686
34687         * lib/memxor.c (memxor): Fix compiler error.
34688
34689         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
34690         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
34691
34692         * lib/memxor.h, lib/memxor.c: New files.
34693
34694         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
34695         we assume all systems have it, suggested by Jim Meyering
34696         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
34697         any systems lack sys/socket.h; mingw32 is known to lack it, but we
34698         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
34699         same reasons.
34700
34701 2005-10-05  Simon Josefsson  <jas@extundo.com>
34702
34703         * config/srclist.txt: Add glibc bug 1423 for md5.h.
34704
34705 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
34706
34707         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
34708         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
34709         needed, since the source code now assumes these .h files.
34710
34711 2005-10-05  Derek Price  <derek@ximbiot.com>
34712
34713         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
34714
34715 2005-10-05  Bruno Haible  <bruno@clisp.org>
34716
34717         * modules/stdint (License): Change to LGPL.
34718
34719 2005-10-04  Simon Josefsson  <jas@extundo.com>
34720
34721         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
34722         D. Baushke" <mdb@gnu.org>.
34723
34724 2005-10-04  Bruno Haible  <bruno@clisp.org>
34725
34726         * lib/verify.h (verify_true): Provide alternative definition for C++.
34727
34728 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
34729
34730         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
34731         (SSIZE_MAX): New macro, if not already defined.
34732         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
34733         than 2 GiB.
34734
34735 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
34736
34737         Sync from coreutils.
34738         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
34739         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
34740         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
34741         ULLONG_MAX doesn't work with 2.7.2.1.
34742
34743 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
34744
34745         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
34746         From Ben Pfaff.
34747
34748         * modules/exclude (Depends-on): Depend on verify.
34749         * modules/strtoimax (Depends-on): Likewise.
34750         * modules/utimecmp (Depends-on): Likewise.
34751
34752 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
34753
34754         * lib/exclude.c: Include verify.h.
34755         (verify): Remove.  All callers changed to use verify.h's version.
34756         * lib/strtoimax.c: Likewise.
34757         * lib/utimecmp.c: Likewis.e
34758
34759         Sync from coreutils.
34760         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
34761         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
34762         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
34763         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
34764         bother returning ENOSYS if settimeofday or stime fails; just let
34765         them return whatever errno they want to return.
34766         * lib/utimens.c: Include unistd.h, for dup2.
34767         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
34768         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
34769
34770 2005-10-02  Jim Meyering  <jim@meyering.net>
34771
34772         Sync from coreutils.
34773         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
34774         from glibc-2.2.5 that fails for read-only files.
34775
34776 2005-10-02  Jim Meyering  <jim@meyering.net>
34777
34778         Sync from coreutils.
34779         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
34780         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
34781         `#if HAVE_CONFIG_H'.
34782         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
34783         Remove AT_FDCWD test.
34784         Do not consume the fd unless successful.
34785         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
34786         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
34787         block, so that we don't even try to compile it if settimeofday is
34788         available.  This works around a compilation failure on OSF1 V5.1,
34789         due to stime requiring a `long int*' while tv_sec is `int'.
34790
34791 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
34792
34793         Sync from coreutils.
34794         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
34795         against `yes', rather than just testing for nonempty.
34796
34797 2005-10-01  Simon Josefsson  <jas@extundo.com>
34798
34799         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
34800         and Darwin.
34801
34802         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
34803         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
34804         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
34805         freeaddrinfo and gai_strerror are declared by the POSIX headers.
34806         Check if struct addrinfo is declared.
34807
34808 2005-10-01  Simon Josefsson  <jas@extundo.com>
34809
34810         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
34811         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
34812         AI_* and EAI_* definitions.  Protect function declarations.
34813
34814 2005-10-01  Jim Meyering  <jim@meyering.net>
34815
34816         Sync from coreutils.
34817
34818         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
34819         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
34820         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
34821         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
34822         in the inet and nsl libraries.  Required on Solaris 5.7.
34823
34824 2005-10-01  Jim Meyering  <jim@meyering.net>
34825
34826         Sync from coreutils.
34827         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
34828         in the inet and nsl libraries.  Required on Solaris 5.7.
34829
34830 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
34831
34832         * lib/getdelim.c (getdelim): Remove unused variables.
34833
34834 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
34835
34836         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
34837         so that the code works even with ancient cpp.  Portability problem
34838         with GCC 2.7.2.1 reported by Thomas M.Ott.
34839
34840 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
34841
34842         * modules/regex (Depends-on): Add strcase.
34843
34844         * modules/gethostname (Licence): Change from GPL to LGPL, since
34845         gethostname.c is a trivial implementation of a standard library
34846         function.
34847         * modules/poll (License): Change from GPL to LGPL, since it's
34848         derived from LGPL code.
34849
34850 2005-09-27  Jim Meyering  <jim@meyering.net>
34851
34852         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
34853         HAVE_CONFIG_H.
34854
34855         * lib/intprops.h (signed_type_or_expr__): Define.
34856         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
34857         for unsigned types.
34858
34859 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
34860
34861         * lib/verify.h (verify_expr): Remove, replacing with:
34862         (verify_true): New macro that returns true instead of void.
34863         (verify_type__): Remove.
34864         (verify): Use verify_true rather than verify_type__.
34865
34866 2005-09-26  Bruno Haible  <bruno@clisp.org>
34867
34868         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
34869         is necessary.
34870         (lib_SOURCES): Remove mbchar.c.
34871         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
34872         (Files): Add m4/mbrtowc.m4.
34873         * modules/mbiter: Likewise.
34874         * modules/mbuiter: Likewise.
34875
34876 2005-09-26  Bruno Haible  <bruno@clisp.org>
34877
34878         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
34879         compile mbchar.c if they are not both present.
34880         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
34881         * m4/mbiter.m4 (gl_MBITER): Likewise.
34882         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
34883         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
34884         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
34885
34886 2005-09-25  Jim Meyering  <jim@meyering.net>
34887
34888         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
34889         also uses socklen_t.
34890
34891 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
34892
34893         * lib/utimens.c (ENOSYS): Define if not already defined.
34894         (futimens): Support having a null PATH if the file descriptor
34895         is nonnegative.
34896
34897         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
34898         Remove.
34899         (__attribute): Define to empty unless GCC 3.1 or later.
34900         This works around a core dump on OpenBSD 3.4, which has GCC
34901         2.95.3, which dumps core when given __attribute__(()).  It also
34902         simplifies other tests, since we really don't want to bother with
34903         worrying about which ancient version of GCC supported what.
34904         Original problem reported by Yoann Vandoorselaere, with part of
34905         the fix suggested by Derek Price.
34906
34907 2005-09-24  Jim Meyering  <jim@meyering.net>
34908
34909         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
34910         so we can once again use a positive bitfield width of 1 -- now we
34911         don't have to explain why we were using a bitfield width of 2.
34912
34913 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
34914
34915         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
34916         and similarly for the other external symbols.  Problem reported
34917         by James Gallager.
34918
34919         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
34920         bug reported by Jim Meyering.
34921
34922         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
34923         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
34924         not needed, since socklen is a prerequisite module.
34925
34926 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
34927
34928         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
34929         Problem reported by Eric Blake.
34930         (getaddrinfo): Initialize se so that it's not garbage.
34931         Redo internal storage allocation so that it doesn't make unportable
34932         assumptions about alignment.
34933         Fix a memory leak.
34934
34935         * lib/utimens.c (futimens): Use futimesat if available.
34936         Prefer it to futimes since it doesn't have the futimes bug.
34937
34938         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
34939         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
34940         Instead, declare a function that returns a pointer to an array,
34941         and use verify_type__ to declare the size of the array.
34942         Problem and germ of a solution reported by Bruno Haible.
34943         (verify_type__): Use 2, not 1, for bitfield size, to avoid
34944         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
34945
34946 2005-09-23  Jim Meyering  <jim@meyering.net>
34947
34948         Sync from coreutils.
34949         Correct build failure (socklen_t not defined) on at least
34950         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
34951         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
34952
34953 2005-09-23  Jim Meyering  <jim@meyering.net>
34954
34955         * modules/getaddrinfo (Depends-on): Add socklen.
34956
34957 2005-09-23  Bruno Haible  <bruno@clisp.org>
34958
34959         * tests/test-verify.c: New file.
34960
34961 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
34962
34963         Sync from coreutils.
34964
34965         * modules/argmatch (Depends-on): Add verify.
34966         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
34967         unistd-safer.
34968         * modules/save-cwd (Depends-on): Likewise.
34969
34970         * modules/openat (Files): Add lib/openat-die.c.
34971         (Depends-on): Remove error, exitfail.
34972         Add dirname.
34973
34974         * modules/verify: New file.
34975         * MODULES.html.sh (Diagnostics <assert.h>): New section,
34976         with "verify" module.
34977
34978 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
34979
34980         Sync from coreutils.
34981
34982         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
34983         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
34984         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
34985         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
34986         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
34987         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
34988         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
34989         Don't bother checking for string.h, stdlib.h, unistd.h.
34990         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
34991         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
34992         module's job.
34993         * m4/jm-macros.m4 (gl_MACROS): Likewise.
34994         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
34995
34996         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
34997         (gl_GETDATE): Use it.
34998
34999         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
35000
35001 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35002
35003         Sync from coreutils.
35004
35005         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
35006         stat-time.h.
35007         * lib/argmatch.h: Include verify.h
35008         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
35009         (ARGMATCH_ASSERT): Remove; unused.
35010         * lib/canonicalize.c: Assume STDC_HEADERS.
35011         * lib/exclude.c: Include "strcase.h".
35012         * lib/regex_internal.h [!defined _LIBC]: Likewise.
35013         * lib/getusershell.c: Include stdio--.h rather than stdio.h
35014         and stdio-safer.h.
35015         (getusershell): Call fopen, not fopen_safer.
35016         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
35017         Do not include unistd-safer.h.
35018         (save_cwd): Don't call fd_safer; no longer needed
35019         now that we include fcntl--.h.
35020
35021         * lib/getdate.y (relative_time): New type.
35022         (RELATIVE_TIME_0): New constant.
35023         (parser_control): Use relative_time instead of doing it ourselves.
35024         (%union): Add new relative_time rel member.
35025         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
35026         Now typeless.
35027         (relunit, relunit_snumber): Now of type rel.
35028         (zone, rel, relunit, get_date): Adjust to above changes.
35029
35030         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
35031         Do not include unistd-safer.h.
35032         (getloadavg): Don't call fd_safer; no longer needed
35033         now that we include fcntl--.h.
35034
35035         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
35036         (make_dir_parents): Treat ENOSYS like EEXIST.
35037
35038         Improve quality of diagnostics on restore_cwd failure.
35039         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
35040         (make_dir_parents): Last arg is now int * (for errno), not bool *.
35041         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
35042         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
35043         each time through the loop.  Do not diagnose restore_cwd failure;
35044         that is the caller's job (and perhaps the caller does not care).
35045
35046         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
35047         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
35048         If the file already exists but is not a directory, don't bother
35049         to try to make its parents.
35050         Close potential file descriptor leak if we can't chdir("/") (!).
35051         Don't always return true if chdir($PWD) fails; return true only
35052         if the requested action was done successfully (except for the
35053         chdir($PWD)).
35054         Don't log final directory unless we actually made it.
35055         Refactor to avoid duplicate code to fix up permissions.
35056         Don't attempt to fix up parent permissions if chdir($PWD) fails.
35057
35058         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
35059         to make it a bit faster and (I hope) clearer.
35060         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
35061         Fix bug in formats like %2N.
35062
35063         * lib/verify.h: New file.
35064
35065 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
35066
35067         Sync from coreutils.
35068         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
35069
35070 2005-09-22  Jim Meyering  <jim@meyering.net>
35071
35072         Sync from coreutils.
35073
35074         * m4/lstat.m4 (gl_FUNC_LSTAT):
35075         Use AC_LIBSOURCES to require lstat.c and lstat.h.
35076         Remove obsolete comment.
35077         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
35078         * m4/xstrtod.m4: Likewise.
35079
35080         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
35081
35082 2005-09-22  Jim Meyering  <jim@meyering.net>
35083
35084         Sync from coreutils.
35085
35086         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
35087
35088         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
35089         the .tm_year member, since otherwise gcc-4.0 would now warn about
35090         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
35091
35092         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
35093         order to avoid an unsuppressible warning from gcc on 64-bit systems.
35094
35095         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
35096         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
35097         when run in a time zone for which daylight savings time is in effect
35098         for the starting date.
35099
35100         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
35101         stop us from restricting permissions of just-created absolute-named
35102         directories.
35103         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
35104         to restore initial working directory.
35105         * lib/mkdir-p.c (make_dir_parents): New parameter:
35106         different_working_dir, to tell caller if/when we change the working
35107         directory and are unable to return to the initial one.
35108         * lib/mkdir-p.h (make_dir_parents): Update prototype.
35109         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
35110         `return false'.  This fixes a bug introduced on 2004-07-30.
35111
35112         * lib/openat.c (fdopendir): Be sure to close the supplied
35113         file descriptor before returning.  This makes our replacement
35114         implementation a little closer to Solaris's, where fdopendir
35115         ties the file descriptor to the returned DIR* pointer.
35116         * lib/openat.c (unlinkat): New function.
35117         * lib/openat.h (unlinkat): Add prototype.
35118         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
35119         (openat_restore_fail): Rename from openat_restore_die.
35120         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
35121
35122         Provide an alternative to exiting immediately upon save_cwd or
35123         restore_cwd failure.  Now, an application can arrange e.g.,
35124         to perform a longjump in that case.
35125         * lib/openat.c: Include dirname.h.
35126         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
35127         (rpl_openat, fdopendir, fstatat): Call openat_save_die
35128         and openat_restore_die rather than calling error directly.
35129         Don't include "error.h" or "exitfail.h"; they're no longer needed.
35130
35131         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
35132         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
35133         define.
35134
35135         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
35136         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
35137                             int utc, int nanoseconds);
35138         Background:
35139         date should not have to allocate a megabyte of virtual memory to
35140         handle a format argument like +%1048575T.  When implemented with
35141         strftime, it must allocate such a buffer, use strftime to fill it
35142         in, print it, then free it.
35143         With fprintftime, it simply prints everything and exits.
35144         With no need for memory allocation, that's one fewer way to fail.
35145         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
35146         optional field width, not before, so we accept %9:z, not %:9z.
35147         (my_strftime): Be sure to use L_('x') for literals.
35148
35149         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
35150         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
35151         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
35152         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
35153         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
35154         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
35155         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
35156         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
35157         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
35158         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
35159         * lib/xgethostname.c, lib/xreadlink.c:
35160         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
35161
35162         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
35163         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
35164         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
35165         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
35166         and don't include <sys/file.h>).
35167
35168 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
35169
35170         Sync from coreutils.
35171
35172         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
35173         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
35174         [!LDAV_DONE]: Avoid unused variable warning.
35175
35176 2005-09-21  Bruno Haible  <bruno@clisp.org>
35177
35178         * lib/unicodeio.h (unicode_to_mb): New declaration.
35179
35180 2005-09-20  Derek Price  <derek@ximbiot.com>
35181
35182         * lib/getaddrinfo.c: Don't include <netdb.h> included from
35183         getaddrinfo.h.
35184
35185 2005-09-20  Bruno Haible  <bruno@clisp.org>
35186
35187         * gnulib-tool: Remove trailing slashes from the values specified for
35188         --source-base, --m4-base, --tests-base, --aux-dir.
35189         Suggested by Simon Josefsson <jas@extundo.com>.
35190
35191 2005-09-20  Bruno Haible  <bruno@clisp.org>
35192
35193         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
35194         func_modules_to_filelist, func_import, func_create_testdir): Make all
35195         sorting results locale-independent, so that gnulib-cache.m4 doesn't
35196         change when gnulib-tool is invoked in a different locale.
35197
35198 2005-09-19  Simon Josefsson  <jas@extundo.com>
35199
35200         * m4/socklen.m4: Fix typo.
35201
35202 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35203
35204         Use a consistent style for including <config.h>.
35205         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
35206         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
35207         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
35208         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
35209         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
35210         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
35211         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
35212         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
35213         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
35214         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
35215         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
35216         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
35217         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
35218         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
35219         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
35220         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
35221         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
35222         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
35223         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
35224         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
35225         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
35226         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
35227         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
35228         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
35229         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
35230         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
35231         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
35232         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
35233         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
35234         lib/xstrtoumax.c, lib/yesno.c:
35235         Standardize inclusion of config.h.
35236         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
35237         lib/inttostr.h:  Removed inclusion of config.h from header files.
35238         * lib/inttostr.c:  Adjusted in-tree users.
35239         * lib/timespec.h: Remove superfluous warning to include config.h.
35240         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
35241         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
35242         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
35243         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
35244         config.h with HAVE_CONFIG_H.
35245
35246 2005-09-19  Jim Meyering  <jim@meyering.net>
35247
35248         * modules/pathmax (License): Change to LGPL.
35249
35250 2005-09-19  Derek Price  <derek@ximbiot.com>
35251
35252         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
35253
35254 2005-09-19  Bruno Haible  <bruno@clisp.org>
35255
35256         * gnulib-tool (import): Provide default for --tests-base.
35257
35258 2005-09-19  Bruno Haible  <bruno@clisp.org>
35259
35260         * doc/quote.texi: New file, extracted from gnulib.texi.
35261         * doc/ctime.texi: New file, extracted from gnulib.texi.
35262         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
35263         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
35264         * doc/gnulib.texi: Include them.
35265
35266 2005-09-18  Bruno Haible  <bruno@clisp.org>
35267
35268         Portability fix.
35269         * gnulib-tool (func_readlink): New function.
35270         (func_ln_if_changed): Use it.
35271
35272 2005-09-18  Bruno Haible  <bruno@clisp.org>
35273
35274         * gnulib-tool: Support --with-tests also with --import.
35275         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
35276         (func_import): Use variables $testsbase and $inctests. Emit a
35277         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
35278         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
35279         SUBDIRS += $testsdir.
35280         (func_create_testdir): Update.
35281
35282 2005-09-18  Bruno Haible  <bruno@clisp.org>
35283
35284         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
35285         instead of $dry_run.
35286         (func_cp_if_changed, func_mv_if_changed): Remove functions.
35287         (func_ln_if_changed): Don't handle dry-run here.
35288         (func_import): In dry-run mode, detect more precisely which actions
35289         would be performed, and don't use "...ing" verbs.
35290
35291 2005-09-18  Bruno Haible  <bruno@clisp.org>
35292
35293         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
35294         (func_import): Use join on two temporary files instead of three nested
35295         loops, in order to determine which files are new or old.
35296
35297 2005-09-18  Bruno Haible  <bruno@clisp.org>
35298
35299         * gnulib-tool (func_import): Comment out code that spits out the
35300         new files with --dry-run.
35301
35302 2005-09-18  Bruno Haible  <bruno@clisp.org>
35303
35304         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
35305
35306 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
35307
35308         * lib/stat-time.h: New file.
35309         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
35310         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
35311         in a different way.
35312         (timespec_cmp): New function.
35313         * lib/utimecmp.c: Include stat-time.h.
35314         (SYSCALL_RESOLUTION): Depend on whether various struct stat
35315         members exist, not on the obsolescent ST_MTIM_NSEC.
35316         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
35317
35318 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
35319
35320         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
35321
35322 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
35323
35324         * MODULES.html.sh (File system functions): Add stat-time.
35325         * modules/stat-time: New file.
35326         * modules/timespec (Files): Remove m4/st_mtim.m4; this
35327         is now done in a different way, by the stat-time module.
35328         * modules/utimecmp (Depends-on): Add stat-time.
35329
35330 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
35331
35332         * m4/st_mtim.m4: Remove.  Superseded by...
35333         * m4/stat-time.m4: New file.
35334         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
35335         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
35336
35337 2005-09-15  Derek Price  <derek@ximbiot.com>
35338
35339         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
35340
35341 2005-09-15  Derek Price  <derek@ximbiot.com>
35342
35343         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
35344         * lib/regex_internal.c: Ditto, using this...
35345         (__GNUC_PREREQ): ...new macro.
35346         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
35347         using...
35348         (__GNUC_PREREQ): ...this new macro.
35349
35350         * lib/strstr.h: Include string.h. Define strstr as a macro here.
35351
35352 2005-09-15  Derek Price  <derek@ximbiot.com>
35353             Paul Eggert  <eggert@cs.ucla.edu>
35354
35355         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
35356         changes, consolidating in...
35357         * lib/regex_internal.h: ...this file.
35358
35359 2005-09-13  Jim Meyering  <jim@meyering.net>
35360
35361         * lib/canon-host.c: Filter through gnu indent and reword comments
35362         slightly.
35363         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
35364
35365 2005-09-13  Derek Price  <derek@ximbiot.com>
35366
35367         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
35368         failure.
35369         Reported by Jim Meyering  <jim@meyering.net>.
35370
35371 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
35372
35373         * lib/base64.c: Typo.
35374         (base64_encode): Put b64str in initialized data section.
35375
35376 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
35377
35378         Merge glibc and coreutils changes into gnulib, plus a few
35379         extra fixes.
35380         * lib/md5.c: Use #error rather than a string.
35381         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
35382         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
35383         (__attribute__): Define to empty for non recent-GCC.
35384         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
35385         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
35386         Renamed from their non-__ counterparts, with new macros replacing
35387         them if not _LIBC.  Add __THROW attribute.
35388         (rol): Remove.
35389         (struct md5_ctx): Align buffer if using GCC.
35390         * lib/sha1.h (struct sha1_ctx): Likewise.
35391         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
35392         The old name was backwards.
35393         (NOTSWAP): Remove; not used.
35394         (rol): New macro, moved here from md5.h.
35395         (sha1_process_block): Remove a FIXME that doesn't make sense.
35396
35397 2005-09-12  Derek Price  <derek@ximbiot.com>
35398
35399         Return usable errors from canon-host.
35400         * lib/canon-host.h: New file.
35401         * lib/canon-host.c (canon_host): Wrap...
35402         (canon_host_r): ...this new function, which now relies exclusively on
35403         getaddrinfo.
35404         (ch_strerror): New function.
35405         (last_cherror): New global.
35406         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
35407         interface.
35408         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
35409         void *.
35410         (freeaddrinfo): Free ai->ai_canonname when set.
35411
35412 2005-09-12  Derek Price  <derek@ximbiot.com>
35413
35414         Make canon-host require getaddrinfo.
35415         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
35416         AC_LIBSOURCE canon-host.h.  Call...
35417         (gl_PREREQ_CANON_HOST): ...this new function, which requires
35418         gl_GETADDRINFO.
35419         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
35420
35421 2005-09-12  Derek Price  <derek@ximbiot.com>
35422
35423         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
35424         LGPL.
35425         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
35426
35427 2005-09-12  Derek Price  <derek@ximbiot.com>
35428
35429         * lib/gai_strerror.c: Include config.h when available.  Include
35430         getaddrinfo.h before other headers to test interface.
35431         Reported by Larry Jones <lawrence.jones@ugs.com>.
35432
35433 2005-09-12  Derek Price  <derek@ximbiot.com>
35434             Paul Eggert  <eggert@cs.ucla.edu>
35435
35436         * modules/glob (Files): Add glob-libc.h.
35437
35438 2005-09-12  Derek Price  <derek@ximbiot.com>
35439             Paul Eggert  <eggert@cs.ucla.edu>
35440
35441         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
35442         glob_.h, glob-libc.h.
35443         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
35444
35445 2005-09-12  Derek Price  <derek@ximbiot.com>
35446             Paul Eggert  <eggert@cs.ucla.edu>
35447
35448         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
35449         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
35450         protecting things that should be done only in gnulib contexts.
35451         * lib/glob_.h: New file, containing only the glob things needed for
35452         gnulib.
35453         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
35454         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
35455         (glob, globfree, glob_pattern_p): Now defined simply in terms of
35456         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
35457         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
35458         and to respect the namespace rules better.
35459
35460 2005-09-08  Simon Josefsson  <jas@extundo.com>
35461
35462         * modules/socklen: New file.
35463
35464 2005-09-08  Simon Josefsson  <jas@extundo.com>
35465
35466         * m4/socklen.m4: New file.
35467
35468 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
35469
35470         * modules/utimens (Files): Add m4/utimbuf.m4, since
35471         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
35472         Reported by Sergey Poznyakoff.
35473
35474 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
35475
35476         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
35477         definitions, since that's the preferred style in glibc.
35478         Fix a minor spacing issue, and update copyright notice to match
35479         glibc's.
35480
35481 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
35482
35483         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
35484
35485 2005-09-06  Simon Josefsson  <jas@extundo.com>
35486
35487         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
35488         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
35489
35490 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
35491
35492         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
35493         warning.
35494
35495 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
35496
35497         * config/srclist.txt: Add glibc bug 1302.
35498
35499 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
35500
35501         Change bitset word type from unsigned int to unsigned long int,
35502         as this has better performance on typical 64-bit hosts.
35503         Port bitset code to hosts with unusual word sizes.
35504         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
35505         (build_collating_symbol):
35506         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
35507         argument is a bitset.  This is merely a style issue, but it makes
35508         it clearer that an entire array is expected.
35509         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
35510         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
35511         Port to the case where bitset_word is not the same as unsigned int.
35512         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
35513         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
35514         Likewise.
35515         * lib/regexec.c (check_dst_limits_calc_pos_1,
35516         check_subexp_matching_top):
35517         (build_trtable, group_nodes_into_DFAstates):
35518         Likewise.
35519         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
35520         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
35521         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
35522         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
35523         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
35524         * lib/regcomp.c (optimize_subexps, lower_subexp):
35525         Work even if bitset_word has holes in its bitwise representation.
35526         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
35527         * lib/regexec.c (check_dst_limits_calc_pos_1,
35528         check_subexp_matching_top):
35529         Likewise.
35530         * lib/regex_internal.c (re_string_reconstruct):
35531         Don't assume UCHAR_MAX == 255.
35532         * lib/regex_internal.h (bitset_set_all): Likewise.
35533         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
35534         All uses changed.
35535         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
35536         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
35537         All uses changed.
35538         (BITSET_WORD_MAX): New macro.
35539         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
35540         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
35541         (bitset_empty, bitset_copy):
35542         Prefer sizeof (bitset) to multiplying it out ourselves.
35543         (bitset_not_merge): Remove; unused.
35544         (bitset_contain): Return bool, not unsigned int with one bit on.
35545         All callers changed.
35546         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
35547         alignment than re_node_set; do this by defining a new internal
35548         type struct dests_alloc and using it to allocate memory.
35549
35550 2005-09-05  Bruno Haible  <bruno@clisp.org>
35551
35552         * gnulib-tool (func_import): Fix comparison in handling of symbolic
35553         links.
35554
35555 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
35556
35557         * modules/size_max (Makefile.am): Add size_max.h
35558
35559 2005-09-04  Derek Price  <derek@ximbiot.com>
35560
35561         * gnulib-tool (func_import): Fix reversed $symbolic logic.
35562
35563 2005-09-03  Simon Josefsson  <jas@extundo.com>
35564
35565         * gnulib-tool: Fix typo.
35566
35567 2005-09-03  Simon Josefsson  <jas@extundo.com>
35568
35569         * config/srclist.txt: Add glibc bug 1293.
35570
35571 2005-09-03  Derek Price  <derek@ximbiot.com>
35572
35573         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
35574         From Larry Jones <lawrence.jones@ugs.com>.
35575
35576 2005-09-02  Simon Josefsson  <jas@extundo.com>
35577
35578         * modules/socklen: New file.
35579
35580 2005-09-02  Simon Josefsson  <jas@extundo.com>
35581
35582         * modules/havelib: New module.
35583
35584         * modules/gettext, modules/iconv, modules/lock, modules/readline:
35585         Use havelib.
35586
35587 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
35588
35589         Check for arithmetic overflow when calculating sizes, to prevent
35590         some buffer-overflow issues.  These patches are conservative, in the
35591         sense that when I couldn't determine whether an overflow was possible,
35592         I inserted a run-time check.
35593         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
35594         macros.
35595         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
35596         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
35597         (re_xnrealloc, re_x2nrealloc): New inline functions.
35598         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
35599         parse_bracket_exp):
35600         (build_equiv_class, build_charclass): Check for arithmetic overflow
35601         in size expression calculations.
35602         * lib/regex_internal.c (re_string_realloc_buffers):
35603         (build_wcs_upper_buffer, re_node_set_add_intersect):
35604         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
35605         (re_dfa_add_node, register_state): Likewise.
35606         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
35607         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
35608         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
35609         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
35610
35611 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
35612
35613         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
35614         m4/ulonglong.m4.  Problem reported by Martin Lambers.
35615
35616 2005-09-02  Bruno Haible  <bruno@clisp.org>
35617
35618         Support for lib vs. lib64 distinction on biarch platforms.
35619         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
35620         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
35621         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
35622
35623 2005-09-02  Bruno Haible  <bruno@clisp.org>
35624
35625         * gnulib-tool (import): In the other first-use case, provide defaults
35626         as well.
35627
35628 2005-09-02  Bruno Haible  <bruno@clisp.org>
35629
35630         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
35631         patches not yet found in the latest gettext release.
35632
35633 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
35634
35635         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
35636         to avoid a collision with bits/local_lim.h in glibc.
35637         All uses changed.  Problem reported by Dmitry V. Levin in
35638         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
35639
35640         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
35641         bugs in int versus size_t comparisons.
35642         (re_string_context_at): Fix bug where the code assumed that
35643         Idx is signed.
35644
35645         Use bool where appropriate.
35646         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
35647         All callers changed.
35648         (calc_eclosure_iter): Likewise, for ROOT arg.
35649         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
35650         (build_charclass_op): Likewise, for NON_MATCH arg.
35651         * lib/regex_internal.c (re_string_allocate, re_string_construct):
35652         (re_string_construct_common): Likewise, for ICASE arg.
35653         * lib/regexec.c (re_search_2_stub, re_search_stub):
35654         Likewise, for RET_LEN arg.
35655         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
35656         (set_regs): Likewise, for FL_BACKTRACK arg.
35657         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
35658         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
35659         (calc_eclosure_iter, parse_bracket_exp):
35660         Use bool for internal variables that are booleans.
35661         * lib/regexec.c (re_search_internal, check_matching,
35662         proceed_next_node):
35663         (set_regs, build_sifted_states, sift_states_bkref):
35664         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
35665         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
35666         (find_collation_sequence_value):
35667         Likewise.
35668         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
35669         (re_node_set_compare):
35670         Return bool, not int. All callers changed.
35671         * lib/regexec.c (check_halt_node_context, check_dst_limits):
35672         (build_trtable, check_node_accept): Likewise.
35673         * lib/regex_internal.h: Include stdbool.h.
35674
35675         Fix bugs uncovered when converting to bool.
35676         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
35677         failure instead of charging ahead blindly.
35678         * lib/regex_internal.c (register_state): Likewise.
35679         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
35680         for freeing internal storage.
35681         (group_nodes_into_DFA_states): Use unsigned int, not int, for
35682         bitset pieces used as boolean, to avoid undefined behavior
35683         on hosts that do int overflow checking.
35684
35685 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
35686
35687         * config/srclist.txt: Add glibc bugs 1285-1287.
35688
35689 2005-09-01  Jim Meyering  <jim@meyering.net>
35690
35691         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
35692         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
35693         Require gl_STAT_MACROS, too.
35694
35695 2005-09-01  Bruno Haible  <bruno@clisp.org>
35696
35697         * gnulib-tool (import): In the first-use case, provide defaults.
35698
35699 2005-09-01  Bruno Haible  <bruno@clisp.org>
35700
35701         * gnulib-tool (func_import): Remove the .tmp files.
35702
35703 2005-09-01  Bruno Haible  <bruno@clisp.org>
35704
35705         * gnulib-tool (func_import): Fix handling of symbolic links.
35706
35707 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
35708
35709         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
35710         old glibc regex code mishandles strings longer than 2**31 bytes.
35711         This patch fixes this when the regex code is used in gnulib
35712         (i.e., outside glibc).
35713
35714         This patch should not affect the use of the regex code inside
35715         glibc.  No doubt this problem also needs to be handled for glibc
35716         as well, but the result will be an incompatible change to the
35717         glibc ABI, and the old ABI will have to be supported too.  That
35718         can be the the subject for another patch.
35719
35720         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
35721         governing whether the rest of this patch is active.  By default,
35722         the macro is disabled and the patch has no effect.
35723         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
35724         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
35725         (struct re_pattern_buffer, re_search, re_search_2, re_match):
35726         (re_match_2, re_set_registers): Use the new types.
35727         * lib/regex_internal.h (Idx, re_hashval_t): New types.
35728         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
35729         New macros.
35730         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
35731         (re_string_context_at, bin_tree_t, re_dfastate_t):
35732         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
35733         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
35734         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
35735         (re_string_char_size_at, re_string_wchar_at):
35736         (re_string_elem_size_at):
35737         Use the new types and macros to port to 64-bit hosts.
35738         Use unsigned types for internal values, so that the code
35739         mostly works even for arrays larger than SSIZE_MAX.
35740         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
35741         (search_duplicated_node, calc_eclosure_iter, fetch_number):
35742         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
35743         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
35744         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
35745         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
35746         (calc_inveclosure, parse_dup_op, build_range_exp):
35747         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
35748         (fetch_number, create_token_tree, mark_opt_subexp):
35749         Likewise.
35750         * lib/regex_internal.c (re_string_construct_common,
35751         create_ci_newstate):
35752         (create_cd_newstate, re_string_allocate, re_string_construct):
35753         (re_string_realloc_buffers, build_wcs_upper_buffer):
35754         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
35755         (re_string_reconstruct, re_string_peek_byte_case):
35756         (re_string_fetch_byte_case, re_string_context_at):
35757         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
35758         (re_node_set_init_copy, re_node_set_add_intersect):
35759         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
35760         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
35761         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
35762         (re_acquire_state, re_acquire_state_context, register_state):
35763         Likewise.
35764         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
35765         search_cur_bkref_entry):
35766         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
35767         (re_search_internal, re_search_2_stub, re_search_stub)
35768         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
35769         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
35770         (update_cur_sifted_state, check_dst_limits):
35771         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
35772         (check_subexp_limits, sift_states_bkref, merge_state_array):
35773         (check_subexp_matching_top, get_subexp, get_subexp_sub):
35774         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
35775         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
35776         (expand_bkref_cache, check_node_accept_bytes):
35777         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
35778         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
35779         (acquire_init_state_context, check_halt_node_context):
35780         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
35781         (sift_states_backward, clean_state_log_if_needed):
35782         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
35783         (find_recover_state, transit_state_sb, transit_state_mb):
35784         (transit_state_bkref, build_trtable, match_ctx_clean):
35785         Likewise.
35786         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
35787         to work around an assumption that REG_MISSING is negative.
35788
35789         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
35790         (seek_collating_symbol_entry) [defined _LIBC]:
35791         (lookup_collation_sequence_value) [defined _LIBC]:
35792         (build_range_exp, build_collating_symbol) [defined _LIBC]:
35793         Use prototypes rather than old-style function definitions.
35794         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
35795         (transit_state_sb) [0]:
35796         (find_collation_sequence_value) [defined _LIBC]: Likewise.
35797
35798         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
35799         rm_eo.
35800
35801         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
35802         (optimize_subexps, lower_subexp):
35803         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
35804         since the signed shift might overflow.  Use 1u<<31 instead.
35805         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
35806         Likewise.
35807         * lib/regexec.c (check_dst_limits_calc_pos_1,
35808         check_subexp_matching_top): Likewise.
35809
35810         * lib/regcomp.c (optimize_subexps, lower_subexp):
35811         Use CHAR_BIT rather than 8, for clarity.
35812         * lib/regexec.c (check_dst_limits_calc_pos_1):
35813         (check_subexp_matching_top): Likewise.
35814         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
35815         have to worry about portability issues when shifting it left.
35816         Remove no-longer-needed test for table_size > 0.
35817         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
35818         in a word, as the resulting behavior is undefined.
35819         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
35820         in one case, a <= should have been an <, and in another case the
35821         whole test was missing.
35822         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
35823         the standard name CHAR_BIT.
35824         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
35825         this is not true on one's complement and signed-magnitude hosts.
35826
35827         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
35828         next_last_offset.
35829         (struct re_dfa_t): Remove unused member states_alloc.
35830         * lib/regcomp.c (init_dfa): Don't initialize unused members.
35831
35832 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
35833
35834         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
35835         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
35836         and large-file glibc and in 32-bit large-file Solaris.
35837
35838 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
35839
35840         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
35841         lengths fit in regoff_t; this isn't true if regoff_t is the same
35842         width as size_t.
35843         * lib/regex.c (re_search_internal): 5th arg is LAST_START
35844         (= START + RANGE) instead of RANGE.  This avoids overflow
35845         problems when regoff_t is the same width as size_t.
35846         All callers changed.
35847         (re_search_2_stub): Check for overflow when adding the
35848         sizes of the two strings.
35849         (re_search_stub): Check for overflow when adding START
35850         to RANGE; if it occurs, substitute the extreme value.
35851
35852 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
35853
35854         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
35855
35856 2005-08-31  Jim Meyering  <jim@meyering.net>
35857
35858         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
35859         a pointer-to-const.
35860         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
35861         (register_state): Likewise.
35862         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
35863         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
35864         (group_nodes_into_DFAstates): Likewise.
35865
35866 2005-08-31  Jim Meyering  <jim@meyering.net>
35867
35868         * check-module: Add a FIXME comment.
35869
35870 2005-08-31  Eric Blake  <ebb9@byu.net>
35871
35872         * modules/unistd-safer (Files): Add unistd--.h.
35873         * modules/stdio-safer (Files): Add stdio--.h.
35874
35875 2005-08-31  Derek Price  <derek@ximbiot.com>
35876
35877         * lib/getdelim.c (getdelim): Return EOF on EOF.
35878         Reported by Larry Jones <lawrence.jones@ugs.com>.
35879
35880 2005-08-31  Bruno Haible  <bruno@clisp.org>
35881
35882         Avoid unnecessary diffs in the generated lib/Makefile.am.
35883         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
35884         the generated files.
35885         (func_import): Don't set cmd.
35886
35887 2005-08-31  Bruno Haible  <bruno@clisp.org>
35888
35889         * lib/strstr.c: Include <stddef.h>, for NULL.
35890         * lib/strcasestr.c: Likewise.
35891         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35892
35893 2005-08-31  Bruno Haible  <bruno@clisp.org>
35894
35895         * gnulib-tool: New option --macro-prefix.
35896         (func_import): Use macro_prefix.
35897         (import): Handle option --macro-prefix.
35898
35899 2005-08-31  Bruno Haible  <bruno@clisp.org>
35900
35901         * gnulib-tool (import): Rename most ac_* variables to cached_*.
35902         Also use new variables cached_lgpl, cached_libtool.
35903
35904 2005-08-31  Bruno Haible  <bruno@clisp.org>
35905
35906         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
35907         always instantiating them.
35908
35909 2005-08-31  Bruno Haible  <bruno@clisp.org>
35910
35911         * gnulib-tool (func_import): Read the previous cached settings
35912         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
35913         earlier added by gnulib but are now dropped. Warn when a gnulib file
35914         overwrites a non-gnulib file.
35915
35916 2005-08-31  Bruno Haible  <bruno@clisp.org>
35917
35918         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
35919         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
35920         projects that don't keep autogenerated files in CVS. Put into
35921         actioncmd only the specified modules, not the transitive closure.
35922
35923 2005-08-31  Bruno Haible  <bruno@clisp.org>
35924
35925         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
35926         Create directories that shall be filled.
35927         (import): Don't look for gl_* macros in configure.ac. Recurse across
35928         all directories containing a gnulib-cache.m4 files, if meaningful.
35929
35930 2005-08-31  Bruno Haible  <bruno@clisp.org>
35931
35932         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
35933         (import): Set seen_libtool when we see gl_LIBTOOL.
35934
35935 2005-08-31  Bruno Haible  <bruno@clisp.org>
35936
35937         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
35938         declaration macro definitions from generated gnulib.m4.
35939
35940 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
35941
35942         * lib/iconvme.h: Add prototype for iconv_alloc.
35943
35944 2005-08-29  Simon Josefsson  <jas@extundo.com>
35945
35946         * lib/iconvme.c: Fix errno.
35947
35948 2005-08-29  Bruno Haible  <bruno@clisp.org>
35949
35950         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
35951         that it works when the directory contains spaces.
35952
35953 2005-08-29  Bruno Haible  <bruno@clisp.org>
35954
35955         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
35956
35957 2005-08-29  Bruno Haible  <bruno@clisp.org>
35958
35959         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
35960         Emit more advice.
35961
35962 2005-08-29  Bruno Haible  <bruno@clisp.org>
35963         and Stepan Kasal  <kasal@ucw.cz>
35964
35965         * check-module: If more parameters are given, check each of them
35966         separately; add more exceptions, as noted by Jim Meyering.
35967         (check_module): New procedure.
35968         (%exempt_header): Now contains all exceptions.
35969
35970 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
35971
35972         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
35973
35974 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
35975
35976         * lib/iconvme.c: Split iconv_string into iconv_alloc.
35977
35978 2005-08-28  Bruno Haible  <bruno@clisp.org>
35979
35980         * m4/gnulib-tool.m4: New file.
35981
35982 2005-08-27  Jim Meyering  <jim@meyering.net>
35983
35984         * modules/unistd-safer (Files): Add pipe-safer.c.
35985         * modules/fcntl-safer (Files): Add creat-safer.c.
35986
35987 2005-08-27  Jim Meyering  <jim@meyering.net>
35988
35989         * m4/stdlib-safer.m4: New file.  From coreutils.
35990         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
35991         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
35992         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
35993         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
35994         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
35995
35996 2005-08-27  Jim Meyering  <jim@meyering.net>
35997
35998         * lib/fopen-safer.c: Merge minor changes from coreutils.
35999         * lib/dup-safer.c: Likewise.
36000         * lib/fd-safer.c: Likewise.
36001
36002         Merge from coreutils.
36003         * lib/stdio--.h: New file.
36004         * lib/stdlib--.h: New file.
36005         * lib/mkstemp-safer.c: New file.
36006
36007         GNU tar needs these.
36008         * lib/pipe-safer.c: New file.
36009         * lib/creat-safer.c: New file.
36010         * lib/fcntl--.h (creat): Define to creat_safer.
36011         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
36012         * lib/unistd--.h (pipe): Define to pipe_safer.
36013         * lib/unistd-safer.h: Declare pipe_safer.
36014
36015 2005-08-26  Simon Josefsson  <jas@extundo.com>
36016
36017         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
36018         Haible <bruno@clisp.org>.
36019
36020 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
36021
36022         * lib/regex_internal.h: Remove all references to
36023         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
36024         or better.
36025         (bitset_not, bitset_merge, bitset_not_merge):
36026         (bitset_mask, re_string_allocate, re_string_construct):
36027         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
36028         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
36029         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
36030         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
36031         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
36032         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
36033         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
36034         (re_acquire_state_context):
36035         Remove unnecessary forward decls.
36036         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
36037         Put __attribute at function definition,
36038         now that the function decl has been removed.
36039         * lib/regex_internal.c (re_string_peek_byte_case):
36040         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
36041         Likewise.
36042
36043 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
36044
36045         * m4/regex.m4: Add AC_PREREQ(2.50).
36046         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
36047
36048 2005-08-25  Simon Josefsson  <jas@extundo.com>
36049
36050         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
36051         __fsetlocking.
36052
36053 2005-08-25  Simon Josefsson  <jas@extundo.com>
36054
36055         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
36056         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
36057         GLIBC specific code.
36058
36059 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36060
36061         Make regex safe for g++.  This fixes one real bug (an "err"
36062         that should have been "*err").  g++ problem reported by
36063         Sam Steingold.
36064         * lib/regex_internal.h (re_calloc): New macro, consistent with
36065         re_malloc etc.  All callers of calloc changed to use re_calloc.
36066         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
36067         not int.  All callers changed.
36068         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
36069         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
36070         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
36071         (find_recover_state): Change "err" to "*err"; this fixes what
36072         appears to be a real bug.
36073         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
36074         versus int.
36075
36076 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36077
36078         * modules/regex (Depends-on): Add malloc, since the code
36079         assumes that !malloc(0) means failure.
36080
36081 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36082
36083         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
36084
36085         alloca modernization/simplification for regex.
36086         * lib/regex.c: Remove portability cruft for alloca.  This no longer
36087         needs to be at the start of the file, and can be moved into
36088         regex_internal.h and simplified.
36089         * lib/regex_internal.h: Include <alloca.h>.
36090         (__libc_use_alloca) [!defined _LIBC]: New macro.
36091         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
36092         now works outside glibc.
36093
36094 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
36095
36096         * config/srclist.txt: Add glibc bugs 1241, 1245.
36097
36098 2005-08-25  Jim Meyering  <jim@meyering.net>
36099
36100         * lib/open-safer.c: Include <config.h>.
36101         Otherwise, we'd lose LARGEFILE support in any file using
36102         e.g. "fcntl--.h"
36103
36104 2005-08-25  Bruno Haible  <bruno@clisp.org>
36105
36106         * m4/minmax.m4: Require autoconf 2.52.
36107         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
36108         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
36109         alternatives of translit over the alphabet.
36110         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
36111
36112 2005-08-24  Simon Josefsson  <jas@extundo.com>
36113
36114         * tests/test-getpass.c: New file.
36115
36116 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36117
36118         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
36119         for GNU regex features.
36120
36121 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36122
36123         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
36124         * lib/regex.h (regerror): Likewise.
36125
36126         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
36127         requires this.  (The code never needed it.)
36128
36129         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
36130         All uses of recently-renamed identifiers changed to use the new,
36131         POSIX-compliant names.  The code will build and run just fine
36132         without these changes, but it's better to eat our own dog food
36133         and use the standard-conforming names.
36134
36135         * lib/regex.h: Fix a multitude of POSIX name space violations.
36136         These changes have an effect only for programs that define
36137         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
36138         do not change anything for programs compiled in the normal way.
36139         Also, there is no effect on the ABI.
36140
36141         (_REGEX_SOURCE): New macro.
36142         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
36143         defined and _GNU_SOURCE is not; this fixes a name space violation.
36144
36145         Rename the following macros to obey POSIX requirements.
36146         The old names are still visible as macros if _REGEX_SOURCE is defined.
36147         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
36148         RE_BACKSLASH_ESCAPE_IN_LISTS.
36149         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
36150         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
36151         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
36152         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
36153         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
36154         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
36155         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
36156         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
36157         (REG_INTERVALS): renamed from RE_INTERVALS.
36158         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
36159         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
36160         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
36161         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
36162         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
36163         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
36164         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
36165         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
36166         RE_UNMATCHED_RIGHT_PAREN_ORD.
36167         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
36168         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
36169         (REG_DEBUG): renamed from RE_DEBUG.
36170         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
36171         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
36172         unusual, since we can't clash with the POSIX REG_ICASE.
36173         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
36174         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
36175         (REG_NO_SUB): renamed from RE_NO_SUB.
36176         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
36177         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
36178         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
36179         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
36180         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
36181         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
36182         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
36183         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
36184         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
36185         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
36186         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
36187         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
36188         RE_SYNTAX_POSIX_MINIMAL_BASIC.
36189         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
36190         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
36191         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
36192         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
36193         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
36194         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
36195         (REG_FIXED): Renamed from REGS_FIXED.
36196         (REG_NREGS): Renamed from RE_NREGS.
36197
36198         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
36199         of other REG_* macros, since POSIX says the user is allowed to
36200         #undef these macros selectively.
36201
36202         (reg_errcode_t): Update comment stating what other tables need
36203         to be consistent.
36204
36205         Rename the following enum values to obey POSIX requirements.
36206         The old names are still visible as macros.
36207         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
36208         is not defined, since GNU is supposed to be a superset of POSIX as
36209         much as possible, and since we want reg_errcode_t to be a signed
36210         type for implementation consistency.
36211         (_REG_NOERROR): Renamed from REG_NOERROR.
36212         (_REG_NOMATCH): Renamed from REG_NOMATCH.
36213         (_REG_BADPAT): Renamed from REG_BADPAT.
36214         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
36215         (_REG_ECTYPE): Renamed from REG_ECTYPE.
36216         (_REG_EESCAPE): Renamed from REG_EESCAPE.
36217         (_REG_ESUBREG): Renamed from REG_ESUBREG.
36218         (_REG_EBRACK): Renamed from REG_EBRACK.
36219         (_REG_EPAREN): Renamed from REG_EPAREN.
36220         (_REG_EBRACE): Renamed from REG_EBRACE.
36221         (_REG_BADBR): Renamed from REG_BADBR.
36222         (_REG_ERANGE): Renamed from REG_ERANGE.
36223         (_REG_ESPACE): Renamed from REG_ESPACE.
36224         (_REG_BADRPT): Renamed from REG_BADRPT.
36225         (_REG_EEND): Renamed from REG_EEND.
36226         (_REG_ESIZE): Renamed from REG_ESIZE.
36227         (_REG_ERPAREN): Renamed from REG_ERPAREN.
36228         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
36229         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
36230         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
36231         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
36232
36233         (_REG_RE_NAME, _REG_RM_NAME): New macros.
36234         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
36235         changed.  But support the old name if the new one is not defined
36236         and if _REGEX_SOURCE.
36237
36238         Change the following member names in struct re_pattern_buffer.
36239         The old names are still supported if !_REGEX_SOURCE.
36240         The new names are always supported, regardless of _REGEX_SOURCE.
36241         (re_buffer): Renamed from buffer.
36242         (re_allocated): Renamed from allocated.
36243         (re_used): Renamed from used.
36244         (re_syntax): Renamed from syntax.
36245         (re_fastmap): Renamed from fastmap.
36246         (re_translate): Renamed from translate.
36247         (re_can_be_null): Renamed from can_be_null.
36248         (re_regs_allocated): Renamed from regs_allocated.
36249         (re_fastmap_accurate): Renamed from fastmap_accurate.
36250         (re_no_sub): Renamed from no_sub.
36251         (re_not_bol): Renamed from not_bol.
36252         (re_not_eol): Renamed from not_eol.
36253         (re_newline_anchor): Renamed from newline_anchor.
36254
36255         Change the following member names in struct re_registers.
36256         The old names are still supported if !_REGEX_SOURCE.
36257         The new names are always supported, regardless of _REGEX_SOURCE.
36258         (rm_num_regs): Renamed from num_regs.
36259         (rm_start): Renamed from start.
36260         (rm_end): Renamed from end.
36261
36262         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
36263         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
36264         Prepend __ to parameter names.
36265
36266         Undo yesterday's changes.
36267
36268 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36269
36270         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
36271         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
36272         lib/regex.c.
36273
36274 2005-08-24  Jim Meyering  <jim@meyering.net>
36275
36276         Sync from coreutils.
36277         * m4/fcntl-safer.m4: New file.
36278
36279         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
36280         and object files for this module.
36281
36282 2005-08-24  Jim Meyering  <jim@meyering.net>
36283
36284         Sync from coreutils.
36285         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
36286
36287 2005-08-24  Jim Meyering  <jim@meyering.net>
36288
36289         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
36290         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
36291
36292 2005-08-24  Jim Meyering  <jim@meyering.net>
36293
36294         * modules/fcntl-safer: New module.
36295         * modules/fts (Depends-on): Add fcntl-safer.
36296         * MODULES.html.sh (File descriptor based Input/Output):
36297         Add fcntl-safer.
36298
36299 2005-08-24  Bruno Haible  <bruno@clisp.org>
36300
36301         Support for unit test modules.
36302         * modules/README: Mention tests modules.
36303         * modules/TEMPLATE-TESTS: New file.
36304         * gnulib-tool: New options --extract-tests-module, --with-tests and
36305         --tests-base (unused for the moment).
36306         (testsbase, inctests): New variables.
36307         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
36308         (func_verify_module): Exclude TEMPLATE-TESTS.
36309         (func_verify_nontests_module, func_verify_tests_module): New functions.
36310         (func_get_dependencies): Add implicit dependency for tests modules.
36311         (func_get_tests_module): New function.
36312         (func_modules_transitive_closure): When --with-tests was specified,
36313         include the unit tests as well, unless explicitly avoided.
36314         (func_emit_lib_Makefile_am): Ignore the tests modules here.
36315         (func_emit_tests_Makefile_am): New function.
36316         (func_create_testdir): When --with-tests was specified, emit a
36317         tests/ directory.
36318         * MODULES.html.sh (Future developments): Update.
36319
36320 2005-08-24  Bruno Haible  <bruno@clisp.org>
36321
36322         * modules/tls-tests: New file.
36323         * tests/test-tls.c: New file, from GNU gettext.
36324
36325 2005-08-24  Bruno Haible  <bruno@clisp.org>
36326
36327         * modules/lock-tests: New file.
36328         * tests/test-lock.c: New file, from GNU gettext.
36329
36330 2005-08-24  Bruno Haible  <bruno@clisp.org>
36331
36332         * lib/lock.h: Add multiple inclusion guard.
36333         * lib/tls.h: Add multiple inclusion guard.
36334
36335 2005-08-24  Bruno Haible  <bruno@clisp.org>
36336
36337         * gnulib-tool: Add support for the --aux-dir option to
36338         --create-testdir, --create-megatestdir, --test, --megatest.
36339         (func_create_testdir, func_create_megatestdir): Optionally emit a
36340         AC_CONFIG_AUX_DIR directive.
36341         (create-testdir, create-megatestdir, test, megatest): Provide a
36342         default value for $auxdir.
36343
36344 2005-08-24  Bruno Haible  <bruno@clisp.org>
36345
36346         * gnulib-tool (import): Use compound statement instead of subshell
36347         where possible.
36348
36349 2005-08-24  Bruno Haible  <bruno@clisp.org>
36350
36351         * gnulib-tool (import): Change --aux-dir default to "build-aux".
36352
36353 2005-08-24  Bruno Haible  <bruno@clisp.org>
36354
36355         * gnulib-tool (func_version): Update.
36356
36357 2005-08-24  Bruno Haible  <bruno@clisp.org>
36358
36359         * gnulib-tool (func_import, func_create_testdir,
36360         func_create_megatestdir): Quote all autoconf macro arguments.
36361
36362 2005-08-24  Bruno Haible  <bruno@clisp.org>
36363
36364         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
36365         option --force, because --force causes the aclocal.m4 of each
36366         subdirectory to be newer than the corresponding config.h.in.
36367
36368 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36369
36370         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
36371         All contents moved to gl_REGEX.
36372         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
36373         assume that it does.
36374
36375 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36376
36377         * lib/regex.h (REG_NOSYS)
36378         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
36379         Define, since POSIX requires it as of 2001.
36380         (_REG_ENOSYS)
36381         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
36382         New private symbol, used to keep the enum signed in all cases.
36383         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
36384         Youngman in
36385         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
36386
36387         * lib/regex_internal.c (re_string_skip_chars, register_state):
36388         (calc_state_hash):
36389         Remove forward decls; no longer needed now that we use prototypes.
36390         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
36391         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
36392         (clean_state_log_if_needed): Likewise.
36393
36394 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36395
36396         * config/srclist.txt: Add glibc bugs 1231-1233.
36397
36398 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
36399
36400         Fix problems reported by Sam Steingold in
36401         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
36402         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
36403         assumed that reg_errcode_t is a signed type, which is not
36404         necessarily true if _XOPEN_SOURCE is not defined.
36405         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
36406         since some compilers warn about it otherwise.
36407
36408 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
36409
36410         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
36411         (init_word_char, create_initial_state, duplicate_node_closure):
36412         (fetch_token, peek_token_bracket, build_range_exp):
36413         (build_collating_symbol): Remove forward decls; no longer needed
36414         now that we use prototypes.
36415
36416         * lib/regcomp.c:
36417         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
36418         (re_compile_fastmap_iter, regcomp, regerror, regfree):
36419         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
36420         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
36421         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
36422         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
36423         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
36424         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
36425         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
36426         (build_range_exp, build_collating_symbol, parse_bracket_exp):
36427         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
36428         (build_charclass, build_charclass_op, fetch_number, create_tree):
36429         (create_token_tree, mark_opt_subexp, duplicate_tree):
36430         Use prototypes rather than old-style definitions.
36431
36432         * lib/regex_internal.c:
36433         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
36434         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
36435         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
36436         (re_string_reconstruct, re_string_peek_byte_case):
36437         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
36438         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
36439         (re_node_set_init_copy, re_node_set_add_intersect):
36440         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
36441         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
36442         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
36443         (re_acquire_state, re_acquire_state_context, register_state):
36444         (create_ci_newstate, create_cd_newstate, free_state):
36445         Likewise.
36446         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
36447         re_search_2):
36448         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
36449         (re_search_internal, prune_impossible_nodes):
36450         (acquire_init_state_context, check_matching, static):
36451         (check_halt_node_context, check_halt_state_context, proceed_next_node):
36452         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
36453         (update_regs, sift_states_backward, build_sifted_states):
36454         (clean_state_log_if_needed, merge_state_array):
36455         (update_cur_sifted_state, add_epsilon_src_nodes):
36456         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
36457         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
36458         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
36459         (find_recover_state, check_subexp_matching_top, transit_state_mb):
36460         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
36461         (check_arrival, check_arrival_add_next_nodes):
36462         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
36463         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
36464         (check_node_accept_bytes, check_node_accept, extend_buffers):
36465         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
36466         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
36467         (sift_ctx_init):
36468         Likewise.
36469
36470         * lib/regex_internal.h:
36471         (re_string_allocate, re_string_construct, re_string_reconstruct):
36472         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
36473         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
36474         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
36475         (re_string_context_at, re_string_peek_byte_case):
36476         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
36477         is defined, since we now use prototypes always.
36478
36479         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
36480         C89 or better.  All uses removed.
36481
36482 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
36483
36484         * config/srclist.txt: Add glibc bugs 1220-1227.
36485
36486 2005-08-20  Jim Meyering  <jim@meyering.net>
36487
36488         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
36489         of unused local, dfa.
36490
36491 2005-08-20  Bruno Haible  <bruno@clisp.org>
36492
36493         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
36494
36495 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
36496
36497         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
36498         (re_node_set_insert_last, re_dfa_add_node):
36499         Rename local variables to avoid GCC shadowing warnings.
36500
36501 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
36502
36503         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
36504         [defined lint]: Suppress bogus uninitialized-variable warnings.
36505
36506         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
36507         and let the caller return REG_ESPACE if out of space.  This
36508         removes an uninitialied-variable warning with GCC 4.0.1, and also
36509         avoids taking the address of a local variable.  All callers
36510         changed.
36511
36512 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
36513
36514         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
36515         $LIBCSRC/posix/regexec.c.
36516         Add glibc bug 1217 for regcomp.c.
36517
36518 2005-08-19  Jim Meyering  <jim@meyering.net>
36519
36520         * lib/regexec.c (proceed_next_node): Redo local variables to
36521         avoid GCC shadowing warnings.
36522
36523 2005-08-18  Bruno Haible  <bruno@clisp.org>
36524
36525         * lib/strstr.c (strstr): Fix return value in multibyte case.
36526         * lib/strcasestr.c (strcasestr): Likewise.
36527
36528 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
36529
36530         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
36531
36532 2005-08-17  Jim Meyering  <jim@meyering.net>
36533
36534         Make the %s format (seconds since the epoch) work for a negative
36535         number and when used with a zero-padded field width, e.g. %015s.
36536
36537         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
36538         label so that it precedes the code to set `digits'.  Otherwise,
36539         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
36540         print `00-22'.  Now, it prints `-0022', as it should.
36541
36542 2005-08-17  Bruno Haible  <bruno@clisp.org>
36543
36544         * modules/strstr (Files): Add m4/mbrtowc.m4.
36545         (Depends-on): Add mbuiter.
36546
36547 2005-08-17  Bruno Haible  <bruno@clisp.org>
36548
36549         * modules/strcasestr: New file.
36550         * MODULES.html.sh (String handling, based on ANSI C 89): Add
36551         strcasestr.
36552
36553 2005-08-17  Bruno Haible  <bruno@clisp.org>
36554
36555         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
36556
36557 2005-08-17  Bruno Haible  <bruno@clisp.org>
36558
36559         * modules/mbuiter: New file.
36560         * MODULES.html.sh (Extended multibyte and wide character utilities):
36561         Add mbuiter.
36562
36563 2005-08-17  Bruno Haible  <bruno@clisp.org>
36564
36565         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
36566         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
36567
36568 2005-08-17  Bruno Haible  <bruno@clisp.org>
36569
36570         * m4/strcasestr.m4: New file.
36571
36572 2005-08-17  Bruno Haible  <bruno@clisp.org>
36573
36574         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
36575         * lib/strstr.c: Completely rewritten, with multibyte locale support.
36576
36577 2005-08-17  Bruno Haible  <bruno@clisp.org>
36578
36579         * lib/strcasestr.h: New file.
36580         * lib/strcasestr.c: New file.
36581
36582 2005-08-17  Bruno Haible  <bruno@clisp.org>
36583
36584         * lib/strcasecmp.c: Use mbuiter.h.
36585
36586 2005-08-17  Bruno Haible  <bruno@clisp.org>
36587
36588         * lib/mbuiter.h: New file.
36589
36590 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
36591
36592         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
36593         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
36594         and gl_GETOPT are both invoked via different paths (as happens
36595         with GNU tar CVS because it uses both argp and getopt), the former
36596         wins.
36597
36598 2005-08-16  Bruno Haible  <bruno@clisp.org>
36599
36600         * modules/tls: New file.
36601         * MODULES.html.sh (Multithreading): Add tls.
36602
36603 2005-08-16  Bruno Haible  <bruno@clisp.org>
36604
36605         * modules/strnlen1: New file.
36606         * MODULES.html.sh (String handling): Add strnlen1.
36607
36608 2005-08-16  Bruno Haible  <bruno@clisp.org>
36609
36610         * modules/strcase (Files): Add m4/mbrtowc.m4.
36611         (Depends-on): Add strnlen1, mbchar.
36612
36613 2005-08-16  Bruno Haible  <bruno@clisp.org>
36614
36615         * modules/mbiter: New file.
36616         * MODULES.html.sh (Extended multibyte and wide character utilities):
36617         Add mbiter.
36618
36619 2005-08-16  Bruno Haible  <bruno@clisp.org>
36620
36621         * modules/mbfile: New file.
36622         * MODULES.html.sh (Extended multibyte and wide character utilities):
36623         Add mbfile.
36624
36625 2005-08-16  Bruno Haible  <bruno@clisp.org>
36626
36627         * modules/mbchar: New file.
36628         * MODULES.html.sh (Extended multibyte and wide character utilities):
36629         New section.
36630
36631 2005-08-16  Bruno Haible  <bruno@clisp.org>
36632
36633         * m4/tls.m4: New file, from GNU gettext.
36634
36635 2005-08-16  Bruno Haible  <bruno@clisp.org>
36636
36637         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
36638         always.
36639         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
36640
36641 2005-08-16  Bruno Haible  <bruno@clisp.org>
36642
36643         * m4/mbiter.m4: New file.
36644
36645 2005-08-16  Bruno Haible  <bruno@clisp.org>
36646
36647         * m4/mbfile.m4: New file.
36648
36649 2005-08-16  Bruno Haible  <bruno@clisp.org>
36650
36651         * m4/mbchar.m4: New file.
36652
36653 2005-08-16  Bruno Haible  <bruno@clisp.org>
36654
36655         * lib/tls.h: New file, from GNU gettext.
36656         * lib/tls.c: New file, from GNU gettext.
36657
36658 2005-08-16  Bruno Haible  <bruno@clisp.org>
36659
36660         * lib/strnlen1.h: New file.
36661         * lib/strnlen1.c: New file.
36662
36663 2005-08-16  Bruno Haible  <bruno@clisp.org>
36664
36665         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
36666         (mbi_init): Update.
36667         (mbi_avail, mbi_advance): Let the iteration end before the terminating
36668         NUL byte, not after it.
36669
36670 2005-08-16  Bruno Haible  <bruno@clisp.org>
36671
36672         * lib/strcase.h (strcasecmp): Add note in comments.
36673         * lib/strncasecmp.c: Use code from strcasecmp.c.
36674         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
36675         (strcasecmp): Work correctly in multibyte locales.
36676
36677 2005-08-16  Bruno Haible  <bruno@clisp.org>
36678
36679         * lib/mbiter.h: New file.
36680
36681 2005-08-16  Bruno Haible  <bruno@clisp.org>
36682
36683         * lib/mbfile.h: New file.
36684
36685 2005-08-16  Bruno Haible  <bruno@clisp.org>
36686
36687         * lib/mbchar.h: New file.
36688         * lib/mbchar.c: New file.
36689
36690 2005-08-16  Bruno Haible  <bruno@clisp.org>
36691
36692         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
36693         the valid ones. Makes the comparison operations transitive:
36694         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
36695         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
36696
36697 2005-08-15  Simon Josefsson  <jas@extundo.com>
36698
36699         * modules/ssize_t (License): Change to 'unlimited'.
36700
36701         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
36702
36703 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
36704
36705         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
36706         Add comments for each pending glibc patch.
36707
36708 2005-08-15  Bruno Haible  <bruno@clisp.org>
36709
36710         * lib/regex.h (__restrict_arr): Don't define to __restrict if
36711         __cplusplus is defined.
36712
36713 2005-08-14  Jim Meyering  <jim@meyering.net>
36714
36715         Sync from coreutils.
36716
36717         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
36718         Use the hash-table-based cycle-detection code not just when
36719         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
36720         Reported by James Youngman in
36721         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
36722         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
36723         FTS_TIGHT_CYCLE_CHECK.
36724         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
36725         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
36726         once again.
36727         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
36728         * lib/fts.c (fd_safer): Remove decl.
36729         Include fcntl--.h rather than unistd-safer.h
36730         (fts_safe_changedir): Don't call fd_safer; no longer needed
36731         now that we include fcntl--.h.
36732
36733 2005-08-12  Simon Josefsson  <jas@extundo.com>
36734
36735         * modules/getndelim2: Use ssize_t module.
36736         * modules/getnline: Likewise.
36737         * modules/safe-read: Likewise.
36738         * modules/xreadlink: Likewise.
36739
36740         * modules/ssize_t: New file.
36741
36742 2005-08-12  Simon Josefsson  <jas@extundo.com>
36743
36744         * m4/readline.m4: Look for termcap, curses or ncurses if required.
36745
36746 2005-08-12  Simon Josefsson  <jas@extundo.com>
36747
36748         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36749         ssize_t.
36750
36751 2005-08-12  Simon Josefsson  <jas@extundo.com>
36752
36753         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
36754         readline, getdelim and check_version.
36755         (Support for systems lacking ISO C 99: Sizes of integer types):
36756         Add size_max.
36757
36758 2005-08-12  Bruno Haible  <bruno@clisp.org>
36759
36760         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
36761
36762 2005-08-11  Simon Josefsson  <jas@extundo.com>
36763
36764         * modules/readline: New file.
36765
36766         * modules/strnlen (Files): Add strnlen.h.
36767
36768 2005-08-11  Simon Josefsson  <jas@extundo.com>
36769
36770         * m4/readline.m4: New file.
36771
36772 2005-08-11  Simon Josefsson  <jas@extundo.com>
36773
36774         * lib/readline.h, readline.c: New file.
36775
36776 2005-08-11  Simon Josefsson  <jas@extundo.com>
36777
36778         * doc/gnulib.texi (Initial import, Finishing touches): Mention
36779         gl_AVOID.
36780
36781 2005-08-11  Bruno Haible  <bruno@clisp.org>
36782
36783         * lib/strnlen.h (strnlen): Change parameter name to match comment.
36784
36785 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
36786
36787         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
36788
36789 2005-08-10  Simon Josefsson  <jas@extundo.com>
36790
36791         * tests/test-iconvme.c: New file.
36792
36793 2005-08-10  Simon Josefsson  <jas@extundo.com>
36794
36795         * m4/strnlen.m4: New file.
36796
36797         * m4/strndup.m4: Don't check for strnlen declaration, done in
36798         strnlen.m4.
36799
36800 2005-08-10  Simon Josefsson  <jas@extundo.com>
36801
36802         * lib/strndup.c: Use strnlen.h.
36803
36804         * lib/strnlen.h: New file.
36805
36806 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
36807
36808         * README: Typos.
36809
36810 2005-08-02  Simon Josefsson  <jas@extundo.com>
36811
36812         * modules/readline: New file.
36813
36814 2005-08-02  Simon Josefsson  <jas@extundo.com>
36815
36816         * modules/getdelim: New file.
36817
36818         * modules/getline: Rewrite, don't use getndelim2.
36819
36820 2005-08-02  Simon Josefsson  <jas@extundo.com>
36821
36822         * m4/getline.m4: Separate out getdelim stuff into separate module.
36823
36824         * m4/getdelim.m4: New file.
36825
36826 2005-08-02  Simon Josefsson  <jas@extundo.com>
36827
36828         * lib/getline.h, getline.c: Rewrite.
36829
36830         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
36831
36832 2005-07-31  Bruno Haible  <bruno@clisp.org>
36833
36834         * lib/lock.h (gl_lock_initializer): New macro.
36835         (gl_lock_define_initialized): Use it.
36836         (gl_rwlock_initializer): New macro.
36837         (gl_rwlock_define_initialized): Use it.
36838         (gl_recursive_lock_initializer): New macro.
36839         (gl_recursive_lock_define_initialized): Use it.
36840
36841 2005-07-30  Karl Berry  <karl@gnu.org>
36842
36843         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
36844         Report from Ben Pfaff, regarding getopt.
36845
36846 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
36847
36848         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
36849         normal way.
36850         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
36851         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
36852         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
36853         (gl_GETOPT): Use the new macros.  Most of the implementation
36854         is moved to the new macros.  This is for programs like Emacs
36855         that don't want all the functionality of gl_GETOPT.
36856
36857 2005-07-26  Bruno Haible  <bruno@clisp.org>
36858
36859         * m4/lock.m4: Update from GNU gettext.
36860
36861 2005-07-26  Bruno Haible  <bruno@clisp.org>
36862
36863         * lib/lock.h: Update from GNU gettext.
36864         * lib/lock.c: Update from GNU gettext.
36865
36866 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
36867
36868         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
36869         obsolescent AC_TRY_RUN.  Include the default includes files, for
36870         'exit'.
36871
36872 2005-07-24  Bruno Haible  <bruno@clisp.org>
36873
36874         * modules/visibility: New file.
36875         * MODULES.html.sh (Misc): Add visibility.
36876
36877 2005-07-24  Bruno Haible  <bruno@clisp.org>
36878
36879         * m4/visibility.m4: New file.
36880
36881 2005-07-24  Bruno Haible  <bruno@clisp.org>
36882
36883         * doc/visibility.texi: New file.
36884
36885 2005-07-22  Bruno Haible  <bruno@clisp.org>
36886
36887         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
36888         $(ALLOCA_H), redundant through BUILT_SOURCES.
36889         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
36890         redundant through BUILT_SOURCES.
36891         * modules/byteswap (Makefile.am): Remove explicit dependency on
36892         $(BYTESWAP_H), redundant through BUILT_SOURCES.
36893         * modules/fnmatch (Makefile.am): Remove explicit dependency on
36894         $(FNMATCH_H), redundant through BUILT_SOURCES.
36895         * modules/getopt (Makefile.am): Remove explicit dependency on
36896         $(GETOPT_H), redundant through BUILT_SOURCES.
36897         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
36898         redundant through BUILT_SOURCES.
36899         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
36900         redundant through BUILT_SOURCES.
36901         * modules/stdbool (Makefile.am): Remove explicit dependency on
36902         $(STDBOOL_H), redundant through BUILT_SOURCES.
36903         * modules/stdint (Makefile.am): Remove explicit dependency on
36904         $(STDINT_H), redundant through BUILT_SOURCES.
36905         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
36906         Remove explicit dependency on $(SYSEXITS_H).
36907         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
36908
36909 2005-07-18  Simon Josefsson  <jas@extundo.com>
36910
36911         * lib/check-version.c (check_version): Accept identical versions too.
36912
36913 2005-07-18  Bruno Haible  <bruno@clisp.org>
36914
36915         * modules/lock: New file.
36916         * MODULES.html.sh (Multithreading): New section.
36917
36918 2005-07-18  Bruno Haible  <bruno@clisp.org>
36919
36920         * m4/lock.m4: New file, from GNU gettext.
36921
36922 2005-07-18  Bruno Haible  <bruno@clisp.org>
36923
36924         * lib/lock.h: New file, from GNU gettext.
36925         * lib/lock.c: New file, from GNU gettext.
36926
36927 2005-07-18  Bruno Haible  <bruno@clisp.org>
36928
36929         * lib/lock.h (gl_once_t): New type.
36930         (gl_once_define, gl_once): New macros.
36931         * lib/lock.c (fresh_once): New variable.
36932         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
36933         functions.
36934
36935 2005-07-16  Simon Josefsson  <jas@extundo.com>
36936
36937         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
36938         workaround, suggested by Bruno.
36939
36940 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
36941
36942         * modules/xalloc (Depends-on): Add xalloc-die.
36943         * modules/xvasprintf (Depends-on): Add xalloc-die.
36944
36945 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
36946
36947         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
36948         with a minor change.
36949
36950 2005-07-15  Bruno Haible  <bruno@clisp.org>
36951
36952         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
36953         When using lib/poll.c, define poll as rpl_poll.
36954
36955 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
36956
36957         * modules/argp (Depends-on): Remove unlocked-io.
36958
36959 2005-07-14  Derek Price  <derek@ximbiot.com>
36960
36961         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
36962         for glob symlink bug.
36963
36964 2005-07-14  Bruno Haible  <bruno@clisp.org>
36965
36966         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
36967         Instead, test for *_unlocked function declarations directly.
36968
36969 2005-07-11  Simon Josefsson  <jas@extundo.com>
36970
36971         * modules/size_max: New file.
36972
36973         * modules/xsize: Depend on size_max module for size_max.m4.
36974
36975 2005-07-11  Simon Josefsson  <jas@extundo.com>
36976
36977         * lib/size_max.h: New file.
36978
36979 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
36980
36981         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
36982         copyright symbol and the year.
36983         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
36984         (version_etc_va): Use parameterized copyright notice.
36985         Reword to conform to the current GNU coding standards.
36986
36987 2005-07-11  Karl Berry  <karl@gnu.org>
36988
36989         * doc/gnulib.texi (Quoting): new node.
36990         (Initial import): more info, from Patrice.
36991
36992 2005-07-11  Bruno Haible  <bruno@clisp.org>
36993
36994         * gnulib-tool (func_usage): Document option --avoid.
36995         (Command line options): Handle --avoid.
36996         (func_acceptable): New function.
36997         (func_modules_transitive_closure): Use it.
36998
36999 2005-07-11  Bruno Haible  <bruno@clisp.org>
37000
37001         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
37002         Reported by Jim Meyering.
37003
37004 2005-07-10  Bruno Haible  <bruno@clisp.org>
37005
37006         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
37007         Needed when size_t is smaller than 'unsigned int'.
37008         Reported by Paul Eggert.
37009
37010 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
37011
37012         * modules/argp (Depends-on): Add unlocked-io
37013
37014 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
37015
37016         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
37017         block of defines.
37018
37019 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
37020
37021         * config/srclist.txt: Comment out regcomp.c, since we have a porting
37022         fix now.
37023
37024 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
37025         and Paul Eggert  <eggert@cs.ucla.edu>
37026
37027         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
37028         in wint_t, not wchar_t.  Remove now-unnecessary cast.
37029
37030 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
37031
37032         * modules/regex (Files): Add lib/regex_internal.c,
37033         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
37034         (Depends-on): Add extensions.
37035         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
37036
37037 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
37038
37039         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
37040         pathconf.
37041         * m4/same.m4 (gl_SAME): Likewise.
37042         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
37043
37044         * m4/regex.m4: Adjust to new libc regex implementation.
37045         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
37046         all the .c and .h parts of (the new) regex.
37047         Quote the m4 stuff better.
37048         Check for RE_ICASE bug of old gnulib.
37049         Check for REG_STARTEND of recent libc.
37050         Rename local variables from jm_* to gl_*.
37051         Quote operand of "test -f".
37052         Say "recent enough" version of libc, not "version 2".
37053         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
37054         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
37055         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
37056         Remove check for btowc, isascii.
37057         Require AM_LANGINFO_CODESET.
37058
37059 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
37060
37061         * lib/regex.c, regex.h: Sync from libc.
37062         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
37063         * lib/regexec.c:
37064         New files, synced from libc, except that regex_internal.h
37065         currently has a small porting fix.
37066
37067 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
37068
37069         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
37070         regex_internal.c, regexec.c.
37071         Add regex_internal.h too, but as a comment, since the libc version
37072         is currently broken in gnulib mode.
37073
37074 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
37075
37076         Support programs like Emacs that use gnulib but not gettext.
37077         * MODULES.html.sh (Internationalization functions): Add gettext-h.
37078         * modules/gettext-h: New file.
37079         * modules/gettext (Files): Remove lib/gettext.h.
37080         (Depends-on): Add gettext-h.
37081         (Makefile.am): Remove lib_SOURCES.
37082         * modules/argmatch, modules/c-stack, modules/closeout:
37083         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
37084         * modules/execute, modules/file-type, modules/getaddrinfo:
37085         * modules/getopt, modules/human, modules/javacomp:
37086         * modules/javaexec, modules/mkdir-p, modules/obstack:
37087         * modules/openat, modules/pagealign_alloc, modules/pipe:
37088         * modules/quotearg, modules/regex, modules/rpmatch:
37089         * modules/unicodeio, modules/userspec, modules/version-etc:
37090         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
37091         * modules/xsetenv:
37092         Depend on gettext-h, not gettext.
37093
37094 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
37095
37096         * gnulib-tool (func_import): Add support for 'public domain' license.
37097         * modules/alloca, modules/atexit, modules/memmove:
37098         Now public domain, not GPL.
37099         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
37100         * modules/realloc, modules/strerror, modules/strtod:
37101         Now LGPL, not GPL.
37102
37103 2005-07-05  Bruno Haible  <bruno@clisp.org>
37104
37105         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
37106         autoconf CVS. Needed for mingw.
37107
37108 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37109
37110         Remove the dependency of the strftime module on the tzset module.
37111         * modules/strftime (Depends-on): Remove dependency on tzset.
37112
37113 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37114
37115         Remove the dependency of the strftime module on the tzset module.
37116         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
37117         gl_FUNC_TZSET_CLOBBER.
37118
37119 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37120
37121         Remove the dependency of the strftime module on the tzset module.
37122         * lib/strftime.c (my_strftime)
37123         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
37124         Copy the input structure, to work around some of the bug with
37125         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
37126         Solaris releases, you should also use the tzset module, but we won't
37127         require it as a dependency any more since we don't want LGPLed code
37128         to depend on GPLed code.
37129
37130 2005-07-02  Jim Meyering  <jim@meyering.net>
37131
37132         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
37133         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
37134         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
37135         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
37136
37137 2005-07-02  Jim Meyering  <jim@meyering.net>
37138
37139         * lib/backupfile.c (backup_args): Change a `0' to NULL.
37140
37141 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
37142
37143         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
37144         declares only 'struct timespec;' (!).
37145
37146 2005-07-01  Jim Meyering  <jim@meyering.net>
37147
37148         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
37149         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
37150         * lib/save-cwd.c, tempname.c:
37151         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
37152         and don't include <sys/file.h>).
37153
37154 2005-06-29  Jim Meyering  <jim@meyering.net>
37155
37156         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
37157         type name.  Use the variable name instead.
37158         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
37159         Likewise.
37160
37161 2005-06-28  Simon Josefsson  <jas@extundo.com>
37162
37163         * modules/check-version (Files): Add check-version.m4.
37164
37165 2005-06-28  Simon Josefsson  <jas@extundo.com>
37166
37167         * m4/check-version.m4: New file, suggested by Jim Meyering
37168         <jim@meyering.net>.
37169
37170 2005-06-28  Simon Josefsson  <jas@extundo.com>
37171
37172         * lib/check-version.h, lib/check-version.c: New files.
37173
37174 2005-06-28  Simon Josefsson  <jas@extundo.com>
37175
37176         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
37177         collision with global variable.  Better indentation.  Don't
37178         increment buffer pointer beyond buffer end.  Based on comments
37179         from Paul Eggert <eggert@cs.ucla.edu>.
37180
37181         * lib/base64.h: Indent.
37182
37183 2005-06-28  Simon Josefsson  <jas@extundo.com>
37184
37185         * doc/gnulib.texi (Library version handling): New section.
37186
37187 2005-06-28  Jim Meyering  <jim@meyering.net>
37188
37189         * check-module (find_included_lib_files): Hard-code another
37190         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
37191         but modules/fts-lgpl (correctly) does not list those files.
37192
37193         * modules/canonicalize (Files): Add lib/pathmax.h.
37194
37195 2005-06-25  Simon Josefsson  <jas@extundo.com>
37196
37197         * modules/check-version: New file.
37198
37199 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
37200
37201         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
37202         initializer of struct addrinfo, as an indication that we don't
37203         care how many members the structure has.
37204
37205 2005-06-24  Derek Price  <derek@ximbiot.com>
37206         and Bruno Haible  <bruno@clisp.org>
37207
37208         Remove stat module & update lstat.
37209         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
37210         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37211         * m4/stat.m4: Remove this file.
37212
37213 2005-06-24  Derek Price  <derek@ximbiot.com>
37214         and Bruno Haible  <bruno@clisp.org>
37215
37216         Remove stat module & update lstat.
37217         * lib/stat.c: Remove this file...
37218         (slash_aware_lstat): ...moving this content and its support...
37219         * lib/lstat.c (rpl_lstat): ...into here.
37220         * lib/lstat.h: New file.
37221
37222 2005-06-24  Derek Price  <derek@ximbiot.com>
37223         and Bruno Haible  <bruno@clisp.org>
37224
37225         Remove stat module & update lstat.
37226         * config/srclist.txt (libc sources): Remove stat.
37227
37228 2005-06-24  Derek Price  <derek@ximbiot.com>
37229         and Bruno Haible  <bruno@clisp.org>
37230
37231         Remove stat module & update lstat.
37232         * MODULES.html.sh (stat): Remove.
37233         * MODULES.html: Regenerated.
37234         * modules/lstat (Description): Correct function name.
37235         (Files): Add "lstat.h".
37236         (Depends-on): Remove stat, add xalloc, stat-macros.
37237         * modules/stat: Remove this file.
37238         (Include): Add "lstat.h", remove <sys/stat.h>.
37239
37240 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37241
37242         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
37243         (ranged_convert): Don't save conversion in a temporary struct.
37244         This causes a warning with GCC 4.0.0, and anyway in the typical
37245         case it's not worth the extra 100 bytes or so of code.
37246         (ranged_convert, __mktime_internal): When calling a function via a
37247         pointer P, use P () rather than (*P) (), as we now assume C89 or
37248         better.
37249
37250 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
37251
37252         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
37253         "who -r" failed to give output.  Problem reported by Tim Waugh.
37254
37255         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
37256         (xcalloc): Use it to avoid needless tests.
37257         Problem reported by Jim Meyering.
37258
37259 2005-06-20  Derek Price  <derek@ximbiot.com>
37260
37261         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
37262         unnecessary for Autoconfs > 2.59c.
37263
37264 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
37265
37266         * lib/argp.h (__option_is_short): Check upper limit of
37267         __key. Isprint() requires its argument to have the value
37268         of an unsigned char or EOF.
37269
37270 2005-06-16  Jim Meyering  <jim@meyering.net>
37271
37272         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
37273         when either N or S is zero.
37274
37275 2005-06-16  Derek Price  <derek@ximbiot.com>
37276
37277         * m4/bison.m4: Declare YACC & YFLAGS precious.
37278
37279 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
37280
37281         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
37282         multibyte string or pattern, fall back on unibyte matching.
37283         Problem reported by James Youngman.
37284
37285 2005-06-08  Bruno Haible  <bruno@clisp.org>
37286
37287         * modules/csharpcomp: New file.
37288         * MODULES.html.sh (C#): Add csharpcomp.
37289
37290 2005-06-08  Bruno Haible  <bruno@clisp.org>
37291
37292         * m4/csharpcomp.m4: New file, from GNU gettext.
37293
37294 2005-06-08  Bruno Haible  <bruno@clisp.org>
37295
37296         * lib/csharpcomp.h: New file, from GNU gettext.
37297         * lib/csharpcomp.c: New file, from GNU gettext.
37298         * lib/csharpcomp.sh.in: New file, from GNU gettext.
37299
37300 2005-06-08  Bruno Haible  <bruno@clisp.org>
37301
37302         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
37303         warning on mingw.
37304
37305 2005-06-07  Derek Price  <derek@ximbiot.com>
37306
37307         Sync from CVS.
37308         * lib/glob_.h: Indent nested #ifdef.
37309
37310 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
37311
37312         Sync from coreutils.
37313         Use "file name" when talking about file names, instead of "filename"
37314         or "path", as per the GNU coding standards.
37315         * lib/mkdir-p.c: Renamed from makepath.c.
37316         (make_dir_parents): Renamed from make_path.  All callers changed.
37317         * lib/mkdir-p.h: Likewise.  All includers changed.
37318         * lib/filenamecat.c: Renamed from path-concat.c.
37319         (file_name_concat): Renamed from path_concat.  All callers changed.
37320         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
37321         * lib/filenamecat.h: Likewise.  All includers changed.
37322         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
37323         in comments or local variable names.
37324         * lib/basename.c: Likewise.
37325         * lib/canonicalize.c, canonicalize.h: Likewise.
37326         * lib/dirname.c, dirname.h: Likewise.
37327         * lib/euidaccess.c: Likewise.
37328         * lib/exclude.c: Likewise
37329         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
37330         * lib/fsusage.c, fsuage.h: Likewise.
37331         * lib/fts.c, fts_.h: Likewise.
37332         * lib/getcwd.c: Likewise.
37333         * lib/getloadavg.c: Likewise.
37334         * lib/mkstemp.c: Likewise.
37335         * lib/mountlist.c, mountlist.h: Likewise.
37336         * lib/openat.c, openat.h: Likewise.
37337         * lib/readlink-stub.c: Likewise.
37338         * lib/readutmp.c, readutmp.h: Likewise.
37339         * lib/rename.c: Likewise.
37340         * lib/rmdir.c: Likewise.
37341         * lib/same.c: Likewise.
37342         * lib/savedir.c: Likewise.
37343         * lib/stripslash.c: Likewise.
37344         * lib/tempname.c: Likewise.
37345         * lib/xreadlink.c: Likewise.
37346         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
37347         All uses changed.
37348         * lib/exclude.h: Likewise.
37349
37350         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
37351         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
37352         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
37353         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
37354         * lib/pathmax.h: Include <limits.h> unconditionally, since other
37355         files have been getting away with it for years (MORE/BSD 4.3
37356         is extinct now).
37357         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
37358         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
37359
37360         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
37361         Define to 256, not 255, as per modern POSIX.
37362
37363 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
37364
37365         Sync from coreutils.
37366         Use "file name" when talking about file names, instead of "filename"
37367         or "path", as per the GNU coding standards.
37368         * MODULES.html.sh: mkdir-p renamed from makepath.
37369         filenamecat renamed from path-concat.
37370         * modules/filenamecat: Renamed from modules/path-concat.
37371         (Files): filenamecat.h and filenamecat.c renamed from
37372         path-concat.h and path-concat.c.
37373         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
37374         (Include): filenamecat.h, not path-concat.h.
37375         * modules/mkdir-p: Renamed from modules/makepath.
37376         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
37377         makepath.c.
37378         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
37379         (Include): mkdir-p.h, not makepath.h.
37380
37381 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
37382
37383         Sync from coreutils.
37384         * m4/mkdir-p.m4: Renamed from makepath.m4.
37385         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
37386         Rename files from makepath.c to mkdir-p.c, and from
37387         makepath.h to mkdir-p.h.
37388         * m4/filenamecat.m4: Renamed from path-concat.m4.
37389         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
37390         Rename files from path-concat.c to filenamecat.c,
37391         and from path-concat.h to filenamecat.h.
37392         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
37393         "file name" in local variables or comments.
37394         * m4/rename.m4: Likewise.
37395
37396 2005-06-01  Bruno Haible  <bruno@clisp.org>
37397
37398         * modules/csharpexec: New file.
37399         * MODULES.html.sh (C#): New section.
37400
37401 2005-06-01  Bruno Haible  <bruno@clisp.org>
37402
37403         * m4/csharp.m4: New file, from GNU gettext.
37404         * m4/csharpexec.m4: New file, from GNU gettext.
37405
37406 2005-06-01  Bruno Haible  <bruno@clisp.org>
37407
37408         * lib/csharpexec.h: New file, from GNU gettext.
37409         * lib/csharpexec.c: New file, from GNU gettext.
37410         * lib/csharpexec.sh.in: New file, from GNU gettext.
37411
37412 2005-05-31  Derek Price  <derek@ximbiot.com>
37413             Paul Eggert  <eggert@cs.ucla.edu>
37414
37415         Sync from cvs.
37416         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
37417
37418 2005-05-31  Derek Price  <derek@ximbiot.com>
37419             Paul Eggert  <eggert@cs.ucla.edu>
37420
37421         Sync from cvs.
37422         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
37423
37424 2005-05-29  Derek Price  <derek@ximbiot.com>
37425
37426         * config/srclist.txt (glob_.h, glob.c): Add these files.
37427
37428 2005-05-29  Derek Price  <derek@ximbiot.com>
37429
37430         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
37431         * modules/glob: New file.
37432         * modules/getlogin_r: Add link to POSIX spec in description.
37433
37434 2005-05-29  Derek Price  <derek@ximbiot.com>
37435             Paul Eggert  <eggert@cs.ucla.edu>
37436
37437         * m4/glob.m4: New file.
37438
37439 2005-05-29  Derek Price  <derek@ximbiot.com>
37440             Paul Eggert  <eggert@cs.ucla.edu>
37441
37442         * lib/glob_.h, lib/glob.c: New files.
37443
37444 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
37445
37446         * modules/fts (Files): Remove m4/inttypes-pri.m4.
37447         * modules/fts-lgpl (Depends-on): Remove gettext.
37448
37449 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
37450
37451         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
37452         and don't require gt_INTTYPES_PRI.
37453
37454 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
37455
37456         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
37457
37458         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
37459         the configuration hassle isn't worth it.
37460         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
37461         (LONGEST_MODIFIER, PRIuMAX): Remove.
37462
37463 2005-05-27  Bruno Haible  <bruno@clisp.org>
37464
37465         * lib/getlogin_r.h: Remove second include of <stddef.h>.
37466
37467 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
37468
37469         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
37470         _POSIX_PTHREAD_SEMANTICS for Solaris.
37471
37472 2005-05-25  Derek Price  <derek@ximbiot.com>
37473
37474         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
37475
37476 2005-05-25  Derek Price  <derek@ximbiot.com>
37477             Paul Eggert  <eggert@cs.ucla.edu>
37478
37479         * modules/getlogin_r, m4/getlogin_r.m4: New files.
37480         * lib/getlogin_r.c, getlogin_r.h: New files.
37481
37482 2005-05-25  Bruno Haible  <bruno@clisp.org>
37483             Derek Price  <derek@ximbiot.com>
37484
37485         * lib/getlogin_r.h: Simplify API documentation.
37486
37487 2005-05-23  Derek Price  <derek@ximbiot.com>
37488
37489         * modules/minmax (Files): Add m4/minmax.m4.
37490         (configure.ac): Add gl_MINMAX.
37491
37492 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
37493
37494         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
37495         so that unistd-safer.h (GPL'ed code) need not be included.
37496
37497 2005-05-22  Bruno Haible  <bruno@clisp.org>
37498
37499         * m4/minmax.m4: New file.
37500         Based on a patch by Derek Price <derek@ximbiot.com>.
37501
37502 2005-05-22  Bruno Haible  <bruno@clisp.org>
37503
37504         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
37505         (INT64_MIN): Fix definition.
37506         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
37507
37508         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
37509         NEED_SIGNED_INT_TYPES.
37510
37511         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
37512         HAVE_SYSTEM_INTTYPES.
37513
37514 2005-05-22  Bruno Haible  <bruno@clisp.org>
37515
37516         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
37517         Also include <sys/param.h> if it defines MIN, MAX.
37518         Based on a patch by Derek Price <derek@ximbiot.com>.
37519
37520 2005-05-21  Jim Meyering  <jim@meyering.net>
37521
37522         * modules/fts (Files): Add m4/inttypes-pri.m4.
37523         (Depends-on): Add lstat and remove gettext.  Alphabetize.
37524
37525 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
37526
37527         New fts module.
37528         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
37529         (setup_dir, free_dir): New functions.
37530         (enter_dir, leave_dir): Define trivial
37531         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
37532         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
37533         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
37534         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
37535         Move to fts-cycle.c.
37536         (fts_open): Use setup_dir.
37537         (fts_close): Use free_dir.
37538         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
37539         This adds a label and some gotos, but the alternatives were messier.
37540         Check for memory allocation failure when entering a dir.
37541         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
37542         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
37543         (FTS): New member fts_cycle, that is a union that contains the
37544         old active_dir_ht and cycle_state.  All uses changed to mention
37545         fts_cycle.ht and fts_cycle.state.
37546         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
37547         fts.c, with the following changes:
37548         (setup_dir, free_dir): New functions.
37549         (enter_dir): Now returns bool.  Return true if successful, false
37550         if memory exhausted.  All callers changed.
37551         Do not bother partly cleaning up on
37552         memory allocation failure; that is free_dir's job.
37553         However, free ad if hash_insert fails, to avoid memory leak.
37554         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
37555         fts->fts_options to see which union member to use.
37556
37557 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
37558
37559         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
37560         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
37561
37562 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
37563
37564         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
37565
37566 2005-05-20  Jim Meyering  <jim@meyering.net>
37567
37568         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
37569         Now a macro, to pacify GCC.
37570
37571 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
37572
37573         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
37574         of -1.
37575
37576 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
37577
37578         * lib/chown.c (rpl_chown): Return -1 on failure.
37579
37580 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
37581
37582         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
37583         Don't check for stddef.h.
37584         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
37585         don't use its results.
37586         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
37587         since we include them unconditionally.  Don't require
37588         AM_STDBOOL_H, since stdbool is a prerequisite.
37589         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
37590         since we assume C89 or better.
37591         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
37592         as we don't use their results.
37593         Don't check for fchdir, memmove, memset, strrchr, as we use
37594         them unconditionally.
37595         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
37596         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
37597
37598 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
37599
37600         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
37601         Include <stddef.h> unconditionally, since we assume C89 now.
37602         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
37603         * lib/fts.c: Include fts_.h first, to check interface.
37604         Do not include intprops.h; no longer needed.
37605         Include cycle-check.h and hash.h, since fts_.h no longer does.
37606         Remove unnecessary casts of closedir to void.
37607         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
37608         decide whether to decrement nlinks.
37609         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
37610         (FTS): Use struct hash_table * instead of Hash_table, so that
37611         we no longer need to include hash.h here.
37612
37613 2005-05-18  Jim Meyering  <jim@meyering.net>
37614
37615         * modules/dirfd (License): Change to LGPL.  Most of the code
37616         is already in the public domain.
37617
37618 2005-05-18  Jim Meyering  <jim@meyering.net>
37619
37620         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
37621         Reported by Yoann Vandoorselaere.
37622
37623 2005-05-17  Jim Meyering  <jim@meyering.net>
37624
37625         * m4/fts.m4: New file, from coreutils.
37626
37627 2005-05-17  Jim Meyering  <jim@meyering.net>
37628
37629         * lib/fts.c, lib/fts_.h: New files, from coreutils.
37630
37631 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
37632
37633         Sync from coreutils.
37634         * m4/unlinkdir.m4: New file.
37635
37636 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
37637
37638         Sync from coreutils.
37639         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
37640         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
37641         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
37642         White space changes only.
37643         * lib/makepath.c (make_path): Port to hosts where leading "//" is
37644         special.
37645         * lib/yesno.c: Include getline.h, not ctype.h.
37646         (yesno): Don't remove leading white space; POSIX doesn't allow it.
37647         Use getline to remove arbitrary restriction on response length.
37648
37649 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
37650
37651         * config/srclist-update: Spell out "Street" in FSF postal
37652         mail address; this is the style the FSF seems to prefer.
37653
37654         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
37655         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
37656         this updates FSF postal mail address.
37657
37658         Sync from coreutils.
37659         * modules/unlinkdir: New file.
37660         * modules/yesno (Depends-on): Add getline.
37661         * MODULES.html.sh (File system functions): Add unlinkdir.
37662
37663 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
37664
37665         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
37666         lib/strsep.h:
37667         Change the initial comment to refer to GPL, not LGPL.
37668         gnulib-tool will change it to LGPL as needed.
37669
37670         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
37671         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
37672         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
37673         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
37674         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
37675         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
37676         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
37677         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
37678         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
37679         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
37680         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
37681         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
37682         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
37683         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
37684         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
37685         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
37686         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
37687         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
37688         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
37689         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
37690         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
37691         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
37692         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
37693         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
37694         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
37695         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
37696         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
37697         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
37698         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
37699         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
37700         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
37701         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
37702         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
37703         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
37704         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
37705         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
37706         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
37707         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
37708         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
37709         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
37710         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
37711         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
37712         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
37713         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
37714         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
37715         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
37716         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
37717         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
37718         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
37719         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
37720         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
37721         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
37722         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
37723         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
37724         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
37725         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
37726         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
37727         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
37728         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
37729         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
37730         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
37731         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
37732         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
37733         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
37734         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
37735         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
37736         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
37737         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
37738         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
37739         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
37740         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
37741         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
37742         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
37743         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
37744         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
37745         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
37746         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
37747         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
37748         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
37749         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
37750         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
37751         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
37752         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
37753         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
37754         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
37755         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
37756         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
37757         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
37758         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
37759         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
37760         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
37761         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
37762         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
37763         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
37764         lib/yesno.c, lib/yesno.h:
37765         Update FSF postal mail address.
37766
37767 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
37768
37769         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
37770         tests/test-memmem.c, tests/test-stpncpy.c:
37771         Update FSF postal mail address.
37772
37773 2005-05-13  Bruno Haible  <bruno@clisp.org>
37774
37775         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
37776         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
37777         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
37778         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
37779         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
37780         Add support for 64-bit integers in the MSVC compiler.
37781
37782 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
37783
37784         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
37785
37786 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
37787
37788         * gnulib-tool (func_import): Sort and uniquify recommended includes.
37789
37790 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
37791
37792         * doc/getdate.texi (General date syntax): Don't say that date
37793         date --iso-8601=ns generates acceptable dates; it doesn't yet.
37794         Problem reported by Nic Ferrier.
37795
37796 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37797
37798         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
37799         specified in ai_socktype. Fix invalid ai_protocol
37800         check. ai_protocol is usually set to 0 or depending on
37801         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
37802         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
37803         ai_socktype / ai_protocol in the returned addrinfo structure.
37804
37805 2005-05-10  Simon Josefsson  <jas@extundo.com>
37806
37807         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
37808         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37809
37810 2005-05-10  Karl Berry  <karl@gnu.org>
37811
37812         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
37813         (from http://www.gnu.org/licenses).
37814         * doc/COPYING.LIB: also rename to COPYING.LESSER.
37815         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
37816         fdl.texi suffices.
37817
37818 2005-05-10  Karl Berry  <karl@gnu.org>
37819
37820         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
37821         (COPYING.DOC): remove.
37822
37823         * config/srclist-update: new FSF address.
37824
37825 2005-05-10  Derek Price  <derek@ximbiot.com>
37826
37827         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
37828         possible.
37829
37830 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37831             Bruno Haible  <bruno@clisp.org>
37832
37833         * modules/inet_ntop: New file.
37834         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37835         inet_ntop.
37836
37837 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37838             Bruno Haible  <bruno@clisp.org>
37839
37840         * m4/inet_ntop.m4: New file.
37841
37842 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37843             Bruno Haible  <bruno@clisp.org>
37844
37845         * lib/inet_ntop.h: New file.
37846         * lib/inet_ntop.c: New file, from glibc with modifications.
37847
37848 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
37849
37850         * modules/time_r (License): Change to LGPL.
37851         * modules/extensions (License): Change to LGPL.  Actually,
37852         the license is more permissive than that, but currently gnulib-tool
37853         doesn't know how to handle more-permissive licenses.
37854
37855         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
37856         Problem reported by Dave Love.
37857
37858 2005-05-08  Jim Meyering  <jim@meyering.net>
37859
37860         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
37861         blank.
37862
37863 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
37864
37865         * modules/argmatch (Depends-on): Add stdbool.
37866         * modules/backupfile (Depends-on): Likewise.
37867         * modules/chdir-long (Depends-on): Likewise.
37868         * modules/closeout (Depends-on): Likewise.
37869         * modules/cycle-check (Depends-on): Likewise.
37870         * modules/dirname (Depends-on): Likewise.
37871         * modules/fnmatch (Depends-on): Likewise.
37872         * modules/fsusage (Depends-on): Likewise.
37873         * modules/fwriteerror (Depends-on): Likewise.
37874         * modules/getcwd (Depends-on): Likewise.
37875         * modules/getloadavg (Depends-on): Likewise.
37876         * modules/hard-locale (Depends-on): Likewise.
37877         * modules/makepath (Depends-on): Likewise.
37878         * modules/mountlist (Depends-on): Likewise.
37879         * modules/nanosleep (Depends-on): Likewise.
37880         * modules/posixtm (Depends-on): Likewise.
37881         * modules/quotearg (Depends-on): Likewise.
37882         * modules/readtokens (Depends-on): Likewise.
37883         * modules/readtokens0 (Depends-on): Likewise.
37884         * modules/readutmp (Depends-on): Likewise.
37885         * modules/save-cwd (Depends-on): Likewise.
37886         * modules/strftime (Depends-on): Likewise.
37887         * modules/userspec (Depends-on): Likewise.
37888         * modules/utimecmp (Depends-on): Likewise.
37889         * modules/xgetcwd (Depends-on): Likewise.
37890         * modules/xnanosleep (Depends-on): Likewise.
37891         * modules/xstrtod (Depends-on): Likewise.
37892         * modules/yesno (Depends-on): Likewise.
37893
37894 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
37895
37896         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
37897         needless checks.
37898
37899 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
37900
37901         Merge from coreutils.  Among other things,
37902         add bulletproofing for cases where stdin, stdout, or stderr are closed.
37903         * lib/fd-safer.c: New file.
37904         * lib/fcntl-safer.h, open-safer.c: Remove.
37905         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
37906         * lib/dup-safer.c: Include unistd-safer.h first.
37907         Don't include errno.h.
37908         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
37909         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
37910         * lib/file-type.c: Rely on file-type.h change.
37911         * lib/getloadavg.c: Include unistd-safer.h.
37912         (getloadavg): Use safer open.
37913         * lib/getusershell.c: Include "stdio-safer.h".
37914         (getusershell): Use safer fopen.
37915         * lib/long-options.c (long_options): Use NULL rather than 0.
37916         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
37917         'free'.
37918         * lib/modechange.c: Likewise.
37919         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
37920         (MODE_DONE): New constant.
37921         (struct mode_change): Remove 'next' member.
37922         (make_node_op_equals): New function; like the old one of the
37923         same name, except it allocates an array.
37924         (mode_compile, mode_create_from_ref): Use it.
37925         (mode_compile): Allocate result as an array, not a linked list.
37926         Parse octal string ourself, so that we catch mistakes like "+0".
37927         (mode_adjust): Arg is an array, not a linked list.
37928         * lib/modechange.c: Include stat-macros.h, xalloc.h.
37929         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
37930         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
37931         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
37932         Remove.  This is now stat-macros.h's job.
37933         (talloc): Remove.  All callers replaced by xalloc, so that
37934         our invokers don't have to worry about reporting memory failures.
37935         (make_node_op_equals): Remove.
37936         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
37937         New constants.
37938         (struct mode_change): Moved here from modechange.h.
37939         (mode_append_entry): Remove.
37940         (mode_compile): Remove MASKED_OPS arg, since it encouraged
37941         apps to have incorrect behavior.  Use simpler algorithm for head
37942         and tail.  Don't futz with umask; that's now the job of mode_adjust.
37943         Detect more invalid usages rather than having somewhat-random behavior.
37944         Don't insert an "a=" action, as that leads to incorrect behavior.
37945         (mode_compile, mode_create_from_ref): Return NULL on error instead
37946         of an enum, since now there's only one way to have an error.  All
37947         callers changed.
37948         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
37949         at the correct time.  Simplify calculation of "+u" and its ilk.
37950         Don't mishandle "+X".
37951         (mode_free): Remove "register" and localize decls.
37952         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
37953         (struct mode_change): Move to modechange.c; callers don't
37954         need to see this stuff.
37955         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
37956         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
37957         (mode_change, mode_adjust): Reflect the new signatures noted above.
37958         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
37959         that might redefine system include files.
37960         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
37961         (my_usleep): Use NULL rather than (void *) 0.
37962         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
37963         Use siginterrupt to specify that system calls should be interrupted.
37964         (rpl_nanosleep): Move initialization of suspended closer to call of
37965         my_usleep.
37966         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
37967         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
37968         (desirable_utmp_entry): New function.
37969         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
37970         using x2nrealloc, to simplify logic.
37971         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
37972         size calculation.  Do not assume utmp file is a regular file.
37973         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
37974         (READ_UTMP_CHECK_PIDS): New constant.
37975         * lib/save-cwd.c: Include unistd-safer.h.
37976         (save_cwd): Use fd_safer.
37977         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
37978         [!_LIBC] Include "stat-macros.h" instead.
37979         * lib/unistd-safer.h (fd_safer): New decl.
37980
37981 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
37982
37983         * modules/getloadavg (Depends-on): Add unistd-safer.
37984         * modules/getusershell (Depends-on): Add stdio-safer.
37985         * modules/lstat (Depends-on): Remove xalloc.
37986         * modules/mkstemp (Depends-on): Add stat-macros.
37987         * modules/modechange (Depends-on): Remove xstrtol.
37988         Add stat-macros, xalloc.
37989         * modules/save-cwd (Depends-on): Add unistd-safer.
37990         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
37991         * modules/unistd-safer (Files): Add lib/fd-safer.c
37992         (Makefile.am): Remove lib_SOURCES.
37993
37994         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
37995         Remove fcntl-safer; unistd-safer supersedes it.
37996
37997 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
37998
37999         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
38000         AC_HEADER_STAT.
38001         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
38002         (gl_PREREQ_CHOWN): Remove.
38003         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
38004         it.  Don't require AC_HEADER_STAT.
38005         (gl_PREREQ_LSTAT): Remove.
38006         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
38007         Don't require AC_HEADER_STAT.
38008         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
38009         (gl_PREREQ_RMDIR): Remove.
38010         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
38011         mention stat-macros.h or AC_HEADER_STAT, since we'll make
38012         the stat-macros module a prerequisite.
38013         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
38014         * m4/filemode.m4 (gl_FILEMODE): Likewise.
38015         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
38016         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
38017         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
38018         variable names.
38019         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
38020         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
38021         variable prefixes.
38022         * m4/fcntl-safer.m4: Remove.
38023         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
38024         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
38025         Invoke gl_PREREQ_FD_SAFER.
38026         (gl_PREREQ_FD_SAFER): New macro.
38027         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
38028         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
38029         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
38030         Remove duplicate call to AC_LIBOBJ(readutmp).
38031         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
38032
38033         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
38034         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
38035
38036 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
38037
38038         * MODULES.html.sh (Misc): Add byteswap.
38039
38040 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
38041
38042         * modules/getcwd (Depends-on): Add extensions.
38043         * modules/openat (Depends-on): Likewise.
38044
38045 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
38046
38047         * modules/byteswap: New file.
38048
38049 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
38050
38051         * m4/byteswap.m4: New file.
38052
38053 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
38054
38055         * lib/byteswap_.h: New file.
38056
38057 2005-04-25  Karl Berry  <karl@gnu.org>
38058
38059         * m4/gettext.m4: Update from GNU gettext 0.14.4.
38060
38061 2005-04-25  Albert Chin  <china@thewrittenword.com>
38062
38063         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
38064         Toolkit C bug.
38065
38066 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
38067
38068         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
38069         (func_ln_if_changed) Remove forcibly for no error message
38070         in case file does not exist.
38071
38072 2005-04-19  Simon Josefsson  <jas@extundo.com>
38073
38074         * gnulib-tool (Options): Make --symlink mean --symbolic.
38075
38076 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
38077
38078         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
38079
38080 2005-04-16  Simon Josefsson  <jas@extundo.com>
38081
38082         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
38083
38084 2005-04-15  Simon Josefsson  <jas@extundo.com>
38085
38086         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
38087
38088 2005-04-15  Simon Josefsson  <jas@extundo.com>
38089
38090         * gnulib-tool: Rename --symlink to --symbolic.
38091
38092 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
38093
38094         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
38095         symbolic links to files instead of copying/moving.  Add --aux-dir,
38096         specifying directory relative --dir where auxiliary build tools
38097         are placed.
38098
38099 2005-04-14  Bruno Haible  <bruno@clisp.org>
38100
38101         * modules/allocsa (License): Change to LGPL.
38102         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38103
38104 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
38105
38106         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
38107         that "UTC +1 second" continues to work.  Problem reported
38108         by Dmitry V. Levin.
38109         (relunit_snumber): New rule.
38110         (relunit): Use it.
38111
38112 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
38113
38114         * lib/getdate.y (universal_time_zone_table): New constant.
38115         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
38116         universal_time_zone_table.
38117         (lookup_zone): Prefer universal_time_zone_table to
38118         local_time_zone_table, so that "GMT" time stamps are allowed in
38119         London during the summer.  Problem reported by Ian Abbott.
38120
38121 2005-04-12  Jim Meyering  <jim@meyering.net>
38122
38123         * lib/human.c (humblock): Set *options even when returning due to
38124         xstrtoumax conversion failure.  Thanks to a used-uninitialized
38125         warning from gcc-4.
38126
38127 2005-04-09  Jim Meyering  <jim@meyering.net>
38128
38129         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
38130         -Wuninitialized: initialize tm0.tm_year.
38131
38132 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
38133
38134         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
38135         count, since there's no maximum.  All uses changed.
38136         Add member dsts_seen.
38137         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
38138         not being INT_MAX.
38139         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
38140         Use pc_rels_seen to decide whther a date is absolute.
38141
38142         * lib/getdate.y (number): Don't overwrite year.
38143         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
38144         check.
38145
38146 2005-04-02  Simon Josefsson  <jas@extundo.com>
38147
38148         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
38149         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
38150
38151 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
38152
38153         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
38154         where no absolute path name can be longer than PATH_MAX.
38155
38156 2005-03-27  Jim Meyering  <jim@meyering.net>
38157
38158         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
38159
38160 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
38161
38162         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
38163         "one's complement" -> "ones' complement" in comment, as per Knuth.
38164         "value of type" -> "type or expression" in comment.
38165         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
38166
38167 2005-03-26  Jim Meyering  <jim@meyering.net>
38168
38169         Comment nits.
38170         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
38171         Correct typos: s/or/of/.
38172
38173 2005-03-26  Jim Meyering  <jim@meyering.net>
38174
38175         * modules/check-include-files: Move to ../ and rename to...
38176         * check-module: ...this.
38177
38178 2005-03-25  Jim Meyering  <jim@meyering.net>
38179
38180         * modules/xvasprintf (Files): Add xalloc.h.
38181
38182 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
38183
38184         * modules/gettext (Files): config/config.rpath ->
38185         build-aux/config.rpath
38186         * modules/iconv (Files): Likewise.
38187         Problem reported by Oskar Liljeblad.
38188
38189 2005-03-23  Jim Meyering  <jim@meyering.net>
38190
38191         * modules/check-include-files: New script to check for
38192         missing dependencies, multiple includes, etc.
38193
38194         * modules/c-strtold (Depends-on): Add xalloc.
38195         * modules/c-strtod (Depends-on): Add xalloc.
38196         * modules/hash (Depends-on): Add xalloc.
38197         (Files): Remove lib/xalloc.h.
38198
38199         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
38200         * modules/userspec (Files): Add lib/inttostr.h.
38201
38202 2005-03-23  Jim Meyering  <jim@meyering.net>
38203
38204         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
38205
38206 2005-03-22  Jim Meyering  <jim@meyering.net>
38207
38208         * modules/stat-macros: New module.
38209         * modules/canonicalize, modules/euidaccess, modules/file-type,
38210         * modules/filemode, modules/lchown, modules/makepath,
38211         * modules/rmdir, modules/stat: Depend on new stat-macros module
38212         rather than listing lib/stat-macros.h manually.
38213         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
38214
38215 2005-03-22  Jim Meyering  <jim@meyering.net>
38216
38217         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
38218
38219 2005-03-22  Bruno Haible  <bruno@clisp.org>
38220
38221         * config/srclist.txt: Replace target directory 'config' with
38222         'build-aux'.
38223         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
38224         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
38225         ../build-aux/.
38226
38227 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
38228
38229         * modules/chdir-long (Depends-on): Add mempcpy.
38230
38231         * modules/acl, modules/backupfile, modules/c-strtod,
38232         modules/c-strtold, modules/canon-host, modules/canonicalize,
38233         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
38234         modules/exclude, modules/exitfail, modules/file-type,
38235         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
38236         modules/getdate, modules/getline, modules/getpagesize,
38237         modules/getpass, modules/getugroups, modules/group-member,
38238         modules/hard-locale, modules/hash, modules/human, modules/idcache,
38239         modules/inttostr, modules/long-options, modules/makepath,
38240         modules/md5, modules/memcasecmp, modules/memcoll,
38241         modules/modechange, modules/mountlist, modules/path-concat,
38242         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
38243         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
38244         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
38245         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
38246         modules/strftime, modules/strndup, modules/strverscmp,
38247         modules/timespec, modules/unlocked-io, modules/userspec,
38248         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
38249         modules/yesno:
38250         Remove lib_SOURCES line from Makefile.am section, as this is now
38251         done automatically by the corresponding Autoconf macro.
38252
38253 2005-03-21  Jim Meyering  <jim@meyering.net>
38254
38255         Changes imported from coreutils.
38256
38257         * lib/cycle-check.c: Don't include xalloc.h.
38258
38259         * lib/path-concat.c: Don't include assert.h.
38260         (path_concat): Remove assertion that would have triggered
38261         for ABASE starting with more than one slash.
38262         Reported by Andreas Schwab.
38263
38264         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
38265         properly when ABASE is an absolute file name.
38266         Correct the description of this function.
38267         Include <assert.h>.
38268         Add an assertion and a test driver.
38269         This fixes a bug introduced on 2004-07-02.
38270         Andreas Schwab reported the resulting failure of cp --parents:
38271         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
38272
38273 2005-03-21  Jim Meyering  <jim@meyering.net>
38274
38275         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
38276         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
38277
38278 2005-03-21  Jim Meyering  <jim@meyering.net>
38279         and  Paul Eggert  <eggert@cs.ucla.edu>
38280
38281         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
38282         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
38283         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
38284         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
38285         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
38286         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
38287         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
38288         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
38289         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
38290         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
38291         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
38292         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
38293         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
38294         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
38295         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
38296         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
38297         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
38298         for these modules.
38299
38300 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
38301
38302         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
38303         (which shouldn't happen), generate nothing instead of returning 0
38304         immediately, so that nstrftime (NULL, ...) doesn't return 0.
38305
38306 2005-03-16  Bruno Haible  <bruno@clisp.org>
38307
38308         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
38309         HAVE_LONGLONG_64BIT.
38310
38311 2005-03-16  Bruno Haible  <bruno@clisp.org>
38312
38313         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
38314         HAVE_LONGLONG_64BIT.
38315
38316 2005-03-16  Bruno Haible  <bruno@clisp.org>
38317
38318         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
38319         HAVE_LONGLONG_64BIT.
38320
38321 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
38322
38323         * lib/strftime.c (my_strftime): Prepend space to format so that we can
38324         reliably distinguish strftime failure from empty output on POSIX
38325         hosts.
38326
38327 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
38328
38329         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
38330         (iconv_string): Don't guess a size-zero buffer, as that might cause
38331         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
38332         result would be 'too large', where 'too large' is (heuristically)
38333         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
38334         overflow concerns.  This will prevent some unwanted malloc failures
38335         when the inputs are very large.
38336
38337 2005-03-15  Karl Berry  <karl@gnu.org>
38338
38339         * config/srclist.txt (config.rpath): from gettext.
38340         * config/config.rpath: update.
38341
38342 2005-03-15  Bruno Haible  <bruno@clisp.org>
38343
38344         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
38345         to 'negate'.
38346
38347         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
38348         variable.
38349
38350         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
38351         results.
38352
38353 2005-03-14  Simon Josefsson  <jas@extundo.com>
38354
38355         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
38356         <fx@gnu.org>.
38357
38358 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
38359
38360         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
38361         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
38362         intprops.h.
38363         * lib/strtol.c: Likewise.
38364
38365 2005-03-14  Jim Meyering  <jim@meyering.net>
38366
38367         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
38368         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
38369         to be nonzero so that we (and caller) can detect the difference
38370         between a valid zero-length expansion and an error return, even
38371         when the underlying strftime fails before writing anything into
38372         that location.
38373
38374 2005-03-14  Bruno Haible  <bruno@clisp.org>
38375
38376         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
38377         Update from GNU gettext 0.14.3.
38378
38379 2005-03-10  Jim Meyering  <jim@meyering.net>
38380
38381         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
38382
38383 2005-03-10  Jim Meyering  <jim@meyering.net>
38384
38385         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
38386         so that this module works on systems without fchdir.
38387
38388 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
38389
38390         Factor int-properties macros into a single file, except for
38391         glibc-related files.
38392         * lib/intprops.h: New file.
38393         * lib/getloadavg.c: Include it instead of limits.h.
38394         (INT_STRLEN_BOUND): Remove.
38395         * lib/human.c: Include intprops.h.
38396         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
38397         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
38398         302/1000.
38399         * lib/inttostr.h: Include intprops.h instead of limits.h.
38400         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
38401         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
38402         for consistency with intprops.h.
38403         (time_t_is_integer, twos_complement_arithmetic): Use them.
38404         * lib/sig2str.h: Include <signal.h>, intprops.h.
38405         (INT_STRLEN_BOUND): Remove.
38406         * lib/strftime.c (TYPE_SIGNED): Remove.
38407         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
38408         * lib/strtol.c: Adjust comments to match intprops.h.
38409         * lib/userspec.c: Include intprops.h.
38410         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
38411         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
38412         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
38413         instead of rolling our own expressions.
38414         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
38415
38416         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
38417         instead of int.
38418         (my_strftime): Do not mishandle years close to INT_MAX, by doing
38419         the right thing even if adding 1900 would overflow.  Similarly
38420         for tm_mon + 1 and tm_yday + 1.
38421         Make %Y always equivalent to %C%y, and similarly for %G and %g.
38422         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
38423         (DO_SIGNED_NUMBER): New macro.
38424         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
38425
38426 2005-03-07  Bruno Haible  <bruno@clisp.org>
38427
38428         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
38429
38430 2005-03-07  Bruno Haible  <bruno@clisp.org>
38431
38432         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
38433
38434 2005-03-04  Derek R. Price  <derek@ximbiot.com>
38435
38436         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
38437         (func_import): Only replace files via --import when they have actually
38438         changed.
38439
38440 2005-03-03  Derek R. Price  <derek@ximbiot.com>
38441
38442         * m4/mmap-anon.m4: New file.
38443         * m4/pagealign_alloc.m4: New file.
38444
38445 2005-03-03  Derek R. Price  <derek@ximbiot.com>
38446             Bruno Haible  <bruno@clisp.org>
38447
38448         * modules/pagealign_alloc: New file.
38449         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
38450
38451 2005-03-03  Derek R. Price  <derek@ximbiot.com>
38452             Bruno Haible  <bruno@clisp.org>
38453
38454         * lib/pagealign_alloc.h: New file.
38455         * lib/pagealign_alloc.c: New file.
38456
38457 2005-03-03  Bruno Haible  <bruno@clisp.org>
38458
38459         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
38460         Use an all-permissive copyright notice, recommended by RMS.
38461
38462 2005-03-02  Bruno Haible  <bruno@clisp.org>
38463
38464         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
38465         of AIX, the replacement has to be done only after <string.h> is
38466         included, therefore not in config.h. stpncpy.h does the replacement,
38467         and stpncpy.c uses it.
38468
38469 2005-03-02  Bruno Haible  <bruno@clisp.org>
38470
38471         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
38472         stpncpy.c uses it.
38473
38474 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38475
38476         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
38477         The workaround isn't strictly needed for POSIX conformance, and
38478         it's too much of a pain to configure and maintain.  We'll ask
38479         people to fix their kernels instead.
38480         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
38481         (NANOSLEEP_BUG_WORKAROUND): Remove.
38482         (xnanosleep): Remove the workaround.
38483
38484 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38485
38486         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
38487         Reported by Derek Price.
38488         (Include): Add "timespec.h".
38489
38490         * modules/xnanosleep (Depends-on): Remove gethrxtime.
38491
38492 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38493
38494         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
38495         to detect nanosleep bug.
38496
38497 2005-03-01  Bruno Haible  <bruno@clisp.org>
38498
38499         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
38500
38501 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
38502
38503         * modules/gethrxtime: New file.
38504         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
38505         (Depends-on): Add gethrxtime.
38506         (configure.ac): Add gl_XNANOSLEEP.
38507         (Makefile.am): Remove lib_SOURCES line.
38508
38509 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38510
38511         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
38512         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
38513
38514 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38515
38516         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
38517         * lib/timespec.h (gettime): Return void, since it always
38518         succeeds now.  All uses changed.
38519         * lib/gettime.c (gettime) Likewise.
38520         [HAVE_NANOTIME]: Prefer nanotime.
38521         Assume gettimeofday succeeds, as POSIX requires.
38522         Assime time () succeeds, since other code already does.
38523         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
38524         (timespec_subtract): Remove.
38525         (NANOSLEEP_BUG_WORKAROUND): New constant.
38526         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
38527         things considerably.  Use it only on GNU/Linux hosts, since the
38528         workaround shouldn't be needed elsewhere.
38529
38530 2005-02-24  Bruno Haible  <bruno@clisp.org>
38531
38532         * modules/gettext (Files): Add m4/glibc2.m4.
38533
38534 2005-02-24  Bruno Haible  <bruno@clisp.org>
38535
38536         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
38537         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
38538         * m4/progtest.m4:
38539         Update from GNU gettext 0.14.2.
38540         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
38541
38542 2005-02-24  Bruno Haible  <bruno@clisp.org>
38543
38544         * lib/localcharset.c: Update from GNU gettext 0.14.2.
38545         * lib/config.charset: Update from GNU gettext 0.14.2.
38546
38547 2005-02-24  Bruno Haible  <bruno@clisp.org>
38548
38549         * lib/gettext.h: Update from GNU gettext 0.14.2.
38550
38551 2005-02-23  Simon Josefsson  <jas@extundo.com>
38552
38553         * m4/iconvme.m4: New file.
38554
38555 2005-02-23  Jim Meyering  <jim@meyering.net>
38556
38557         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
38558         change.
38559         Thanks to Bruno Haible for catching it.
38560
38561 2005-02-22  Simon Josefsson  <jas@extundo.com>
38562
38563         * modules/iconvme: New file.
38564
38565         * MODULES.html.sh: Add iconvme.
38566
38567 2005-02-22  Simon Josefsson  <jas@extundo.com>
38568
38569         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
38570
38571 2005-02-22  Simon Josefsson  <jas@extundo.com>
38572
38573         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
38574
38575 2005-02-22  Jim Meyering  <jim@meyering.net>
38576
38577         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
38578         s/ifndef/ifdef/.
38579
38580 2005-02-20  Neil Conway  <neilc@samurai.com>
38581
38582         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
38583         returned by OSX/Darwin if the specified buffer is not large
38584         enough for the hostname.
38585
38586 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38587
38588         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
38589         pass it to _help, otherwise the latter coredumps trying to
38590         dereference state.root_argp.
38591
38592 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38593
38594         * modules/chdir-long (Depends-on): Add memrchr.
38595         * modules/memrchr (Files): Add lib/memrchr.h.
38596         (Include): "memrchr.h".
38597
38598 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38599
38600         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
38601
38602 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
38603
38604         * lib/memrchr.h: New file.
38605         * lib/chdir-long.c: Include it.
38606         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
38607         Don't bother including stddef.h.
38608
38609 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
38610
38611         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
38612         inclusion.
38613         Include <sys/types.h>, for dev_t.
38614         (ME_DUMMY, ME_REMOTE): Move from here....
38615         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
38616         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
38617         Dmitry V. Levin.
38618         Include mountlist.h first, to test the interface.
38619
38620 2005-01-29  Bruno Haible  <bruno@clisp.org>
38621
38622         * lib/progname.c (program_name): Initialize.
38623         Needed when linking statically on MacOS X.
38624
38625 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38626
38627         Sync from coreutils.
38628         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
38629         (Depends-on): Add c-strtod.
38630         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
38631
38632 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
38633
38634         Sync from coreutils.
38635         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
38636
38637         Remove files that are specific to coreutils.
38638         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
38639
38640 2005-01-28  Bruno Haible  <bruno@clisp.org>
38641
38642         * modules/javacomp: New file.
38643         * MODULES.html.sh (Java): Add javacomp.
38644
38645 2005-01-28  Bruno Haible  <bruno@clisp.org>
38646
38647         * m4/javacomp.m4: New file, from GNU gettext.
38648
38649 2005-01-28  Bruno Haible  <bruno@clisp.org>
38650
38651         * lib/javacomp.sh.in: New file, from GNU gettext.
38652         * lib/javacomp.h: New file, from GNU gettext.
38653         * lib/javacomp.c: New file, from GNU gettext.
38654
38655 2005-01-26  Simon Josefsson  <jas@extundo.com>
38656
38657         * lib/gai_strerror.c: Use GPL in header.
38658
38659 2005-01-26  Bruno Haible  <bruno@clisp.org>
38660
38661         * modules/javaexec: New file.
38662         * MODULES.html.sh (Java): Add javaexec.
38663
38664 2005-01-26  Bruno Haible  <bruno@clisp.org>
38665
38666         * m4/javaexec.m4: New file, from GNU gettext.
38667
38668 2005-01-26  Bruno Haible  <bruno@clisp.org>
38669
38670         * lib/javaexec.sh.in: New file, from GNU gettext.
38671         * lib/javaexec.h: New file, from GNU gettext.
38672         * lib/javaexec.c: New file, from GNU gettext.
38673
38674 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38675
38676         * modules/lchown (Depends-on): Remove lchown.h
38677
38678 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38679
38680         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
38681         must be defined if the header file was not found, in order
38682         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
38683
38684 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38685
38686         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
38687         initializers for struct pentry_state.
38688         (__argp_error): Check return value of __asprintf
38689         (__argp_failure): Translate error message
38690
38691         * lib/argp-parse.c: Removed braces around the expansion of N_()
38692
38693 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38694
38695         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
38696         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
38697         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
38698         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
38699         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
38700         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
38701         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
38702         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
38703         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
38704         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
38705         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
38706         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
38707         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
38708         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
38709         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
38710         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
38711         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
38712         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
38713         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
38714         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
38715         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
38716         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
38717         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
38718         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
38719         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
38720         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
38721         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
38722         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
38723         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
38724         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
38725         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
38726         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
38727         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
38728         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
38729         xstrtol.m4, xstrtoumax.m4, yesno.m4:
38730         Use an all-permissive copyright notice, recommended by RMS.
38731
38732 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
38733
38734         * modules/chdir-long (Depends-on): Remove mempcpy.
38735
38736 2005-01-21  Jim Meyering  <jim@meyering.net>
38737
38738         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
38739         same value as for Solaris 9.
38740
38741         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
38742         component length.  This included changing the parameter to be
38743         of type `char *' rather than `char const *'.
38744         * lib/chdir-long.h (chdir_long): Update prototype.
38745
38746         * lib/openat.c (fdopendir, fstatat): New functions.
38747         * lib/openat.h: Include headers required for use of DIR and struct
38748         stat.
38749         [AT_SYMLINK_NOFOLLOW]: Define.
38750         (fdopendir, fstatat): Add prototypes.
38751
38752 2005-01-21  Bruno Haible  <bruno@clisp.org>
38753
38754         * modules/classpath: New file.
38755         * MODULES.html.sh (Java): Add classpath.
38756
38757 2005-01-21  Bruno Haible  <bruno@clisp.org>
38758
38759         * lib/classpath.h: New file, from GNU gettext.
38760         * lib/classpath.c: New file, from GNU gettext.
38761
38762 2005-01-20  Simon Josefsson  <jas@extundo.com>
38763
38764         * modules/version-etc-fsf: New file.
38765
38766 2005-01-20  Simon Josefsson  <jas@extundo.com>
38767
38768         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
38769         * lib/version-etc.c: Remove version_etc_copyright.
38770         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
38771         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
38772
38773 2005-01-20  Simon Josefsson  <jas@extundo.com>
38774
38775         * lib/base64.h (isbase64): Add.
38776
38777         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
38778         using a unsigned prototype, don't inline.
38779         (base64_decode): Use it.
38780
38781 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
38782
38783         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
38784         it.
38785
38786 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
38787
38788         * lib/save-cwd.c (save_cwd): Remove code to support the case
38789         where fchdir is missing or flaky.
38790
38791 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
38792
38793         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
38794
38795 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
38796
38797         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
38798         AC_LIBSOURCES now does this.
38799         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
38800         with new ullong_max module.
38801
38802 2005-01-19  Bruno Haible  <bruno@clisp.org>
38803
38804         * modules/sh-quote: New file.
38805         * MODULES.html.sh (Executing programs): Add sh-quote.
38806
38807 2005-01-19  Bruno Haible  <bruno@clisp.org>
38808
38809         * lib/sh-quote.h: New file, from GNU gettext.
38810         * lib/sh-quote.c: New file, from GNU gettext.
38811
38812 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
38813
38814         Merge from coreutils.
38815         * m4/ullong_max.m4: New file.
38816         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
38817         (gl_MACROS): Assume localeconv exists.
38818
38819 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
38820
38821         Merge changes from coreutils, as described below in several
38822         changelogs dated today.
38823
38824         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
38825         (O_DIRECTORY): Remove; not needed here, since "." must be
38826         a directory.  All uses removed.
38827         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
38828         universal on Suns, and we also need to test for IRIX.
38829         Revamp code to use 'if' rather than '#if'.
38830         Avoid unnecessary comparison of cwd->desc to 0.
38831
38832         * lib/utimens.c (futimens): Robustify the previous patch, by checking
38833         for known valid error numbers rather than observed invalid ones.
38834
38835 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
38836
38837         * modules/ullong_max: New file.
38838
38839         * modules/chdir-long, modules/openat: New files.
38840         * modules/save-cwd (Depends-on): Depend on chdir-long.
38841         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
38842
38843 2005-01-18  Jim Meyering  <jim@meyering.net>
38844
38845         Merge from coreutils.
38846         * m4/chdir-long.m4, m4/openat.m4: New files.
38847         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
38848         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
38849         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
38850         is sane and DOES follow symlinks.  Besides, testing 20 different
38851         systems found no broken chown implementations.
38852         Prompted by a change in rsync's copy of this macro.
38853         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
38854
38855         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
38856
38857         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
38858         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
38859         NULL-means-set-to-current-time semantics.
38860         Remove temporary file immediately, rather than waiting
38861         for configure's at-exit trap code to do it.
38862
38863 2005-01-18  Jim Meyering  <jim@meyering.net>
38864
38865         * lib/version-etc.c (version_etc_copyright): Update copyright date.
38866
38867         * lib/utimens.c (futimens): Account for the fact that futimes
38868         can also fail with errno == ENOSYS or errno == ENOENT.
38869         Patch from Dmitry V. Levin.
38870
38871         Change the name of the robust chdir function from chdir to chdir_long.
38872         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
38873         (restore_cwd): Use chdir_long, not chdir.
38874         * lib/chdir-long.c: Renamed from chdir.c.
38875         * lib/chdir-long.h: Renamed from chdir.h.
38876         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
38877         Hurd.
38878
38879 2005-01-18  Bruno Haible  <bruno@clisp.org>
38880
38881         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
38882         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
38883         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
38884         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
38885         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
38886         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
38887         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
38888         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
38889         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
38890         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
38891         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
38892         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
38893         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
38894         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
38895         Use an all-permissive copyright notice, recommended by RMS.
38896
38897 2005-01-18  Bob Proulx  <bob@proulx.com>
38898
38899         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
38900         simplify offsetof() macro construct to avoid compile failure with
38901         native HP-UX 11.0 ANSI C compiler.
38902
38903 2005-01-17  Bruno Haible  <bruno@clisp.org>
38904
38905         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
38906         redundant because stpncpy.m4 takes care of it.
38907
38908 2005-01-17  Bruno Haible  <bruno@clisp.org>
38909
38910         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
38911
38912 2005-01-17  Bruno Haible  <bruno@clisp.org>
38913
38914         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
38915         used.
38916
38917 2005-01-17  Bruno Haible  <bruno@clisp.org>
38918
38919         * lib/fwriteerror.h (fwriteerror): Change specification to include
38920         fclose.
38921         * lib/fwriteerror.c: Include <stdbool.h>.
38922         (fwriteerror): At the end, close the file stream. Record whether
38923         stdout was already closed.
38924
38925 2005-01-17  Bruno Haible  <bruno@clisp.org>
38926
38927         * lib/execute.c (environ): Declare if needed.
38928         * lib/pipe.c (environ): Likewise.
38929         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
38930
38931 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
38932
38933         * modules/argp: Depend on vsnprintf
38934
38935 2005-01-10  Jim Meyering  <jim@meyering.net>
38936
38937         * modules/closeout (Depends-on): Add atexit.
38938
38939 2005-01-06  Bruno Haible  <bruno@clisp.org>
38940
38941         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
38942
38943 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
38944
38945         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
38946         definitions to be after all include files, to avoid collisions.
38947         Problem reported by Bob Proulx.
38948
38949 2005-01-04  Jim Meyering  <jim@meyering.net>
38950
38951         Changes imported from coreutils.
38952         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
38953         as the mkstemp template, use a temporary directory and an
38954         8.3-friendly template to avoid trouble on systems like DJGPP.
38955         Reported by Juan M. Guerrero via Stepan Kasal.
38956         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
38957         close. Remove the temporary directory right away, rather than waiting
38958         for configure's at-exit trap code to do it.
38959         Suggestion from Stepan Kasal.
38960
38961 2005-01-01  Simon Josefsson  <jas@extundo.com>
38962
38963         * gnulib-tool: Print #include directives when --import'ing.
38964
38965 2004-12-28  Simon Josefsson  <jas@extundo.com>
38966
38967         * tests/test-base64.c: Include required header files.  Remove
38968         unused variables.
38969
38970 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
38971
38972         * modules/error (Depends-on): Remove gettext.
38973
38974 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
38975
38976         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
38977         not needed.  This removes a dependency on the gettext module.
38978         [defined _LIBC]: Do not include <libintl.h>; not needed.
38979
38980 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
38981
38982         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
38983         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
38984
38985 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
38986
38987         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
38988         HAVE_DECL_STRTOLD.
38989
38990 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
38991
38992         * modules/getdate (Depends-on): Remove alloca-opt.
38993
38994 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
38995
38996         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
38997
38998 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
38999
39000         * lib/argp-parse.c: Include <stddef.h>.
39001         (alignof, alignto): New macros.
39002         (parser_init): Don't assume that void * is aligned sufficiently
39003         for struct option.
39004
39005         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
39006         need to extend the stack.
39007         (YYINITDEPTH): New macro, so that the initial stack isn't overly
39008         large.
39009
39010 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39011
39012         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
39013
39014 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
39015
39016         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
39017         (2004-10-24) change.  Apparently this was a false alarm.
39018
39019         * modules/getdate: Depend on alloca-opt, not alloca.
39020
39021 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
39022
39023         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
39024         Remove now-obsolete comment about AIX.
39025         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
39026         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
39027         (YYMAXDEPTH): New macro.
39028
39029 2004-12-18  Simon Josefsson  <jas@extundo.com>
39030
39031         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
39032
39033 2004-12-18  Bruno Haible  <bruno@clisp.org>
39034
39035         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
39036
39037 2004-12-18  Bruno Haible  <bruno@clisp.org>
39038
39039         * lib/fatal-signal.c (fatal_signals): Make non-const.
39040         (init_fatal_signals): New function.
39041         (uninstall_handlers, install_handlers): Ignore signals that were set to
39042         SIG_IGN.
39043         (at_fatal_signal): Call init_fatal_signals.
39044         (init_fatal_signal_set): Likewise. Ignore signals that were set to
39045         SIG_IGN.
39046         Reported by Paul Eggert.
39047
39048 2004-12-18  Bruno Haible  <bruno@clisp.org>
39049
39050         * doc/alloca.texi: New file.
39051         * doc/alloca-opt.texi: New file.
39052
39053 2004-12-17  Jim Meyering  <jim@meyering.net>
39054
39055         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
39056         Otherwise, install-sh could exit with improper exit status when
39057         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
39058
39059 2004-12-16  Simon Josefsson  <jas@extundo.com>
39060
39061         * tests/test-base64.c: Add license.
39062
39063 2004-12-15  Stepan Kasal  <address@hidden>
39064
39065         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
39066
39067 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
39068
39069         * modules/getcwd (Files): Add m4/d-ino.m4.
39070         Suggested by Mark D. Baushke.
39071
39072 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
39073
39074         * lib/getdate.y (textint): New member "negative".
39075         (time_zone_hhmm): New function.
39076         Expect 14 shift-reduce conflicts, not 13.
39077         (o_colon_minutes): New rule.
39078         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
39079         (yylex): Set the "negative" member of signed numbers.
39080
39081 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
39082
39083         * doc/getdate.texi (Time of day items, Time zone items):
39084         Describe new formats +00:00, UTC+00:00.
39085
39086 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
39087
39088         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
39089         spurious "-l"s.  Problem reported by Stepan Kasal.
39090
39091 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
39092
39093         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
39094         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
39095
39096 2004-12-04  Simon Josefsson  <jas@extundo.com>
39097
39098         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
39099         Vandoorselaere <yoann@prelude-ids.org>.
39100
39101 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
39102
39103         Changes imported from coreutils.
39104         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
39105         exist.
39106         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
39107
39108 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
39109
39110         Changes imported from coreutils.
39111         * lib/hard-locale.c: Assume <locale.h> exists.
39112         Include "strdup.h".
39113         (GLIBC_VERSION): New macro.
39114         (hard_locale): Assume setlocale exists.
39115         Rewrite to avoid #ifdef.
39116         Use strdup rather than malloc + strcpy.
39117         * lib/human.c: Assume <locale.h> exists.
39118         (human_readable): Assume localeconv exists.
39119
39120 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
39121
39122         * modules/hard-locale (Depends-on): Add strdup.
39123
39124 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
39125
39126         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
39127         convert T2, not T.  (Imported from libc.)
39128
39129 2004-11-30  Simon Josefsson  <jas@extundo.com>
39130
39131         * modules/restrict (License): Change to LGPL.
39132
39133 2004-11-30  Simon Josefsson  <jas@extundo.com>
39134
39135         * m4/restrict.m4: Add copyright and copying conditions.
39136
39137 2004-11-30  Simon Josefsson  <jas@extundo.com>
39138
39139         * m4/base64.m4: New file.
39140
39141 2004-11-30  Simon Josefsson  <jas@extundo.com>
39142
39143         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
39144         base64.
39145
39146         * tests/test-base64.c: New file.
39147
39148         * modules/base64: New file.
39149
39150 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
39151
39152         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
39153         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
39154
39155         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
39156
39157 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
39158
39159         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
39160         (__getcwd.c): Don't restore errno; glibc doesn't.
39161         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
39162         first, falling back to our code only if its results look suspicious.
39163         Ensure that the resulting buffer is only as large as necessary.
39164
39165         * lib/readutmp.c: Include readutmp.h first.
39166         Include <errno.h>, since readutmp.h no longer does that.
39167         * lib/readutmp.h: Don't include <errno.h>,
39168         <sys/param.h>, <time.h>; not needed to establish interface.
39169         (errno): Remove decl.
39170         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
39171         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
39172         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
39173
39174 2004-11-28  Simon Josefsson  <jas@extundo.com>
39175
39176         * lib/base64.h, base64.c: New file.
39177
39178 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
39179
39180         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
39181
39182 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
39183
39184         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
39185         (Depends-on): Remove pathmax, same.  Add mempcpy.
39186         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
39187         (Makefile.am): Append getcwd.h to lib_SOURCES.
39188         (Include): Add getcwd.h.
39189         (Maintainer): Change from Jim Meyering to "all, glibc",
39190         since getdate now uses intended-for-glibc code.
39191         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
39192         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
39193
39194 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
39195
39196         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
39197         HP's ANSI C compiler.
39198         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
39199         Declaring int functions causes warnings on some modern systems and
39200         shouldn't be needed to compile on ancient ones.
39201         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
39202         defined.
39203
39204         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
39205         with the following changes.
39206         (__set_errno): Parenthesize properly.
39207         Include <stdbool.h>.
39208         (MIN, MAX, MATCHING_INO): New macros.
39209         (__getcwd): Define with prototype, not K&R form.
39210         Use heuristics to allocate default buffer on stack if possible.
39211         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
39212         behavior, and to avoid the PATH_MAX limit when computing
39213         ../../../../...
39214         Use MATCHING_INO to compare inode number to file.
39215         Check for arithmetic overflow in size calculations.
39216         Fix bug in reallocation of dot array that caused getcwd to fail
39217         on directories nested deeper than 75.
39218         Be more careful about saving errno on error.
39219         Do not use realloc; use only free+malloc, as this is a bit
39220         more flexible and avoids a needless copy operation.
39221         Do not inspect st_dev and st_ino for symbolic links; POSIX
39222         doesn't specify the latter.
39223         Check for closedir errors.
39224         Avoid needless casts.
39225         Use "#ifdef weak_alias" around weak_alias, to be like other
39226         glibc code.
39227         The following changes to getcwd.c have effect only when used in
39228         gnulib; they have no effect inside glibc proper.
39229         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
39230         as alloca isn't used.
39231         (alloca, __alloca): Likewise.
39232         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
39233         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
39234         unconditionally, as gnulib assumes C89 or better.
39235         Do not include <sys/param.h>.
39236         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
39237         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
39238         better.
39239         (NULL) [!defined NULL]: Remove; we assume C89 or better.
39240         Include <dirent.h> in a way that is compatible with modern Autoconf.
39241         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
39242         New macros, if not already defined.
39243         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
39244         Use "_LIBC", not "defined _LIBC", for consistency.
39245         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
39246         a mempcpy module.
39247         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
39248         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
39249         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
39250         credit only to Jim Meyering and adjust the copyright dates.
39251         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
39252         <stdlib.h>, <unistd.h>, "pathmax.h".
39253         Instead, include "xgetcwd.h" (first) and "getcwd.h".
39254         (INITIAL_BUFFER_SIZE): Remove.
39255         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
39256
39257 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
39258
39259         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
39260         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
39261         Use the _ONCE methods, for efficiency.
39262         Check for fcntl.h.  In test program, include <errno.h>
39263         and <fcntl.h> if available.  Remove old K&R cruft from
39264         test program.  Check for common errors in GNU/Linux,
39265         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
39266         don't do AC_LIBOBJ, as that's getcwd.m4's job.
39267         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
39268         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
39269         name accordingly.
39270         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
39271         accommodate new getcwd.c.
39272         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
39273         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
39274         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
39275         that's all we need now.
39276
39277 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39278
39279         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
39280         argp-parse.c depends on getopt internals, that means we should
39281         always use our getopt, to be on the safe side.
39282         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
39283         order not to spoil the result of an eventual previous invocation
39284         of gl_GETOPT_SUBSTITUTE.
39285
39286 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39287
39288         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
39289         redefinition warnings. To avoid them, include the defines
39290         in `#if !defined __need_getopt ... #endif'. The only place
39291         where __getopt_argv_const is used is in definitions
39292         of getopt_long and getopt_long_only below, which are as well
39293         protected by `#ifndef __need_getopt'.
39294         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
39295         __need_getopt after including <stdio.h> and <unistd.h> These
39296         headers might have defined it.
39297
39298 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
39299
39300         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
39301
39302 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
39303
39304         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
39305         (futimens): New function, which uses futimes if available.
39306         (futimens, utimens): Support timespec==NULL, with same semantics
39307         as utime and utimens.
39308         * lib/utimens.h (futimens): New decl.
39309
39310 2004-11-23  Jim Meyering  <jim@meyering.net>
39311
39312         * lib/getopt_.h: Remove trailing blanks.
39313
39314 2004-11-23  Jim Meyering  <jim@meyering.net>
39315
39316         * lib/__fpending.c: Add comment.
39317
39318 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
39319
39320         * modules/canonicalize (Depends-on): Add xreadlink.
39321         Problem reported by James Youngman.
39322
39323 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
39324
39325         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
39326         New macros.
39327         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
39328         optopt): Use them instead of invoking ## directly; otherwise, the
39329         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
39330
39331 2004-11-19  Bruno Haible  <bruno@clisp.org>
39332
39333         * lib/strtok_r.c: Move comments from here...
39334         * lib/strtok_r.h: ... to here.
39335
39336 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
39337
39338         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
39339         implementations that mishandle size_t overflow.
39340
39341 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
39342
39343         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
39344         might fail.  Problem reported by Yoann Vandoorselaere.
39345         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
39346         implementations that mishandle size_t overflow.
39347
39348 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39349
39350         * modules/canon-host (Depends-on): Add strdup.
39351
39352 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39353
39354         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
39355
39356 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39357
39358         * lib/canon-host.c: Include "strdup.h".
39359         (canon_host): Use getaddrinfo if available, so that IPv6 works.
39360         Use strdup instead of malloc/strcpy to duplicate strings.
39361
39362         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
39363         (human_space_before_unit): New constant.
39364         * lib/human.c (human_readable): Support it.
39365
39366         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
39367         (xgetcwd): Set errno correctly when failing.
39368         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
39369         the failure is actually due to a PATH_MAX problem.
39370
39371         Further getopt changes to make it more likely that glibc will
39372         buy the changes back.
39373         * lib/getopt.c (POSIXLY_CORRECT): New constant.
39374         (getopt): Use it, so to preserve glibc semantic
39375         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
39376         when compiling for libc.
39377         * lib/getopt_.h (__getopt_argv_const): Bring it back.
39378         (getopt_long, getopt_long_only): Use it.
39379
39380         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
39381         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
39382         (getopt): Argv is now char * const *, as per standard.
39383         (_getopt_internal_r, _getopt_internal): Argv is now char **,
39384         not char *__getopt_argv_const *.
39385         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
39386         _getopt_long_only_r): Likewise.
39387         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
39388         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
39389         _getopt_long_r, _getopt_long_only_r): Likewise.
39390         * lib/getopt_.h (__getopt_argv_const): Remove.
39391         (getopt): Argv is now char * const *, as per standard.
39392
39393         * lib/getdate.y (tORDINAL): New token.
39394         (day, relunit): Allow it for relative times.
39395         (relative_time_table): Use tORDINAL for ordinals.
39396
39397 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39398
39399         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
39400         Document that "second" isn't allowed as an ordinal number.
39401
39402 2004-11-16  Jim Meyering  <jim@meyering.net>
39403
39404         * modules/closeout (Depends-on): Add fpending.
39405
39406 2004-11-15  Jim Meyering  <jim@meyering.net>
39407
39408         * lib/closeout.c: Include "__fpending.h" once again.
39409         Include <stdbool.h>.
39410         (close_stdout): Don't fail just because stdout was closed initially,
39411         since some programs don't write to stdout in the normal course of
39412         operation (other than --version and --help), and we don't want this
39413         function to make e.g. `touch file >&-' fail.
39414         But do fail if it was closed and someone has tried to write to it.
39415         E.g., `printf foo >&-' must fail.
39416
39417 2004-11-13  Jim Meyering  <jim@meyering.net>
39418
39419         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
39420
39421 2004-11-12  Simon Josefsson  <jas@extundo.com>
39422
39423         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
39424         small doc fix is still pending.
39425
39426 2004-11-11  Simon Josefsson  <jas@extundo.com>
39427
39428         * modules/strtok_r: New file.
39429
39430         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39431         strtok_r.
39432
39433 2004-11-11  Simon Josefsson  <jas@extundo.com>
39434
39435         * m4/strtok_r.m4: New file.
39436
39437         * m4/getopt.m4: Replace opterr.
39438
39439 2004-11-11  Simon Josefsson  <jas@extundo.com>
39440
39441         * lib/strtok_r.h, strtok_r.c: New file.
39442
39443 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
39444
39445         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
39446         of replacing opterr, getopt, etc.  This should handle the
39447         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
39448
39449 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
39450
39451         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
39452         we can stop lying to compilers about the constness of argv when we
39453         are compiled outside glibc.
39454         (getopt, getopt_long, getopt_long_only): Use it.
39455         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
39456         _getopt_internal, getopt): Likewise.
39457         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
39458         _getopt_long_only_r): Likewise.
39459         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
39460         _getopt_long_r, _getopt_long_only_r): Likewise.
39461
39462         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
39463         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
39464         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
39465         the other external symbols.
39466         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
39467         declaration, since the above renaming now works around collisions.
39468
39469 2004-11-11  Jim Meyering  <jim@meyering.net>
39470
39471         * lib/linebreak.c: Remove trailing blanks.
39472         * lib/alloca_.h: Likewise.
39473         * lib/acosl.c: Likewise.
39474         * lib/euidaccess.c: Likewise.
39475         * lib/allocsa.h: Likewise.
39476
39477 2004-11-10  Simon Josefsson  <jas@extundo.com>
39478
39479         * m4/getaddrinfo.m4: New file.
39480
39481 2004-11-10  Simon Josefsson  <jas@extundo.com>
39482
39483         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
39484
39485 2004-11-10  Simon Josefsson  <jas@extundo.com>
39486
39487         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39488         getaddrinfo.
39489
39490         * modules/getaddrinfo: New file.
39491
39492 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
39493
39494         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
39495
39496 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
39497
39498         * lib/mktime.c (SHR): New macro, which is a portable
39499         substitute for >> that should work even on Crays.
39500         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
39501         Problem reported by Mark D. Baushke in
39502         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
39503         * lib/getdate.y (SHR): Likewise.
39504         (tm_diff): Use it.
39505         * lib/strftime.c (SHR): Likewise.
39506         (tm_diff): Use it.
39507         * lib/quotearg.c (struct quoting_options): Use unsigned int for
39508         quote_these_too, so that right shifts are well defined.  All uses
39509         changed.
39510
39511 2004-11-10  Jim Meyering  <jim@meyering.net>
39512
39513         Ensure that no close failure goes unreported.
39514         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
39515         return early when it seems there's nothing to flush.
39516         Don't include __fpending.h.
39517
39518 2004-11-10  Jim Meyering  <jim@meyering.net>
39519
39520         * modules/closeout (Depends-on): Remove fpending.
39521
39522 2004-11-10  Jim Meyering  <jim@meyering.net>
39523
39524         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
39525
39526 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39527
39528         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
39529         gl_FUNC_STRFTIME.
39530         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
39531         and AC_REQUIRE when possible, to avoid duplicate checks.
39532         Check for <wchar.h>.
39533
39534 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39535
39536         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
39537
39538 2004-11-09  Bruno Haible  <bruno@clisp.org>
39539
39540         * m4/sockpfaf.m4: New file.
39541
39542 2004-11-05  Bruno Haible  <bruno@clisp.org>
39543
39544         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
39545         Reported by Mark D. Baushke <mdb@cvshome.org>.
39546
39547 2004-11-04  Bruno Haible  <bruno@clisp.org>
39548
39549         2004-09-11  Bruno Haible  <bruno@clisp.org>
39550                 * allocsa.valgrind: New file.
39551         2004-02-06  Bruno Haible  <bruno@clisp.org>
39552                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
39553                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
39554                 Reported by Christopher Seip <chris.seip@hp.com>.
39555
39556 2004-11-04  Bruno Haible  <bruno@clisp.org>
39557
39558         * modules/allocsa (Files): Add lib/allocsa.valgrind.
39559         (Makefile.am): Distribute it.
39560
39561 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
39562
39563         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
39564         with errno == ERANGE if the buffer is too small.
39565         Problem reported by Mark D. Baushke.
39566
39567 2004-11-03  Albert Chin  <china@thewrittenword.com>
39568             Paul Eggert  <eggert@cs.ucla.edu>
39569
39570         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
39571         equivalent, substitute $ac_type for equivalent type rather than
39572         blindly using uint32_t *always* which won't work if uint32_t is not
39573         available.  Define _UINT32_T to work around typedef of uint32_t if
39574         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
39575         2.5.1.
39576
39577 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39578
39579         * m4/jm-macros.m4: Sync from coreutils.
39580         (gl_MACROS): Check for mbrlen, for pathchk.
39581         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
39582
39583 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39584
39585         * lib/xreadlink.c (MAXSIZE): New macro.
39586         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
39587         size does not exceed MAXSIZE.  Avoid cast.
39588         As suggested by Mark D. Baushke in
39589         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
39590         if readlink fails with buffer size just under MAXSIZE, try again
39591         with MAXSIZE.
39592
39593 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39594
39595         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
39596
39597 2004-11-02  Derek R. Price  <derek@ximbiot.com>
39598         and  Paul Eggert  <eggert@cs.ucla.edu>
39599
39600         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
39601         (get_date): Overparenthesize to avoid GCC warning.
39602
39603 2004-11-02  Bruno Haible  <bruno@clisp.org>
39604
39605         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
39606         returns void.
39607
39608 2004-11-02  Bruno Haible  <bruno@clisp.org>
39609
39610         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
39611         function returns void.
39612
39613 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
39614
39615         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
39616         fflush_unlocked, flockfile, funlockfile, funlockfile,
39617         fputs_unlocked, putc_unlocked.
39618
39619 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
39620
39621         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
39622         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
39623         already declared.
39624
39625 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
39626
39627         * modules/getdate (Files): Add doc/getdate.texi.
39628         (Depends-on): Add setenv, xalloc.
39629
39630 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
39631
39632         * lib/getdate.y: Add support for TZ="foo" within a date string.
39633         Fix some bugs near time_t boundaries.  Reject dates with
39634         out-of-range components, e.g., "Sept 31".
39635         Include <stdlib.h>, "setenv.h", "xalloc.h".
39636         (ISDIGIT_LOCALE): Remove; unused.
39637         Note that the TZ and time functions used here are not reentrant.
39638         (mktime_ok, get_tz): New functions.
39639         (TZBUFSIZE): New constant.
39640         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
39641         This requires that we sometimes generate our own TZ="XXX..." setting.
39642
39643 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
39644
39645         * doc/getdate.texi: New file, from coreutils with modifications for
39646         the new TZ parsing.
39647
39648 2004-10-27  Derek R. Price  <derek@ximbiot.com>
39649
39650         * lib/mktime.c (not_equal_tm): Remove redundant check.
39651
39652 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39653
39654         * modules/regex (lib_SOURCES): Add regex.c.
39655         Reported by James Youngman in
39656         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
39657
39658 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
39659
39660         * lib/getdate.y: Use Bison 1.875 features, and some minor
39661         code cleanups.  This change does not affect semantics.
39662         Don't include <stdlib.h>; no longer needed.
39663         Don't include unlocked-io.h; only the "#if TEST" code uses
39664         stdio, and performance isn't crucial there.
39665         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
39666         Bison 1.875 features as described below.
39667         All uses of "PC." replaced by "pc->".
39668         (YYSTYPE): Add a forward declaration.
39669         (yylex, yyerror): Use full prototypes in forward decls.
39670         Use "%pure-parser" rather than obsolescent "%pure_parser".
39671         Use %parse-param and %lex-param instead of obsolescent
39672         YYPARSE_PARAM and YYLEX_PARAM.
39673         (meridian_table, month_and_day_table, time_units_table,
39674         relative_time_table, time_zone_table, military_table,
39675         lookup_zone, lookup_word, get_date):
39676         Use NULL instead of 0 where appropriate.
39677         (to_hour): Avoid abort (), to avoid a dependency on
39678         stdlib.h.
39679         (yyerror, yylex): Now accepts parser_control * arg.
39680         (main) [TEST]: Use '\0' rather than 0 for char.
39681
39682 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39683
39684         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
39685
39686 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
39687
39688         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
39689         It's now the caller's responsibility to handle the case where
39690         !HAVE_GETPAGESIZE && !defined getpagesize.
39691
39692         * lib/mktime.c (leapyear): Arg is long int, not int.
39693
39694 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
39695
39696         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
39697
39698 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
39699
39700         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
39701         missing.  Problem reported by James Youngman.
39702
39703 2004-10-16  Simon Josefsson  <jas@extundo.com>
39704
39705         * gnulib-tool: Fix comments.  Fix parse problem.
39706         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
39707
39708 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
39709
39710         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
39711         implementation of getopt_long.  Problem reported by Alexander Taler in:
39712         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
39713
39714 2004-10-15  Bruno Haible  <bruno@clisp.org>
39715
39716         * gnulib-tool: Untabify. Initialize supplied_libname.
39717         (func_usage): More homogenous output.
39718         (func_modules_transitive_closure, func_modules_to_filelist,
39719         func_emit_lib_Makefile_am): New functions.
39720         (func_import): New function, extracted from big case statement. Use
39721         func_get_license, func_modules_transitive_closure,
39722         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
39723         opt_lgpl. Don't use test -a, as it's not portable.
39724         (func_create_testdir): Use func_modules_transitive_closure,
39725         func_modules_to_filelist, func_emit_lib_Makefile_am.
39726
39727 2004-10-15  Bruno Haible  <bruno@clisp.org>
39728
39729         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
39730
39731 2004-10-15  Bruno Haible  <bruno@clisp.org>
39732
39733         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
39734         the portions belonging to each module.
39735         Suggested by Derek Robert Price <derek@ximbiot.com>.
39736
39737 2004-10-12  Simon Josefsson  <jas@extundo.com>
39738
39739         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
39740         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
39741         to real functions.
39742
39743 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39744
39745         * modules/vsnprintf: New file.
39746
39747 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39748
39749         * m4/vsnprintf.m4: New file.
39750
39751 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39752
39753         * lib/vsnprintf.h: New file.
39754         * lib/vsnprintf.c: New file.
39755
39756 2004-10-11  Bruno Haible  <bruno@clisp.org>
39757
39758         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
39759         vsnprintf.
39760
39761 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
39762
39763         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
39764
39765 2004-10-07  Bruno Haible  <bruno@clisp.org>
39766
39767         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
39768         fits into the provided buffer.
39769
39770 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
39771
39772         * lib/diacrit.c, diacrit.h: Add GPL notice.
39773
39774         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
39775         notice.
39776         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
39777         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
39778         This avoids a potential constant-folding bug.
39779
39780 2004-10-05  Bruno Haible  <bruno@clisp.org>
39781
39782         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
39783         for the declaration of strsep.
39784
39785 2004-10-05  Bruno Haible  <bruno@clisp.org>
39786
39787         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
39788
39789 2004-10-04  Simon Josefsson  <jas@extundo.com>
39790
39791         * modules/memmem: New file.
39792         * tests/test-memmem.c: New file.
39793         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
39794
39795 2004-10-04  Simon Josefsson  <jas@extundo.com>
39796
39797         * m4/memmem.m4: New file.
39798
39799 2004-10-04  Simon Josefsson  <jas@extundo.com>
39800
39801         * lib/memmem.h: New file.
39802         * lib/memmem.c: New file, taken from glibc.
39803
39804 2004-10-04  Simon Josefsson  <jas@extundo.com>
39805
39806         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
39807         '#ifdef USE_UNLOCKED_IO'.
39808
39809 2004-10-04  Simon Josefsson  <jas@extundo.com>
39810
39811         * config/srclist.txt: Add memmem from glibc.
39812
39813 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
39814
39815         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
39816
39817         * modules/argmatch, modules/argp, modules/closeout, modules/error,
39818         modules/exclude, modules/getdate, modules/getline,
39819         modules/getndelim2, modules/getpass, modules/getpass-gnu,
39820         modules/getusershell, modules/linebuffer, modules/md5,
39821         modules/mountlist, modules/posixtm, modules/readtokens,
39822         modules/readutmp, modules/regex, modules/sha1,
39823         modules/version-etc, modules/yesno:
39824         Remove dependency on unlocked-io.
39825
39826 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
39827
39828         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
39829
39830         * m4/unlocked-io.m4: Add copyright notice.
39831         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
39832
39833 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
39834
39835         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
39836         * lib/xmalloc.c (xmemdup): Likewise.
39837         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
39838         XFREE): Remove these long-obsolescent macros.
39839         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
39840         * lib/xstrdup.c: Remove.
39841
39842         * lib/regex.c (re_comp): Cast gettext return value to char *,
39843         Problem reported by Martin Neitzel via Mark D. Baushke.
39844
39845 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
39846
39847         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
39848         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
39849         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
39850         regex.c, sha1.c, version-etc.c, yesno.c:
39851         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
39852         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
39853         the includer's responsibility.
39854
39855         Sync from coreutils.
39856
39857         * lib/modechange.c (mode_compile): Don't decrement a pointer that
39858         points to the start of a string, as the C Standard says the
39859         resulting behavior is undefined.
39860
39861         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
39862         simple -> simple_backups, numbered_existing ->
39863         numbered_existing_backups, numbered -> numbered_backups
39864         to avoid shadowing problems.  All uses changed.
39865         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
39866         * lib/backupfile.c (check_extension, numbered_backup):
39867         Rename locals to avoid shadowing 'basename'.
39868         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
39869         once.
39870
39871         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
39872         * lib/.cvsignore: Add getopt.h.
39873
39874 2004-10-04  Bruno Haible  <bruno@clisp.org>
39875
39876         * modules/README: New file.
39877         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
39878         not a module.
39879
39880 2004-10-02  Jim Meyering  <jim@meyering.net>
39881
39882         * lib/dirfd.h, getpagesize.h: Add copyright notice.
39883
39884 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39885
39886         * modules/strsep: New file.
39887
39888 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39889
39890         * m4/strsep.m4: New file.
39891
39892 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39893
39894         * lib/strsep.h: New file.
39895         * lib/strsep.c: New file.
39896
39897 2004-10-01  Simon Josefsson  <jas@extundo.com>
39898
39899         * lib/snprintf.c (snprintf): Handle size==0.
39900
39901 2004-10-01  Simon Josefsson  <jas@extundo.com>
39902             Bruno Haible  <bruno@clisp.org>
39903
39904         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
39905         (snprintf): Declare 'args'.
39906
39907 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
39908
39909         * lib/snprintf.c: Remove comments as to why each header is needed.
39910
39911 2004-10-01  Bruno Haible  <bruno@clisp.org>
39912
39913         * MODULES.html.sh: Add strsep.
39914
39915 2004-09-30  Simon Josefsson  <jas@extundo.com>
39916
39917         * modules/snprintf: New file.
39918
39919 2004-09-30  Simon Josefsson  <jas@extundo.com>
39920
39921         * m4/snprintf.m4: New file.
39922
39923 2004-09-30  Simon Josefsson  <jas@extundo.com>
39924
39925         * lib/snprintf.h, lib/snprintf.c: New files.
39926
39927 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
39928
39929         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
39930         (hol_entry_help): Never translate an empty string.
39931         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
39932         * lib/argp.h (OPTION_NO_TRANS): New option.
39933
39934 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
39935
39936         * modules/argp (Maintainer): Replace Simon Josefsson
39937         by Sergey Poznyakoff.
39938
39939 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
39940
39941         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
39942         changes merged back into glibc.
39943
39944 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
39945
39946         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
39947
39948 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
39949
39950         * lib/xvasprintf.c: Include xalloc.h.
39951         (xvasprintf): Use xalloc_die, not xmalloc_die.
39952
39953 2004-09-29  Bruno Haible  <bruno@clisp.org>
39954
39955         * modules/alloca-opt: New file, derived from modules/alloca.
39956         * modules/allocsa: Depend on alloca-opt instead of alloca.
39957         * modules/setenv: Likewise.
39958         * modules/vasnprintf: Likewise.
39959         * MODULES.html.sh: Add alloca-opt.
39960
39961 2004-09-28  Simon Josefsson  <jas@extundo.com>
39962
39963         * gnulib-tool: New parameter --lgpl, to asseert that modules are
39964         LGPL, and to replace license template from GPL to LGPL.
39965
39966 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
39967
39968         * modules/dummy: Change license to LGPL.
39969
39970 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
39971
39972         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
39973
39974 2004-09-24  Simon Josefsson  <jas@extundo.com>
39975
39976         * modules/minmax (License): Change from GPL to LGPL.
39977
39978 2004-09-23  Simon Josefsson  <jas@extundo.com>
39979
39980         * gnulib-tool (--import): Typo.
39981
39982 2004-09-23  Simon Josefsson  <jas@extundo.com>
39983
39984         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
39985
39986 2004-09-22  Bruno Haible  <bruno@clisp.org>
39987
39988         * modules/*: Add 'License' field.
39989         * gnulib-tool: Accept --extract-license option.
39990         (func_get_license): New function.
39991
39992 2004-09-21  Bruno Haible  <bruno@clisp.org>
39993
39994         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
39995         Reported by Simon Josefsson.
39996
39997 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
39998
39999         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
40000         gl_AC_TYPE_LONG_LONG.
40001
40002 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
40003
40004         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
40005
40006 2004-09-18  Simon Josefsson  <jas@extundo.com>
40007         and  Paul Eggert  <eggert@cs.ucla.edu>
40008
40009         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
40010         calls with autoreconf.  Define GL_LIB.
40011
40012 2004-09-14  Karl Berry  <karl@gnu.org>
40013
40014         * config/srclist.txt: unsync setenv.c, sigh.
40015
40016 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
40017
40018         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
40019         Problem reported by Bruno Haible in:
40020         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
40021
40022 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
40023
40024         * config/srclist.txt: Comment out argp-pvh.c.
40025
40026 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
40027
40028         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
40029         in case some system header has #define'd it.  Problem reported by
40030         Soeren D. Schulze in
40031         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
40032
40033 2004-09-09  Karl Berry  <karl@gnu.org>
40034
40035         * regex.[ch]: delete from the root.  These were supposed to be
40036                 synced with emacs cvs, but this has not happened for about
40037                 a year, and anyway nothing else uses emacs regex.[ch].
40038                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
40039                 lib/regex[.ch] is untouched.
40040
40041 2004-09-09  Bruno Haible  <bruno@clisp.org>
40042
40043         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
40044
40045 2004-09-09  Bruno Haible  <bruno@clisp.org>
40046
40047         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
40048         modifications.
40049         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
40050
40051 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
40052
40053         * modules/xvasprintf: New file.
40054         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
40055
40056 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
40057
40058         * lib/xvasprintf.h: New file.
40059         * lib/xvasprintf.c: New file.
40060         * lib/xasprintf.c: New file.
40061
40062 2004-09-08  Bruno Haible  <bruno@clisp.org>
40063
40064         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
40065
40066 2004-09-08  Bruno Haible  <bruno@clisp.org>
40067
40068         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
40069         length is > INT_MAX.
40070         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
40071         more.
40072
40073 2004-09-08  Bruno Haible  <bruno@clisp.org>
40074
40075         * lib/stdint_.h: New file, taken from GNU clisp.
40076
40077 2004-09-08  Bruno Haible  <bruno@clisp.org>
40078             Oskar Liljeblad  <oskar@osk.mine.nu>
40079
40080         * modules/stdint: New file.
40081         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
40082
40083 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40084
40085         Import from coreutils.
40086         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
40087         strings on unbounded length.  alloca's performance benefits aren't
40088         that important here.
40089         (V_STRDUP): Remove.
40090         (parse_with_separator): New function, with most of the internals
40091         of the old parse_user_spec.  Allow user to omit both user and group,
40092         for compatibility with FreeBSD.
40093         Clone only the user name, not the entire spec.
40094         Do not set *uid, *gid unless entirely successful.
40095         Avoid memory leak in some failing cases.
40096         Fix regression for USER.GROUP reported by Dmitry V. Levin in
40097         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
40098         (parse_user_spec): Rewrite to use parse_with_separator.
40099
40100 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40101
40102         * modules/userspec: Don't depend on alloca.
40103
40104 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40105
40106         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
40107
40108 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
40109
40110         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
40111         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
40112         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
40113
40114 2004-08-16  Simon Josefsson  <jas@extundo.com>
40115
40116         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
40117         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
40118         Add --dry-run for --import.
40119         Let user provided command line parameters override configure.ac
40120         settings.
40121
40122 2004-08-12  Simon Josefsson  <jas@extundo.com>
40123
40124         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
40125         as discussed with Paul Eggert in threads rooted at
40126         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
40127         and
40128         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
40129         Before, the test was empty, and relied on ELIDE_CODE in source
40130         code.)
40131         (gl_PREREQ_GETOPT): New macro.
40132         (gl_GETOPT): Use them.
40133
40134 2004-08-12  Simon Josefsson  <jas@extundo.com>
40135
40136         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
40137         * lib/getopt_.h: Renamed from getopt.h.
40138
40139 2004-08-12  Simon Josefsson  <jas@extundo.com>
40140
40141         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
40142         Change default library name from libfoo to libgnu.
40143         Now, if you have a configure.ac that says:
40144                 gl_SOURCE_BASE(gl)
40145                 gl_M4_BASE(gl/m4)
40146                 gl_MODULES(error getopt etcetera)
40147                 gl_INIT
40148         you can import all you need by running:
40149                 ../gnulib/gnulib-tool --import
40150
40151         * modules/getopt (Files): Rename getopt.h to getopt_.h.
40152         (Makefile.am): Rewrite, use logic from argz.
40153         (Include): Use <getopt.h> instead of "getopt.h".
40154
40155 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40156
40157         * modules/argp (Files): Add m4/unlocked-io.m4.
40158         (Depends-on): Add extensions.
40159
40160 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40161
40162         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
40163         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
40164         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
40165         Check for program_invocation_name, program_invocation_short_name,
40166         flockfile, funlockfile, features.h, _getopt_long_only_r.
40167
40168 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40169
40170         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
40171         its complicated substitute.
40172         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
40173         and program_invocation_name.
40174         (__argp_basename) [!_LIBC]: Remove; the only use was
40175         replaced by its body.
40176         (__argp_short_program_name): Change condition from
40177         !defined __argp_short_program_name to
40178         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
40179         to match argp-namefrob.h.
40180         (__argp_failure): Don't assume strerror_r returns char *.
40181         * lib/argp-parse.c (N_): Define unconditionally.
40182         (argp_default_options): Fill out initializers with 0 to avoid
40183         gcc warnings.
40184
40185 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
40186
40187         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
40188         getopt1.c.
40189
40190 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
40191
40192         Merge from coreutils.
40193
40194         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
40195
40196         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
40197         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
40198
40199 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
40200
40201         Merge from coreutils.
40202
40203         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
40204         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
40205         for Reliant Unix 5.43.
40206
40207         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
40208         (union fooround): Use uintmax_t, not long int.
40209         The rest is a merge from libc:
40210         [defined _LIBC]: Include <shlib-compat.h>.
40211         (_obstack) [defined _LIBC]: Remove after 2.3.4.
40212
40213         * lib/settime.c (settime): Recode to avoid warning with
40214         Sun Forte C 6U2.
40215
40216         * lib/strverscmp.c: Convert to UTF-8.
40217
40218 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
40219
40220         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
40221         m4/uintmax_t.m4.
40222
40223 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
40224
40225         * modules/xalloc-die: New file.
40226         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
40227
40228         * modules/md5 (Files): Add m4/uint32_t.m4.
40229         * modules/sha1: Renamed from modules/sha.
40230         (Files):
40231         Rename lib/sha.h to lib/sha1.h.
40232         Rename lib/sha.c to lib/sha1.c.
40233         Rename m4/sha.m4 to m4/sha1.m4.
40234         (lib_SOURCES): Likewise.
40235         (configure.ac): Rename gl_SHA to gl_SHA1.
40236         (Include): sha.h -> sha1.h.
40237
40238 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
40239
40240         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
40241         * m4/sha1.m4: Renamed from sha.m4.
40242         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
40243
40244 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
40245
40246         * lib/obstack.h (obstack_empty_p):
40247         Don't assume that chunk->contents is suitably aligned.
40248         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
40249         Likewise. Problem reported by Benno in
40250         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
40251
40252         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
40253         readable.  This could be improved further but it'd take some work.
40254
40255 2004-08-08  Simon Josefsson  <jas@extundo.com>
40256
40257         * modules/xgethostname (Depends-on): Remove exit and error (not
40258         used).
40259
40260         * modules/getpass-gnu: Add getpass.h.
40261         (Depends-on): Add stdbool.
40262         * modules/getpass: Add getpass.h.
40263
40264 2004-08-08  Simon Josefsson  <jas@extundo.com>
40265
40266         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
40267         Check getpass declaration.
40268
40269 2004-08-08  Simon Josefsson  <jas@extundo.com>
40270
40271         * lib/xgethostname.c: Don't include error.h (not used).
40272
40273         * lib/getpass.h: Add.
40274         * lib/getpass.c: Include getpass.h first.
40275
40276 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
40277
40278         * lib/xalloc-die.c: New file.
40279         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
40280         All uses removed.
40281         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
40282         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
40283         xalloc-die.c.
40284         (_, N_, xalloc_die): Move to xalloc-die.c.
40285         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
40286         so that we needn't mess with xalloc_msg_memory_exhausted.
40287
40288         * lib/sha1.h: Renamed from sha.h.
40289         (SHA1_H): Renamed from _SHA_H.
40290         (sha1_ctx): Renamed from sha_ctx.
40291         (sha1_init_ctx): Renamed from sha_init_ctx.
40292         (sha1_process_block): Renamed from sha_process_block.
40293         (sha1_process_bytes): Renamed from sha_process_bytes.
40294         (sha1_finish_ctx): Renamed from sha_finish_ctx.
40295         (sha1_read_ctx): Renamed from sha_read_ctx.
40296         (sha1_stream): Renamed from sha_stream.
40297         (sha1_buffer): Renamed from sha_buffer.
40298         * lib/sha1.c: Likewise; renamed from sha.c.
40299         Do not include <sys/types.h>.
40300         Include <stddef.h> rather than <stdlib.h>.
40301
40302 2004-08-08  Bruno Haible  <bruno@clisp.org>
40303
40304         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
40305         FILESYSTEM_PREFIX_LEN.
40306         * lib/progreloc.c: Likewise.
40307         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
40308
40309 2004-08-06  Simon Josefsson  <jas@extundo.com>
40310
40311         * modules/progname (Depends-on): Don't depend on stdbool.
40312
40313 2004-08-06  Simon Josefsson  <jas@extundo.com>
40314
40315         * modules/getsubopt: New file.
40316         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40317         getsubopt.
40318
40319 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40320
40321         More merge from coreutils.
40322
40323         * m4/utimens.m4, m4/utimecmp.m4: New files.
40324         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
40325         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
40326         prereq.m4, sha.m4: Import changes from coreutils.
40327
40328 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40329
40330         More merge from coreutils.
40331         * modules/raise, modules/readtokens0, modules/utimens:
40332         * modules/utimecmp, module/xnanosleep: New files.
40333         * modules/strftime: Add lib/strftime.h.
40334         Change include from <time.h> to "strftime.h".
40335         * modules/yesno: Add lib/yesno.h.
40336         * modules/backupfile: Remove lib/addext.c.
40337         * modules/euidaccess: Add stat-macros.h.
40338         * modules/canonicalize, modules/euidaccess,
40339         modules/filemode, modules/lchown, modules/makepath,
40340         modules/rmdir, modules/stat: Likewise.
40341
40342 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40343
40344         Merge from tar.
40345         * lib/argp-help.c (make_hol, hol_append): Don't assume that
40346         SIZE_MAX is a valid preprocessor constant.
40347         (__argp_basename): Change from "#ifndef _LIBC"
40348         to "#ifndef __argp_short_program_name", so that
40349         we don't compile these functions for tar.
40350
40351         More merges from coreutils.
40352         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
40353         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
40354         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
40355         * lib/addext.c: Remove; no longer needed.
40356         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
40357         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
40358         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
40359         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
40360         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
40361         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
40362         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
40363         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
40364         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
40365         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
40366         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
40367         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
40368         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
40369         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
40370         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
40371         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
40372         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
40373         Import changes from coreutils.
40374
40375 2004-08-05  Simon Josefsson  <jas@extundo.com>
40376
40377         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
40378
40379 2004-08-05  Simon Josefsson  <jas@extundo.com>
40380
40381         * m4/getsubopt.m4: New file.
40382
40383 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
40384
40385         Merge from coreutils.
40386
40387         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
40388         * m4/getcwd-path-max.m4: New files.
40389
40390         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
40391         FILESYSTEM_PREFIX_LEN ->
40392         FILE_SYSTEM_PREFIX_LEN.
40393         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
40394         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
40395         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
40396         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
40397
40398         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
40399         prerequisite modules now handle the DOS stuff.
40400         Don't check for unistd.h.
40401
40402 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
40403
40404         Merge from coreutils.
40405
40406         * lib/.gdb-history: Remove; this doesn't belong here.
40407
40408         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
40409         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
40410         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
40411         * lib/getcwd.c: New files.
40412
40413         * lib/dirname.h: Include <stdbool.h>.
40414         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
40415         for consistency with POSIX terminology.  All uses changed.
40416         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
40417         (strip_trailing_slashes): Use bool for booleans.
40418         * lib/stripslash.c (strip_trailing_slashes): Likewise.
40419
40420         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
40421         sometimes returns a positive errno value even when it succeeds.
40422         (print_errno_message) [!LIBC]: Fall back on strerror if
40423         __strerror_r fails.
40424
40425         * lib/path-concat.c (mempcpy): Don't define if a system header defines
40426         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
40427         (longest_relative_suffix): New function.
40428         (path_concat): Use it.  Assume first argument is not NULL.
40429         Port to DOS.  Omit redundant separators.
40430         Report an error instead of returning NULL.
40431         Use mempcpy instead of memcpy.
40432         (xpath_concat): Remove: not declared or used.
40433
40434         * lib/same.h: Include <stdbool.h>
40435         (same_name): Return bool, not int.
40436         * lib/same.c (same_name): Likewise.
40437         (errno): Don't declare; we assume C89 or better now.
40438
40439         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
40440         if not already defined.
40441
40442         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
40443         * lib/dup-safer.c (errno): Likewise.
40444
40445 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
40446
40447         Merge from coreutils.
40448         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
40449         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
40450         * modules/path-concat: Don't depend on strdup.
40451
40452 2004-08-03  Simon Josefsson  <jas@extundo.com>
40453
40454         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
40455         * lib/progname.h: Don't include stdbool.h.
40456
40457 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
40458
40459         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
40460         * MODULES.html.sh (func_all_modules): Remove fatal.
40461
40462 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
40463
40464         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
40465
40466 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
40467
40468         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
40469         working.
40470
40471 2004-08-02  Simon Josefsson  <jas@extundo.com>
40472
40473         * lib/getsubopt.h: New file, with comments from Bruno Haible.
40474         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
40475         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
40476
40477 2004-08-01  Simon Josefsson  <jas@extundo.com>
40478
40479         * lib/xgetdomainname.c: Include stdlib.h, for free().
40480
40481 2004-07-19  Bruno Haible  <bruno@clisp.org>
40482
40483         * MODULES.html.sh (func_all_modules): Add dummy.
40484
40485 2004-07-16  Simon Josefsson  <jas@extundo.com>
40486
40487         * modules/dummy: New file.
40488
40489 2004-07-16  Simon Josefsson  <jas@extundo.com>
40490
40491         * lib/dummy.c: New file.
40492
40493 2004-07-16  Bruno Haible  <bruno@clisp.org>
40494
40495         * lib/backupfile.h: Add extern "C" for C++.
40496         * lib/closeout.h: Likewise.
40497         * lib/copy-file.h: Likewise.
40498         * lib/findprog.h: Likewise.
40499         * lib/full-write.h: Likewise.
40500         * lib/pathname.h: Likewise.
40501         * lib/progname.h: Likewise.
40502         * lib/stpcpy.h: Likewise.
40503         * lib/stpncpy.h: Likewise.
40504         * lib/strcase.h: Likewise.
40505         * lib/strstr.h: Likewise.
40506         * lib/xalloc.h: Likewise.
40507
40508         * lib/mbswidth.h: Add extern "C" for C++.
40509         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
40510
40511 2004-07-13  Robert Millan  <robertmh@gnu.org>
40512
40513         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
40514
40515 2004-07-09  Simon Josefsson  <jas@extundo.com>
40516
40517         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
40518         failed without this.)
40519
40520 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
40521
40522         * modules/chown (Files): Add lib/fchown-stub.c, since
40523         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
40524
40525 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
40526
40527         * lib/fchown-stub.c: New file.
40528
40529 2004-06-24  Jim Meyering  <jim@meyering.net>
40530
40531         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
40532
40533 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40534
40535         * modules/argz: Omit "#include".
40536
40537         * MODULES.html.sh (func_all_modules): Add calloc, to match
40538         2004-06-01 addition of calloc module.
40539
40540 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40541
40542         * m4/argz.m4: New file, which is autoupdated from libtool.
40543
40544 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40545
40546         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
40547         libtool.
40548
40549 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40550
40551         * config/srclist-update: Don't insist on "USA." before the
40552         close-comment, as libtool omits the period and puts the */ on a
40553         separate line.
40554         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
40555         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
40556
40557 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
40558
40559         * modules/argz: New file.
40560         * MODULES.html.sh (func_all_modules): Add argz.
40561
40562 2004-06-12  Jim Meyering  <jim@meyering.net>
40563         and  Paul Eggert  <eggert@cs.ucla.edu>
40564
40565         * modules/hash (Files): Add lib/xalloc.h.
40566         * modules/pipe (Depends-on): Add wait-process.
40567         * modules/stat (Depends-on): Add xalloc.
40568         * modules/userspec (Files): Add lib/userspec.h.
40569         * modules/xstrto
40570
40571         Upgrade from gettext-0.13.
40572         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
40573         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
40574         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
40575
40576 2004-06-10  Jim Meyering  <jim@meyering.net>
40577
40578         * lib/calloc.c: New file.
40579
40580 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
40581
40582         * lib/getdate.y (yylex): Allow space between sign and number.
40583         Problem reported by Dan Jacobson.
40584
40585 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
40586
40587         Merge from coreutils CVS.
40588
40589         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
40590         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
40591         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
40592         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
40593         xstrtol.m4: Fix copyright date and/or serial number.
40594
40595         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
40596         See if we need an fchown replacement.
40597         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
40598         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
40599         and use the replacement function if we detect either defect.
40600
40601         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
40602         gl_UTIMECMP.
40603
40604 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
40605         and  Jim Meyering  <jim@meyering.net>
40606
40607         Merge from coreutils CVS.
40608
40609         * lib/stat-macros.h: New file, with contents from file-type.h
40610         and coreutils' system.h.
40611         * lib/file-type.c: Include "stat-macros.h".
40612         * lib/file-type.h (file_type): Move all macro definitions to new file,
40613         stat-macros.h.
40614
40615         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
40616         Wrap old code with this conditional.
40617         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
40618         function that does not dereference symlinks.
40619         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
40620
40621         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
40622         dependency problems.
40623         (xreadlink): Accept new arg SIZE, for efficiency.
40624         All decls and uses changed.
40625         * lib/xreadlink.h: Include <stddef.h>, for size_t.
40626
40627         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
40628         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
40629
40630         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
40631         sysexits.h.
40632
40633 2004-06-01  Jim Meyering  <jim@meyering.net>
40634
40635         * m4/calloc.m4: New file.
40636
40637 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
40638
40639         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
40640         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
40641         Also, fix a typo in a diagnostic.
40642
40643 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
40644
40645         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
40646         or AC_FUNC_REALLOC.
40647
40648 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
40649
40650         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
40651         macros to be defined.
40652         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
40653         the allocator returns NULL because the requested size is zero.
40654
40655 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
40656
40657         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
40658         var.  Add comment explaining why libc still defines it.  This
40659         merges the following patch from glibc:
40660         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
40661
40662 2004-05-20  Andreas Schwab  <schwab@suse.de>
40663
40664         * m4/free.m4: Replace free if it not known to work, not the other
40665         way round.
40666
40667 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
40668
40669         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
40670         present in glibc since revision 1.1 of this file.
40671         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
40672         obstack_alignment_mask, obstack_alloc, obstack_base,
40673         obstack_blank, obstack_blank_fast, obstack_chunk_size,
40674         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
40675         obstack_grow0, obstack_init, obstack_int_grow,
40676         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
40677         obstack_next_free, obstack_object_size, obstack_ptr_grow,
40678         obstack_ptr_grow_fast, obstack_room): Remove declarations of
40679         nonexistent functions.
40680
40681 2004-05-18  Karl Berry  <karl@gnu.org>
40682
40683         * config/srclist.txt: break link for vasnprintf.c.
40684
40685 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
40686
40687         Port obstack to the AS/400, where pointers are 16 bytes wide and
40688         you cannot cast an integer to a valid pointer.  This patch is
40689         currently waiting to be integrated into glibc; see
40690         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
40691
40692         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
40693         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
40694         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
40695         (struct obstack): temp member is now a union of a pointer and
40696         an integer, instead of an integer.  All integer uses changed.
40697         This does not affect the physical layout of struct obstack,
40698         except on hosts (like the AS/400) where the size or alignment of
40699         void * is greater than that of ptrdiff_t.
40700         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
40701         __STDC__)]: Store temporary in pointer member of union, not
40702         integer member.
40703         * lib/obstack.c: Include <stddef.h>, for offsetof.
40704         (struct fooalign): Remove; it doesn't need a name.
40705         (union fooround): Change double to long double, and add void *.
40706         (DEFAULT_ALIGNMENT): Use offsetof to compute.
40707         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
40708         not a macro.  Hence the values are always int; so remove all
40709         casts-to-int in uses.
40710
40711 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
40712
40713         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
40714         we can get this patch merged into glibc.
40715
40716 2004-05-17  Derek R. Price  <derek@ximbiot.com>
40717             Paul Eggert  <eggert@cs.ucla.edu>
40718
40719         * m4/argp: Depend on alloca.
40720
40721 2004-05-17  Derek R. Price  <derek@ximbiot.com>
40722             Paul Eggert  <eggert@cs.ucla.edu>
40723
40724         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
40725         freecoding.
40726
40727 2004-05-17  Bruno Haible  <bruno@clisp.org>
40728
40729         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
40730         precision that consists of a '.' followed by an empty digit string.
40731         Patch by Tor Lillqvist <tml@iki.fi>.
40732
40733 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
40734
40735         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
40736         for backward compatibility with older code.  We need our own
40737         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
40738         it under some other name, and our alloca.h will define it.
40739
40740 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
40741             Derek Price  <derek@ximbiot.com>
40742
40743         * lib/alloca.c: Include <alloca.h>, to get our interface.
40744         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
40745         include <alloca.h> first.  Use C89 prototype for alloca; this
40746         requires including <stddef.h> for size_t.  Use extern "C" if C++.
40747         Use #elif for simplicity, since we can assume C89 now.
40748         Don't try to source the system alloca.h since it will not be found
40749         and to prevent recursively including its replacement.
40750         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
40751         * lib/regex.c: Likewise.
40752
40753 2004-05-16  Derek Price  <derek@ximbiot.com>
40754             Paul Eggert  <eggert@cs.ucla.edu>
40755
40756         getline cleanup.  This changes the getndelim2 API: both order of
40757         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
40758         no delimiter).
40759
40760         * lib/getline.c: Don't include stddef.h or stdio.h, since our
40761         interface does that.
40762         (getline): Always use getdelim, so that we don't have two
40763         copies of this code.
40764         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
40765         if available.
40766         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
40767         (GETNDELIM2_MAXIMUM): New macro.
40768         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
40769         instead of the old practice of delim2==0.  All callers changed.
40770         Return -1 on overflow, instead of returning junk.
40771         Do not set *linesize unless allocation succeeds.
40772         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
40773         that we include sys/types.h.
40774         * lib/getnline.h: Likewise.
40775         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
40776         (getndelim2): Reorder arguments.
40777         * lib/getnline.c (getnline, getndelim):
40778         Don't discard the NMAX argument.
40779         (getnline): Invoke getndelim, to avoid code duplication.
40780         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
40781         of (size_t) -1 by callers of the getnline family.
40782
40783 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
40784
40785         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
40786         Check for gettimeofday.
40787         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
40788         Check for settimeofday, stime.
40789
40790 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
40791
40792         * lib/nanosleep.c (suspended): Change its type from int to
40793         sig_atomic_t volatile.
40794         (first_call): Make it private to rpl_nanosleep, and have it
40795         be zero initially as that's a bit faster.
40796         (my_usleep): Round up fractional times instead of truncating them,
40797         as this is the usual meaning for 'sleep'.
40798
40799         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
40800         doesn't work.
40801         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
40802         (ENOSYS): Define if not defined.
40803         (settime): Fall back on stime if it exists and settimeofday fails.
40804         But don't bother with fallbacks if a method fails with errno == EPERM.
40805
40806 2004-05-11  Jim Meyering  <jim@meyering.net>
40807
40808         Prior to this change, the save_cwd caller required read access to the
40809         current directory on most systems (ones with the fchdir function).
40810
40811         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
40812         fails, try write-only, and finally, resort to using xgetcwd.
40813
40814 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
40815
40816         * lib/obstack.c, obstack.h: Import changes from libc.
40817
40818 2004-04-28  Bruno Haible  <bruno@clisp.org>
40819
40820         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
40821         also implicitly appends .exe to executables.
40822         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
40823         accepts Windows pathnames.
40824         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
40825         Treat Cygwin like Windows, since it now accepts Windows pathnames.
40826         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
40827         Treat Cygwin like Windows, since it now accepts Windows pathnames.
40828         Reported by Derek Robert Price <derek@ximbiot.com>.
40829
40830 2004-04-21  Karl Berry  <karl@gnu.org>
40831
40832         * config/srclist.txt (localcharset.c): break sync.
40833
40834 2004-04-20  Paul Eggert  <eggert@twinsun.com>
40835
40836         * m4/host-os.m4: Add a copyright notice.
40837
40838 2004-04-20  Jim Meyering  <jim@meyering.net>
40839
40840         Change UTILS_ to gl_ in AC_DEFINE'd names.
40841         Change utils_- and jm_-prefixed variables, too.
40842         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
40843         UTILS_FUNC_MKDIR_TRAILING_SLASH.
40844         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
40845
40846         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
40847         Don't emit trailing blanks.
40848         Also rename jm_-prefixed variables to have gl_ prefix.
40849
40850         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
40851         Also rename jm_-prefixed variables to have gl_ prefix.
40852
40853         * m4/jm-macros.m4: Reflect the renamings.
40854         * m4/prereq.m4: Likewise.
40855
40856 2004-04-20  Jim Meyering  <jim@meyering.net>
40857
40858         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
40859         memory.
40860
40861 2004-04-20  Jim Meyering  <jim@meyering.net>
40862             Bruno Haible  <bruno@clisp.org>
40863
40864         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
40865         memory when realloc fails.
40866
40867 2004-04-19  Jim Meyering  <jim@meyering.net>
40868
40869         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
40870         now that readutmp.c may call `free (0)'.
40871
40872 2004-04-19  Bruno Haible  <bruno@clisp.org>
40873
40874         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
40875         * m4/inttypes_h.m4: Likewise.
40876         * m4/stdint_h.m4: Likewise.
40877         * m4/intmax_t.m4: Likewise.
40878         * m4/uintmax_t.m4: Likewise.
40879
40880 2004-04-18  Jim Meyering  <jim@meyering.net>
40881
40882         * m4/prereq.m4: Don't forbid jm_ prefix.
40883
40884         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
40885         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
40886         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
40887         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
40888         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
40889         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
40890         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
40891         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
40892         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
40893         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
40894         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
40895         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
40896         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
40897         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
40898         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
40899         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
40900         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
40901         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
40902         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
40903
40904 2004-04-18  Jim Meyering  <jim@meyering.net>
40905
40906         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
40907         failure, don't leak memory and do call END_UTMP_ENT.
40908
40909 2004-04-16  Jim Meyering  <jim@meyering.net>
40910
40911         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
40912         coreutils' stat program.
40913         (gl_PREREQ): Don't require jm_PREREQ_STAT.
40914
40915 2004-04-11  Paul Eggert  <eggert@twinsun.com>
40916
40917         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
40918         C89.
40919         (CHAR_BIT): Remove, since we assume C89.
40920         Include <stdint.h> if available, as per current Autoconf CVS advice.
40921
40922 2004-03-31  Jim Meyering  <jim@meyering.net>
40923
40924         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
40925         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
40926         * m4/xalloc.m4: Likewise.
40927
40928 2004-03-30  Paul Eggert  <eggert@twinsun.com>
40929
40930         Merge from coreutils.
40931
40932         * m4/inttostr.m4: New file.
40933         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
40934         Require AM_STDBOOL_H and gl_TIMESPEC instead.
40935         Require gl_CLOCK_TIME.
40936         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
40937
40938 2004-03-30  Paul Eggert  <eggert@twinsun.com>
40939
40940         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
40941         not bool, to be more consistent with Unix conventions.
40942         Suggested by Bruno Haible.
40943
40944         Merge from coreutils.
40945
40946         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
40947         * lib/umaxtostr.c: New files.
40948
40949         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
40950         the usual <time.h> dance.
40951         (get_date): Change signature to support fractional time stamps.
40952         All callers changed.
40953         * lib/getdate.y: Include "getdate.h" first, as we can now
40954         assume C89 and don't need to worry about 'const'.
40955         Similarly, include "unlocked-io.h" near start, not in middle.
40956         Include <limits.h>.
40957         (textint.value): Use long int rather than int.
40958         (textint.digits): Use size_t rather than int.
40959         (BILLION, LOG10_BILLION): New constants.
40960         (parser_control): New member rel_ns.  Members day_ordinal,
40961         time_zone, month, day, hour, minutes, rel_year, rel_month,
40962         rel_day, rel_hour, rel_minutes, rel_seconds
40963         are now long int, not int.  Member seconds is now struct timespec,
40964         not int.  New member timespec_seen.  Members dates_seen, days_seen,
40965         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
40966         not int.
40967         (%union.intval): Now long int, not int.
40968         New member timespec.
40969         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
40970         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
40971         (spec): Now is a timespec or an item list.
40972         (timespec, items): New nonterminals.
40973         (time, rel, relunit, number, get_date):
40974         Add support for fractional seconds.
40975         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
40976         (gmtime, localtime, mktime): Remove decls; not needed with C89.
40977         (to_hour): First arg is now long int, not int.
40978         (to_year): Returns long int, not int.
40979         Don't treat year -70 like 70.
40980         (tm_diff): Returns long int, not int.
40981         (lookup_word): Use bool instead of int when appropriate.
40982         (yylex): Use size_t for count, not int.
40983         Detect overflow when parsing large integer constants.
40984         Add support for fractions.
40985         (get_date): Make pointers 'const' if possible.
40986         Use more-portable code to detect integer overflow.
40987         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
40988         Don't use ctime; it's not reliable if the year has >4 digits.
40989
40990         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
40991         This is for compatibility with BSD.
40992
40993         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
40994         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
40995         From coreutils' system.h.
40996
40997         * lib/userspec.c: Don't include "posixver.h".
40998         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
40999         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
41000         compatible extension.  Simplify code by removing a boolean int
41001         that was always nonzero if a string was nonnull.
41002
41003 2004-03-30  Jim Meyering  <jim@meyering.net>
41004
41005         Merge from coreutils.
41006
41007         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
41008         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
41009         on some systems one must include <grp.h> before it.
41010         Reported by Christian Krackowizer.
41011
41012 2004-03-30  Jim Meyering  <jim@meyering.net>
41013
41014         Merge from coreutils.
41015
41016         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
41017
41018         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
41019         an empty input stream.
41020
41021         * lib/readtokens.c: Include <stdbool.h>.
41022         (readtoken): Use `size_t' rather than int/long.
41023         All callers adjusted.
41024         Use `bool' rather than `int' where appropriate.
41025         Use memset rather than an explicit loop.
41026         Use x2nrealloc rather than xrealloc.
41027         Allow the use of `\0' as a delimiter.
41028         (readtokens): Likewise.
41029         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
41030
41031 2004-03-30  Jim Meyering  <jim@meyering.net>
41032
41033         * m4/realloc.m4: Remove file, since now it does no more than
41034         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
41035         the `configure.ac' section of module/realloc.
41036         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
41037
41038 2004-03-30  Bruno Haible  <bruno@clisp.org>
41039
41040         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
41041         nonnull.
41042
41043 2004-03-29  Paul Eggert  <eggert@twinsun.com>
41044
41045         Merge changes to getloadavg.c from coreutils and Emacs.
41046
41047         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
41048         Define to an expression, not to the empty string.
41049         Include cloexec.h and xalloc.h.
41050         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
41051         Use set_cloexec_flag rather than rolling our own.
41052         * lib/cloexec.c, lib/cloexec.h: New files.
41053
41054 2004-03-29  Paul Eggert  <eggert@twinsun.com>
41055
41056         * m4/cloexec.m4: New file.
41057
41058 2004-03-18  Paul Eggert  <eggert@twinsun.com>
41059
41060         * lib/getopt.h: Sync with libc CVS.
41061
41062 2004-03-18  Paul Eggert  <eggert@twinsun.com>
41063             Bruno Haible  <bruno@clisp.org>
41064
41065         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
41066         mbswidth.
41067
41068 2004-03-18  Paul Eggert  <eggert@twinsun.com>
41069             Bruno Haible  <bruno@clisp.org>
41070
41071         * lib/mbswidth.h: Include <wchar.h> only if
41072         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
41073         <wchar.h>.
41074         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
41075
41076 2004-03-09  Paul Eggert  <eggert@twinsun.com>
41077
41078         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
41079         Sync with libc CVS.
41080         * lib/getopt_int.h: New file, also synced from libc.
41081
41082 2004-03-09  Paul Eggert  <eggert@twinsun.com>
41083
41084         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
41085         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
41086         Bring back getopt.c, getopt.h, getopt1.c.
41087
41088 2004-03-07  Paul Eggert  <eggert@twinsun.com>
41089
41090         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
41091         All uses changed.  Check for sa_sigaction member; this fixes
41092         a bug first reported by Jason Andrade in
41093         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
41094
41095 2004-03-07  Paul Eggert  <eggert@twinsun.com>
41096
41097         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
41098         '#if' expressions.  Unlike the code it replaces, it does not
41099         depend on (defined _SC_PAGESIZE).  However, it does depend on
41100         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
41101         first reported by Jason Andrade in
41102         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
41103
41104 2004-02-25  Simon Josefsson  <jas@extundo.com>
41105
41106         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
41107
41108 2004-02-25  Simon Josefsson  <jas@extundo.com>
41109
41110         * lib/strdup.h: New file.
41111         * lib/strdup.c: Include it.
41112         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
41113         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
41114
41115 2004-02-23  Karl Berry  <karl@gnu.org>
41116
41117         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
41118         (from fencepost.gnu.org:/gd/gnuorg).
41119
41120 2004-02-23  Karl Berry  <karl@gnu.org>
41121
41122         * config/srclistvars.sh (GNUORG) [karl]: redefine.
41123         * config/srclist.txt: add maintain/standards documents.
41124
41125 2004-02-18  Bruno Haible  <bruno@clisp.org>
41126
41127         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
41128         Reported by Derek Robert Price <derek@ximbiot.com>.
41129
41130 2004-02-16  Karl Berry  <karl@gnu.org>
41131
41132         * config/mkinstalldirs, install-sh: update from automake.
41133
41134 2004-02-06  Karl Berry  <karl@gnu.org>
41135
41136         * m4/po.m4: update from gettext 0.14.1.
41137
41138 2004-02-06  Karl Berry  <karl@gnu.org>
41139
41140         * lib/config.charset: update from gettext 0.14.1.
41141
41142 2004-02-05  Paul Eggert  <eggert@twinsun.com>
41143
41144         Add comments and code, prompted by suggestions from Bruno Haible
41145         for sh-quote.
41146         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
41147         describing the enum quoting_style values.
41148         * lib/quotearg.c (quotearg_alloc): New function.
41149         (quotearg_buffer_restyled): Treat lone { and } as special.
41150         Treat = as special.  Work around bug with older shells
41151         that "see" a '\' that is really the 2nd byte of a multibyte char.
41152         Quote empty string with shell_quoting_style.
41153
41154 2004-02-03  Bruno Haible  <bruno@clisp.org>
41155
41156         * m4/pipe.m4: New file, from GNU gettext.
41157
41158 2004-02-03  Bruno Haible  <bruno@clisp.org>
41159
41160         * lib/pipe.h: New file, from GNU gettext.
41161         * lib/pipe.c: New file, from GNU gettext.
41162
41163 2004-01-27  Bruno Haible  <bruno@clisp.org>
41164
41165         * m4/execute.m4: New file, from GNU gettext.
41166
41167 2004-01-27  Bruno Haible  <bruno@clisp.org>
41168
41169         * lib/execute.h: New file, from GNU gettext.
41170         * lib/execute.c: New file, from GNU gettext.
41171         * lib/w32spawn.h: New file, from GNU gettext.
41172
41173 2004-01-24  Paul Eggert  <eggert@twinsun.com>
41174
41175         Merge from diffutils.
41176
41177         * lib/file-type.c (file_type): Add typed memory objects.
41178         * lib/file-type.h (S_TYPEISTMO): New macro.
41179
41180         * lib/c-stack.h (c_stack_action): Remove argv argument.
41181         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
41182         (die): Don't calculate message unless segv_action returns.
41183         (get_stack_location, min_address_from_argv, max_address_from_argv,
41184         volatile stack_base, volatile_stack_size): Remove.
41185         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
41186         that every segmentation violation is a stack overflow.  (Ouch!)
41187         See Debian bug 136249 (still outstanding) for more info about why
41188         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
41189
41190 2004-01-24  Paul Eggert  <eggert@twinsun.com>
41191
41192         Exit-status fix from coreutils.
41193
41194         Use exit_failure consistently in place of EXIT_FAILURE,
41195         so that program exit statuses are consistent on failure.
41196
41197         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
41198         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
41199         * lib/argmatch.h: Comment fix to match the above.
41200         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
41201         Now a macro referring to exit_failure, instead of a separate
41202         variable.  Include "exitfail.h" to get it.
41203         * lib/xstrtol.h: Include "exitfail.h".
41204         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
41205
41206         * lib/long-options.c (parse_long_options): Use prototype
41207         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
41208         for clarity.
41209
41210 2004-01-21  Jim Meyering  <jim@meyering.net>
41211
41212         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
41213         so as not to conflict with a different-sized __mktime_internal
41214         function in GNU libc.
41215         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
41216         Problem building statically-linked `ls' reported by Michael Brunnbauer.
41217
41218 2004-01-20  Karl Berry  <karl@gnu.org>
41219
41220         * config/config.guess: update from config.
41221
41222         * config/srclistvars.sh: GNUWWWLICENSES for karl.
41223
41224 2004-01-20  Bruno Haible  <bruno@clisp.org>
41225
41226         Safer stack allocation.
41227         * lib/setenv.c: Include allocsa.h.
41228         (alloca): Remove fallback definition.
41229         (freea): Remove macro.
41230         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
41231         instead of freea.
41232
41233 2004-01-20  Bruno Haible  <bruno@clisp.org>
41234
41235         * m4/eealloc.m4: New file, from GNU gettext.
41236
41237 2004-01-20  Bruno Haible  <bruno@clisp.org>
41238
41239         * m4/allocsa.m4: New file, from GNU gettext.
41240
41241 2004-01-20  Bruno Haible  <bruno@clisp.org>
41242
41243         * lib/xallocsa.h: New file, from GNU gettext.
41244         * lib/xallocsa.c: New file, from GNU gettext.
41245
41246 2004-01-20  Bruno Haible  <bruno@clisp.org>
41247
41248         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
41249
41250 2004-01-20  Bruno Haible  <bruno@clisp.org>
41251
41252         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
41253         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
41254         specially.
41255
41256 2004-01-20  Bruno Haible  <bruno@clisp.org>
41257
41258         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
41259         patch.
41260
41261 2004-01-20  Bruno Haible  <bruno@clisp.org>
41262
41263         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
41264
41265 2004-01-20  Bruno Haible  <bruno@clisp.org>
41266
41267         * lib/eealloc.h: New file.
41268
41269 2004-01-20  Bruno Haible  <bruno@clisp.org>
41270
41271         * lib/binary-io.h: Avoid warnings on Cygwin.
41272
41273 2004-01-20  Bruno Haible  <bruno@clisp.org>
41274
41275         * lib/allocsa.h: New file, from GNU gettext.
41276         * lib/allocsa.c: New file, from GNU gettext.
41277
41278 2004-01-18  Karl Berry  <karl@gnu.org>
41279
41280         * doc/gpl.texi, doc/lgpl.texi: new files.
41281
41282 2004-01-18  Karl Berry  <karl@gnu.org>
41283
41284         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
41285         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
41286
41287 2004-01-15  Paul Eggert  <eggert@twinsun.com>
41288
41289         Merge from coreutils.
41290
41291         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
41292         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
41293         (gl_DEFAULT_POSIX2_VERSION): Move
41294         the documentation from 'configure' into 'config.hin',
41295         so that 'configure --help' isn't burdened by it and
41296         we don't have to worry about its formatting there.
41297         Reword the documentation so that it's more succinct
41298         and can be run together into a single paragraph.
41299         * m4/same.m4 (gl_SAME): Check for pathconf.
41300
41301 2004-01-15  Paul Eggert  <eggert@twinsun.com>
41302
41303         Merge from coreutils.
41304
41305         * lib/posixver.c: Include posixver.h.
41306
41307         * lib/same.c: Include <stdbool.h>, <limits.h>.
41308         (_POSIX_NAME_MAX): Define if not defined.
41309         (MIN): New macro.
41310         (same_name): If file names are silently truncated, report
41311         that the file names are the same if they are the same after
41312         the silent truncation.
41313
41314         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
41315         conversion function.
41316         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
41317         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
41318         longer needed.
41319
41320 2004-01-15  Jim Meyering  <jim@meyering.net>
41321
41322         Merge from coreutils.
41323
41324         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
41325         if no library is required.
41326         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
41327         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
41328         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
41329         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
41330         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
41331         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
41332         value, $ac_cv_search_crypt, if it's "none required".
41333         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
41334         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
41335         not gl_FUNC_GETLOADAVG.
41336         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
41337         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
41338
41339 2004-01-15  Jim Meyering  <jim@meyering.net>
41340
41341         Merge from coreutils.
41342
41343         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
41344         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
41345         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
41346
41347         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
41348         optional configure-time default.
41349
41350         * lib/version-etc.c (version_etc_copyright): Update copyright date.
41351
41352         * lib/xreadlink.c (xreadlink): Correct outdated comment.
41353
41354 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
41355
41356         Merge from coreutils.
41357
41358         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
41359         value, $ac_cv_search_nanosleep, if it's "none required".
41360
41361 2004-01-14  Paul Eggert  <eggert@twinsun.com>
41362
41363         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
41364         with like-named macro in fnmatch.c.
41365         (EXT): Use an internal constant instead.
41366
41367         Merge fnmatch patches from glibc.
41368         * lib/fnmatch.c (mbsinit): Remove define.
41369         Add libc_hidden_ver (__fnmatch, fnmatch).
41370         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
41371         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
41372
41373 2004-01-14  Karl Berry  <karl@gnu.org>
41374
41375         * config/install-sh: update from automake.
41376
41377 2004-01-13  Karl Berry  <karl@gnu.org>
41378
41379         * config/install-sh: update from automake.
41380
41381 2004-01-09  Karl Berry  <karl@gnu.org>
41382
41383         * config/install-sh: update from automake.
41384
41385 2004-01-05  Karl Berry  <karl@gnu.org>
41386
41387         * config/config.{sub,guess}: update from config.
41388
41389 2003-12-31  Karl Berry  <karl@gnu.org>
41390
41391         * config/depcomp: update from automake.
41392
41393 2003-12-14  Karl Berry  <karl@gnu.org>
41394
41395         * lib/config.charset: update from gettext-runtime.
41396
41397 2003-12-03  Paul Eggert  <eggert@twinsun.com>
41398
41399         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
41400         Bug reported by Alfred M. Szmidt.
41401
41402 2003-12-03  Bruno Haible  <bruno@clisp.org>
41403
41404         * m4/gettext.m4: Upgrade from gettext-0.13.
41405         * m4/po.m4: Upgrade from gettext-0.13.
41406         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
41407         * m4/intmax.m4: New file, from gettext-0.13.
41408         * m4/printf-posix.m4: New file, from gettext-0.13.
41409
41410 2003-11-29  Karl Berry  <karl@gnu.org>
41411
41412         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
41413
41414 2003-11-25  Paul Eggert  <eggert@twinsun.com>
41415             Bruno Haible  <bruno@clisp.org>
41416
41417         * lib/printf-parse.h: Don't include sys/types.h.
41418         (ARG_NONE): New macro.
41419         (char_directive): Change type of *arg_index fields to size_t.
41420         * lib/printf-parse.c: Don't include sys/types.h.
41421         (SSIZE_MAX): Remove macro.
41422         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
41423         Remove unnecessary overflow check.
41424         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
41425         fields.
41426
41427 2003-11-25  Bruno Haible  <bruno@clisp.org>
41428
41429         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
41430
41431 2003-11-25  Bruno Haible  <bruno@clisp.org>
41432
41433         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
41434         gt_TYPE_SSIZE_T.
41435
41436 2003-11-24  Paul Eggert  <eggert@twinsun.com>
41437
41438         * modules/alloca: Remove dependency on xalloc.
41439
41440 2003-11-24  Paul Eggert  <eggert@twinsun.com>
41441
41442         * lib/alloca.c: Remove dependency on xalloc module.
41443         (xalloc_die): Remove.
41444         (memory_full) [!defined emacs]: New macro.
41445         [!defined emacs]: Don't include xalloc.h.
41446         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
41447         address arithmetic overflows.  Change datatypes a bit to avoid
41448         unnecessary casts.
41449
41450 2003-11-22  Jim Meyering  <jim@meyering.net>
41451
41452         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
41453         s/size/size_t/.
41454
41455 2003-11-21  Karl Berry  <karl@gnu.org>
41456
41457         * config/config.{sub,guess}: update from config.
41458
41459 2003-11-18  Karl Berry  <karl@gnu.org>
41460
41461         * config/config.{sub,guess}: update from config.
41462
41463         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
41464
41465 2003-11-17  Paul Eggert  <eggert@twinsun.com>
41466
41467         * README: Mention that S+T cannot overflow if S is the size of
41468         an existing object and T is sufficiently small.
41469
41470 2003-11-17  Jim Meyering  <jim@meyering.net>
41471
41472         On systems without utime and without a utimes function capable of
41473         dealing with a NULL struct utimbuf* argument, this utime replacement
41474         could -- in unusual circumstances -- leak a file descriptor.
41475         * lib/utime.c: Include <unistd.h> and <errno.h>.
41476         (utime_null): Be sure to close `fd' and to preserve errno.
41477         Reported by Geoff Collyer via Arnold Robbins.
41478
41479 2003-11-17  Bruno Haible  <bruno@clisp.org>
41480
41481         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
41482         (Depends-on): Add xsize.
41483
41484 2003-11-17  Bruno Haible  <bruno@clisp.org>
41485
41486         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
41487
41488 2003-11-17  Bruno Haible  <bruno@clisp.org>
41489
41490         * lib/vasnprintf.c (alloca): Remove fallback definition.
41491         (freea): Remove definition.
41492         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
41493         Reported by Paul Eggert.
41494
41495 2003-11-16  Paul Eggert  <eggert@twinsun.com>
41496             Bruno Haible  <bruno@clisp.org>
41497
41498         Protect against address arithmetic overflow.
41499         * lib/printf-args.h: Include stddef.h.
41500         (arguments): Change type of field 'count' to size_t.
41501         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
41502         'unsigned int' where appropriate.
41503         * lib/printf-parse.h: Include sys/types.h.
41504         (char_directive): Change type of *arg_index fields to ssize_t.
41505         (char_directives): Change type of fields 'count', max_*_length to
41506         size_t.
41507         * lib/printf-parse.c: Include sys/types.h and xsize.h.
41508         (SSIZE_MAX): Define fallback value.
41509         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
41510         instead of 'int' where appropriate. Check a_allocated, d_allocated
41511         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
41512         * lib/vasnprintf.c: Include xsize.h.
41513         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
41514         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
41515         overflow. Avoid wraparound when converting a width or precision from
41516         decimal to binary.
41517
41518 2003-11-16  Bruno Haible  <bruno@clisp.org>
41519
41520         Update from GNU gettext.
41521         * lib/printf-parse.c: Generalize to it can be compiled for wide
41522         strings.
41523         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
41524         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
41525         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
41526         SNPRINTF): New macros.
41527         Don't include <alloca.h> if the file is used inside libintl.
41528         (local_wcslen): New function, for Solaris 2.5.1.
41529         (VASNPRINTF): Use it instead of wcslen.
41530
41531 2003-11-16  Bruno Haible  <bruno@clisp.org>
41532
41533         * lib/xsize.h (xmax): New function.
41534         (xsum, xsum3, xsum4): Declare as "pure" functions.
41535
41536 2003-11-12  Paul Eggert  <eggert@twinsun.com>
41537
41538         * modules/xalloc (Files): Undo latest change, since xalloc.h
41539         no longer needs SIZE_MAX or PTRDIFF_MAX.
41540
41541 2003-11-12  Paul Eggert  <eggert@twinsun.com>
41542
41543         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
41544         gl_PTRDIFF_MAX.
41545
41546 2003-11-12  Paul Eggert  <eggert@twinsun.com>
41547
41548         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
41549         "return", to pacify some unknown compiler.  Problem reported
41550         by Joerg Schilling.
41551
41552 2003-11-12  Paul Eggert  <eggert@twinsun.com>
41553
41554         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
41555         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
41556         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
41557         heuristic is just as accurate as far as we know, and it removes a
41558         dependency on size_max.m4 and ptrdiff_max.m4.
41559
41560 2003-11-11  Bruno Haible  <bruno@clisp.org>
41561
41562         * modules/xsize (Files): Add m4/size_max.m4.
41563         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
41564
41565 2003-11-11  Bruno Haible  <bruno@clisp.org>
41566
41567         * m4/size_max.m4: New file.
41568         * m4/ptrdiff_max.m4: New file.
41569         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
41570         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
41571         (gl_XALLOC): Invoke it.
41572
41573 2003-11-11  Bruno Haible  <bruno@clisp.org>
41574
41575         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
41576         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
41577         defined.
41578
41579 2003-11-10  Paul Eggert  <eggert@twinsun.com>
41580
41581         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
41582         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
41583         rejected some allocations of exactly SIZE_MAX - 2 bytes.
41584         From Bruno Haible.
41585         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
41586         not (size_t) -1, since it's defined here.
41587
41588 2003-11-09  Karl Berry  <karl@gnu.org>
41589
41590         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
41591
41592 2003-11-06  Paul Eggert  <eggert@twinsun.com>
41593
41594         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
41595         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
41596         Reject sizes of exactly SIZE_MAX bytes.
41597         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
41598         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
41599
41600 2003-11-05  Bruno Haible  <bruno@clisp.org>
41601
41602         * lib/xsize.h: Include limits.h, to avoid a possible collision with
41603         SIZE_MAX defined in <limits.h> on Solaris.
41604
41605 2003-11-04  Jim Meyering  <jim@meyering.net>
41606
41607         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
41608         variable names, rather than @VAR@.
41609         * modules/poll: Likewise.
41610
41611 2003-11-04  Bruno Haible  <bruno@clisp.org>
41612
41613         * modules/xsize: New file.
41614         * modules/linebreak: Depend on xsize.
41615         * MODULES.html.sh (func_all_modules): Add xsize.
41616
41617 2003-11-04  Bruno Haible  <bruno@clisp.org>
41618
41619         * m4/xsize.m4: New file.
41620
41621 2003-11-04  Bruno Haible  <bruno@clisp.org>
41622
41623         * lib/xsize.h: New file.
41624         * lib/linebreak.c: Include xsize.h.
41625         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
41626         argument for overflow.
41627         Suggested by Paul Eggert.
41628
41629 2003-11-03  Karl Berry  <karl@gnu.org>
41630
41631         * config/config.{guess,sub}: update from config.
41632
41633 2003-11-03  Jim Meyering  <jim@meyering.net>
41634
41635         * modules/userspec (lib_SOURCES): Add userspec.h.
41636         (Include): Add "userspec.h".
41637         Improve description.
41638
41639 2003-11-03  Jim Meyering  <jim@meyering.net>
41640
41641         * lib/userspec.c: Include "userspec.h".
41642         * lib/userspec.h: New file.
41643
41644 2003-11-03  Bruno Haible  <bruno@clisp.org>
41645
41646         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
41647
41648 2003-11-03  Bruno Haible  <bruno@clisp.org>
41649
41650         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
41651         available, to avoid (extremely rare) race condition.
41652         Suggested by Paul Eggert.
41653
41654 2003-11-02  Karl Berry  <karl@gnu.org>
41655
41656         * config/srclist.txt (vasprintf.c): sync broken, sigh.
41657
41658 2003-10-31  Paul Eggert  <eggert@twinsun.com>
41659
41660         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
41661         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
41662         (read_filesystem_list): Set and use me_type_malloced.
41663         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
41664         whatever the type happens to be), for brevity and consistency.
41665         Check for size calculation overflow on Alphas running OSF/1.
41666
41667 2003-10-31  Jim Meyering  <jim@meyering.net>
41668
41669         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
41670
41671         * lib/linebuffer.c: Include <string.h> for declaration of memset.
41672
41673 2003-10-30  Paul Eggert  <eggert@twinsun.com>
41674             Bruno Haible  <bruno@clisp.org>
41675
41676         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
41677         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
41678
41679 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
41680
41681         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
41682         netbsd*-gnu*.  Suggested by Robert Millan.
41683
41684 2003-10-29  Paul Eggert  <eggert@twinsun.com>
41685
41686         * modules/group-member: Depend on stdbool.
41687
41688 2003-10-29  Paul Eggert  <eggert@twinsun.com>
41689
41690         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
41691
41692 2003-10-29  Paul Eggert  <eggert@twinsun.com>
41693
41694         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
41695         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
41696         after the 'gnu' in these cases.  This fixes some bugs in the
41697         previous change, and is based on suggestions by Robert Millan.
41698
41699 2003-10-29  Paul Eggert  <eggert@twinsun.com>
41700
41701         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
41702         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
41703         no longer needed.
41704         * lib/quotearg.c (quotearg_n_options): Use it.
41705         * lib/group-member.c: Include <stdbool.h>.
41706         (free_group_info): Arg is now const *; don't free arg.
41707         (get_group_info): Now returns bool and accepts struct group_info *,
41708         rather than returning a malloc'ed struct group_info *.
41709         All uses changed.  Check for overflow in internal size calculation.
41710
41711         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
41712         rather than xmalloc/xrealloc.
41713         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
41714         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
41715         conformance bug: the old code used a pointer after freeing the
41716         storage that it addressed.
41717         * lib/hash.c (hash_initialize): Simplify the code by using
41718         xalloc_oversized rather than doing it by hand.
41719         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
41720         the buffer preserved.  Use free and xmalloc instead.
41721         * lib/quotearg.c (quotearg_n_options): Likewise.
41722         Use a simpler test for size overflow.  Don't use xalloc_oversized
41723         because unsigned int might be wider than size_t (!); this suggests
41724         that we should switch from unsigned int to size_t for slot numbers.
41725
41726 2003-10-28  Paul Eggert  <eggert@twinsun.com>
41727
41728         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
41729         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
41730         NetBSD kernels.  Requested by Richard Stallman.
41731
41732 2003-10-27  Paul Eggert  <eggert@twinsun.com>
41733
41734         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
41735         to allocate the returned structure.  Do not allocate a subarray,
41736         as x2nrealloc will do that.
41737         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
41738         instead of xnrealloc.
41739         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
41740
41741 2003-10-27  Bruno Haible  <bruno@clisp.org>
41742
41743         * lib/stdbool_.h: Better support for BeOS.
41744
41745 2003-10-26  Paul Eggert  <eggert@twinsun.com>
41746
41747         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
41748         now uses inline.
41749
41750 2003-10-26  Paul Eggert  <eggert@twinsun.com>
41751
41752         * lib/xalloc.h (xalloc_oversized): New static inline function, for
41753         callers that want to do their own size-overflow checking.  Include
41754         <stdbool.h>, since xalloc_oversized returns bool.
41755         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
41756         to use xalloc_oversized.
41757
41758         Add two functions x2realloc, x2nrealloc, for programs that grow
41759         arrays dynamically by doubling their sizes.
41760         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
41761         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
41762         New functions.
41763
41764         Port to C99 semantics for 'inline' of external functions.
41765         Bug reported by Bruno Haible.
41766         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
41767         with the old contents of xnmalloc.
41768         (xnmalloc, xmalloc): Use it.
41769         (xnrealloc_inline): New static inline function,
41770         with the old contents of xnrealloc.
41771         (xnrealloc, xrealloc): Use it.
41772
41773         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
41774         that.
41775
41776 2003-10-26  Karl Berry  <karl@gnu.org>
41777
41778         * config/srclist.txt (COPYING.DOC): no longer available from
41779         /gd/gnuorg; don't know where the ultimate source is.
41780
41781 2003-10-25  Paul Eggert  <eggert@twinsun.com>
41782
41783         Fix several address-calculation bugs in the hash modules,
41784         plus some minor code cleanup.
41785
41786         * lib/hash.h: Include <stdbool.h>, for bool.
41787         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
41788         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
41789         hash_get_n_entries, hash_get_max_bucket_length,
41790         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
41791         hash_rehash): Use size_t rather than unsigned.
41792         * lib/hash.c (struct hash_table, hash_get_n_buckets,
41793         hash_get_n_buckets_used, hash_get_n_entries,
41794         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
41795         hash_get_entries, hash_do_for_each, hash_string, is_prime,
41796         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
41797         Likewise.
41798         (SIZE_MAX): Define if not defined.
41799         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
41800         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
41801         hash_print):
41802         Use const * when possible.
41803         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
41804         (check_tuning): Fix bug: if tuning parameters were very close to
41805         0 or 1, rounding errors could have caused subscript violations.
41806         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
41807         (hash_initialize): Add 'fail:' label
41808         to free table and return NULL, and use it to simplify code.
41809         Use calloc rather than clearing the storage ourself.
41810         (hash_initialize, hash_rehash): Check for arithmetic overflow in
41811         buffer size calculations.
41812         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
41813         Include <stddef.h>, for size_t.
41814         * lib/hash-pjw.c (hash_pjw): Likewise.
41815         Switch to method described by Bruno Haible.
41816         Include <limits.h>, for CHAR_BIT.
41817         (SIZE_BITS): New macro.
41818
41819 2003-10-23  Paul Eggert  <eggert@twinsun.com>
41820
41821         * m4/getline.m4 (AM_FUNC_GETLINE):
41822         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
41823         hosts.  Problem reported by Derek Robert Price in
41824         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
41825         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
41826         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
41827
41828 2003-10-21  Paul Eggert  <eggert@twinsun.com>
41829
41830         * lib/getndelim2.c (getndelim2): When size calculation overflows,
41831         ceiling the allocation at NMAX bytes rather than silently
41832         discarding input bytes before NMAX is reached.  This makes
41833         a difference only if NMAX exceeds SIZE_MAX / 2.
41834
41835         * lib/obstack.c: Merge from glibc.
41836         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
41837         Add libc_hidden_def (_obstack_newchunk).
41838         (_obstack_free) [! defined _LIBC]: Remove.
41839         [defined _LIBC]: Make a strong alias from obstack_free, rather than
41840         a clone of the function body.
41841         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
41842         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
41843
41844         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
41845         glibc.
41846         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
41847         arg to memcpy.
41848
41849         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
41850         (obstack_ptr_grow_fast, obstack_int_grow_fast):
41851         Don't use lvalue casts, as GCC plans to remove support for them
41852         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
41853         was also present in the non-GCC version, indicating that this
41854         code had always been buggy and had never been widely used.
41855         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
41856         Use the fast variant of each macro, rather than copying the
41857         definiens of the fast variant; that way, we'll be more likely to
41858         catch future bugs in the fast variants.
41859
41860 2003-10-20  Bruno Haible  <bruno@clisp.org>
41861
41862         * modules/wait-process: New file.
41863         * MODULES.html.sh (func_all_modules): Add wait-process.
41864
41865 2003-10-20  Bruno Haible  <bruno@clisp.org>
41866
41867         * m4/wait-process.m4: New file.
41868
41869 2003-10-20  Bruno Haible  <bruno@clisp.org>
41870
41871         * lib/wait-process.h: New file, from GNU gettext.
41872         * lib/wait-process.c: New file, from GNU gettext.
41873
41874 2003-10-19  Jim Meyering  <jim@meyering.net>
41875
41876         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
41877         HPUX 10.20.
41878
41879 2003-10-18  Karl Berry  <karl@gnu.org>
41880
41881         * config/config.guess: update from config.
41882
41883 2003-10-16  Paul Eggert  <eggert@twinsun.com>
41884
41885         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
41886         (getgroups): First arg is int, not size_t.
41887         Don't let 'free' mangle errno.
41888
41889 2003-10-16  Paul Eggert  <eggert@twinsun.com>
41890
41891         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
41892
41893 2003-10-16  Karl Berry  <karl@gnu.org>
41894
41895         * config/config.{guess,sub}: update from config.
41896
41897 2003-10-16  Jim Meyering  <jim@meyering.net>
41898
41899         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
41900         memcpy.
41901
41902 2003-10-15  Paul Eggert  <eggert@twinsun.com>
41903
41904         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
41905         (SIZE_MAX): Remove.
41906         (new_exclude, add_exclude_file): Initial size no longer needs to
41907         be a power of 2.
41908         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
41909         our own address arithmetic overflow checking.
41910
41911         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
41912         (fnmatch): Do not alloca more than 2000 wide characters;
41913         instead, use malloc for large buffers.
41914         Check for address arithmetic overflow, and return -1
41915         with errno set to ENOMEM in that case.
41916         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
41917         (NEW_PATTERN): Do not alloca more than 8000 bytes;
41918         instead, return -1.  Check for address arithmetic overflow.
41919
41920 2003-10-14  Paul Eggert  <eggert@twinsun.com>
41921
41922         Handle invalid suffixes and overflow independently, so that
41923         callers can treat them independently as needed.  Fix some bugs in
41924         suffix handling, e.g., "100k@" was not diagnosed as an invalid
41925         suffix for a human-readable blocksize.  The major caller-visible
41926         change is the addition of a new
41927         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
41928         that both overflow and suffix chars were found.
41929
41930         * lib/human.c (humblock): Don't check separately for invalid suffix
41931         char; that is xstrtoumax's job (now that its bug is fixed).
41932         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
41933         INTMAX_MAX]: New macros.
41934         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
41935         TYPE_MAXIMUM): New macros.
41936         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
41937         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
41938         if overflow occurs, as it's what __strtol does and it's more useful
41939         in practice.
41940         (__xstrtol): If __strtol reports some error other than ERANGE,
41941         reflect it to the caller as LONGINT_INVALID.  If it reports
41942         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
41943         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
41944         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
41945         value.
41946         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
41947         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
41948         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
41949         [defined UINTMAX_MAX]: New macros.
41950
41951 2003-10-14  Bruno Haible  <bruno@clisp.org>
41952
41953         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
41954
41955 2003-10-14  Bruno Haible  <bruno@clisp.org>
41956
41957         * m4/sig_atomic_t: New file, from GNU gettext.
41958         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
41959
41960 2003-10-14  Bruno Haible  <bruno@clisp.org>
41961
41962         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
41963         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
41964         Also use volatile where needed.
41965
41966 2003-10-12  Paul Eggert  <eggert@twinsun.com>
41967
41968         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
41969         Change maintainer from Bruno Haible to 'all'.
41970
41971 2003-10-12  Paul Eggert  <eggert@twinsun.com>
41972
41973         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
41974
41975 2003-10-12  Paul Eggert  <eggert@twinsun.com>
41976
41977         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
41978         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
41979         and define in terms of the other primitives.
41980         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
41981         (SIZE_MAX): Define if not already defined.
41982         (array_size_overflow): New function.
41983         (xalloc_die): Abort instead of exiting if 'error' returns.
41984         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
41985         (xmalloc, xrealloc): Use them.
41986         (xcalloc): Check for address arithmetic overflow.
41987         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
41988         a bit faster than strcpy.
41989
41990 2003-10-10  Simon Josefsson  <jas@extundo.com>
41991
41992         * modules/argp (Depends-on): Add restrict and strcase.
41993
41994 2003-10-10  Simon Josefsson  <jas@extundo.com>
41995
41996         * m4/argp.m4: Add AC_C_INLINE.
41997
41998 2003-10-08  Paul Eggert  <eggert@twinsun.com>
41999
42000         Merge getpass from libc, plus a few fixes.
42001
42002         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
42003         Include <stdbool.h>.
42004         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
42005         __fsetlocking to empty.
42006         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
42007         do include <bits/libc-lock.h>.
42008         Do not include <fcntl.h>; not needed.
42009         [_LIBC]: Include <wchar.h>.
42010         (NOTCANCEL_MODE): New macro.
42011         (flockfile, funlockfile) [_LIBC]: New macros.
42012         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
42013         [!_LIBC]: New macros.
42014         (call_fclose): New function.
42015         (getpass): Use it.  Save tty stream separately; this simplifies the
42016         code and makes it more reliable if stdin happens to equal stdout.
42017         Invoke __fsetlocking on tty.
42018         Handle thread cancellation if needed.
42019         Namespace cleanup (use __tcgetattr, __getline).
42020         Use bool for Booleans.
42021         [USE_IN_LIBIO]: Handle wide streams.
42022         [!_LIBC]: Unconditionally do the fseek, since we don't know what
42023         stream might go where.
42024
42025         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
42026         doesn't have to include <stdio.h> before us.
42027         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
42028         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
42029         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
42030         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
42031         if not declared, so that we can use getpass.c code from libc without
42032         rewriting it.
42033         (flockfile, ftrylockfile, funlockfile): New macros.
42034
42035 2003-10-08  Paul Eggert  <eggert@twinsun.com>
42036
42037         * modules/getpass: Depend on stdbool.
42038
42039 2003-10-08  Paul Eggert  <eggert@twinsun.com>
42040
42041         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
42042
42043 2003-10-07  Karl Berry  <karl@gnu.org>
42044
42045         * config/config.{guess,sub}: update from config.
42046
42047 2003-10-06  Jim Meyering  <jim@meyering.net>
42048             Bruno Haible  <bruno@clisp.org>
42049
42050         This lets translators provide better translations for the
42051         "Written by ..." part of --version output.
42052         * lib/version-etc.h: Include stdarg.h.
42053         (version_etc_copyright): Declare as readonly.
42054         (version_etc): Make this function variadic with a NULL-terminated list
42055         of author name strings.
42056         (version_etc_va): New declaration.
42057         * lib/version-etc.c: Include stdarg.h, stdlib.h.
42058         (version_etc_copyright): Declare as readonly.
42059         (version_etc_va): New function. Provide a different translatable string
42060         for each possible number of authors < 10. Abbreviate when there are 10
42061         authors or more.
42062         (version_etc): Make this function variadic. Call version_etc_va.
42063         Suggestion from Gary V. Vaughan.
42064
42065         * lib/long-options.h (parse_long_options): Change prototype: the
42066         authors string is moved to the end and becomes variadic.
42067         * lib/long-options.c: Include stdarg.h.
42068         (parse_long_options): Make this function variadic, too.
42069         Call version_etc_va, not version_etc.
42070
42071 2003-10-06  Bruno Haible  <bruno@clisp.org>
42072
42073         * modules/version-etc-2: Remove file.
42074         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
42075
42076 2003-10-06  Bruno Haible  <bruno@clisp.org>
42077
42078         * modules/fatal-signal: New file.
42079         * MODULES.html.sh (func_all_modules): Add fatal-signal.
42080
42081 2003-10-06  Bruno Haible  <bruno@clisp.org>
42082
42083         * m4/fatal-signal.m4: New file.
42084         * m4/signalblocking.m4: New file, from GNU gettext.
42085
42086 2003-10-06  Bruno Haible  <bruno@clisp.org>
42087
42088         * lib/version-etc-2.h: Remove file.
42089         * lib/version-etc-2.c: Remove file.
42090
42091 2003-10-06  Bruno Haible  <bruno@clisp.org>
42092
42093         * lib/fatal-signal.h: New file, from GNU gettext.
42094         * lib/fatal-signal.c: New file, from GNU gettext.
42095
42096 2003-10-05  Paul Eggert  <eggert@twinsun.com>
42097
42098         * README: Rework advice for preventing empty .o files.
42099         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
42100         not <sys/types.h>.
42101
42102 2003-10-04  Karl Berry  <karl@gnu.org>
42103
42104         * lib/argp*: update from libc.
42105
42106 2003-10-04  Karl Berry  <karl@gnu.org>
42107
42108         * config/config.{guess,sub}: update from config.
42109
42110 2003-10-02  Bruno Haible  <bruno@clisp.org>
42111
42112         * modules/lchown (Include): Add lchown.h.
42113         * modules/time_r (Include): Use "..." syntax.
42114         * modules/xgetdomainname (Include): Add xgetdomainname.h.
42115
42116 2003-10-01  Simon Josefsson  <jas@extundo.com>
42117
42118         * MODULES.html.sh (func_all_modules): Move gethostname from section
42119         'based on' to section 'lacking' POSIX:2001.
42120
42121 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
42122
42123         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
42124         to output mode on the same stream.
42125
42126 2003-09-29  Paul Eggert  <eggert@twinsun.com>
42127
42128         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
42129         Fix arg typo in previous patch.
42130
42131 2003-09-28  Jim Meyering  <jim@meyering.net>
42132
42133         * lib/error.c: Correct cpp indentation.
42134
42135 2003-09-27  Paul Eggert  <eggert@twinsun.com>
42136
42137         * modules/free: New file.
42138
42139 2003-09-27  Paul Eggert  <eggert@twinsun.com>
42140
42141         * m4/free.m4: New file.
42142
42143 2003-09-27  Paul Eggert  <eggert@twinsun.com>
42144
42145         * lib/minmax.h (MIN, MAX)
42146         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
42147         Omit the special code that used __typeof__, since we worry that
42148         it could be more trouble than it's worth.  See:
42149         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
42150         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
42151
42152         * lib/free.c: New file.
42153
42154 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
42155
42156         Trivial fixes to Makefile.am parts of module listings.
42157         * modules/strstr: Append strstr.h to lib_SOURCES.
42158         * modules/strcase: Likewise, for strcase.h.
42159
42160 2003-09-27  Karl Berry  <karl@gnu.org>
42161
42162         * config/mkinstalldirs: update from automake.
42163
42164 2003-09-26  Paul Eggert  <eggert@twinsun.com>
42165
42166         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
42167         (error_tail): Do not loop, reallocating temporary buffer, since
42168         the output cannot contain more wide characters than the input
42169         contains bytes, the size must be big enough already.  This avoids
42170         one potential size overflow calculation.  Check for size overflow
42171         when calculating temporary buffer size.  Free temporary buffer
42172         when done, if it was allocated with malloc; this plugs a memory
42173         leak.  Remove casts from void * to pointers, that are no longer
42174         needed now that we're assuming C89 or better.
42175
42176         Merge error changes from glibc.
42177
42178         * lib/error.c, error.h: Update copyright notice header to match glibc.
42179         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
42180         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
42181         Disable cancellation while printing error.
42182         * lib/error.h: Prepend __ to parameter names.
42183
42184 2003-09-26  Jim Meyering  <jim@meyering.net>
42185
42186         * lib/error.c (error_tail): Move some declarations
42187         into inner scope where the local variables are used.
42188
42189 2003-09-26  Bruno Haible  <bruno@clisp.org>
42190
42191         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
42192         stpncpy().
42193         Don't define stpncpy through config.h; it's now done through stpncpy.h.
42194
42195 2003-09-26  Bruno Haible  <bruno@clisp.org>
42196
42197         * lib/stpncpy.h (gnu_stpncpy): New declaration.
42198         (stpncpy): Define as alias for gnu_stpncpy.
42199         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
42200
42201 2003-09-25  Simon Josefsson  <jas@extundo.com>
42202
42203         * lib/xgetdomainname.h: New file.
42204         * lib/xgetdomainname.c: New file.
42205
42206 2003-09-25  Simon Josefsson  <jas@extundo.com>
42207             Bruno Haible  <bruno@clisp.org>
42208
42209         * modules/getdomainname: New file.
42210         * modules/xgetdomainname: New file.
42211         * MODULES.html.sh (func_all_modules): Add getdomainname,
42212         xgetdomainname.
42213
42214 2003-09-25  Simon Josefsson  <jas@extundo.com>
42215             Bruno Haible  <bruno@clisp.org>
42216
42217         * m4/getdomainname.m4: New file.
42218
42219 2003-09-25  Simon Josefsson  <jas@extundo.com>
42220             Bruno Haible  <bruno@clisp.org>
42221
42222         * lib/getdomainname.h: New file.
42223         * lib/getdomainname.c: New file.
42224
42225 2003-09-25  Karl Berry  <karl@gnu.org>
42226
42227         * lib/argp-fmtstream.c, argp-help.c: update from libc.
42228
42229 2003-09-25  Karl Berry  <karl@gnu.org>
42230
42231         * config/install-sh: update from automake.
42232
42233 2003-09-25  Bruno Haible  <bruno@clisp.org>
42234
42235         * modules/version-etc-2: New file, from modules/version-etc with
42236         modifications.
42237         * MODULES.html.sh (func_all_modules): Add version-etc-2.
42238
42239 2003-09-25  Bruno Haible  <bruno@clisp.org>
42240
42241         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
42242         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
42243
42244 2003-09-24  Simon Josefsson  <jas@extundo.com>
42245
42246         * modules/xgethostname: Add xgethostname.h.
42247
42248 2003-09-24  Paul Eggert  <eggert@twinsun.com>
42249
42250         * lib/linebuffer.c (freebuffer): Don't free the argument, just
42251         the buffer associated with the argument.  Bug reported by
42252         Simon Josefsson.
42253
42254 2003-09-24  Paul Eggert  <eggert@twinsun.com>
42255
42256         * README: Document assumptions that 'int' is at least 32 bits
42257         wide, that integer arithmetic is 2's complement without overflow,
42258         that there are no holes in integer values, that adding sizes of
42259         two nonoverlapping objects can't overflow, and that all-bits-zero
42260         yields scalar zero.  Fix spelling and capitalization typos.
42261
42262 2003-09-19  Karl Berry  <karl@gnu.org>
42263
42264         * lib/argp.h: update from libc.
42265
42266 2003-09-17  Paul Eggert  <eggert@twinsun.com>
42267
42268         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
42269         to avoid spurious warnings like "AC_RUN_IFELSE was called before
42270         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
42271
42272 2003-09-17  Paul Eggert  <eggert@twinsun.com>
42273
42274         * gnulib-tool: Use "test -h", not "test -L", for portability
42275         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
42276         (tags_regexp): Remove, since \| doesn't conform to POSIX.
42277         (sed_extract_prog): Issue s commands one-by-one, rather than
42278         using \| in one s command.
42279
42280 2003-09-16  Paul Eggert  <eggert@twinsun.com>
42281
42282         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
42283         input error, instead of returning NULL the next time we are called
42284         (and therefore losing track of errno).
42285
42286 2003-09-16  Bruno Haible  <bruno@clisp.org>
42287
42288         * gnulib-tool (func_create_testdir): Warn about duplicated
42289         dependencies.
42290
42291 2003-09-15  Paul Eggert  <eggert@twinsun.com>
42292
42293         * modules/argmatch, modules/fatal, modules/obstack,
42294         modules/xalloc, modules/xgethostname: Sort dependencies by
42295         importance, not alphabetically.
42296
42297 2003-09-15  Paul Eggert  <eggert@twinsun.com>
42298
42299         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
42300         fails, so that the caller gets the proper errno.
42301
42302         * lib/readutmp.c (read_utmp): Likewise.
42303         Check for fstat error.  Close stream and free storage
42304         when failing.
42305
42306 2003-09-14  Karl Berry  <karl@gnu.org>
42307
42308         * config/srclist.txt (strdup.c): disable for c89 changes.
42309
42310 2003-09-14  Jim Meyering  <jim@meyering.net>
42311
42312         * lib/getloadavg.c: Correct cpp indentation.
42313         * lib/strdup.c: Likewise.
42314         * lib/vasnprintf.c: Likewise.
42315
42316 2003-09-14  Bruno Haible  <bruno@clisp.org>
42317
42318         * modules/fwriteerror: New file.
42319         * MODULES.html.sh (func_all_modules): Add fwriteerror.
42320
42321 2003-09-14  Bruno Haible  <bruno@clisp.org>
42322
42323         * lib/fwriteerror.h: New file.
42324         * lib/fwriteerror.c: New file.
42325
42326 2003-09-12  Paul Eggert  <eggert@twinsun.com>
42327
42328         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
42329         modules/xgethostname, modules/xalloc: Depend on exit.
42330
42331 2003-09-12  Paul Eggert  <eggert@twinsun.com>
42332
42333         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
42334
42335         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
42336         and AC_MINIX, too, so that their extensions are available.
42337
42338         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
42339         This macro has been superseded by gl_BACKUPFILE.
42340
42341         More patches to assume C89 or better.
42342
42343         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
42344
42345         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
42346         unconditionally.
42347         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
42348         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
42349         Include <string.h>, <stdlib.h> unconditionally.
42350         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
42351         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
42352         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
42353         headers or for string.h.
42354         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
42355         or strtoul.
42356
42357         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
42358         headers.
42359         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
42360         * m4/userspec.m4 (gl_USERSPEC): Likewise.
42361         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
42362         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
42363         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42364         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
42365         memcpy, memset.
42366         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
42367         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
42368         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
42369         strtol.
42370         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
42371         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
42372         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
42373         strtoul.
42374
42375 2003-09-12  Paul Eggert  <eggert@twinsun.com>
42376
42377         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
42378         * lib/obstack.c [!defined _LIBC]: Likewise.
42379         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
42380         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
42381         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
42382
42383         More changes to assume C89 or better.
42384
42385         * lib/error.c (error_tail): Assume vprintf.
42386
42387         * lib/argmatch.c (getenv): Remove decl.
42388         * lib/progreloc.c (get_full_program_name): Define via prototype.
42389         * lib/setenv.c (clearenv): Likewise.
42390         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
42391         needed.
42392         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
42393         (malloc, memcpy): Remove decls.
42394         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
42395         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
42396         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
42397         (memcpy): Remove macro.
42398         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
42399         (__P): Remove.  All uses removed.
42400         (PTR): Remove.  All uses changed to void *.
42401         (CHAR_BIT, NULL): Remove.
42402         (spaces, zeros, memset_space, memset_zero)
42403         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
42404         Remove.
42405         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
42406         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
42407         Define with prototype.
42408         Remove now-unnecessary prototype decl.
42409         (extra_args_spec): Assume ANSI C.  All uses changed.
42410         (extra_args_spec_iso): Remove.
42411         (my_strftime, emacs_strftimeu): Define via prototype.
42412         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
42413         unconditionally.
42414         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
42415         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
42416         (strtoul, strtol): Remove decls.
42417         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
42418         LONG_MAX): Remove.
42419         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
42420         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
42421         (LOCALE_PARAM_PROTO): New macro.
42422         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
42423         (INTERNAL (strtol), strtol): Define with a prototype.
42424         (PARAMS): Remove.  All uses removed.
42425         * lib/tempname.c: Include <string.h> unconditionally.
42426         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
42427         * lib/xgethostname.c (main): Define with a prototype.
42428         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
42429         Include <stdlib.h> unconditionally.
42430         (calloc, malloc, realloc, free): Remove decls.
42431         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
42432         Include <stdlib.h> unconditionally.  Sort include file names.
42433         (strtod): Remove.
42434         (xstrtod): Define with a prototype.
42435         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
42436         (strtol, strtoul): Remove decls.
42437
42438 2003-09-11  Paul Eggert  <eggert@twinsun.com>
42439
42440         More patches to assume C89 or better.
42441         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
42442         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
42443         string.h, memchr, STDC_HEADERS.
42444
42445 2003-09-11  Paul Eggert  <eggert@twinsun.com>
42446
42447         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
42448         Include <stdlib.h>, <string.h> unconditionally.
42449         Remove now-unnecessary cast to char *.
42450         * lib/strnlen.c: Include <string.h> unconditionally.
42451         * lib/yesno.c (yesno): Define with a prototype.
42452
42453 2003-09-11  Bruno Haible  <bruno@clisp.org>
42454
42455         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
42456
42457 2003-09-10  Jim Meyering  <jim@meyering.net>
42458
42459         * lib/error.c: Correct indentation of cpp directives.
42460
42461 2003-09-10  Bruno Haible  <bruno@clisp.org>
42462
42463         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
42464         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
42465         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
42466         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
42467         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
42468         <stdlib.h> and <string.h> checks.
42469         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
42470         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
42471
42472 2003-09-10  Bruno Haible  <bruno@clisp.org>
42473
42474         * lib/strcspn.c: Include <string.h> unconditionally.
42475         * lib/strpbrk.c: Include <string.h> unconditionally.
42476         * lib/strstr.c: Include <string.h> unconditionally.
42477         * lib/unicodeio.c: Include <string.h> unconditionally.
42478         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
42479         * lib/unsetenv.c: Likewise.
42480         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
42481         * lib/yesno.c: Include <stdlib.h> unconditionally.
42482         (rpmatch): Add prototype.
42483
42484 2003-09-09  Paul Eggert  <eggert@twinsun.com>
42485
42486         More patches to assume C89 or better.
42487         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
42488         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
42489         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
42490         or for string.h.
42491         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
42492         stdlib.h.
42493         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
42494         C headers.
42495         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
42496         string.h.
42497         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
42498         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
42499         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
42500         or for string.h.
42501         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
42502         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
42503         C headers.
42504         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
42505         memcpy.
42506         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
42507         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
42508         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
42509         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
42510         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
42511         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
42512         string.h, free.
42513         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
42514         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
42515         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
42516         C headers, or for string.h.
42517         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
42518         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
42519         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
42520         headers, memory.h, stdlib.h, string.h, strings.h.
42521         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
42522         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
42523         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
42524         strchr.
42525         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
42526         headers, memory.h, string.h.
42527         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
42528         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
42529         free.
42530         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
42531         headers.
42532         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
42533         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
42534         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
42535         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
42536         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
42537
42538 2003-09-09  Paul Eggert  <eggert@twinsun.com>
42539
42540         More K&R removal.
42541
42542         * lib/acosl.c (main): Use a prototype.
42543         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
42544         tanl.c: Likewise.
42545
42546         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
42547
42548         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
42549         (getopt, etopt_long, getopt_long_only, _getopt_internal)
42550         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
42551         with a prototype.
42552         * lib/getopt.c (const): Remove macro.
42553         Include <string.h> unconditionally.
42554         (my_index): Remove; all uses changed to strchr.
42555         (strlen): Remove decl.
42556         (exchange): Remove forward decl; no longer needed.
42557         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
42558         Define with prototype.
42559         * lib/getopt1.c (const): Remove macro.
42560         (getopt_long, getopt_long_only, main): Define with prototype.
42561
42562         * lib/getugroups.c: Include <string.h> unconditionally.
42563
42564         * lib/getusershell.c: Include <stdlib.h> unconditionally.
42565         (getusershell, setusershell, endusershell, readname, main):
42566         Define with prototypes.
42567
42568         * lib/group-member.c: Include group-member.h first.
42569         Include <stdlib.h> unconditionally.
42570
42571         * lib/hard-locale.c: Include hard-locale.h first.
42572         Include <stdlib.h>, <string.h> unconditionally.
42573
42574         * lib/hash.c (free, malloc): Remove decls.
42575         Include <stdlib.h> unconditionally.
42576
42577         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
42578         (getenv): Do not declare.
42579
42580         * lib/idcache.c: Include <string.h> unconditionally.
42581
42582         * lib/long-options.c: Include long-options.h first, to test interface.
42583         Include <stdlib.h> unconditionally.
42584
42585         * lib/makepath.c: Include makepath.h first, to test interface.
42586         Include <stdlib.h> and <string.h> unconditionally.
42587
42588         * lib/linebuffer.c: Include <stdlib.h>.
42589         (free): Remove decl.
42590
42591         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
42592         stddef.h. rpl_malloc returns void *, not char *.
42593         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
42594         prototype.
42595
42596         * lib/md5.h: Include <limits.h> unconditionally.
42597         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
42598         (__P): Remove; all uses removed.
42599         * lib/md5.c: Include "md5.h" first.
42600         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
42601         md5_buffer, md5_process_bytes, md5_process_block):
42602         Define with prototypes.
42603         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
42604         * lib/sha.c: Include "sha.h" first.
42605         Include <stdlib.h>, <string.h> unconditionally.
42606
42607         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
42608         * lib/memcmp.c (__ptr_t): Likewise.
42609         * lib/memrchr.c (__ptr_t): Likewise.
42610         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
42611         Include <string.h> unconditionally.
42612         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
42613         * lib/memchr.c: Include <stdlib.h> unconditionally.
42614         * lib/memchr.c (LONG_MAX): Remove.
42615         * lib/memrchr.c (LONG_MAX): Likewise.
42616         * lib/memchr.c (__memchr): Define via a prototype.
42617         * lib/memrchr.c (__memrchr): Likewise.
42618         * lib/memcmp.c (__P): Remove, and remove all uses.
42619         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
42620         Remove forward decls; no longer needed.
42621         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
42622         Use types required by C89 in prototype.
42623
42624         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
42625         * lib/savedir.c: Likewise.
42626         * lib/mkdir.c (free): Remove decl.
42627         * lib/rmdir.c (rmdir): Define with a prototype.
42628         * lib/savedir.c: Include savedir.h first, to test interface.
42629
42630         * lib/mktime.c (STDC_HEADERS): Remove.
42631         Include <stdlib.h>, <string.h> unconditionally.
42632
42633         * lib/modechange.c: Include <stdlib.h> unconditionally.
42634         (malloc): Remove decl.
42635
42636         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
42637         (free): Remove decl.
42638
42639         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
42640         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
42641         (This type really should be intptr_t, but that's a C99ism.)
42642         (_obstack_memcpy): Remove: all uses changed to memcpy.
42643         Include <string.h> unconditionally.
42644         (struct obstack): Assume __STDC__ for types of members
42645         chunkfun, freefun, extra_arg.
42646         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
42647         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
42648         obstack_begin, obstack_specify_allocation,
42649         obstack_specify_allocation_with_arg, obstack_chunkfun,
42650         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
42651         Remove unprototyped decls and the macros that use them.
42652         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
42653         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
42654         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
42655         (defined __STDC__ && __STDC__)]:
42656         Remove nonprototyped code.
42657         Include <stdlib.h> unconditionally.
42658         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
42659         _obstack_allocated_p, _obstack_free, obstack_free,
42660         _obstack_memory_used, print_and_abort):
42661         Define using prototypes.
42662         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
42663         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
42664         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
42665         obstack_next_free, obstack_object_size, obstack_room) [0]:
42666         Remove unused, unprototyped code.
42667
42668         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
42669
42670         * lib/physmem.c (physmem_total, physmem_available, main): Define
42671         with prototypes.
42672
42673         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
42674         (main): Define with a prototype.
42675
42676         * lib/posixver.c (getenv): Remove decl.
42677
42678         * lib/putenv.c (malloc): Returns void *, not char *.
42679         Include <string.h> unconditionally.
42680         (strchr, memcpy, NULL): Do not define.
42681
42682         * lib/readtokens.c: Include readtokens.h first, to test interface.
42683         Include <stdlib.h>, <string.h> unconditionally.
42684         (init_tokenbuffer): Define with a prototype.
42685
42686         * lib/regex.c (PARAMS): Remove.  All uses removed.
42687         All uses of _RE_ARGS removed, too.
42688         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
42689         unconditionally.
42690         (bzero): Assume memset exists.
42691         (memcmp, memcpy, NULL): Remove.
42692         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
42693         char, or assignments to local vars of type signed char.
42694         (init_syntax_once, PREFIX(extract_number_and_incr),
42695         PREFIX(print_partial_compiled_pattern),
42696         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
42697         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
42698         PREFIX(regex_grow_registers), PREFIX(regex_compile),
42699         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
42700         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
42701         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
42702         wcs_compile_range, byte_compile_range, truncate_wchar,
42703         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
42704         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
42705         count_mbs_length, wcs_re_match_2_internal,
42706         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
42707         PREFIX(alt_match_null_string_p),
42708         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
42709         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
42710         regfree, PREFIX(extract_number)): Define with prototype.  Remove
42711         now-unnecessary declaration, if any.
42712         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
42713         regcomp, regexec):
42714         Remove now-unnecessary casts among pointer types.
42715         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
42716
42717         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
42718         (free): Remove decl.
42719
42720         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
42721
42722         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
42723         (free): Remove decl.
42724
42725         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
42726         * lib/xgetcwd.c: Likewise.
42727
42728         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
42729         (free): Remove decl.
42730
42731         * lib/strchrnul.c (strchrnul): Define with a prototype.
42732         Fix bug: c_in was not converted to char before searching.
42733
42734         The following changes are not K&R related:
42735
42736         * lib/group-member.h: Include <sys/types.h>, so that this file is
42737         self-contained.
42738         * lib/makepath.h: Likewise.
42739
42740         * lib/getusershell.c (readname, default_index, line_size, readname):
42741         Use size_t, not int, for sizes.
42742         (readname): If the size overflows, report an error instead of
42743         looping forever.
42744
42745 2003-09-09  Paul Eggert  <eggert@twinsun.com>
42746
42747         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
42748         libc.
42749
42750 2003-09-09  Paul Eggert  <eggert@twinsun.com>
42751
42752         * README: New section: portability guidelines.
42753
42754 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
42755
42756         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
42757         C89 spec.
42758
42759 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
42760
42761         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
42762
42763 2003-09-08  Paul Eggert  <eggert@twinsun.com>
42764
42765         Assume C89 or better; remove K&R cruft.
42766         A few of these changes were first proposed by Derek Robert Price
42767         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
42768
42769         * lib/addext.c: Include <string.h> unconditionally.
42770         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
42771         Don't declare getenv or malloc.
42772
42773         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
42774         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
42775         (NULL): Remove.
42776         (find_stack_direction, alloca): Use prototypes.
42777
42778         * lib/atexit.c (atexit): Define using a prototype.
42779
42780         * lib/basename.c, dirname.c, stripslash.c:
42781         Include <string.h> unconditionally.
42782
42783         * lib/bcopy.c: Include <stddef.h>.
42784         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
42785
42786         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
42787
42788         * lib/error.h (error, error_at_line, error_print_progname)
42789         [! (defined (__STDC__) && __STDC__)]: Remove decls.
42790         * lib/error.c: Include error.h first, to check interface.
42791         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
42792         (VA_START): Remove; all uses changeed to va_start.
42793         (exit, strerror): Remove decls.
42794         (error_print_progname): Prototype uncondionally.
42795         Don't include <errno.h>; no longer needed.
42796         (private_strerror): Remove.
42797         (error_tail): Always define.
42798         (error, error_at_line): Assume C89 or better; always use prototypes.
42799         * lib/fatal.c: Include "fatal.h" first, to test interface.
42800         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
42801         (VA_START): Remove; all uses changed to va_start.
42802         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
42803         this case.
42804         (exit): Remove decl.
42805         (fatal): Prototype unconditionally.  Assume va_start works.
42806         Abort at end, to pacify gcc.
42807
42808         * lib/euidaccess.c (main): Define with a prototype.
42809
42810         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
42811
42812         * lib/exitfail.c: Include <stdlib.h> unconditionally.
42813
42814         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
42815         prototypes.
42816         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
42817         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
42818         (getenv): Remove decl.
42819         (fnmatch): Define using a prototype.
42820         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
42821         (FCT): Define using a prototype.
42822
42823         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
42824
42825         * lib/gethostname.c: Include <stddef.h>.
42826         (gethostname): Define with prototype.  Length is size_t, not int.
42827
42828 2003-09-08  Paul Eggert  <eggert@twinsun.com>
42829
42830         Assume C89 or better; remove K&R cruft.
42831         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
42832         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
42833         string.h, getenv, malloc.
42834         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
42835         headers.
42836         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
42837         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
42838         do not check for strerror.
42839         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
42840         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
42841         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
42842         do not check for doprnt or vprintf.
42843         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
42844         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
42845
42846 2003-09-08  Paul Eggert  <eggert@twinsun.com>
42847
42848         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
42849         getversion.c should have been removed then, but was accidentally
42850         preserved.
42851
42852         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
42853         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
42854
42855 2003-09-08  Karl Berry  <karl@gnu.org>
42856
42857         * config/config.sub, config.guess, srclistvars.sh: update from savannah
42858                 config, forget about prep.
42859
42860         * config/depcomp, missing: update from automake.
42861
42862 2003-09-07  Paul Eggert  <eggert@twinsun.com>
42863
42864         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
42865         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
42866
42867 2003-09-07  Paul Eggert  <eggert@twinsun.com>
42868
42869         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
42870         copy_tm_result.  Bug reported by Simon Josefsson in
42871         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
42872
42873 2003-09-06  Paul Eggert  <eggert@twinsun.com>
42874
42875         * m4/time_r.m4: New file.
42876         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
42877         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
42878         is. Check for timegm declaration.
42879         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
42880         Do not check for gmtime_r.
42881         Replace mktime if __mktime_internal does not exist and if mktime
42882         hasn't been replaced already.
42883
42884 2003-09-06  Paul Eggert  <eggert@twinsun.com>
42885
42886         * lib/time_r.c, lib/time_r.h: New files.
42887
42888         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
42889         __localtime_r.
42890         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
42891         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
42892
42893         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
42894         __gmtime_r.
42895         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
42896         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
42897         Include <time_r.h>.
42898
42899         * lib/timegm.c: Switch to glibc implementation, with the following
42900         changes:
42901         [defined HAVE_CONFIG_H]: Include <config.h>.
42902         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
42903         (__mktime_internal) [!defined _LIBC]: New decl.
42904         (__gmtime_r) [!defined _LIBC]: New macro and function.
42905         (timegm): Use a prototype, since gnulib assumes C89.
42906         Do not bother declaring tmp to be const, as it's not really usefu.
42907         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
42908         (timegm): Declare only if HAVE_DECL_TIMEGM.
42909
42910 2003-09-06  Paul Eggert  <eggert@twinsun.com>
42911
42912         * MODULES.html.sh (func_all_modules): Add time_r.
42913         * modules/time_r: New file.
42914         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
42915         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
42916
42917 2003-09-03  Paul Eggert  <eggert@twinsun.com>
42918
42919         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
42920         Bug reported by Lute Kamstra in
42921         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
42922
42923         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
42924         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
42925         course with correspondingly smaller numbers for tomorrow and
42926         yesterday.  From Tadayoshi Funaba.  Originally installed into
42927         sh-utils on 1999-08-07, but the patch got lost (I guess during the
42928         coreutils merge?).
42929
42930 2003-08-31  Simon Josefsson  <jas@extundo.com>
42931
42932         * modules/timegm: New file.
42933         * MODULES.html.sh (func_all_modules): Add timegm.
42934
42935 2003-08-31  Simon Josefsson  <jas@extundo.com>
42936
42937         * m4/timegm.m4: New file.
42938
42939 2003-08-31  Simon Josefsson  <jas@extundo.com>
42940
42941         * lib/timegm.h: New file.
42942         * lib/timegm.c: New file.  Based on
42943         wget-1.8.2/src/http.c:mktime_from_utc.
42944
42945 2003-08-31  Karl Berry  <karl@gnu.org>
42946
42947         * lib/argp.h: update from libc.
42948
42949 2003-08-28  Bruno Haible  <bruno@clisp.org>
42950
42951         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
42952         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
42953         followed by '#define fnmatch fnmatch_posix' gives an error.
42954
42955 2003-08-28  Bruno Haible  <bruno@clisp.org>
42956
42957         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
42958         warning on QNX, which defines O_BINARY to 000000.
42959
42960 2003-08-27  Jim Meyering  <jim@meyering.net>
42961
42962         * m4/mkstemp.m4: Require that the system mkstemp be able to create
42963         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
42964         would fail after 32.  Reported by Danny Levinson.  Details here:
42965         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
42966
42967 2003-08-24  Bruno Haible  <bruno@clisp.org>
42968
42969         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
42970         MSVC7 <stdio.h> is included later.
42971
42972 2003-08-22  Simon Josefsson  <jas@extundo.com>
42973
42974         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
42975
42976 2003-08-20  Karl Berry  <karl@gnu.org>
42977
42978         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
42979
42980 2003-08-20  Bruno Haible  <bruno@clisp.org>
42981
42982         * modules/progname: New file.
42983         * MODULES.html.sh (func_all_modules): Add progname.
42984
42985 2003-08-20  Bruno Haible  <bruno@clisp.org>
42986
42987         * lib/progname.h: New file, from GNU gettext.
42988         * lib/progname.c: New file, from GNU gettext.
42989         * lib/progreloc.c: New file, from GNU gettext.
42990
42991 2003-08-19  Jim Meyering  <jim@meyering.net>
42992
42993         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
42994         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
42995
42996 2003-08-19  Bruno Haible  <bruno@clisp.org>
42997
42998         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
42999         more.
43000
43001 2003-08-19  Bruno Haible  <bruno@clisp.org>
43002
43003         * lib/xstrdup.c: Assume <string.h> exists.
43004
43005 2003-08-18  Paul Eggert  <eggert@twinsun.com>
43006
43007         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
43008         in makefile rules.
43009
43010 2003-08-18  Jim Meyering  <jim@meyering.net>
43011
43012         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
43013         * m4/lib-ld.m4: Likewise.
43014
43015 2003-08-18  Jim Meyering  <jim@meyering.net>
43016
43017         * lib/setenv.h: Indent nested cpp directive.
43018         * lib/vasnprintf.c: Remove trailing blanks.
43019
43020 2003-08-17  Simon Josefsson  <jas@extundo.com>
43021
43022         * modules/xstrndup: New file.
43023         * MODULES.html.sh (func_all_modules): Add xstrndup.
43024
43025 2003-08-17  Simon Josefsson  <jas@extundo.com>
43026
43027         * modules/argp: Fix autoconf macro name. Add more dependencies.
43028
43029 2003-08-17  Simon Josefsson  <jas@extundo.com>
43030
43031         * m4/xstrndup.m4: New file.
43032
43033 2003-08-17  Simon Josefsson  <jas@extundo.com>
43034
43035         * m4/argp.m4: New file.
43036
43037 2003-08-17  Simon Josefsson  <jas@extundo.com>
43038             Bruno Haible  <bruno@clisp.org>
43039
43040         * lib/xstrndup.h: New file.
43041         * lib/xstrndup.c: New file.
43042
43043 2003-08-17  Bruno Haible  <bruno@clisp.org>
43044
43045         * modules/strndup (Files, Include): Add lib/strndup.h.
43046
43047 2003-08-17  Bruno Haible  <bruno@clisp.org>
43048
43049         * modules/euidaccess (Files): Add lib/euidaccess.h.
43050
43051 2003-08-17  Bruno Haible  <bruno@clisp.org>
43052
43053         * lib/strndup.h: New file.
43054
43055 2003-08-17  Bruno Haible  <bruno@clisp.org>
43056
43057         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
43058         like AC_GNU_SOURCE.
43059         * modules/extensions (configure.ac): Comment out the invocation of
43060         gl_USE_SYSTEM_EXTENSIONS.
43061
43062 2003-08-16  Paul Eggert  <eggert@twinsun.com>
43063
43064         Merges from coreutils, etc.
43065         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
43066         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
43067         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
43068         fixing a typo.
43069         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
43070         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
43071
43072 2003-08-16  Paul Eggert  <eggert@twinsun.com>
43073
43074         Document merge from coreutils.
43075         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
43076         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
43077         * modules/utime: Add m4/utimes-null.m4.
43078
43079 2003-08-16  Paul Eggert  <eggert@twinsun.com>
43080
43081         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
43082         space, undoing this 2003-08-12 change:
43083         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
43084
43085 2003-08-16  Paul Eggert  <eggert@twinsun.com>
43086
43087         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
43088         strtoul.c from libc, undoing this 2003-08-12 change:
43089         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
43090
43091 2003-08-16  Jim Meyering  <jim@meyering.net>
43092
43093         Merges from coreutils.
43094         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
43095         prefix.  Adjust cache variables similarly.  Create 500 rather than
43096         just 300 files, to exercise bug on Darwin6.5, too.
43097         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
43098         $missing_dir.
43099         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
43100         AM_SYS_POSIX_TERMIOS.
43101         Reported by mkc@mathdogs.com.
43102         Also change use of $am_cv_sys_posix_termios
43103         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
43104         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
43105         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
43106         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
43107         in /proc/mounts until it finds one with matching device number.  This
43108         is unnecessary when the FILE argument *is* a mount point.  No stat call
43109         is necessary in that case.  So, disable the statvfs-testing code on
43110         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
43111         as RedHat bug# 84846.
43112         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
43113         to 1MB, so as not to render systems with no stack size limit (e.g.,
43114         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
43115         Include <unistd.h>.  On some systems,
43116         it is required for the definition of _SC_PAGESIZE.
43117
43118 2003-08-16  Jim Meyering  <jim@meyering.net>
43119
43120         Merge from coreutils.
43121         * lib/xstrtoimax.c: #else #if -> #elif.
43122         * lib/xstrtoumax.c: Likewise.
43123
43124 2003-08-16  Jim Meyering  <jim@meyering.net>
43125
43126         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
43127         * m4/utimes.m4: Removed.
43128         * m4/utimes-null.m4: Renamed from utimes.m4.
43129
43130         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
43131         to 1MB, so as not to render systems with no stack size limit (e.g.,
43132         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
43133         Include <unistd.h>.  On some systems,
43134         it is required for the definition of _SC_PAGESIZE.
43135
43136 2003-08-16  Jim Meyering  <jim@meyering.net>
43137         and Paul Eggert  <eggert@cs.ucla.edu>
43138
43139         Merges from coreutils, etc.
43140
43141         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
43142         using the latest version from cvs.  This avoids problems with #line
43143         directives using a vendor (Sun) compiler.
43144         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
43145         Don't set GETGROUPS_LIB here; now it's
43146         done via getgroups.m4's wrapper function.
43147         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
43148         rather than just in sh-util/configure.in, so that the
43149         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
43150         same.
43151         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
43152         AC_FUNC_GETLOADAVG where to find getloadavg.c.
43153         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
43154         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
43155         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
43156         Remove code that is now done by the newly-required macros.
43157         Append $(EXEEXT) to DF_PROG.
43158         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
43159         Do not invoke or require the following here,
43160         since prereq.m4 or some gnulib .m4 now does this for us:
43161         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
43162         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
43163         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
43164         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
43165         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
43166         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
43167         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
43168         AC_FUNC_OBSTACK.
43169         Do not replace the following functions, as this is now the job
43170         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
43171         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
43172         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
43173         atexit getpass, strdup, getpagesize.
43174         Replace 'raise'.
43175         Do not check for the following functions, as this is now the job
43176         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
43177         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
43178         setregid.
43179         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
43180         Check for sys/sysctl.h.
43181         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
43182         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
43183         of checking for ssize_t ourselves.
43184
43185         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
43186         Require every macro that gnulib/modules/* suggests for us.
43187         (jm_PREREQ_ADDEXT): New macro.
43188         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
43189         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
43190
43191         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
43192         (gl_PHYSMEM): Use it.
43193         Also check for `table' function.
43194         Check for new headers and functions.
43195         Add check for sys/sysmp.h.
43196         With suggestions from Kaveh Ghazi.
43197         Ignore headers that are present but cannot be compiled.  This
43198         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
43199         C 5.4.
43200
43201 2003-08-15  Paul Eggert  <eggert@twinsun.com>
43202
43203         Document merge from coreutils.
43204         * modules/userspec: Depend on posixver.
43205         * modules/strftime: Depend on tzset.
43206
43207 2003-08-15  Paul Eggert  <eggert@twinsun.com>
43208
43209         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
43210         rather than tab, after '#' in shell-script copyright notices.
43211         Suggested by Bruno Haible.
43212
43213 2003-08-15  Paul Eggert  <eggert@twinsun.com>
43214
43215         * config/srclist-update: Use three spaces, rather than tab, after '#'
43216         in shell-script copyright notices.  Suggested by Bruno Haible.
43217         Remove unnecessary parenthesization in regular expression.
43218
43219 2003-08-15  Jim Meyering  <jim@meyering.net>
43220
43221         Merge from coreutils.
43222         * lib/xgethostname.c: Include <stdlib.h>.
43223         (xghostname): Don't exit for anything other than memory-related
43224         failure; just return NULL.
43225         * lib/userspec.c: Include "posixver.h".
43226         (parse_user_spec): Accept `.' as a separator only
43227         in pre-POSIX-200112 mode.
43228         * lib/strtoimax.c: Use #elif rather than #else #if.
43229         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
43230         Remove function, now that we can rely on a working tzset function.
43231         [!_LIBC]: Ensure that the required autoconf test has been run.
43232         [!defined _NL_CURRENT && HAVE_STRFTIME]:
43233         Use underlying_strftime for %r.
43234         * lib/sha.c: Merge in some clean-up and optimization changes from
43235         glibc.
43236         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
43237         Ensure that it is a multiple of 64.
43238         Rearrange loop exit tests so as to avoid performing an
43239         additional fread after encountering an error or EOF.
43240         * lib/realloc.c: Update copyright date.
43241
43242 2003-08-15  Jim Meyering  <jim@meyering.net>
43243         and Paul Eggert  <eggert@twinsun.com>
43244
43245         Merge from coreutils.
43246         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
43247         member but strut utmpx does not.  Needed for AIX 4.3.3.
43248         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
43249
43250 2003-08-15  Jim Meyering  <jim@meyering.net>
43251         and Paul Eggert  <eggert@cs.ucla.edu>
43252
43253         Merges from coreutils, etc.
43254         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
43255         Require gl_FUNC_TZSET_CLOBBER.
43256         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
43257         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
43258         members.
43259
43260 2003-08-14  Paul Eggert  <eggert@twinsun.com>
43261
43262         Help the merge from coreutils.
43263         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
43264         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
43265         * m4/tzset.m4: Use it too.
43266
43267 2003-08-14  Paul Eggert  <eggert@twinsun.com>
43268
43269         * modules/tzset: New file.
43270
43271 2003-08-14  Jim Meyering  <jim@meyering.net>
43272
43273         Merges from coreutils.
43274         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
43275         variable names, rather than @FNMATCH_H@.
43276         * modules/alloca: Likewise for $(ALLOCA_H).
43277
43278         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
43279         the three copies of the literal target, `fnmatch.h'.
43280         * modules/alloca (alloca.h): Likewise.
43281
43282 2003-08-14  Jim Meyering  <jim@meyering.net>
43283
43284         Merge from coreutils.
43285         * m4/tzset.m4: New file.
43286         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
43287         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
43288         otherwise, AIX 5.1 systems would end up using the latter.
43289         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
43290         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
43291         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
43292         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
43293
43294 2003-08-14  Jim Meyering  <jim@meyering.net>
43295
43296         Merge from coreutils.
43297         * lib/obstack.h: Whitespace changes.
43298         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
43299         and xcalloc return values.
43300         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
43301         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
43302         hang on OSF/1 5.1 for DIR on both local and remote file systems.
43303         Reported by (and fix confirmed by) Nelson H. F. Beebe.
43304         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
43305         error from mntctl.
43306         Use mntctl's return value to drive the entry-processing loop, since
43307         we can't rely on the value of the vmt_length member in the last
43308         entry.  On some systems doing so could result in exhausting
43309         virtual memory.  Based in part on a patch from Mike Jetzer.
43310
43311 2003-08-14  Jim Meyering  <jim@meyering.net>
43312         and Paul Eggert  <eggert@twinsun.com>
43313
43314         Merges from coreutils, plus other fixes.
43315         * lib/physmem.c: Merge in portability changes from gcc/libiberty
43316         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
43317         for credits and details.  Thanks to Kaveh Ghazi for helping
43318         to keep these files in sync.
43319         (ARRAY_SIZE): Define it.
43320         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
43321         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
43322         (memcasecmp): Don't assume size_t fits in unsigned int.
43323         Remove casts and duplicate code.
43324         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
43325         (memcpy): Remove definition.
43326         Merge in some clean-up and optimization changes from glibc.
43327         [BLOCKSIZE]: Move definition to top of file.
43328         Ensure that it is a multiple of 64.
43329         Rearrange loop exit tests so as to avoid performing an
43330         additional fread after encountering an error or EOF.
43331         * lib/md5.h (md5_uintptr): Define.
43332         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
43333         return to the initial working directory.  Preserve errno
43334         for caller.
43335         * lib/idcache.c: Include "xalloc.h".
43336         (xmalloc, xrealloc): Remove decls.
43337         (getuser): Remove casts no longer required in C89.
43338         * lib/human.c: Include stdio.h, for sprintf.
43339         * lib/group-member.c: Include "xalloc.h".
43340         (xmalloc, xrealloc): Remove decls.
43341         (get_group_info): Remove casts no longer required in C89.
43342         * lib/getusershell.c (readname): Remove casts no longer required in
43343         C89.
43344         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
43345         * lib/getline.c: Whitespace fix, from coreutils.
43346
43347 2003-08-13  Paul Eggert  <eggert@twinsun.com>
43348
43349         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
43350         Check for isascii.
43351
43352         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
43353         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
43354         Undo previous (whitespace-only) change.
43355
43356 2003-08-13  Paul Eggert  <eggert@twinsun.com>
43357
43358         * lib/exclude.c: Include <ctype.h>
43359         (IN_CTYPE_DOMAIN): New macro.
43360         (is_space): New fn.
43361         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
43362         and empty lines.
43363
43364         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
43365         Undo previous (whitespace-only) change.
43366
43367 2003-08-13  Paul Eggert  <eggert@twinsun.com>
43368
43369         * config/srclist-update: Change update back to the old behavior,
43370         leaving whitespace alone.  Use one 'sed' command rather than a
43371         pipeline.
43372         (fixlicense): Now a variable, not a function.
43373         (remove_trailing_blanks): Remove.
43374         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
43375         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
43376         Undo previous (whitespace-only) change.
43377
43378 2003-08-12  Paul Eggert  <eggert@twinsun.com>
43379
43380         Merge from coreutils.
43381         * modules/euidaccess: Add lib_SOURCES, include for new
43382         file euidaccess.h
43383
43384 2003-08-12  Paul Eggert  <eggert@twinsun.com>
43385
43386         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
43387         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
43388         Normalize leading white space and remove trailing white space.
43389
43390         Merge from coreutils
43391         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
43392
43393         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
43394         0.12.1.  These files are now being upgraded automatically by
43395         ../config/srclist-update.
43396
43397 2003-08-12  Paul Eggert  <eggert@twinsun.com>
43398
43399         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
43400         Normalize leading white space and remove trailing white space.
43401         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
43402         notice, as per ../config/srclist-update.
43403
43404         Merge from coreutils.
43405         * lib/euidaccess.h: New file.
43406         * lib/euidaccess.c: Include it.
43407         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
43408         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
43409         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
43410
43411 2003-08-12  Paul Eggert  <eggert@twinsun.com>
43412
43413         * config/srclist-update: Add copyright notice.
43414         (remove_id_lines, remove_trailing_blanks): New constants.
43415         (fixfile): Use them to normalize spacing a bit in copied files.
43416         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
43417         Normalize leading white space and remove trailing white space.
43418
43419         * config/texinfo.tex: Sync with texinfo.
43420
43421         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
43422         strtoul.c from libc, to merge coreutils whitespace changes.
43423
43424         * config/srclist.txt: Get the following m4 files from gettext:
43425         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
43426         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
43427         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
43428         wint_t.m4.
43429
43430 2003-08-12  Karl Berry  <karl@gnu.org>
43431
43432         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
43433         been made.
43434
43435 2003-08-11  Paul Eggert  <eggert@twinsun.com>
43436
43437         * modules/gnu-source, m4/gnu-source.m4:
43438         Remove; we're assuming Autoconf 2.54 or later now.
43439         Suggested by Bruno Haible.
43440         * MODULES.html.sh (func_all_modules): Remove gnu-source.
43441
43442 2003-08-11  Bruno Haible  <bruno@clisp.org>
43443
43444         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
43445
43446 2003-08-11  Bruno Haible  <bruno@clisp.org>
43447
43448         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
43449         (vasnprintf): Use it instead of wcslen.
43450
43451 2003-08-11  Bruno Haible  <bruno@clisp.org>
43452
43453         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
43454         value to ensure that _Bool promotes to int. Use #define for _Bool when
43455         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
43456
43457 2003-08-10  Karl Berry  <karl@gnu.org>
43458
43459         * lib/regex.h: update from libc (whitespace fix).
43460
43461 2003-08-09  Paul Eggert  <eggert@twinsun.com>
43462
43463         Merge some files from coreutils.  These changes were
43464         originally made by Jim Meyering.
43465         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
43466         many older Unixes require this.
43467         * lib/alloca.c (alloca): Remove cast to argument of free;
43468         no longer needed in C89.
43469         * lib/alloca_.h, regex.h: Fix white space to match
43470         what GNU indent does.
43471
43472 2003-08-09  Paul Eggert  <eggert@twinsun.com>
43473
43474         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
43475         apparently Emacs's Unicode mode got confused before my 2003-08-05
43476         checkin.
43477
43478 2003-08-08  Paul Eggert  <eggert@twinsun.com>
43479
43480         * m4/extensions.m4: New file.
43481         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
43482         Require gl_USE_SYSTEM_EXTENSIONS.
43483         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
43484         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
43485
43486 2003-08-08  Paul Eggert  <eggert@twinsun.com>
43487
43488         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
43489         * modules/extensions, modules/gnu-source: New files.
43490         * modules/timespec, modules/unlocked-io: Depend on extensions.
43491
43492 2003-08-07  Paul Eggert  <eggert@twinsun.com>
43493
43494         * modules/restrict: New file.
43495         * MODULES.html.sh (func_all_modules): Add restrict.
43496         * modules/regex: Depend on restrict.
43497
43498 2003-08-07  Paul Eggert  <eggert@twinsun.com>
43499
43500         * m4/restrict.m4: New file.
43501         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
43502
43503 2003-08-07  Bruno Haible  <bruno@clisp.org>
43504
43505         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
43506         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
43507
43508 2003-08-07  Bruno Haible  <bruno@clisp.org>
43509
43510         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
43511         makes the module 'getndelim2' compatible with the module 'getline'.
43512
43513 2003-08-05  Paul Eggert  <eggert@twinsun.com>
43514
43515         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
43516         byte with "\201" to avoid glitches when editing that source file
43517         with multi-gnome-terminal.
43518
43519 2003-08-05  Paul Eggert  <eggert@twinsun.com>
43520
43521         * lib/bumpalloc.h: Remove.
43522
43523 2003-08-05  Paul Eggert  <eggert@twinsun.com>
43524
43525         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
43526         * modules/bumpalloc: Remove.
43527
43528 2003-08-04  Paul Eggert  <eggert@twinsun.com>
43529
43530         * lib/getloadavg.c: Change copyright notice and spacing to conform to
43531         GNU coding style.
43532
43533         Merge from coreutils.
43534         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
43535         1. From glibc.
43536         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
43537         from Karl Berry, implemented by Jim Meyering.
43538         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
43539         from Dmitry V. Levin.
43540         Remove anachronistic cast of xrealloc.
43541         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
43542         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
43543         type. Otherwise, it wouldn't compile with at least /bin/cc on
43544         ymp-cray-unicos9.0.2.X.
43545         Combine two mostly-identical uses of alloca into one.
43546         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
43547
43548 2003-08-04  Dave Love  <d.love@dl.ac.uk>
43549
43550         [From Emacs.]
43551
43552         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
43553         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
43554         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
43555         obsolete NLIST_NAME_UNION.
43556         [__GNU__]: Undef BSD and FSCALE.
43557         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
43558
43559 2003-08-03  Paul Eggert  <eggert@twinsun.com>
43560
43561         * lib/stdbool_.h (_Bool): Make it signed char, instead of
43562         an enum type, so that it's guaranteed to promote to int.  See:
43563         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
43564
43565 2003-08-03  Karl Berry  <karl@gnu.org>
43566
43567         * config/depcomp: update from automake.
43568
43569 2003-07-31  Paul Eggert  <eggert@twinsun.com>
43570
43571         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
43572         (strerror): Don't assume that a printable int fits in 14 bytes.
43573
43574 2003-07-31  Bruno Haible  <bruno@clisp.org>
43575
43576         * modules/getpass-gnu: New file.
43577         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
43578
43579 2003-07-31  Bruno Haible  <bruno@clisp.org>
43580
43581         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
43582
43583 2003-07-24  Karl Berry  <karl@gnu.org>
43584
43585         * config/missing: update from automake.
43586
43587 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
43588             Bruno Haible  <bruno@clisp.org>
43589
43590         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
43591         * lib/getline.c (getline, getdelim): Likewise.
43592         Remove _GNU_SOURCE define; now it's defined in config.h through
43593         m4/getline.m4.
43594
43595 2003-07-23  Karl Berry  <karl@gnu.org>
43596
43597         * config/config.sub: update from prep.
43598
43599 2003-07-22  Paul Eggert  <eggert@twinsun.com>
43600
43601         * modules/xalloc (Depends-on): Add exitfail.
43602         * modules/xmemcoll: Likewise.
43603
43604 2003-07-22  Paul Eggert  <eggert@twinsun.com>
43605
43606         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
43607         over-parenthesization in macros.
43608
43609         Sync with coreutils.
43610
43611         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
43612         required by C99.
43613
43614         Use `exit_failure' for xalloc and xmemcoll instead of their own
43615         private exit-failure variables.
43616         * lib/xalloc.h (xalloc_exit_failure): Remove.
43617         * lib/xmalloc.c: Likewise.  Include exitfail.h.
43618         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
43619         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
43620         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
43621         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
43622
43623 2003-07-20  Jim Meyering  <jim@meyering.net>
43624
43625         * modules/closeout (Depends-on): Add exitfail.
43626         Suggestion from Bruno Haible.
43627
43628 2003-07-19  Karl Berry  <karl@gnu.org>
43629
43630         * config/config.sub: update from prep.
43631
43632 2003-07-18  Paul Eggert  <eggert@twinsun.com>
43633
43634         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
43635         Remove.
43636         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
43637         to test that it can stand by itself.  Include "exitfail.h".
43638         Clients should set exit_failure instead.
43639         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
43640
43641 2003-07-18  Bruno Haible  <bruno@clisp.org>
43642
43643         * modules/getndelim2: New file.
43644         * modules/getline: Share files with module getndelim2.
43645         * modules/getnline: Depend on getndelim2 instead of sharing files with
43646         it. Add getnline.c to lib_SOURCES.
43647         * MODULES.html.sh (func_all_modules): Add getndelim2.
43648
43649 2003-07-18  Bruno Haible  <bruno@clisp.org>
43650
43651         * m4/getndelim2.m4: New file.
43652         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
43653         invoke gl_PREREQ_GETNDELIM2.
43654         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
43655         gl_PREREQ_GETNDELIM2.
43656         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
43657         gl_GETNDELIM2.
43658
43659 2003-07-18  Bruno Haible  <bruno@clisp.org>
43660
43661         * lib/getndelim2.h: New file.
43662         * lib/getndelim2.c: Make into a module of its own. Include config.h,
43663         getndelim2.h.
43664         (getndelim2): Make non-static. Change return type to ssize_t.
43665         * lib/getline.h: Change argument names.
43666         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
43667         * lib/getnline.c: Include getndelim2.h.
43668
43669 2003-07-18  Andreas Schwab  <schwab@suse.de>
43670
43671         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
43672
43673 2003-07-17  Karl Berry  <karl@gnu.org>
43674
43675         * config/config.sub: update from prep.
43676
43677 2003-07-17  Bruno Haible  <bruno@clisp.org>
43678
43679         * modules/getnline: New file.
43680         * modules/getline: Add lib/getndelim2.c to source file list.
43681         * MODULES.html.sh (func_all_modules): Add getnline.
43682
43683 2003-07-17  Bruno Haible  <bruno@clisp.org>
43684
43685         * m4/getnline.m4: New file.
43686
43687 2003-07-17  Bruno Haible  <bruno@clisp.org>
43688
43689         * m4/Makefile.am.in: Remove file.
43690         * m4/Makefile.am: Remove file.
43691         * m4/Makefile.in: Remove file.
43692
43693 2003-07-17  Bruno Haible  <bruno@clisp.org>
43694
43695         * lib/getnline.h: New file.
43696         * lib/getnline.c: New file.
43697         * lib/getndelim2.c: New file, extracted from getline.c.
43698         (getndelim2): Renamed from getdelim2, with added nmax argument.
43699         * lib/getline.c: Include getndelim2.c.
43700         (getdelim2): Moved out to getndelim2.c.
43701         (getline, getdelim): Update.
43702
43703 2003-07-17  Bruno Haible  <bruno@clisp.org>
43704
43705         * lib/Makefile.am: Remove file.
43706         * lib/Makefile.in: Remove file.
43707
43708 2003-07-17  Bruno Haible  <bruno@clisp.org>
43709
43710         * configure.in: Remove file.
43711         * Makefile.in: Remove file.
43712
43713 2003-07-17  Bruno Haible  <bruno@clisp.org>
43714
43715         * MODULES.html.sh: Put the </BODY> right before </HTML>.
43716
43717 2003-07-16  Karl Berry  <karl@gnu.org>
43718
43719         * config/srclist-update: was running fixlicense twice, which caused
43720                 texinfo.tex to be nullified for some reason.  Simplify,
43721                 $gplsrc is no longer needed as far as I can see?
43722
43723 2003-07-16  Jim Meyering  <jim@meyering.net>
43724
43725         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
43726
43727 2003-07-15  Paul Eggert  <eggert@twinsun.com>
43728
43729         * config/srclist.txt: Get the following files from gettext-runtime/intl
43730         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
43731         ref-del.sin.  From Bruno Haible.
43732         * config/srclist-update (fixfile): Change grep pattern again, since the
43733         previous fix didn't work (there was another trailing $).  Use
43734         '[$]' to escape the $s.
43735
43736 2003-07-15  Karl Berry  <karl@gnu.org>
43737
43738         * lib/vasnprintf.c: update from gettext.
43739
43740 2003-07-15  Karl Berry  <karl@gnu.org>
43741
43742         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
43743         gets expanded when surrounded by '$'.
43744
43745 2003-07-15  Jim Meyering  <jim@meyering.net>
43746
43747         * modules/save-cwd: Don't depend on error.  From Derek Price.
43748
43749 2003-07-15  Jim Meyering  <jim@meyering.net>
43750
43751         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
43752
43753 2003-07-14  Simon Josefsson  <jas@extundo.com>
43754
43755         * modules/mempcpy: New file.
43756         * MODULES.html.sh (func_all_modules): Add mempcpy.
43757
43758 2003-07-14  Simon Josefsson  <jas@extundo.com>
43759
43760         * m4/mempcpy.m4: New file.
43761
43762 2003-07-14  Simon Josefsson  <jas@extundo.com>
43763
43764         * lib/mempcpy.h: New file.
43765         * lib/mempcpy.c: New file.
43766
43767 2003-07-14  Paul Eggert  <eggert@twinsun.com>
43768
43769         * modules/getdate, modules/posixtm: Depend on mktime.
43770
43771 2003-07-14  Paul Eggert  <eggert@twinsun.com>
43772
43773         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
43774         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
43775         unicodeio.c, unicodeio.h, unlocked-io.h:
43776         Switch from LGPL to GPL.
43777
43778 2003-07-14  Paul Eggert  <eggert@twinsun.com>
43779
43780         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
43781         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
43782         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
43783         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
43784         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
43785         updated automatically by ../config/srclist-update.  This changes
43786         their license from LPGL to GPL.
43787
43788 2003-07-14  Paul Eggert  <eggert@twinsun.com>
43789
43790         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
43791         assumed to refer to the root of the most recent stable gettext version.
43792         * config/srclistvars.sh: Add defaults for eggert.
43793         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
43794         Match "This program" as well as "The program".  This is needed
43795         for gettext.
43796
43797 2003-07-14  Jim Meyering  <jim@meyering.net>
43798
43799         Don't emit diagnostics.  Let callers do that.
43800         * lib/save-cwd.c: Don't include "error.h".
43801         (save_cwd): Don't call error.  Ensure that errno is valid
43802         when returning nonzero.
43803
43804         * lib/save-cwd.h (restore_cwd): Update prototype.
43805         * lib/save-cwd.c (restore_cwd): Remove two parameters.
43806         Simplify.  Don't call error upon failure.  Let callers do that.
43807         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
43808         when auditing is enabled.  But don't bother updating the #if.
43809
43810 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
43811
43812         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
43813         it breaks C++ compilation.
43814         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
43815
43816 2003-07-10  Simon Josefsson  <jas@extundo.com>
43817
43818         * modules/strchrnul (Makefile.am): Add strchrnul.h.
43819
43820 2003-07-10  Jim Meyering  <jim@meyering.net>
43821
43822         * m4/clock_time.m4: Remove trailing blank.
43823         * m4/intmax_t.m4: Likewise.
43824
43825 2003-07-10  Jim Meyering  <jim@meyering.net>
43826
43827         * lib/vasnprintf.c: Remove trailing blanks.
43828         Make cpp indentation consistent.
43829
43830 2003-07-09  Paul Eggert  <eggert@twinsun.com>
43831
43832         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
43833         posixver.c, strftime.c, strnlen.c, strverscmp.c:
43834         Switch from LGPL to GPL.
43835
43836 2003-07-09  Paul Eggert  <eggert@twinsun.com>
43837
43838         * config/srclist.txt: Sort sublists.  Add
43839         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
43840         that differ from gnulib for one reason or another; we'd like this list
43841         to be smaller but for now let's document what we have.
43842
43843 2003-07-08  Paul Eggert  <eggert@twinsun.com>
43844
43845         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
43846         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
43847         and sweeter "eval x=$x".
43848         * config/srclist.txt: Get lib/argp* from glibc.
43849
43850 2003-07-07  Paul Eggert  <eggert@twinsun.com>
43851
43852         * lib/mktime.c: Fix some boundary cases and remove need for floating
43853         point.
43854
43855         Issue a compile-time diagnostic if time_t is floating point, or if
43856         two's complement arithmetic is not in effect, or if arithmetic
43857         right shift does not propagate the sign.  These assumptions were
43858         all in the original code but they weren't checked.
43859
43860         (TIME_T_MIDPOINT, verify): New macros.
43861         (__isleap): Remove; it has integer overflow problems.
43862         (leapyear): New function, without those problems.
43863         (ydhms_tm_diff): Remove; splitting into two parts.
43864         (ydhms_diff): New function, containing the arithmetic part of
43865         the old ydhms_tm_diff function.  Issue a compile-time
43866         diagnostic if we are not using C99 integer division.
43867         Avoid casts when possible.
43868         (guess_time_tm): New function, containing the checking part of
43869         the old ydhms_tm_diff function.  Return the new value, rather than
43870         the difference between it and the old.  Accept a new argument T
43871         so that *T specifies the old value.  Check for overflow in the result.
43872
43873         (__mktime_internal): Use a time_t offset, not a long int offset.
43874         This undoes the 2003-06-04 change, which is no longer needed now
43875         that we have better overflow checking.
43876         (localtime_offset): Likewise.
43877
43878         (__mktime_internal): Avoid harmful overflow on hosts where time_t
43879         and long are 64-bit but int is only 32-bit.
43880         (ydhms_diff): Use long int to store year1 and yday1.
43881         Issue a compile-time diagnostic if long int is not wide enough.
43882
43883         (__mktime_internal): Use long int to store adjusted year and yday.
43884         Use plain C rather than preprocessor commands, if that doesn't
43885         affect efficiency.
43886         Check for overflow (and try to repair) after each probe
43887         rather than checking only at the very end.  This avoids some bugs
43888         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
43889         does not equal GMT offset at maximum time).
43890         Use integer to check for overflow rather than floating point; this
43891         is more portable to non-IEEE hosts, and is a tad faster.
43892         When we detect that we are oscillating between two values,
43893         don't check whether tm_isdst has the requested value, since
43894         we already know the answer.  When tm_isdst has the wrong value,
43895         use a different heuristic to find the right one, based on the
43896         extreme values actually observed in practice in tz2003a,
43897         rather than the (overly optimistic) "previous 3 calendar quarters".
43898
43899         (not_equal_tm, print_tm, check_result): Use "const T" rather than
43900         "T const" to accommodate glibc style.
43901         (check_result): Use less-confusing report format.  "long" -> "long int.
43902         (main): Likewise.
43903         Don't loop if the iteration overflows time_t.
43904         Allow a negative step in the iteration.
43905
43906 2003-07-06  Karl Berry  <karl@gnu.org>
43907
43908         * config/depcomp: update from automake.
43909         * config/config.sub: update from prep.
43910
43911 2003-07-03  Karl Berry  <karl@gnu.org>
43912
43913         * config/config.guess: update from prep.
43914
43915 2003-07-01  Paul Eggert  <eggert@twinsun.com>
43916
43917         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
43918         xreadlink.c now includes it unconditionally.
43919
43920 2003-07-01  Paul Eggert  <eggert@twinsun.com>
43921
43922         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
43923         having it depend on HAVE_SYS_TYPES_H.
43924
43925 2003-07-01  Bruno Haible  <bruno@clisp.org>
43926
43927         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
43928         <sys/types.h> should be sufficient.
43929         Reported by Paul Eggert.
43930
43931 2003-06-26  Karl Berry  <karl@gnu.org>
43932
43933         * config/depcomp: update from automake.
43934
43935 2003-06-26  Bruno Haible  <bruno@clisp.org>
43936
43937         * modules/human: Depend on module stdbool.
43938
43939 2003-06-25  Bruno Haible  <bruno@clisp.org>
43940
43941         * modules/readlink: New file.
43942         * modules/xreadlink: Depend on it.
43943         * MODULES.html.sh (func_all_modules): Add readlink.
43944
43945 2003-06-25  Bruno Haible  <bruno@clisp.org>
43946
43947         * m4/readlink.m4: New file.
43948
43949 2003-06-25  Bruno Haible  <bruno@clisp.org>
43950
43951         * lib/readlink.c: New file.
43952
43953 2003-06-22  Karl Berry  <karl@gnu.org>
43954
43955         * config/srclist.txt: update mkinstalldirs from automake.
43956         * config/mkinstalldirs: update.
43957
43958 2003-06-22  Bruno Haible  <bruno@clisp.org>
43959
43960         Portability to mingw32.
43961         * m4/ssize_t.m4: New file, from GNU gettext.
43962         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
43963         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
43964
43965 2003-06-22  Bruno Haible  <bruno@clisp.org>
43966
43967         * modules/safe-read: Add m4/ssize_t.m4.
43968         * modules/xreadlink: Add m4/ssize_t.m4.
43969
43970 2003-06-20  Bruno Haible  <bruno@clisp.org>
43971
43972         Assume C89, so PARAMS isn't needed.
43973         * lib/unicodeio.h (PARAMS): Remove.
43974         * lib/unicodeio.c: Don't use PARAMS.
43975
43976 2003-06-18  Karl Berry  <karl@gnu.org>
43977
43978         * config/config.{guess,sub}: update from prep.
43979
43980 2003-06-18  Jim Meyering  <jim@meyering.net>
43981
43982         Merge changes from coreutils.
43983         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
43984         Remove explicit declarations of xmalloc and realloc.
43985         Include xalloc.h.
43986         (read_utmp): Remove anachronistic cast of xmalloc.
43987
43988 2003-06-17  Paul Eggert  <eggert@twinsun.com>
43989
43990         Assume C89, so PARAMS isn't needed.
43991         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
43992         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
43993         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
43994         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
43995         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
43996         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
43997         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
43998         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
43999         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
44000         lib/xstrtod.h, lib/xstrtol.h: Likewise.
44001         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
44002         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
44003         no longer needed. Anyway, config.h should always be included before any
44004         other file.
44005
44006 2003-06-11  Simon Josefsson  <jas@extundo.com>
44007
44008         * modules/sysexits: New file.
44009         * MODULES.html.sh (func_all_modules): Add sysexits.
44010
44011 2003-06-11  Simon Josefsson  <jas@extundo.com>
44012
44013         * lib/sysexit_.h: New file.
44014
44015 2003-06-11  Derek Price  <derek@ximbiot.com>
44016
44017         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
44018         necessary.
44019
44020 2003-06-11  Bruno Haible  <bruno@clisp.org>
44021
44022         * m4/sysexits.m4: New file.
44023
44024 2003-06-10  Simon Josefsson  <jas@extundo.com>
44025
44026         * lib/argp.h: New file, from glibc.
44027         * lib/argp-ba.c: New file, from glibc.
44028         * lib/argp-eexst.c: New file, from glibc.
44029         * lib/argp-fmtstream.c: New file, from glibc.
44030         * lib/argp-fmtstream.h: New file, from glibc.
44031         * lib/argp-fs-xinl.c: New file, from glibc.
44032         * lib/argp-help.c: New file, from glibc.
44033         * lib/argp-namefrob.h: New file, from glibc.
44034         * lib/argp-parse.c: New file, from glibc.
44035         * lib/argp-pv.c: New file, from glibc.
44036         * lib/argp-pvh.c: New file, from glibc.
44037         * lib/argp-xinl.c: New file, from glibc.
44038
44039 2003-06-10  Simon Josefsson  <jas@extundo.com>
44040
44041         * modules/strchrnul: New file.
44042
44043 2003-06-10  Simon Josefsson  <jas@extundo.com>
44044
44045         * modules/argp: New file.
44046
44047 2003-06-10  Simon Josefsson  <jas@extundo.com>
44048
44049         * m4/strchrnul.m4: New file.
44050
44051 2003-06-10  Simon Josefsson  <jas@extundo.com>
44052
44053         * lib/strchrnul.h: New file.
44054         * lib/strchrnul.c: New file.
44055
44056 2003-06-10  Bruno Haible  <bruno@clisp.org>
44057
44058         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
44059
44060 2003-06-07  Karl Berry  <karl@gnu.org>
44061
44062         * config/config.{guess,sub}: update from prep.
44063
44064 2003-06-07  Jim Meyering  <jim@meyering.net>
44065
44066         * modules/strtod: Use $(...) notation, not @...@ for
44067         AC_REPLACE'd variables.
44068         * modules/localcharset: Likewise.
44069
44070 2003-06-07  Jim Meyering  <jim@meyering.net>
44071
44072         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
44073         in place of my name in the copyright comment.
44074         Remove definition and uses of __P.
44075
44076         From coreutils.
44077         * lib/stat.c: Don't declare xmalloc explicitly.
44078         Instead, include "xalloc.h".
44079         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
44080         xrealloc, and xcalloc return values.
44081         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
44082         Improve comment.
44083         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
44084
44085 2003-06-07  Bruno Haible  <bruno@clisp.org>
44086
44087         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
44088         avoid AC_CONFIG_LINKS.
44089         * modules/fnmatch (Makefile.am): Use explicit creation rule for
44090         fnmatch.h, to avoid AC_CONFIG_LINKS.
44091         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
44092
44093 2003-06-07  Bruno Haible  <bruno@clisp.org>
44094
44095         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
44096         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
44097         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
44098         directory.
44099         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
44100         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
44101         directory.
44102
44103 2003-06-06  Jim Meyering  <jim@meyering.net>
44104
44105         Merge from coreutils.
44106         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
44107         Consolidate declarations and initializations of *_base* locals.
44108
44109         Merge from coreutils.
44110         This avoids a core dump on systems without GNU putenv,
44111         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
44112         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
44113         (unsetenv): New static function, from GNU libc.
44114         (rpl_putenv): Use it.
44115
44116         * lib/modechange.c: Remove trailing blanks.
44117
44118         Merge from coreutils.
44119         * lib/fsusage.c: Remove declaration of statfs.
44120         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
44121
44122         * lib/posixtm.c: Include <stdbool.h> unconditionally.
44123
44124 2003-06-06  Jim Meyering  <jim@meyering.net>
44125
44126         * lib/stdbool_.h: Renamed from stdbool.h.in.
44127
44128 2003-06-06  Jim Meyering  <jim@meyering.net>
44129             Bruno Haible  <bruno@clisp.org>
44130
44131         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
44132         Adjust Makefile.am snippet not to redirect directly to target.
44133         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
44134
44135 2003-06-05  Paul Eggert  <eggert@twinsun.com>
44136
44137         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
44138         mismatch, look in future quarters as well as past.  This fixes a
44139         bug when processing fall-backwards gaps immediately after a long
44140         period of daylight-saving time.
44141
44142         * lib/mktime.c: Assume freestanding C89 or better.
44143         (HAVE_LIMITS_H): Remove.  Assume it's 1.
44144         (__P): Remove; not used.
44145         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
44146         (mktime, not_equal_tm, print_tm, check_result,
44147         main): Use prototypes.  Use const * where appropriate.
44148         (main): Fix typo in testing code that uncovered by above changes.
44149         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
44150
44151 2003-06-04  Paul Eggert  <eggert@twinsun.com>
44152
44153         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
44154         locale.h, localeconv.  This merges changes from coreutils.
44155
44156         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
44157         It can be removed after the next Autoconf is released.
44158         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
44159         needed.
44160
44161 2003-06-04  Paul Eggert  <eggert@twinsun.com>
44162
44163         * lib/mktime.c: Fix Debian bug 177940
44164         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
44165         (localtime_offset): Now long int, not time_t, because we want it
44166         to be guaranteed to be signed.  All uses changed.
44167         (__mktime_internal): If overflow would occur when adding offset,
44168         don't add it.
44169
44170         Merge 'human' changes from coreutils.  Rewrite to support
44171         locale-specific notations like thousands separators.
44172         * lib/human.c: Simplify authorship notice.
44173         Include human.h immediately after config.h.
44174         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
44175         <limits.h>: Do not include, since human.h does.
44176         (SIZE_MAX, UINTMAX_MAX): New macros.
44177         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
44178         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
44179         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
44180         (power_letter): Renamed from suffixes.
44181         (generate_suffix_backwards): Remove.
44182         (adjust_value): Now takes int style (because of human.h changes)
44183         and long double value (for greater precision on some platforms).
44184         (group_number): New function.
44185         (human_readable): Use it.  Use integer options, not enum.
44186         Put the options before the sizes in the arg list.
44187         Support all the new options.
44188         The old human_readable function has been removed;
44189         use inttostr.h instead.
44190         (human_readable, default_block_size, humblock):
44191         Use uintmax_t, not int, for block sizes.
44192         (human_readable_inexact, block_size_types): Remove.
44193         (block_size_opts): New constant.
44194         (human_options): Renamed from human_block_size, with new signature
44195         that allows block sizes up to UINTMAX_MAX.  All callers changed.
44196         * lib/human.h: Add copyright and authorship notice.
44197         Include <limits.h> and <stdbool.h> unconditionally.
44198         (PARAMS): Remove.  All uses removed.
44199         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
44200         (enum human_inexact_style): Remove tag; now a nameless enum.
44201         (human_floor, human_ceiling, human_round_to_even): Now have
44202         values 2, 0, 1 rather than -1, 1, 0.
44203         (human_group_digits, human_suppress_point_zero, human_autoscale,
44204         human_base_1024, human_SI, human_B): New constants.
44205         (human_readable_inexact, human_block_size): Remove.
44206         (human_readable): Size args are now uintmax_t, not int.
44207         (human_options): New decl.
44208
44209         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
44210         unnecessary now that we assume C89 or better.  This change
44211         imported from coreutils.
44212
44213         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
44214         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
44215         in the 2003-05-30 sync from glibc.
44216
44217         .h files should stand alone, but we shouldn't include <sys/types.h>
44218         if we can get away with just <stddef.h>.
44219
44220         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
44221         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
44222         rather than <sys/types.h>, as we merely need size_t.
44223         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
44224         to get size_t.
44225         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
44226         Include <stdio.h>, to get FILE.
44227         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
44228         memcasecmp.h has included <stddef.h> and all we need is size_t.
44229         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
44230         our interface, instead of including <sys/types.h>
44231
44232 2003-06-04  Paul Eggert  <eggert@twinsun.com>
44233
44234         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
44235         now, as glibc mktime is buggy on non-glibc systems.
44236
44237 2003-06-03  Karl Berry  <karl@gnu.org>
44238
44239         * config/config.sub: update from prep.
44240
44241 2003-06-02  Paul Eggert  <eggert@twinsun.com>
44242
44243         [from coreutils]
44244         Fix some minor time-related bugs with POSIX time arguments.
44245         Some valid time stamps were being rejected (notably -1, and
44246         time stamps before 1900 on 64-bit hosts).  And some invalid
44247         time stamps were being accepted, e.g. September 31.
44248
44249         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
44250         that we can return (time_t) -1 successfully.
44251         * lib/posixtm.c: Likewise.
44252         [HAVE_STDBOOL_H]: Include <stdbool.h>.
44253         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
44254         (t): Remove static var.
44255         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
44256         of static var.  All uses changed.
44257         (year): Do not reject years before 1900; they can occur with
44258         64-bit time_t.
44259         (posix_time_parse): Do not check for out-of-range components;
44260         that is now the caller's responsibility, since our checks were
44261         only approximations.
44262         (posixtime): Use mktime to check for out-of-range components,
44263         since it knows them exactly.
44264         If mktime returns (time_t) -1, check whether an error actually occurred
44265         by invoking localtime on -1.
44266         (main) [TEST_POSIXTIME]: Check for input data errors, and report
44267         posixtime failures better.
44268         Improve the test data (in comments only).
44269
44270 2003-06-02  Karl Berry  <karl@gnu.org>
44271
44272         * config/mkinstalldirs (version): new variable.
44273         (--version): new option.
44274         (usage): improve message.
44275
44276 2003-05-30  Karl Berry  <karl@gnu.org>
44277
44278         * lib/mktime.c: update from libc.
44279
44280 2003-05-30  Bruno Haible  <bruno@clisp.org>
44281
44282         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
44283         * config/config.rpath: Upgrade to gettext-0.12.1.
44284
44285 2003-05-30  Bruno Haible  <bruno@clisp.org>
44286
44287         * m4/gettext.m4: Upgrade to gettext-0.12.1.
44288         * m4/nls.m4: New file, from gettext-0.12.1.
44289         * m4/po.m4: New file, from gettext-0.12.1.
44290         * m4/progtest.m4: Upgrade to gettext-0.12.1.
44291
44292 2003-05-30  Bruno Haible  <bruno@clisp.org>
44293
44294         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
44295         * lib/localcharset.h: Likewise.
44296         * lib/localcharset.c: Likewise.
44297
44298 2003-05-29  Karl Berry  <karl@gnu.org>
44299
44300         * config/config.rpath: update from gettext.
44301
44302 2003-05-28  Paul Eggert  <eggert@twinsun.com>
44303
44304         Assume the headers required for C89 freestanding compilers.
44305         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
44306         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
44307         * m4/human.m4 (gl_HUMAN): Likewise.
44308         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
44309         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
44310         * m4/userspec.m4 (gl_USERSPEC): Likewise.
44311         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
44312         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44313         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
44314
44315 2003-05-28  Paul Eggert  <eggert@twinsun.com>
44316
44317         Assume the headers required for C89 freestanding compilers.
44318         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
44319         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
44320         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
44321         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
44322         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
44323         define, since <limits.h> is guaranteed to do that.
44324         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
44325         * lib/exclude.c: Include <stdbool.h> unconditionally.
44326         * lib/tempname.c: Include <stddef.h> unconditionally.
44327         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
44328         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
44329         <stddef.h> does that.
44330         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
44331         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
44332         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
44333         needed.
44334         * lib/xstrtol.c: Likewise.
44335         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
44336         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
44337
44338         * lib/addext.c (addext): Use assignment rather than cast, to avoid
44339         warnings on some platforms.
44340
44341         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
44342         arbitrarily.
44343
44344 2003-05-26  Jim Meyering  <jim@meyering.net>
44345
44346         Merge in a change from coreutils:
44347         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
44348         that is guaranteed to be `no'.  Use `no_such_member' to indicate
44349         that condition, rather than `-1' which is slightly misleading.
44350         Change the name of the cache variable to have the gl_ prefix.
44351         Prompted by a patch from Richard Dawe for DJGPP.
44352
44353 2003-05-24  Karl Berry  <karl@gnu.org>
44354
44355         * config/config.guess: update from prep.
44356
44357 2003-05-22  Karl Berry  <karl@gnu.org>
44358
44359         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
44360
44361 2003-05-20  Karl Berry  <karl@gnu.org>
44362
44363         * config/config.guess: update from prep.
44364
44365 2003-05-18  Karl Berry  <karl@gnu.org>
44366
44367         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
44368         might actually be set by the user.
44369
44370         * config/depcomp, install-sh, mdate-sh: update from automake.
44371
44372 2003-05-17  Bruno Haible  <bruno@clisp.org>
44373
44374         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
44375         invalid expansion for AC_EGREP_CPP.
44376         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
44377         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
44378         Suggested by Akim Demaille <akim@epita.fr> in
44379         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
44380
44381 2003-05-12  Jim Meyering  <jim@meyering.net>
44382
44383         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
44384         the space-padded-by-default conversion specifiers, %e, %k, %l.
44385
44386 2003-05-12  Bruno Haible  <bruno@clisp.org>
44387
44388         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
44389         the string is longer than 4 KB.
44390
44391 2003-05-11  Karl Berry  <karl@gnu.org>
44392
44393         * config/config.{guess,sub}: update from prep.
44394
44395 2003-05-09  Bruno Haible  <bruno@clisp.org>
44396
44397         * modules/error: Add m4/strerror_r.m4 to file list.
44398
44399 2003-05-03  Bruno Haible  <bruno@clisp.org>
44400
44401         Upgrade to Unicode-4.0.
44402         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
44403         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
44404         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
44405         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
44406         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
44407         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
44408         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
44409         Change width of U+E0100..U+E01EF from 1 to 0.
44410
44411 2003-04-25  Jim Meyering  <jim@meyering.net>
44412
44413         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
44414         of type size_t, not int.
44415
44416 2003-04-25  Bruno Haible  <bruno@clisp.org>
44417
44418         * lib/copy-file.c: Include <stddef.h>, for size_t.
44419
44420 2003-04-21  Paul Eggert  <eggert@twinsun.com>
44421
44422         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
44423         code which expansion is under static control.  Patch imported from
44424         Akim Demaille's patch to Bison; see
44425         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
44426
44427 2003-04-14  Bruno Haible  <bruno@clisp.org>
44428
44429         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
44430
44431 2003-04-11  Jim Meyering  <jim@meyering.net>
44432
44433         Merge changes from Coreutils.
44434
44435         2003-03-22  Jim Meyering  <jim@meyering.net>
44436
44437         * lib/strftime.c (widen): Cast alloca return value to proper type.
44438
44439         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
44440
44441         From GNU libc.
44442         * lib/strftime.c (my_strftime): Handle very large width
44443         specifications for numeric values correctly.  Improve checks for
44444         overflow.
44445
44446         2003-01-19  Jim Meyering  <jim@meyering.net>
44447
44448         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
44449         definitions.
44450         (nl_get_alt_digit) [! defined my_strftime]: Define.
44451         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
44452         _nl_get_alt_digit and _nl_get_walt_digit.
44453
44454         * lib/strftime.c (my_strftime): Merge in locale-related changes from
44455         libc. These changes have no effect outside of _LIBC.
44456
44457 2003-04-10  Bruno Haible  <bruno@clisp.org>
44458
44459         * modules/findprog: New file.
44460         * MODULES.html.sh (func_all_modules): Add it.
44461
44462 2003-04-10  Bruno Haible  <bruno@clisp.org>
44463
44464         * m4/findprog.m4: New file.
44465         * m4/eaccess.m4: New file.
44466
44467 2003-04-10  Bruno Haible  <bruno@clisp.org>
44468
44469         * lib/findprog.h: New file, from GNU gettext.
44470         * lib/findprog.c: New file, from GNU gettext.
44471
44472 2003-04-05  Jim Meyering  <jim@meyering.net>
44473
44474         Merge changes from Coreutils.
44475
44476         * lib/exclude.h (PARAMS): Remove definition and uses.
44477         * lib/exclude.c: Remove uses of `PARAMS'.
44478
44479         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
44480         Add test-cases for DOS filenames. Declare program_name.
44481         (main): Set up program_name.  Patch by Rich Dawe.
44482
44483         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
44484         error from mntctl.
44485         Use mntctl's return value to drive the entry-processing loop, since
44486         we can't rely on the value of the vmt_length member in the last
44487         entry.  On some systems doing so could result in exhausting
44488         virtual memory.  Based in part on a patch from Mike Jetzer.
44489
44490 2003-04-04  Bruno Haible  <bruno@clisp.org>
44491
44492         * modules/linebreak: New file.
44493         * MODULES.html.sh (func_all_modules): Add it.
44494
44495 2003-04-04  Bruno Haible  <bruno@clisp.org>
44496
44497         * m4/linebreak.m4: New file.
44498
44499 2003-04-04  Bruno Haible  <bruno@clisp.org>
44500
44501         * lib/linebreak.h: New file, from GNU gettext.
44502         * lib/linebreak.c: New file, from GNU gettext with slight
44503         modifications.
44504         * lib/lbrkprop.h: New file, from GNU gettext.
44505
44506 2003-04-03  Bruno Haible  <bruno@clisp.org>
44507
44508         * modules/utf8-ucs4: New file.
44509         * modules/utf16-ucs4: New file.
44510         * modules/ucs4-utf8: New file.
44511         * modules/ucs4-utf16: New file.
44512         * MODULES.html.sh (func_all_modules): Add them.
44513
44514 2003-04-03  Bruno Haible  <bruno@clisp.org>
44515
44516         * m4/utf-ucs4.m4: New file.
44517         * m4/ucs4-utf.m4: New file.
44518
44519 2003-04-03  Bruno Haible  <bruno@clisp.org>
44520
44521         * lib/utf8-ucs4.h: New file, from GNU gettext.
44522         * lib/utf16-ucs4.h: New file, from GNU gettext.
44523         * lib/ucs4-utf8.h: New file, from GNU gettext.
44524         * lib/ucs4-utf16.h: New file, from GNU gettext.
44525
44526 2003-04-02  Bruno Haible  <bruno@clisp.org>
44527
44528         * modules/binary-io: New file.
44529         * MODULES.html.sh (func_all_modules): Add it.
44530
44531 2003-04-02  Bruno Haible  <bruno@clisp.org>
44532
44533         * lib/binary-io.h: New file, from GNU gettext.
44534
44535 2003-04-01  Bruno Haible  <bruno@clisp.org>
44536
44537         * modules/pathname: New file.
44538         * MODULES.html.sh (func_all_modules): Add it.
44539
44540 2003-04-01  Bruno Haible  <bruno@clisp.org>
44541
44542         * lib/pathname.h: New file, from GNU gettext.
44543         * lib/concatpath.c: New file, from GNU gettext.
44544
44545 2003-03-30  Bruno Haible  <bruno@clisp.org>
44546
44547         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
44548
44549 2003-03-30  Bruno Haible  <bruno@clisp.org>
44550
44551         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
44552         function chown() doesn't exist.
44553
44554 2003-03-28  Bruno Haible  <bruno@clisp.org>
44555
44556         * modules/copy-file: New file.
44557         * MODULES.html.sh (func_all_modules): Add it.
44558
44559 2003-03-28  Bruno Haible  <bruno@clisp.org>
44560
44561         * m4/copy-file.m4: New file.
44562
44563 2003-03-28  Bruno Haible  <bruno@clisp.org>
44564
44565         * lib/copy-file.h: New file, from GNU gettext.
44566         * lib/copy-file.c: New file, from GNU gettext.
44567
44568 2003-03-18  Jim Meyering  <jim@meyering.net>
44569
44570         * lib/quote.c (quote_n): Fix typo in comment.
44571
44572 2003-03-18  Bruno Haible  <bruno@clisp.org>
44573
44574         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
44575         checking.
44576         * m4/onceonly_2_57.m4: Likewise.
44577
44578 2003-03-17  Bruno Haible  <bruno@clisp.org>
44579
44580         * m4/onceonly.m4: Require autoconf 2.54 or newer.
44581         (m4_quote): Remove macro.
44582         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
44583
44584 2003-03-14  Jim Meyering  <jim@meyering.net>
44585
44586         Merge changes from Coreutils.
44587         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
44588         to be const, in order to avoid warnings.
44589         (obstack_room): Likewise.
44590         (obstack_empty_p): Likewise.
44591
44592 2003-03-14  Bruno Haible  <bruno@clisp.org>
44593
44594         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
44595         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
44596
44597 2003-03-13  Paul Eggert  <eggert@twinsun.com>
44598
44599         Merge changes from Bison.
44600         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
44601         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
44602         when compiling Bison 1.875's `bitset bset = obstack_alloc
44603         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
44604         * lib/hash.c: Include <stdbool.h> unconditionally.
44605
44606 2003-03-13  Paul Eggert  <eggert@twinsun.com>
44607
44608         * m4/onceonly.m4 (m4_quote): New macro.
44609         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
44610         Quote AC_FOREACH variable-expansions properly.
44611
44612 2003-03-13  Paul Eggert  <eggert@twinsun.com>
44613
44614         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
44615
44616 2003-03-09  Paul Eggert  <eggert@twinsun.com>
44617
44618         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
44619         Reported by Bruce Becker; see:
44620         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
44621
44622 2003-03-03  Paul Eggert  <eggert@twinsun.com>
44623             Bruno Haible  <bruno@clisp.org>
44624
44625         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
44626         Reported by John Hughes, see
44627         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
44628
44629 2003-02-20  Bruno Haible  <bruno@clisp.org>
44630
44631         * MODULES.html.sh (func_all_modules): Add poll.
44632
44633 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
44634
44635         * modules/poll: New file.
44636
44637 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
44638
44639         * lib/poll_.h: New file.
44640         * lib/poll.c: New file.
44641
44642 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
44643
44644         * m4/poll.m4: New file.
44645
44646 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
44647
44648         * modules/mathl: New file.
44649
44650 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
44651
44652         * lib/mathl.h: New file.
44653         * lib/acosl.c: New file.
44654         * lib/asinl.c: New file.
44655         * lib/atanl.c: New file.
44656         * lib/ceill.c: New file.
44657         * lib/cosl.c: New file.
44658         * lib/expl.c: New file.
44659         * lib/floorl.c: New file.
44660         * lib/frexpl.c: New file.
44661         * lib/ldexpl.c: New file.
44662         * lib/logl.c: New file.
44663         * lib/sincosl.c: New file.
44664         * lib/sinl.c: New file.
44665         * lib/sqrtl.c: New file.
44666         * lib/tanl.c: New file.
44667         * lib/trigl.c: New file.
44668         * lib/trigl.h: New file.
44669
44670 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
44671
44672         * m4/mathl.m4: New file.
44673
44674 2003-02-18  Bruno Haible  <bruno@clisp.org>
44675
44676         * MODULES.html.sh (func_all_modules): Add mathl.
44677
44678 2003-02-17  Bruno Haible  <bruno@clisp.org>
44679
44680         * modules/mkdtemp: New module.
44681         * MODULES.html.sh (func_all_modules): Add it.
44682
44683 2003-02-17  Bruno Haible  <bruno@clisp.org>
44684
44685         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
44686
44687 2003-02-17  Bruno Haible  <bruno@clisp.org>
44688
44689         * lib/mkdtemp.h: New file, from GNU gettext.
44690         * lib/mkdtemp.c: New file, from GNU gettext.
44691
44692 2003-02-02  Jim Meyering  <jim@meyering.net>
44693
44694         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
44695         e.g. glibc-2.2.93.
44696
44697 2003-01-31  Bruno Haible  <bruno@clisp.org>
44698
44699         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
44700         'rpl_rename'.
44701         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
44702         'rpl_strnlen'.
44703         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
44704         'rpl_strtod'.
44705         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
44706         'rpl_utime'.
44707
44708 2003-01-31  Bruno Haible  <bruno@clisp.org>
44709
44710         * lib/rename.c: #undef rename before defining rpl_rename.
44711         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
44712
44713 2003-01-30  Bruno Haible  <bruno@clisp.org>
44714
44715         * modules/vasnprintf, modules/vasprintf: New modules.
44716         * MODULES.html.sh (func_all_modules): Add them.
44717
44718 2003-01-30  Bruno Haible  <bruno@clisp.org>
44719
44720         * m4/signed.m4: New file, from GNU gettext.
44721         * m4/longdouble.m4: New file, from GNU gettext.
44722         * m4/wchar_t.m4: New file, from GNU gettext.
44723         * m4/wint_t.m4: New file, from GNU gettext.
44724         * m4/vasnprintf.m4: New file.
44725         * m4/vasprintf.m4: New file.
44726
44727 2003-01-30  Bruno Haible  <bruno@clisp.org>
44728
44729         * lib/printf-args.h: New file, from GNU gettext.
44730         * lib/printf-args.c: New file, from GNU gettext.
44731         * lib/printf-parse.h: New file, from GNU gettext.
44732         * lib/printf-parse.c: New file, from GNU gettext.
44733         * lib/vasnprintf.h: New file, from GNU gettext.
44734         * lib/vasnprintf.c: New file, from GNU gettext.
44735         * lib/asnprintf.c: New file, from GNU gettext.
44736         * lib/vasprintf.h: New file, from GNU gettext with modifications.
44737         * lib/vasprintf.c: New file, from GNU gettext.
44738         * lib/asprintf.c: New file, from GNU gettext.
44739
44740 2003-01-29  Bruno Haible  <bruno@clisp.org>
44741
44742         * modules/stpncpy: New module.
44743         * MODULES.html.sh (func_all_modules): Add it.
44744
44745 2003-01-29  Bruno Haible  <bruno@clisp.org>
44746
44747         * m4/stpncpy.m4: New file.
44748
44749 2003-01-29  Bruno Haible  <bruno@clisp.org>
44750
44751         * lib/stpncpy.h: New file, from GNU gettext with modifications.
44752         * lib/stpncpy.c: New file, from GNU gettext with modifications.
44753
44754 2003-01-28  Bruno Haible  <bruno@clisp.org>
44755
44756         * modules/c-ctype: New module.
44757         * MODULES.html.sh (func_all_modules): Add it.
44758
44759 2003-01-28  Bruno Haible  <bruno@clisp.org>
44760
44761         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
44762         Paul Eggert.
44763         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
44764         Paul Eggert.
44765
44766 2003-01-27  Bruno Haible  <bruno@clisp.org>
44767
44768         * modules/xsetenv: New module.
44769         * MODULES.html.sh (func_all_modules): Add it.
44770
44771 2003-01-27  Bruno Haible  <bruno@clisp.org>
44772
44773         * lib/xsetenv.h: New file, from GNU gettext.
44774         * lib/xsetenv.c: New file, from GNU gettext.
44775
44776 2003-01-23  Jim Meyering  <jim@meyering.net>
44777
44778         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
44779         from working on systems without dirfd (at least Irix and OSF1/Tru64).
44780
44781 2003-01-23  Bruno Haible  <bruno@clisp.org>
44782
44783         * modules/minmax: New module.
44784         * MODULES.html.sh (func_all_modules): Add it.
44785
44786 2003-01-23  Bruno Haible  <bruno@clisp.org>
44787
44788         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
44789         Eggert.
44790
44791 2003-01-22  Bruno Haible  <bruno@clisp.org>
44792
44793         * modules/exit: New module.
44794         * MODULES.html.sh (func_all_modules): Add it.
44795
44796 2003-01-22  Bruno Haible  <bruno@clisp.org>
44797
44798         * lib/exit.h: New file, from GNU gettext.
44799
44800 2003-01-19  Bruno Haible  <bruno@clisp.org>
44801
44802         * gnulib-tool: Recognize option --extract-maintainer.
44803         (func_get_maintainer): New function.
44804         * modules/*: Add Maintainer entry.
44805
44806 2003-01-16  Jim Meyering  <jim@meyering.net>
44807
44808         * m4/regex.m4: The `regex' struct is both input and output.
44809         Initialize it before each use.  Patch by Tim Waugh.
44810
44811 2003-01-16  Bruno Haible  <bruno@clisp.org>
44812
44813         * MODULES.html.sh: Add a table of contents. Add the module name as
44814         leftmost column. Add hyperlinks.
44815
44816 2003-01-15  Bruno Haible  <bruno@clisp.org>
44817
44818         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
44819
44820 2003-01-15  Bruno Haible  <bruno@clisp.org>
44821
44822         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
44823         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
44824         suffix.
44825
44826 2003-01-15  Bruno Haible  <bruno@clisp.org>
44827
44828         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
44829
44830 2003-01-15  Bruno Haible  <bruno@clisp.org>
44831
44832         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
44833         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
44834
44835 2003-01-14  Jim Meyering  <jim@meyering.net>
44836
44837         * lib/same.c (same_name): Tweak a comment.
44838
44839 2003-01-14  Bruno Haible  <bruno@clisp.org>
44840
44841         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
44842         when a string comparison is sufficient.
44843
44844 2003-01-14  Bruno Haible  <bruno@clisp.org>
44845
44846         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
44847         'unsigned int'.
44848
44849 2003-01-14  Bruno Haible  <bruno@clisp.org>
44850
44851         * lib/hash-pjw.c: Add comment about low quality of this function.
44852
44853 2003-01-13  Bruno Haible  <bruno@clisp.org>
44854
44855         * modules/stpcpy: Distribute lib/stpcpy.h.
44856         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
44857
44858 2003-01-13  Bruno Haible  <bruno@clisp.org>
44859
44860         * modules/*: Add a description.
44861         * modules/strpbrk: Fix Makefile.am snippet.
44862         * modules/strtoimax: Fix dependencies.
44863         * modules/strtoumax: Likewise.
44864
44865 2003-01-13  Bruno Haible  <bruno@clisp.org>
44866
44867         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
44868         * modules/alloca (Makefile.am): All object files depend on alloca.h.
44869         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
44870
44871 2003-01-13  Bruno Haible  <bruno@clisp.org>
44872
44873         * gnulib-tool (func_create_testdir): Store config/* files in the main
44874         directory.
44875         * config.rpath: Move to ...
44876         * config/config.rpath: ... here.
44877         * modules/gettext: Contains config/config.rpath, not config.rpath.
44878         * modules/iconv: Likewise.
44879
44880 2003-01-12  Paul Eggert  <eggert@twinsun.com>
44881
44882         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
44883         to avoid collisions with libcurses and libreadline.
44884
44885         * m4/getstr.m4: Remove.
44886         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
44887
44888 2003-01-12  Paul Eggert  <eggert@twinsun.com>
44889
44890         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
44891         to avoid collisions with libcurses and libreadline.
44892
44893         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
44894         * lib/getstr.h, getstr.c: Remove.
44895         * lib/getline.c: Include "getline.h", to check interface.
44896         Move body of old getstr.c here: this defines MIN_CHUNK and
44897         declares getdelim2, which is renamed from getstr.
44898         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
44899
44900         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
44901         All uses changed.
44902         * lib/linebuffer.h: Likewise.
44903         (readline): Remove backward-compatibility macro.
44904
44905 2003-01-12  Paul Eggert  <eggert@twinsun.com>
44906
44907         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
44908         to avoid collisions with libcurses and libreadline.
44909         * getstr: Remove.
44910         * MODULES.html.sh: Remove getstr.
44911         * modules/getline: Depend on unlocked-io, not getstr.
44912
44913 2003-01-12  Jim Meyering  <jim@meyering.net>
44914
44915         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
44916
44917 2003-01-10  Bruno Haible  <bruno@clisp.org>
44918
44919         * modules/alloca: Change Makefile.am requirements. Simplify Include
44920         requirements. Add lib/alloca_.h to file list.
44921
44922 2003-01-10  Bruno Haible  <bruno@clisp.org>
44923
44924         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
44925
44926 2003-01-10  Bruno Haible  <bruno@clisp.org>
44927
44928         * lib/alloca_.h: New file.
44929         * lib/getdate.y: Unconditionally include alloca.h.
44930         * lib/makepath.c: Likewise.
44931         * lib/setenv.c: Likewise.
44932         * lib/userspec.c: Likewise.
44933
44934 2003-01-09  Karl Berry  <karl@gnu.org>
44935
44936         * MODULES.html.sh: include `dirname $0` in PATH, to find
44937         gnulib-tool.
44938
44939 2003-01-09  Bruno Haible  <bruno@clisp.org>
44940
44941         * modules/stdbool: Change configure.ac, Makefile.am requirements.
44942         Simplify Include requirements. Add lib/stdbool.h.in to file list.
44943
44944 2003-01-09  Bruno Haible  <bruno@clisp.org>
44945
44946         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
44947
44948 2003-01-09  Bruno Haible  <bruno@clisp.org>
44949
44950         * lib/stdbool.h.in: New file.
44951
44952 2003-01-09  Bruno Haible  <bruno@clisp.org>
44953
44954         * gnulib-tool (func_all_modules): Ignore files ending in ~.
44955         * MODULES.html.sh: Likewise.
44956
44957 2003-01-08  Jim Meyering  <jim@meyering.net>
44958
44959         * lib/full-write.c: Undefine and define-away `const' after inclusion
44960         of errno.h, not before.  Suggestion from Bruno Haible.
44961
44962 2003-01-08  Bruno Haible  <bruno@clisp.org>
44963
44964         * modules/full-read: Depend on full-write.
44965
44966 2003-01-08  Bruno Haible  <bruno@clisp.org>
44967
44968         * lib/safe-read.c: Include specification header first, to ensure its
44969         selfcontainedness.
44970         * lib/full-write.c: Likewise.
44971
44972 2003-01-07  Jim Meyering  <jim@meyering.net>
44973
44974         * lib/full-write.c: Rework so that it may serve to define full_read,
44975         too.
44976         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
44977
44978 2003-01-07  Bruno Haible  <bruno@clisp.org>
44979
44980         * lib/strtoimax.c: Include <stdint.h> as an alternative to
44981         <inttypes.h>.
44982         * lib/xstrtol.h: Likewise.
44983         * lib/xstrtoimax.c: Likewise.
44984         * lib/xstrtoumax.c: Likewise.
44985         * lib/human.h: Likewise.
44986
44987         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
44988         on systems that have <inttypes.h> but not <stdint.h>.
44989
44990 2003-01-07  Bruno Haible  <bruno@clisp.org>
44991
44992         * MODULES.html.sh: Add copyright notice.
44993         (missed_files): Omit CVS directory entries.
44994         (func_module): Make it work with sed-3.02.
44995         * MODULES.txt: Remove file.
44996
44997 2003-01-06  Jim Meyering  <jim@meyering.net>
44998
44999         * lib/version-etc.c: Update year in translatable copyright string.
45000
45001 2003-01-03  Karl Berry  <karl@gnu.org>
45002
45003         * config/config.{guess,sub}: update from prep.
45004
45005 2003-01-02  Karl Berry  <karl@gnu.org>
45006
45007         * doc/COPYING.DOC: belatedly updated to 1.2.
45008
45009 2003-01-01  Karl Berry  <karl@gnu.org>
45010
45011         * gnulib-tool (func_verify_module): report module name $module in
45012         error message, not $1.
45013         * gnulib-tool (create-testdir): don't complain if destdir couldn't
45014         be created, only if it doesn't exist.
45015         * gnulib-tool (last_checkin_date): don't expand the $Date here.
45016
45017 2002-12-31  Paul Eggert  <eggert@twinsun.com>
45018
45019         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
45020
45021 2002-12-31  Paul Eggert  <eggert@twinsun.com>
45022
45023         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
45024         memcmp if strcoll doesn't work.
45025
45026 2002-12-31  Bruno Haible  <bruno@clisp.org>
45027
45028         * lib/utime.c (utime_null): No need to call ftruncate if the file was
45029         nonempty.
45030
45031 2002-12-31  Bruno Haible  <bruno@clisp.org>
45032
45033         * lib/memcoll.c (STRCOLL): New macro.
45034         (memcoll): Use it.
45035
45036 2002-12-31  Bruno Haible  <bruno@clisp.org>
45037
45038         * lib/localcharset.h: New file.
45039         * lib/localcharset.c: Include it.
45040         * lib/unicodeio.c: Likewise.
45041
45042 2002-12-31  Bruno Haible  <bruno@clisp.org>
45043
45044         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
45045         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
45046
45047 2002-12-31  Bruno Haible  <bruno@clisp.org>
45048
45049         * lib/getline.h: Include <stddef.h>, for size_t.
45050
45051         * lib/unicodeio.h: Include <stddef.h>, for size_t.
45052         * lib/unicodeio.c: Don't include <stddef.h>.
45053
45054 2002-12-31  Bruno Haible  <bruno@clisp.org>
45055
45056         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
45057         HAVE_TM_ZONE.
45058
45059 2002-12-24  Karl Berry  <karl@gnu.org>
45060
45061         * config/config.guess: update from prep.
45062
45063 2002-12-24  Bruno Haible  <bruno@clisp.org>
45064
45065         General infrasructure.
45066         * m4/README: Rewritten.
45067         * m4/onceonly.m4: New file.
45068         * m4/onceonly_2_57.m4: New file.
45069
45070         Module atexit.
45071         * m4/atexit.m4: New file.
45072
45073         Module strtod.
45074         * m4/strtod.m4: New file.
45075
45076         Module strtol.
45077         * m4/strtol.m4: New file.
45078
45079         Module strtoul.
45080         * m4/strtoul.m4: New file.
45081
45082         Module memchr.
45083         * m4/memchr.m4: New file.
45084
45085         Module memcmp.
45086         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
45087         (jm_FUNC_MEMCMP): Invoke it.
45088
45089         Module memcpy.
45090         * m4/memcpy.m4: New file.
45091
45092         Module memmove.
45093         * m4/memmove.m4: New file.
45094
45095         Module memset.
45096         * m4/memset.m4: New file.
45097
45098         Module strcspn.
45099         * m4/strcspn.m4: New file.
45100
45101         Module strpbrk.
45102         * m4/strpbrk.m4: New file.
45103
45104         Module strstr.
45105         * m4/strstr.m4: New file.
45106
45107         Module strerror.
45108         * m4/strerror.m4: New file.
45109
45110         Module mktime.
45111         * m4/mktime.m4: Renamed from jm-mktime.m4.
45112         (gl_PREREQ_MKTIME): New macro.
45113         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
45114
45115         Module malloc.
45116         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
45117         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
45118         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
45119
45120         Module realloc.
45121         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
45122         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
45123         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
45124
45125         Module strftime.
45126         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
45127         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
45128         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
45129         gl_TM_GMTOFF.
45130         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
45131
45132         Module xalloc.
45133         * m4/xalloc.m4: New file.
45134
45135         Module alloca.
45136         * m4/alloca.m4: New file.
45137
45138         Module putenv.
45139         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
45140         (jm_FUNC_PUTENV): Invoke it.
45141
45142         Module setenv.
45143         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
45144         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
45145         when invoked twice.
45146         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
45147         gt_FUNC_SETENV.
45148
45149         Module memrchr.
45150         * m4/memrchr.m4: New file.
45151
45152         Module stpcpy.
45153         * m4/stpcpy.m4: New file.
45154
45155         Module strcase.
45156         * m4/strcase.m4: New file.
45157
45158         Module strdup.
45159         * m4/strdup.m4: New file.
45160
45161         Module strnlen.
45162         * m4/strnlen.m4: New file.
45163
45164         Module strndup.
45165         * m4/strndup.m4: New file.
45166
45167         Module xstrtod.
45168         * m4/xstrtod.m4: New file.
45169
45170         Module xstrtol.
45171         * m4/xstrtol.m4: New file.
45172
45173         Module getdate.
45174         * m4/getdate.m4: New file.
45175
45176         Module unlocked-io.
45177         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
45178         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
45179         * m4/jm-glibc-io.m4n: Remove file.
45180
45181         Module long-options.
45182         * m4/long-options.m4: New file.
45183
45184         Module md5.
45185         * m4/md5.m4: New file.
45186
45187         Module sha.
45188         * m4/sha.m4: New file.
45189
45190         Module getstr.
45191         * m4/getstr.m4: New file.
45192
45193         Module getline.
45194         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
45195         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
45196         <sys/types.h>, for size_t. Use the function name gnu_getline, not
45197         simply getline. Infoke gl_PREREQ_GETLINE.
45198
45199         Module obstack.
45200         * m4/obstack.m4: New file.
45201
45202         Module hash.
45203         * m4/hash.m4: New file.
45204
45205         Module readtokens.
45206         * m4/readtokens.m4: New file.
45207
45208         Module strverscmp.
45209         * m4/strverscmp.m4: New file.
45210
45211         Module stdbool.
45212         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
45213         OSF/1.
45214
45215         Module strtoll.
45216         * m4/strtoll.m4: New file.
45217
45218         Module strtoull.
45219         * m4/strtoull.m4: New file.
45220
45221         Module strtoimax.
45222         * m4/strtoimax.m4: New file.
45223
45224         Module strtoumax.
45225         * m4/strtoumax.m4: New file.
45226
45227         Module xstrtoimax.
45228         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
45229         jm_AC_PREREQ_XSTRTOIMAX.
45230         Moved the strtol prerequisites to strtol.m4.
45231         Moved the strtoll prerequisites to strtoll.m4.
45232         Moved the strtoimax prerequisites to strtoimax.m4.
45233
45234         Module xstrtoumax.
45235         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
45236         jm_AC_PREREQ_XSTRTOUMAX.
45237         Moved the strtoul prerequisites to strtoul.m4.
45238         Moved the strtoull prerequisites to strtoull.m4.
45239         Moved the strtoumax prerequisites to strtoumax.m4.
45240
45241         Module chown.
45242         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
45243         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
45244
45245         Module dup2.
45246         * m4/dup2.m4: New file.
45247
45248         Module ftruncate.
45249         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
45250         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
45251
45252         Module getgroups.
45253         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
45254         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
45255
45256         Module gettimeofday.
45257         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
45258         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
45259         gl_PREREQ_GETTIMEOFDAY.
45260
45261         Module mkdir.
45262         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
45263         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
45264
45265         Module mkstemp.
45266         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
45267         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
45268         jm_AC_TYPE_UINTMAX_T.
45269         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
45270
45271         Module stat.
45272         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
45273         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
45274
45275         Module lstat.
45276         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
45277         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
45278
45279         Module timespec.
45280         * m4/timespec.m4 (gl_TIMESPEC): New macro.
45281         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
45282         * m4/st_mtim.m4: Indentation.
45283
45284         Module nanosleep.
45285         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
45286         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
45287         gl_PREREQ_NANOSLEEP.
45288
45289         Module regex.
45290         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
45291         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
45292         (gl_REGEX): New macro.
45293
45294         Module rename.
45295         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
45296         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
45297
45298         Module rmdir.
45299         * m4/rmdir.m4: New file.
45300
45301         Module utime.
45302         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
45303         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
45304         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
45305
45306         Module dirname.
45307         * m4/dirname.m4: New file.
45308
45309         Module getopt.
45310         * m4/getopt.m4: New file.
45311
45312         Module unistd-safer.
45313         * m4/unistd-safer.m4: New file.
45314
45315         Module fnmatch.
45316         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
45317         declaration.
45318         (gl_PREREQ_FNMATCH_EXTRA): New macro.
45319         (gl_FUNC_FNMATCH_POSIX): New macro.
45320         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
45321         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
45322         simply fnmatch.
45323
45324         Module exclude.
45325         * m4/exclude.m4: New file.
45326
45327         Module human.
45328         * m4/human.m4: New file.
45329
45330         Module acl.
45331         * m4/acl.m4: Nop.
45332
45333         Module backupfile.
45334         * m4/backupfile.m4: New file.
45335         * m4/d-ino.m4: Indentation.
45336
45337         Module fsusage.
45338         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
45339         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
45340         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
45341
45342         Module dirfd.
45343         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
45344         requirements.
45345
45346         Module euidaccess.
45347         * m4/euidaccess.m4: New file.
45348
45349         Module file-type.
45350         * m4/file-type.m4: New file.
45351
45352         Module fileblocks.
45353         * m4/fileblocks.m4: New file.
45354
45355         Module filemode.
45356         * m4/filemode.m4: New file.
45357
45358         Module isdir.
45359         * m4/isdir.m4: New file.
45360
45361         Module lchown.
45362         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
45363         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
45364
45365         Module makepath.
45366         * m4/makepath.m4: New file.
45367
45368         Module modechange.
45369         * m4/modechange.m4: New file.
45370
45371         Module mountlist.
45372         * m4/mountlist.m4: New file.
45373         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
45374         Indentation.
45375
45376         Module path-concat.
45377         * m4/path-concat.m4: New file.
45378
45379         Module pathmax.
45380         * m4/pathmax.m4: New file.
45381
45382         Module same.
45383         * m4/same.m4: New file.
45384
45385         Module save-cwd.
45386         * m4/save-cwd.m4: New file.
45387
45388         Module savedir.
45389         * m4/savedir.m4: New file.
45390
45391         Module xgetcwd.
45392         * m4/xgetcwd.m4: New file.
45393         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
45394
45395         Module xreadlink.
45396         * m4/xreadlink.m4: New file.
45397
45398         Module safe-read.
45399         * m4/safe-read.m4: New file.
45400
45401         Module safe-write.
45402         * m4/safe-write.m4: New file.
45403
45404         Module closeout.
45405         * m4/closeout.m4: New file.
45406
45407         Module stdio-safer.
45408         * m4/stdio-safer.m4: New file.
45409
45410         Module getpass.
45411         * m4/getpass.m4: New file.
45412
45413         Module getugroups.
45414         * m4/getugroups.m4: New file.
45415
45416         Module group-member.
45417         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
45418         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
45419
45420         Module idcache.
45421         * m4/idcache.m4: New file.
45422
45423         Module userspec.
45424         * m4/userspec.m4: New file.
45425
45426         Module gettime.
45427         * m4/clock_time.m4: New file.
45428         * m4/gettime.m4: New file.
45429
45430         Module settime.
45431         * m4/settime.m4: New file.
45432
45433         Module posixtm.
45434         * m4/posixtm.m4: New file.
45435
45436         Module gethostname.
45437         * m4/gethostname.m4: New file.
45438
45439         Module canon-host.
45440         * m4/canon-host.m4: New file.
45441
45442         Module gettext.
45443         * m4/codeset.m4: New file, from gettext-0.11.5.
45444         * m4/gettext.m4: New file, from gettext-0.11.5.
45445         * m4/glibc21.m4: New file, from gettext-0.11.5.
45446         * m4/iconv.m4: New file, from gettext-0.11.5.
45447         * m4/intdiv0.m4: New file, from gettext-0.11.5.
45448         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
45449         * m4/inttypes.m4: New file, from gettext-0.11.5.
45450         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
45451         * m4/isc-posix.m4: New file, from gettext-0.11.5.
45452         * m4/lcmessage.m4: New file, from gettext-0.11.5.
45453         * m4/lib-ld.m4: New file, from gettext-0.11.5.
45454         * m4/lib-link.m4: New file, from gettext-0.11.5.
45455         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
45456         * m4/progtest.m4: New file, from gettext-0.11.5.
45457         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
45458         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
45459         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
45460
45461         Module localcharset.
45462         * m4/localcharset.m4: New file.
45463
45464         Module hard-locale.
45465         * m4/hard-locale.m4: New file.
45466
45467         Module mbswidth.
45468         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
45469         onceonly macros.
45470         * m4/mbrtowc.m4: Add comment.
45471
45472         Module memcasecmp.
45473         * m4/memcasecmp.m4: New file.
45474
45475         Module memcoll.
45476         * m4/memcoll.m4: New file.
45477
45478         Module unicodeio.
45479         * m4/unicodeio.m4: New file.
45480
45481         Module rpmatch.
45482         * m4/rpmatch.m4: New file.
45483
45484         Module yesno.
45485         * m4/yesno.m4: New file.
45486
45487         Module exitfail.
45488         * m4/exitfail.m4: New file.
45489
45490         Module c-stack.
45491         * m4/c-stack.m4 (gl_C_STACK): New macro.
45492         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
45493
45494         Module error.
45495         * m4/error.m4 (gl_ERROR): New macro.
45496         (jm_PREREQ_ERROR): Use onceonly macros.
45497
45498         Module fatal.
45499         * m4/fatal.m4: New file.
45500
45501         Module getloadavg.
45502         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
45503         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
45504
45505         Module getpagesize.
45506         * m4/getpagesize.m4: New file.
45507
45508         Module getusershell.
45509         * m4/getusershell.m4: New file.
45510
45511         Module physmem.
45512         * m4/physmem.m4: New file.
45513
45514         Module posixver.
45515         * m4/posixver.m4: New file.
45516
45517         Module quotearg.
45518         * m4/quotearg.m4: New file.
45519
45520         Module quote.
45521         * m4/quote.m4: New file.
45522
45523         Module readutmp.
45524         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
45525
45526         Module sig2str.
45527         * m4/sig2str.m4: New file.
45528
45529         Other.
45530         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
45531         ulonglong.m4.
45532         * m4/intmax_t.m4: New file.
45533         * m4/d-type.m4: Indentation.
45534         * m4/jm-macros.m4: Update.
45535         * m4/prereq.m4 (jm_PREREQ): Update.
45536         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
45537         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
45538         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
45539         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
45540         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
45541         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
45542         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
45543         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
45544         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
45545         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
45546         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
45547         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
45548         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
45549         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
45550         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
45551         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
45552         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
45553         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
45554         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
45555
45556 2002-12-24  Bruno Haible  <bruno@clisp.org>
45557
45558         * MODULES.txt: Update according to m4/ changes.
45559
45560         Module gettext.
45561         * config.rpath: New file, from gettext-0.11.5.
45562
45563         * modules/*: New module descriptions.
45564         * gnulib-tool: New file.
45565         * MODULES.html.sh: New file.
45566
45567 2002-12-21  Karl Berry  <karl@gnu.org>
45568
45569         * doc/fdl.texi: update to version 1.2.
45570
45571 2002-12-19  Karl Berry  <karl@gnu.org>
45572
45573         * config/config.guess: update from prep.
45574
45575 2002-12-18  Bruno Haible  <bruno@clisp.org>
45576
45577         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
45578         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
45579
45580 2002-12-17  Bruno Haible  <bruno@clisp.org>
45581
45582         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
45583         stdlib.h, string.h.
45584
45585 2002-12-17  Bruno Haible  <bruno@clisp.org>
45586
45587         * lib/canon-host.c (strdup): Remove unused declaration.
45588
45589         * lib/fsusage.c: Include full_read.h.
45590         (get_fs_usage): Use full_read instead of safe_read.
45591
45592         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
45593
45594 2002-12-12  Karl Berry  <karl@gnu.org>
45595
45596         * config/config.guess: update from prep.
45597
45598 2002-12-11  Bruno Haible  <bruno@clisp.org>
45599
45600         * m4/setenv.m4: New file, from gettext-0.11.5.
45601
45602 2002-12-11  Bruno Haible  <bruno@clisp.org>
45603
45604         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
45605         not unsetenv().
45606         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
45607         modifications:
45608
45609         2002-12-11  Bruno Haible  <bruno@clisp.org>
45610
45611                 * setenv.c (alloca): Fall back to malloc.
45612                 (freea): New macro.
45613                 (setenv): Use freea() to free memory allocated with alloca().
45614
45615         2002-11-13  Bruno Haible  <bruno@clisp.org>
45616
45617                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
45618                 function declarations.
45619                 * unsetenv.c (unsetenv): Likewise.
45620
45621         2002-03-04  Bruno Haible  <bruno@clisp.org>
45622
45623                 Portability to AIX 4.3.3.
45624                 * unsetenv.c: New file, extracted from setenv.c.
45625                 * setenv.c: Move the unsetenv() function to unsetenv.c.
45626
45627         2001-12-20  Bruno Haible  <bruno@clisp.org>
45628
45629                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
45630                 use malloc instead. For SunOS 4.
45631
45632         2001-12-11  Bruno Haible  <bruno@clisp.org>
45633
45634                 * setenv.c: Declare alloca.
45635                 (compar_fn_t): New typedef.
45636                 (KNOWN_VALUE, STORE_VALUE): Use it.
45637
45638         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
45639         setenv.h.
45640
45641 2002-12-10  Paul Eggert  <eggert@twinsun.com>
45642
45643         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
45644         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
45645         Choose values that are less likely to collide with system fnmatch
45646         options.
45647         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
45648         defined (e.g., a pure POSIX system).
45649         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
45650         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
45651
45652 2002-12-06  Paul Eggert  <eggert@twinsun.com>
45653
45654         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
45655         a pain in practice to deal with generated m4 files.  This change
45656         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
45657
45658         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
45659         and jm-glibc-io.m4, as they are no longer a special case.
45660         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
45661         kludge and the auto-generation stuff.  Check only whether the
45662         functions are declared, not whether they exist, since older hosts
45663         that don't declare the functions can't use the optimization anyway.
45664
45665 2002-12-06  Jim Meyering  <jim@meyering.net>
45666
45667         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
45668
45669         Merge in changes from libc's misc/error.c, in preparation
45670         for the merge of gnulib's changes back into libc.
45671
45672         * lib/error.c (_): Define only if not already defined.
45673         Move definition to follow all #include directives.
45674         Include unlocked-io.h only if !_LIBC.
45675         [_LIBC]: Include <libio/libioP.h>.
45676         [USE_IN_LIBIO]: Include <libio/iolibio.h>
45677         (fflush): Tweak definition to use INTUSE.
45678         (putc): Define.
45679
45680 2002-12-05  Paul Eggert  <eggert@twinsun.com>
45681
45682         * lib/alloca.c [defined emacs]: Include "lisp.h".
45683         (xalloc_die) [defined emacs]: New macro.
45684         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
45685         [! defined emacs]: Include <xalloc.h>.
45686         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
45687         (pointer): Typedef to POINTER_TYPE *.
45688         (malloc): Remove decl; we now always use xmalloc.
45689         (alloca): Use old-style definition, since Emacs needs this.
45690         Check for arithmetic overflow when computing combined size.
45691
45692 2002-12-04  Paul Eggert  <eggert@twinsun.com>
45693
45694         Do not generate unlocked-io.h automatically, since it's easier to
45695         maintain it by hand.
45696
45697         * lib/unlocked-io.h: New file, from GNU diffutils,
45698         but with proper copyright notice and attribution.
45699         * lib/gen-uio: Remove.
45700         * lib/Makefile.am: Add copyright notice.
45701         (libfetish_a_SOURCES): Add unlocked-io.h.
45702         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
45703         (DISTCLEANFILES, io_functions): Remove macros.
45704         (EXTRA_DIST): Remove gen_uio.
45705         (unlocked-io.h): Remove rule.
45706
45707 2002-12-04  Jim Meyering  <jim@meyering.net>
45708
45709         Reflect the fact that stat.c and lstat.c are no longer generated.
45710         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
45711         (DISTCLEANFILES): Likewise.
45712         (EXTRA_DIST): Likewise.
45713         (all_local): Don't depend on stat.c or lstat.c.
45714         (stat.c, lstat.c): Remove rules.
45715         (EXTRA_DIST): Remove xstat.in.
45716
45717         * lib/xstat.in: Remove file.  Contents moved into stat.c.
45718         * lib/stat.c: New file.  Contents mostly from xstat.in.
45719         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
45720         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
45721
45722         * lib/safe-read.c: Rework so that it may serve to define safe_write,
45723         too.
45724         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
45725
45726 2002-12-03  Jim Meyering  <jim@meyering.net>
45727
45728         * lib/safe-read.c, safe-write.c: Change variable names and comments,
45729         but not semantics, to minimize the differences between these two files.
45730         (safe_read): Change comment to mention SAFE_READ_ERROR.
45731
45732         * lib/safe-read.c (IS_EINTR): Define.
45733         (safe_read): Use IS_EINTR in place of in-function cpp directives.
45734
45735 2002-12-02  Jim Meyering  <jim@meyering.net>
45736
45737         * lib/safe-read.c (EINTR): Define.
45738         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
45739         (INT_MAX): Provide fallback.
45740         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
45741
45742         * lib/safe-read.h (SAFE_READ_ERROR): Define.
45743
45744 2002-12-02  Bruno Haible  <bruno@clisp.org>
45745
45746         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
45747         Define, taken from safe-read.c.
45748         (INT_MAX): Provide fallback.
45749         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
45750         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
45751
45752         * lib/safe-read.c (EINTR): Remove definition.
45753         (safe_read): Don't use EINTR if it is absent.
45754
45755 2002-12-01  Jim Meyering  <jim@meyering.net>
45756
45757         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
45758         zero.
45759         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
45760
45761 2002-11-27  Paul Eggert  <eggert@twinsun.com>
45762
45763         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
45764         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
45765         with `if (! (value < limit)) abort ();', for readability.
45766
45767 2002-11-26  Karl Berry  <karl@gnu.org>
45768
45769         * lib/strdup.c: copy from libc again, with jim's ok.
45770         * lib/.cppi-disable: re-add strdup.c
45771
45772 2002-11-25  Karl Berry  <karl@gnu.org>
45773
45774         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
45775         instead of "strtol.c".
45776
45777 2002-11-25  Karl Berry  <karl@gnu.org>
45778
45779         * config/install-sh: update from automake for variable quoting, $0 in
45780         error msgs, etc.
45781
45782         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
45783         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
45784         entry.
45785
45786 2002-11-25  Jim Meyering  <jim@meyering.net>
45787
45788         * lib/mktime.c: Sync from libc, now that it has the latest fix.
45789
45790 2002-11-24  Karl Berry  <karl@gnu.org>
45791
45792         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
45793         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
45794
45795 2002-11-24  Jim Meyering  <jim@meyering.net>
45796
45797         Update from coreutils:
45798
45799         * lib/mktime.c: Merge in changes from libc.
45800
45801         Avoid a link-time failure on some Linux systems.
45802         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
45803         (otherwise).
45804         (__mon_yday): Declare with the STATIC attribute.
45805         (__mktime_internal): Likewise.
45806         Based on a report from Greg Schafer.
45807
45808 2002-11-23  Jim Meyering  <jim@meyering.net>
45809
45810         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
45811         Use `unsigned', not `int', as type of index.
45812
45813         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
45814
45815         * lib/fsusage.c: Remove unneeded parentheses around operands of
45816         `defined'.
45817
45818 2002-11-22  Paul Eggert  <eggert@twinsun.com>
45819
45820         * lib/quotearg.h: Allow multiple inclusion by surrounding with
45821         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
45822         so that we can be included first.
45823         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
45824         * lib/quotearg.c: Include quotearg.h immediately after config.h.
45825         No need to include stddef.h or sys/types.h any more.
45826         Surround local include files with "", not "<>".
45827         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
45828         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
45829         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
45830         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
45831         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
45832         (ISPRINT): Remove; no longer needed now that we assume C89.
45833
45834         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
45835         Preserve errno.
45836
45837         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
45838         quotearg_char): Use SIZE_MAX rather than
45839         (size_t) -1 when we are talking about "infinity".
45840
45841         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
45842
45843 2002-11-22  Paul Eggert  <eggert@twinsun.com>
45844
45845         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
45846         hint that one should use `if (! x) abort ();' rather than `assert
45847         (x);', and anyway it's one less thing to worry about configuring.
45848         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
45849         hash_rehash, hash_insert): Use abort rather than assert.
45850
45851 2002-11-22  Bruno Haible  <bruno@clisp.org>
45852
45853         * lib/safe-read.h: Assume C89. Add comments.
45854         (safe_read): Change return type to size_t.
45855         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
45856         byte counts > SSIZE_MAX correctly.
45857         * lib/safe-write.h: New file.
45858         * lib/safe-write.c: New file.
45859         * lib/full-read.h: New file.
45860         * lib/full-read.c: New file.
45861         * lib/full-write.h: Assume C89. Add comments.
45862         * lib/full-write.c: Include safe-write.h.
45863         (full_write): Rewritten to use safe_write.
45864         Suggested by Jim Meyering and Paul Eggert.
45865
45866 2002-11-21  Jim Meyering  <jim@meyering.net>
45867
45868         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
45869
45870         Merge in changes from the coreutils.
45871
45872         2002-09-25  Paul Eggert  <eggert@twinsun.com>
45873         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
45874         <stdint.h>.
45875         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
45876         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
45877         int.  Work more efficiently if X is the same width as uintmax_t.
45878         Do not compare X to -1, to avoid bogus compiler warning.
45879         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
45880         Don't assume that f_frsize and f_bsize are the same type.
45881
45882         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
45883         warning on FreeBSD.
45884
45885         * lib/makepath.c (make_path): Restore umask *before* creating the final
45886         component.
45887         (make_path): Minor reformatting.
45888
45889         * lib/xmalloc.c: Adjust to work with new autoconf macros,
45890         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
45891         HAVE_MALLOC/HAVE_REALLOC.
45892
45893         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
45894         dummy ones.  At least on GNU/Linux systems, `auto' means something
45895         else.
45896         From Michael Stone.
45897
45898 2002-11-21  Bruno Haible  <bruno@clisp.org>
45899
45900         Remove case insensitive option matching.
45901         * lib/argmatch.h (argcasematch): Remove declaration.
45902         (ARGCASEMATCH): Remove macro.
45903         (__xargmatch_internal): Remove case_sensitive argument.
45904         (XARGMATCH): Update.
45905         (XARGCASEMATCH): Remove macro.
45906         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
45907         case_sensitive argument.
45908         (argcasematch): Remove function.
45909         (__xargmatch_internal): Remove case_sensitive argument.
45910         (main): Use XARGMATCH instead of XARGCASEMATCH.
45911
45912         * lib/xmalloc.c: Change compile-time error message. Add comment about
45913         required autoconf version.
45914
45915 2002-11-20  Paul Eggert  <eggert@twinsun.com>
45916
45917         Merge argmatch cleanups from Bison.  Assume C89.
45918
45919         * lib/argmatch.c: Include config.h here, not in argmatch.h.
45920         Include stdlib.h, for EXIT_FAILURE.
45921         Always include <string.h>, since we assume C89.
45922         (EXIT_FAILURE): Remove pre-C89 bug workaround.
45923         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
45924         Include <stddef.h> instead, since it's all we need for size_t.
45925         (PARAMS): Remove.  All uses removed.
45926         (ARRAY_CARDINALITY): Do not bother to #undef.
45927         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
45928         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
45929         Remove unnecessary parentheses.
45930         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
45931         Insert necessary parentheses.
45932         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
45933         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
45934
45935 2002-11-19  Bruno Haible  <bruno@clisp.org>
45936
45937         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
45938         * lib/mbswidth.h: Include <stddef.h>, for size_t.
45939
45940         * lib/mbswidth.h (PARAMS): Remove macro.
45941         (mbswidth, mbsnwidth): Use ANSI C function declarations.
45942         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
45943
45944         * lib/gcd.h (PARAMS): Remove macro.
45945         (gcd): Use ANSI C function declarations.
45946         * lib/gcd.c (gcd): Likewise.
45947
45948 2002-11-15  Bruno Haible  <bruno@clisp.org>
45949
45950         * lib/strcspn.c: Include <stddef.h>.
45951         (strcspn): Use ANSI C function declaration. Change return type to
45952         size_t. Use NULL.
45953         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
45954         (strpbrk): Use NULL.
45955         * lib/strpbrk.h (PARAMS): Remove macro.
45956         (strpbrk): Use ANSI C function declaration.
45957         * lib/strstr.c: Don't include <sys/types.h>.
45958         * lib/strstr.h (PARAMS): Remove macro.
45959         (strstr): Use ANSI C function declarations.
45960
45961 2002-11-14  Karl Berry  <karl@gnu.org>
45962
45963         * config/mkinstalldirs: `do' on separate line, instead of
45964         `for var; do'.
45965
45966 2002-11-06  Bruno Haible  <bruno@clisp.org>
45967
45968         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
45969         * lib/gcd.c (gcd): Likewise.
45970
45971 2002-11-05  Bruno Haible  <bruno@clisp.org>
45972
45973         * lib/gcd.h: New file, from gettext-0.11.5.
45974         * lib/gcd.c: New file, from gettext-0.11.5.
45975
45976 2002-11-05  Bruno Haible  <bruno@clisp.org>
45977
45978         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
45979         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
45980         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
45981         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
45982
45983         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
45984         <libintl.h>.
45985         * lib/makepath.c: Include gettext.h instead of <locale.h> and
45986         <libintl.h>.
45987
45988         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
45989         * lib/human.c: Include gettext.h instead of <libintl.h>.
45990         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
45991         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
45992         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
45993         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
45994         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
45995         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
45996         (textdomain): Remove definition.
45997         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
45998
45999         * lib/long-options.c: Remove include of <libintl.h> and definition of
46000         _.
46001         * lib/same.c: Remove include of <libintl.h> and definition of _.
46002
46003 2002-11-04  Owen Taylor  <otaylor@redhat.com>
46004
46005         * lib/config.charset: A few additions for Solaris.
46006
46007 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
46008
46009         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
46010         * lib/localcharset.c (locale_charset): Declare as extern "C".
46011
46012 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
46013
46014         * lib/config.charset: msdos in uk_UA uses CP1125.
46015
46016 2002-11-04  Bruno Haible  <bruno@clisp.org>
46017
46018         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
46019         * lib/strcase.h: New file, from GNU gettext-0.11.5.
46020         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
46021         * lib/strstr.h: New file, from GNU gettext-0.11.5.
46022         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
46023
46024 2002-11-04  Bruno Haible  <bruno@clisp.org>
46025
46026         * lib/localcharset.c (locale_charset): Don't return an empty string.
46027
46028 2002-11-04  Bruno Haible  <bruno@clisp.org>
46029
46030         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
46031         aliases.
46032
46033 2002-11-04  Bruno Haible  <bruno@clisp.org>
46034
46035         * lib/config.charset: Update for newest glibc. Add canonical names
46036         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
46037
46038 2002-11-04  Bruno Haible  <bruno@clisp.org>
46039
46040         * lib/config.charset: Add support for NetBSD.
46041
46042 2002-11-04  Bruno Haible  <bruno@clisp.org>
46043
46044         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
46045
46046 2002-11-01  Bruno Haible  <bruno@clisp.org>
46047
46048         * configure.in: Add AC_CONFIG_AUX_DIR call.
46049         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
46050         test/Makefile.
46051         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
46052
46053 2002-09-28  Karl Berry  <karl@gnu.org>
46054
46055         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
46056         installed automake until the next release, since changes have been
46057         made.
46058
46059 2002-09-25  Karl Berry  <karl@gnu.org>
46060
46061         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
46062         * lib/getopt*: copy from libc/posix.
46063         * lib/gettext.h: copy from gettext.
46064         * lib/.cppi-disable: add strdup.c, gettext.h.
46065
46066 2002-09-25  Karl Berry  <karl@gnu.org>
46067
46068         * config/srclist.txt: enable gettext.h check.
46069         * config/config.{guess,sub}: update from prep.
46070         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
46071                 from automake 1.6.3.
46072         See srclist*.
46073
46074 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
46075
46076         * regex.c (PATFETCH): Remove the translating fetch.
46077         (PATFETCH_RAW): Rename to PATFETCH.
46078         (set_image_of_range): New fun.
46079         (SET_RANGE_TABLE_WORK_AREA): Use it.
46080         (regex_compile): Don't translate the pattern chars so eagerly.
46081         Only do it when inserting an `exactn' bytecode or when handling
46082         a char-range.
46083         (mutually_exclusive_p): Avoid empty statement.
46084
46085 2002-07-06  Jim Meyering  <meyering@lucent.com>
46086
46087         * m4/README: Don't mention Makefile.am.in.
46088         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
46089
46090 2002-07-01  Jim Meyering  <meyering@lucent.com>
46091
46092         * lib/c-stack.c: Include sys/time.h.
46093         From Volker Borchert.
46094
46095 2002-06-26  Paul Eggert  <eggert@twinsun.com>
46096
46097         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
46098
46099 2002-06-26  Paul Eggert  <eggert@twinsun.com>
46100
46101         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
46102         New macro.  Use it uniformly instead of
46103         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
46104         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
46105         reported by Vin Shelton.
46106
46107 2002-06-22  Paul Eggert  <eggert@twinsun.com>
46108
46109         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
46110         Do not assume SA_SIGINFO behavior.
46111         Bug reported by Jim Meyering on NetBSD 1.5.2.
46112
46113 2002-06-22  Jim Meyering  <meyering@lucent.com>
46114
46115         * m4/c-stack.m4: New file, from diffutils-2.8.2.
46116         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
46117
46118         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
46119         now that configure.ac uses AC_GNU_SOURCE.
46120         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
46121         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
46122
46123         Update to latest tools.  Suggestions from Paul Eggert.
46124         * m4/stdbool.m4: New file, from diffutils-2.8.2.
46125         * m4/gnu-source.m4: Update from diffutils-2.8.2.
46126         * m4/fnmatch.m4: Likewise.
46127         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
46128         to AC_HEADER_STDBOOL
46129
46130 2002-06-22  Jim Meyering  <meyering@lucent.com>
46131
46132         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
46133         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
46134
46135 2002-06-22  Jim Meyering  <meyering@lucent.com>
46136
46137         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
46138
46139         * lib/exitfail.c, exitfail.h: Likewise.
46140         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
46141
46142         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
46143         of fnmatch.h.
46144         (EXTRA_DIST): Add fnmatch_loop.c.
46145         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
46146
46147         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
46148         * lib/fnmatch.c: Update from diffutils-2.8.2.
46149         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
46150         * lib/fnmatch.h: Remove file.
46151
46152 2002-06-21  Jim Meyering  <meyering@lucent.com>
46153
46154         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
46155         * m4/mbrtowc.m4: Likewise.
46156
46157         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
46158         * m4/mbswidth.m4: Reflect name change:
46159         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
46160         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
46161
46162         * m4/lib-link.m4: Update from gettext-0.11.2.
46163         * m4/gettext.m4: Likewise.
46164
46165         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
46166         From Alfred M. Szmidt.
46167
46168 2002-06-18  Paul Eggert  <eggert@twinsun.com>
46169
46170         * lib/file-type.h: Report an error if neither S_ISREG nor
46171         S_IFREG is defined, instead of using a test specific to glibc
46172         2.2.  This should be safe, since POSIX requires S_ISREG and
46173         Unix Version 7 had S_IFREG.  We don't need to check for
46174         <sys/types.h> since we don't use any symbols that it defines.
46175
46176 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
46177
46178         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
46179         $@-t, so that each temporary file name is unique and valid in the first
46180         8 characters, for operation under DOS.
46181
46182 2002-06-15  Paul Eggert  <eggert@twinsun.com>
46183
46184         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
46185
46186 2002-06-15  Jim Meyering  <meyering@lucent.com>
46187
46188         Work even with DJGPP 2.03, which lacks support for symlinks.
46189         From Richard Dawe.
46190         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
46191         is defined.
46192         * lib/lchown.c (S_ISLNK): Likewise.
46193
46194 2002-06-15  Jim Meyering  <meyering@lucent.com>
46195
46196         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
46197         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
46198         have been included before this file.
46199
46200 2002-06-14  Jim Meyering  <meyering@lucent.com>
46201
46202         * lib/file-type.h: Use the version from diffutils-2.8.2.
46203         * lib/file-type.c: Likewise.
46204
46205 2002-06-07  Jim Meyering  <meyering@lucent.com>
46206
46207         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
46208         They're needed at least for NetBSD 1.5.2.
46209         ($statxfs_includes): Include those same headers.
46210         ($statxfs_includes): Include sys/vfs.h if available.
46211         ($statxfs_includes): Likewise for sys/statvfs.h.
46212         Check for the following members in both structs statfs and statvfs:
46213         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
46214
46215 2002-06-01  Jim Meyering  <meyering@lucent.com>
46216
46217         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
46218         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
46219
46220 2002-05-28  Jim Meyering  <meyering@lucent.com>
46221
46222         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
46223         Reported by Volker Borchert.
46224
46225 2002-05-27  Jim Meyering  <meyering@lucent.com>
46226
46227         Fix a problem seen only on nonconforming systems whereby ls.c's
46228         use of localtime, and then of gettimeofday would cause trouble:
46229         the localtime call used to initialize rpl_gettimeofday's save
46230         mechanism would clobber ls's current local time information so
46231         that in any long listing the first file would always be listed
46232         with date 1970-01-01.  Analysis by Volker Borchert.
46233
46234         * lib/gettimeofday.c (localtime): Undefine.
46235         (rpl_localtime): New function.
46236
46237 2002-05-27  Jim Meyering  <meyering@lucent.com>
46238
46239         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
46240         localtime.
46241
46242         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
46243         use the replacement function; it wouldn't resolve at link time.
46244         Reported by Volker Borchert.
46245
46246 2002-05-22  Jim Meyering  <meyering@lucent.com>
46247
46248         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
46249         file-type.h.
46250         * lib/file-type.h: New file.
46251         * lib/file-type.c (file_type): New file/function.  Extracted from
46252         diffutils.
46253
46254 2002-04-30  Jim Meyering  <meyering@lucent.com>
46255
46256         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
46257
46258 2002-04-29  Paul Eggert  <eggert@twinsun.com>
46259
46260         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
46261
46262 2002-04-29  Paul Eggert  <eggert@twinsun.com>
46263
46264         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
46265         Do not check for alloca.h (no longer used) or stdbool.h (was never
46266         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
46267
46268 2002-04-29  Paul Eggert  <eggert@twinsun.com>
46269
46270         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
46271
46272 2002-04-29  Jim Meyering  <meyering@lucent.com>
46273
46274         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
46275         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
46276         Use AC_FUNC_STRNLEN here instead.
46277
46278         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
46279         With autoconf-2.53a, it's part of AC_PROG_CC.
46280
46281 2002-04-28  Paul Eggert  <eggert@twinsun.com>
46282
46283         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
46284         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
46285
46286 2002-04-28  Paul Eggert  <eggert@twinsun.com>
46287
46288         * lib/sig2str.h, lib/sig2str.c: New files.
46289         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
46290
46291 2002-04-28  Paul Eggert  <eggert@twinsun.com>
46292
46293         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
46294         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
46295         of 127, since 64 is the largest conceivable number for ancient
46296         nonstandard hosts.
46297         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
46298
46299 2002-04-28  Jim Meyering  <meyering@lucent.com>
46300
46301         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
46302
46303 2002-04-24  Jim Meyering  <meyering@lucent.com>
46304
46305         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
46306         (jm_PREREQ): Use it.
46307
46308         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
46309         mach/mach.h fcntl.h.
46310         Check for this function: setlocale.
46311
46312 2002-04-24  Jim Meyering  <meyering@lucent.com>
46313
46314         * lib/gettext.h: New file, from Gettext.
46315         * lib/Makefile.am (INCLUDES): Remove -I../intl.
46316         (libfetish_a_SOURCES): Add gettext.h.
46317
46318 2002-04-16  Jim Meyering  <meyering@lucent.com>
46319
46320         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
46321         ut_pid, ut_id, ut_exit.
46322
46323 2002-04-16  Jim Meyering  <meyering@lucent.com>
46324
46325         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
46326         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
46327         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
46328
46329 2002-04-12  Jim Meyering  <meyering@lucent.com>
46330
46331         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
46332         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
46333         existence of the getmntinfo function.  Needed for Darwin 5.3.
46334
46335         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
46336         This is necessary at least on Darwin 5.3.
46337
46338         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
46339         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
46340         strnlen.o in the library, and that makes some versions of ranlib
46341         object.
46342
46343 2002-04-12  Jim Meyering  <meyering@lucent.com>
46344
46345         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
46346
46347 2002-04-09  Jim Meyering  <meyering@lucent.com>
46348
46349         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
46350         to be more precise.  Rather than saying we're checking whether the
46351         function `works', say what we're testing.
46352         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
46353         Reported by Bruno Haible.
46354
46355 2002-03-10  Jim Meyering  <meyering@lucent.com>
46356
46357         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
46358         Suggestion from Santiago Vila.
46359
46360 2002-03-08  Jim Meyering  <meyering@lucent.com>
46361
46362         * lib/rename.c: Mention that this wrapper is needed also on
46363         mips-dec-ultrix4.4 systems.
46364
46365 2002-03-02  Jim Meyering  <meyering@lucent.com>
46366
46367         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
46368         not HAVE_CLOCK_SETTIME.
46369
46370 2002-02-27  Paul Eggert  <eggert@twinsun.com>
46371
46372         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
46373         Check for clock_settime.
46374
46375 2002-02-27  Paul Eggert  <eggert@twinsun.com>
46376
46377         * lib/nanosleep.h: Rename to....
46378         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
46379
46380         * lib/gettime.c: New file.
46381         * lib/settime.c: New file.
46382         * lib/stime.c: Remove.
46383
46384         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
46385         timespec.h.  Remove nanosleep.h.
46386
46387 2002-02-25  Paul Eggert  <eggert@twinsun.com>
46388
46389         * m4/acl.m4: New file.
46390         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
46391         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
46392
46393 2002-02-25  Paul Eggert  <eggert@twinsun.com>
46394
46395         * lib/acl.c, lib/acl.h: New files.
46396         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
46397
46398 2002-02-24  Jim Meyering  <meyering@lucent.com>
46399
46400         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
46401         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
46402         cause trouble.  Reported by Nelson Beebe.
46403
46404 2002-02-23  Paul Eggert  <eggert@twinsun.com>
46405
46406         * lib/path-concat.c (xpath_concat): Reorder code to pacify
46407         compilers that don't know that xalloc_die never returns.
46408
46409 2002-02-20  Jim Meyering  <meyering@lucent.com>
46410
46411         * lib/getdate.c: Regenerate using bison-1.33.
46412
46413 2002-02-17  Jim Meyering  <meyering@lucent.com>
46414
46415         * config/config.guess (main): Don't use `head -1'; it's no longer
46416         portable. Use `sed 1q' instead.
46417
46418 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
46419
46420         * m4/codeset.m4: Upgrade to gettext-0.11.
46421         * m4/gettext.m4: Upgrade to gettext-0.11.
46422         * m4/glibc21.m4: Upgrade to gettext-0.11.
46423         * m4/iconv.m4: Upgrade to gettext-0.11.
46424         * m4/isc-posix.m4: Upgrade to gettext-0.11.
46425         * m4/lcmessage.m4: Upgrade to gettext-0.11.
46426         * m4/lib-ld.m4: New file, from gettext-0.11.
46427         * m4/lib-link.m4: New file, from gettext-0.11.
46428         * m4/lib-prefix.m4: New file, from gettext-0.11.
46429         * m4/progtest.m4: Upgrade to gettext-0.11.
46430
46431 2002-02-15  Paul Eggert  <eggert@twinsun.com>
46432
46433         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
46434         (jm_PREREQ): Use it.
46435
46436 2002-02-15  Paul Eggert  <eggert@twinsun.com>
46437
46438         * lib/posixver.c, lib/posixver.h: New files.
46439         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
46440
46441 2002-02-02  Paul Eggert  <eggert@twinsun.com>
46442             Bruno Haible  <bruno@clisp.org>
46443
46444         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
46445         (fwrite_success_callback): New declaration.
46446         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
46447         print_unicode_char. Call failure callback instead of error.
46448         (fwrite_success_callback): New function.
46449         (exit_failure_callback): New function.
46450         (fallback_failure_callback): New function.
46451         (print_unicode_char): Call unicode_to_mb.
46452
46453 2002-01-26  Jim Meyering  <meyering@lucent.com>
46454
46455         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
46456         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
46457
46458 2002-01-26  Jim Meyering  <meyering@lucent.com>
46459
46460         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
46461
46462 2002-01-22  Paul Eggert  <eggert@twinsun.com>
46463
46464         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
46465
46466 2002-01-22  Jim Meyering  <meyering@lucent.com>
46467
46468         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
46469         Otherwise, some versions of automake would omit the rule that makes
46470         Makefile from Makefile.in.
46471
46472 2002-01-21  Paul Eggert  <eggert@twinsun.com>
46473
46474         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
46475         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
46476         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
46477         (memcoll): Set errno to zero if there is no error.
46478
46479         * lib/quotearg.c (quotearg_buffer_restyled):
46480         Fix bug with quoting buffers containing NUL when backslashing escapes.
46481         This bug was exposed by the other changes in this patch.
46482         (quotearg_n_options): New arg ARGSIZE.
46483         All callers changed.
46484         (quoting_options_from_style): New function.
46485         (quotearg_n_style): Use it.
46486         (quotearg_n_style_mem): New function.
46487
46488         * lib/quotearg.h (quotearg_n_style_mem): New function.
46489
46490 2002-01-19  Jim Meyering  <meyering@lucent.com>
46491
46492         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
46493         Remove useless quotes: DF_PROG="df".
46494         * m4/strnlen.m4: New file.
46495
46496 2002-01-16  Paul Eggert  <eggert@twinsun.com>
46497
46498         * lib/backupfile.c (ISDIGIT): Comment fix.
46499         * lib/getdate.y (ISDIGIT): Likewise.
46500         * lib/posixtm.c (ISDIGIT, year): Likewise.
46501         * lib/strverscmp.c (ISDIGIT): Likewise.
46502         * lib/userspec.c (ISDIGIT): Likewise.
46503
46504 2002-01-16  Jim Meyering  <meyering@lucent.com>
46505
46506         * lib/getdate.y: Add three semicolons, each just before a closing
46507         brace. Bison (as of version 1.31) no longer papers over that mistake.
46508
46509 2002-01-05  Jim Meyering  <meyering@lucent.com>
46510
46511         * lib/version-etc.c (version_etc_copyright): Update copyright year.
46512
46513 2001-12-19  Paul Eggert  <eggert@twinsun.com>
46514
46515         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
46516         not silently exit merely because the output buffer happens to
46517         have nothing pending.
46518
46519 2001-12-18  Paul Eggert  <eggert@twinsun.com>
46520
46521         See the big note in ../ChangeLog.
46522         * lib/human.c (suffixes): Prefer K to k for 1024.
46523         (generate_suffix_backwards): New function.
46524         (human_readable_inexact): Use it.
46525         * lib/xstrtol.c (__xstrtol): If there is no number but there
46526         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
46527         Accept 'K' as well as 'k'.
46528
46529 2001-12-15  Jim Meyering  <meyering@lucent.com>
46530
46531         * lib/regex.h (__restrict_arr): Update from libc.
46532
46533         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
46534         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
46535         (STREQ): Define.
46536
46537 2001-12-14  Jim Meyering  <meyering@lucent.com>
46538
46539         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
46540         Suggestion from Bruno Haible.
46541
46542 2001-12-10  Jim Meyering  <meyering@lucent.com>
46543
46544         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
46545         xrealloc, Instead, include "xalloc.h".
46546         (initbuffer): Don't cast xmalloc return value to char*.
46547         (readline): Reword comment.
46548         Don't cast xrealloc return value to char*
46549         Return NULL, not 0.
46550
46551 2001-12-09  Jim Meyering  <meyering@lucent.com>
46552
46553         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
46554         about `signed and unsigned type in conditional expression'.
46555         * lib/posixtm.c (posix_time_parse): Likewise.
46556
46557         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
46558
46559         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
46560         to avoid a pedantic warning.
46561
46562         * lib/getstr.c: Don't include assert.h.
46563         (getstr): Remove warning-evoking assertions.
46564         Return -1 if offset parameter is out of bounds.
46565         Change the type of a local from int to size_t.
46566
46567         * lib/strftime.c (my_strftime_localtime_r): Include this function
46568         definition in the `#if ! HAVE_TM_GMTOFF' block.
46569
46570         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
46571         Include xalloc.h instead.
46572
46573 2001-12-02  Jim Meyering  <meyering@lucent.com>
46574
46575         * lib/tempname.c: Don't declare getenv, thus reverting the change of
46576         2001-11-18.  It's no longer necessary, now that stdlib.h is always
46577         included.
46578
46579         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
46580         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
46581
46582 2001-11-30  Akim Demaille  <akim@epita.fr>
46583
46584         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
46585         before being defined.
46586
46587 2001-11-27  Paul Eggert  <eggert@twinsun.com>
46588
46589         * lib/quotearg.h (quotearg_n, quotearg_n_style):
46590         First arg is int, not unsigned.
46591         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
46592         (SIZE_MAX, UINT_MAX): New macros.
46593         (quotearg_n_options): Abort if N is negative.
46594         Avoid overflow check on hosts where size_t is 64 bits and int
46595         is 32 bits, as overflow is impossible there.
46596         Fix off-by-one typo that caused unnecessary reallocation.
46597
46598 2001-11-27  Jim Meyering  <meyering@lucent.com>
46599
46600         * lib/tempname.c: Merge with version from libc.
46601         * lib/regex.c: Likewise.
46602
46603         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
46604         systems for which STDC_HEADERS is 0, it was not included, resulting in
46605         a warning about an integer-to-pointer conversion problem with getenv.
46606         Reported by Volker Borchert.
46607
46608 2001-11-26  Jim Meyering  <meyering@lucent.com>
46609
46610         * lib/gtod.h: Remove file.
46611         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
46612         * lib/gettimeofday.c: Don't include gtod.h.
46613         (GTOD_init): Remove function.
46614         (rpl_gettimeofday): Do its job here instead, rather than aborting.
46615         Suggestion from Volker Borchert.
46616
46617 2001-11-23  Jim Meyering  <meyering@lucent.com>
46618
46619         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
46620         it.
46621         * lib/hash.c (struct hash_table): Define it here instead.
46622
46623 2001-11-22  Jim Meyering  <meyering@lucent.com>
46624
46625         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
46626
46627 2001-11-20  Jim Meyering  <meyering@lucent.com>
46628
46629         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
46630         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
46631
46632 2001-11-19  Jim Meyering  <meyering@lucent.com>
46633
46634         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
46635         directory.  Use "conftestXXXXXX" as the template.
46636         Suggestion from Paul Eggert.
46637
46638         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
46639         immediately, so the test doesn't mistakenly hit the max-open-files
46640         limit.
46641
46642 2001-11-18  Paul Eggert  <eggert@twinsun.com>
46643
46644         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
46645         (TEMPORARIES): New macro.
46646         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
46647         removes an artificial limitation (e.g. HP-UX 10.20, where
46648         TMP_MAX is 17576).
46649
46650 2001-11-18  Jim Meyering  <meyering@lucent.com>
46651
46652         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
46653
46654 2001-11-18  Jim Meyering  <meyering@lucent.com>
46655
46656         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
46657         on SunOS 4.
46658
46659         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
46660         files will be created before anything else.
46661
46662 2001-11-17  Paul Eggert  <eggert@twinsun.com>
46663
46664         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
46665         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
46666
46667 2001-11-17  Jim Meyering  <meyering@lucent.com>
46668
46669         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
46670         Prompted by a report from Bob Proulx.
46671
46672         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
46673         Instead, require UTILS_FUNC_MKSTEMP.
46674
46675 2001-11-17  Jim Meyering  <meyering@lucent.com>
46676
46677         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
46678         Now, that's done as part of AC_FUNC_STRTOD.
46679
46680 2001-11-17  Jim Meyering  <meyering@lucent.com>
46681
46682         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
46683         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
46684         rather than group writable.  Patch by Juan F. Codagnone.
46685
46686         * lib/readtokens.c: Remove explicit declarations of xmalloc and
46687         xrealloc, Instead, include "xalloc.h".
46688
46689         * lib/mountlist.c: Include unlocked-io.h after all system headers.
46690         Remove explicit declarations of xmalloc, xrealloc,
46691         and xstrdup.  Instead, include "xalloc.h".
46692
46693         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
46694         unlocked-io.h.
46695         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
46696         Likewise.
46697         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
46698
46699         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
46700         Reported by Padraig Brady.
46701
46702         * lib/mkstemp.c: #undef mkstemp.
46703         Include config.h.
46704         (rpl_mkstemp): Rename from mkstemp.
46705         Protoize.
46706
46707 2001-11-16  Jim Meyering  <meyering@lucent.com>
46708
46709         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
46710         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
46711         determine the amount of total physical memory, use pstat_getstatic.
46712         HPUX-11 doesn't define _SC_PHYS_PAGES.
46713         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
46714         If sysconf couldn't be used to determine the amount of available
46715         physical memory, use both pstat_getstatic and pstat_getdynamic.
46716         Based on a patch from Bob Proulx.
46717
46718 2001-11-10  Jim Meyering  <meyering@lucent.com>
46719
46720         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
46721         (jm_PREREQ): Use it.
46722
46723 2001-11-09  Jim Meyering  <meyering@lucent.com>
46724
46725         * m4/jm-macros.m4: Require autoconf-2.52f.
46726         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
46727         Use these AC_-prefixed names, not the AM_-prefixed ones.
46728
46729         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
46730
46731 2001-11-05  Jim Meyering  <meyering@lucent.com>
46732
46733         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
46734
46735 2001-11-04  Jim Meyering  <meyering@lucent.com>
46736
46737         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
46738         $DEFS.
46739
46740 2001-11-03  Jim Meyering  <meyering@lucent.com>
46741
46742         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
46743         of AC_DEFUN.
46744
46745         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
46746         know the name of the variable in the macro definition.
46747
46748 2001-11-03  Jim Meyering  <meyering@lucent.com>
46749
46750         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
46751         in argmatch_to_argument call.
46752
46753         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
46754         argument.
46755
46756         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
46757         e.g., a fault due to an attempt to free a NULL pointer.
46758
46759 2001-11-01  Jim Meyering  <meyering@lucent.com>
46760
46761         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
46762         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
46763
46764 2001-11-01  Jim Meyering  <meyering@lucent.com>
46765
46766         * lib/dirfd.c, lib/dirfd.h: New files.
46767         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
46768
46769         * lib/hash.c (hash_print) [TESTING]: Clean up.
46770
46771 2001-10-22  Paul Eggert  <eggert@twinsun.com>
46772
46773         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
46774         to avoid a warning if -Wall.
46775
46776 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
46777
46778         * README: New file
46779         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
46780         (per RMS's instructions, this is now the canonical source)
46781         * lgpl/, gpl/: New directories.
46782
46783 2001-10-21  Paul Eggert  <eggert@twinsun.com>
46784
46785         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
46786
46787 2001-10-21  Jim Meyering  <meyering@lucent.com>
46788
46789         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
46790         this code would end up calling gettext even in packages built
46791         with --disable-nls.
46792         * lib/getopt.c (_): Likewise.
46793         * lib/regex.c (_): Likewise.
46794
46795 2001-10-20  Paul Eggert  <eggert@twinsun.com>
46796
46797         * m4/error.m4 (jm_PREREQ_ERROR):
46798         Do not invoke AC_CHECK_FUNCS with strerror_r, as
46799         AC_FUNC_STRERROR_R does that.
46800         Check for strerror declaration.
46801
46802         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
46803         are supposed to have them these days.
46804         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
46805         Merge changes from latest Autoconf CVS.
46806         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
46807         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
46808         POSIX decided to standardize on the int flavor of strerror_r.
46809
46810 2001-10-20  Paul Eggert  <eggert@twinsun.com>
46811
46812         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
46813         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
46814         Use strerror_r that is only a macro, even if it is not a function.
46815         (strerror): Check for HAVE_DECL_STRERROR before declaring.
46816         (private_strerror): Use prototypes, not old-style function definition.
46817         (print_errno_message): New function.
46818         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
46819         char*-flavored one.
46820         (error_tail, error, error_at_line): Use it.
46821
46822 2001-10-11  Jim Meyering  <meyering@lucent.com>
46823
46824         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
46825         and quote_n (1, ... to avoid clobbering a buffer.
46826
46827 2001-10-05  Jim Meyering  <meyering@lucent.com>
46828
46829         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
46830         hash-pjw.h.
46831         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
46832         * lib/hash-pjw.h: New file.
46833
46834 2001-09-30  Jim Meyering  <meyering@lucent.com>
46835
46836         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
46837         `struct fsstat' has the `f_fstypename' member.
46838         Use that to define FS_TYPE, which is now used to make
46839         the getfsstat link test tighter.
46840
46841 2001-09-30  Jim Meyering  <meyering@lucent.com>
46842
46843         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
46844         Include <sys/ucred.h>, for Apple Darwin.
46845         Include sys/mount.h and sys/fs_types.h only if available.
46846         (FS_TYPE): Define.
46847         (read_filesystem_list): Use FS_TYPE.
46848
46849 2001-09-29  Paul Eggert  <eggert@twinsun.com>
46850
46851         * lib/exclude.c (excluded_filename): 0 -> false, since it's
46852         a boolean context.
46853
46854 2001-09-29  Jim Meyering  <meyering@lucent.com>
46855
46856         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
46857         [one-argument getmntent function]): Include stdio.h before mntent.h.
46858         SunOS 4.1.x needs it for the declaration of `FILE'.
46859         Patch by Volker Borchert.
46860
46861         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
46862         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
46863         sys/fs_types.h, and make the link-test for getfsstat guard #include
46864         directives with appropriate #if HAVE_*_H tests so that we can
46865         detect getfsstat on Apple Darwin1.3.7 systems.
46866         Reported by Nelson Beebe.
46867         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
46868
46869 2001-09-28  Paul Eggert  <eggert@twinsun.com>
46870
46871         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
46872         #defines strtoimax.  Also treat the other strto* functions
46873         like strtoimax.
46874
46875         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
46876         Check for strtoul and strtoumax,
46877         as those declarations are made even in the signed case.
46878         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
46879         Likewise, for strtol and strtoimax.
46880
46881 2001-09-28  Paul Eggert  <eggert@twinsun.com>
46882
46883         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
46884         #defines strtoimax.  Also treat the other strto* functions
46885         like strtoimax.
46886
46887         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
46888         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
46889         (strtoimax, strtoumax): Do not declare if already defined as a macro.
46890
46891 2001-09-26  Jim Meyering  <meyering@lucent.com>
46892
46893         Most macros in unlocked-io.h had the wrong number of arguments.
46894         * lib/gen-uio: New script.
46895         (USE_UNLOCKED_IO): Define to 1 if not already defined.
46896         * lib/unlocked-io.hin: Remove file.
46897         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
46898         rather than trying to embed it here.
46899         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
46900         Reported by Padraig Brady.
46901
46902 2001-09-25  Volker Borchert  <bt@teknon.de>
46903
46904         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
46905         `result'.
46906
46907 2001-09-24  Jim Meyering  <meyering@lucent.com>
46908
46909         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
46910
46911 2001-09-23  Jim Meyering  <meyering@lucent.com>
46912
46913         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
46914         instead of the mere test for existence of mntent.h.  The latter
46915         would get a false-positive on AIX 3.4 systems.
46916         In the outer getmntent if-block, don't die if neither of the getmntent
46917         tests succeeds.  Instead, just fall through and continue with the
46918         remaining tests.
46919
46920 2001-09-23  Jim Meyering  <meyering@lucent.com>
46921
46922         * lib/mountlist.c: Remove useless parentheses in #if directives.
46923         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
46924         the deprecated MOUNTED symbol is no longer defined in mntent.h.
46925
46926 2001-09-22  Jim Meyering  <meyering@lucent.com>
46927
46928         * m4/gettext.m4: New file.  From gettext.
46929         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
46930         * m4/progtest.m4: Likewise
46931         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
46932         * m4/glibc21.m4: Likewise.
46933
46934         * m4/libintl.m4: Remove.  No longer used.
46935
46936 2001-09-22  Jim Meyering  <meyering@lucent.com>
46937
46938         * lib/localcharset.c: Update from latest gettext.
46939         * lib/config.charset: Likewise.
46940
46941 2001-09-20  Jim Meyering  <meyering@lucent.com>
46942
46943         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
46944         strtoimax.
46945         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
46946         strtoumax.
46947
46948 2001-09-20  Jim Meyering  <meyering@lucent.com>
46949
46950         * lib/xstrtol.c (strtoimax): Guard declaration with
46951         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
46952         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
46953         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
46954         (strtoumax): Likewise, for completeness (it wasn't necessary).
46955
46956 2001-09-17  Paul Eggert  <eggert@twinsun.com>
46957
46958         * lib/strtoimax.c (HAVE_LONG_LONG):
46959         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
46960         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
46961         to work around bug in IBM C compiler.
46962
46963 2001-09-17  Jim Meyering  <meyering@lucent.com>
46964
46965         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
46966         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
46967         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
46968         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
46969         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
46970         whenever the right hand side need not be expanded by the shell.
46971
46972 2001-09-16  Paul Eggert  <eggert@twinsun.com>
46973
46974         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
46975         library.  It's not correct, as some older glibcs are buggy.
46976         fnmatch wasn't fixed until glibc 2.2.
46977
46978         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
46979         special shell magic here.
46980
46981 2001-09-16  Jim Meyering  <meyering@lucent.com>
46982
46983         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
46984         * m4/jm-macros.m4: Require it.
46985
46986 2001-09-16  Jim Meyering  <meyering@lucent.com>
46987
46988         * lib/mkdir.c: New file.
46989
46990 2001-09-15  Jim Meyering  <meyering@lucent.com>
46991
46992         * m4/jm-macros.m4: Check for help2man.
46993
46994 2001-09-11  Jim Meyering  <meyering@lucent.com>
46995
46996         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
46997         The body, by Paul Eggert, was moved here from configure.in.
46998         * m4/jm-macros.m4: Require UTILS_HOST_OS.
46999
47000 2001-09-04  Paul Eggert  <eggert@twinsun.com>
47001
47002         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
47003         (jm_PREREQ): Use it.
47004
47005 2001-09-04  Paul Eggert  <eggert@twinsun.com>
47006
47007         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
47008         Use ssize_t, not int, to store result of readlink.
47009         Check for ssize_t overflow as well as size_t overflow,
47010         as POSIX says the result of readlink is implementation-defined
47011         when ssize_t overflows.
47012         Remove unnecessary cast to char*.
47013         Use free+malloc instead of realloc, as the storage doesn't need
47014         to be preserved and it's clearer and can be more efficient that way.
47015         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
47016         * lib/xreadlink.h (xreadlink): Update prototype.
47017
47018 2001-09-04  Paul Eggert  <eggert@twinsun.com>
47019
47020         * lib/xgetcwd.c: Revert some of the previous change; intead,
47021         fix the HAVE_GETCWD_NULL code to behave more like the
47022         !HAVE_GETCWD_NULL code used to.
47023
47024         Include "xalloc.h".
47025         (xgetcwd): Do not return NULL when memory is exhausted; instead,
47026         invoke xalloc_die.
47027
47028 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47029
47030         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
47031         sys/param.h, as pathmax.h includes them.
47032
47033 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47034
47035         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
47036         (jm_PREREQ_XGETCWD): New macro.
47037
47038         * m4/getcwd.m4: New file.
47039
47040 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47041
47042         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
47043         like the HAVE_GETCWD_NULL code.
47044         Include pathmax.h if not HAVE_GETCWD.
47045         Do not include xalloc.h.
47046         (INITIAL_BUFFER_SIZE): New symbol.
47047         Do not use xmalloc / xrealloc, since the caller is responsible for
47048         handling errors.  Preserve errno around `free' during failure.
47049         Do not overrun buffer when using getwd.
47050
47051 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47052
47053         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
47054         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
47055         getcwd (NULL, 0).
47056
47057 2001-09-03  Paul Eggert  <eggert@twinsun.com>
47058
47059         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
47060         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
47061         spotted by Jim Meyering.
47062
47063 2001-09-03  Jim Meyering  <meyering@lucent.com>
47064
47065         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
47066         failure.
47067
47068 2001-09-02  Jim Meyering  <meyering@lucent.com>
47069
47070         * lib/error.c: Update from GNU libc.
47071
47072 2001-09-01  Jim Meyering  <meyering@lucent.com>
47073
47074         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
47075         Used by df.
47076
47077 2001-09-01  Jim Meyering  <meyering@lucent.com>
47078
47079         * lib/xreadlink.c: New file.
47080         * lib/xreadlink.h: New file.
47081         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
47082         xreadlink.h.
47083
47084         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
47085         doesn't conflict with sparc Solaris 7's definition in
47086         /usr/include/sys/int_types.h.
47087
47088         * lib/exclude.c: Use `""', not `<>' to #include non-system header
47089         files.
47090         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
47091         and strncasecmp as r-values.  Unixware didn't have declarations.
47092
47093 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47094
47095         * lib/xstrtol.h: Add copyright notice.
47096         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
47097         LONGINT_INVALID_SUFFIX_CHAR.
47098
47099 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47100
47101         * lib/xstrtol.c (strtoimax): New decl.
47102
47103 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47104
47105         * lib/xgetcwd.c: Don't include pathmax.h.
47106         Include stdlib.h and unistd.h if available.
47107         Include xalloc.h.
47108         (xmalloc, xstrdup, free): Remove decls.
47109         (xgetcwd): Don't assume sizes fit in unsigned.
47110         Check for overflow when computing sizes.
47111         Simplify reallocation code.
47112
47113 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47114
47115         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
47116         a directory's st_size can have an arbitrary value, so the old
47117         usage could waste an arbitrary amount of memory.  All uses
47118         changed.
47119         * lib/savedir.h: Update prototype.
47120
47121 2001-08-31  Paul Eggert  <eggert@twinsun.com>
47122
47123         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
47124
47125         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
47126         old strtoimax.c.
47127
47128         Also, make the following further changes to make this file's
47129         configuration more similar to that of strtol.c:
47130         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
47131         (strtoumax, uintmax_t, strtoull, strtol): Remove.
47132         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
47133         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
47134         changed to signed values.
47135
47136         And make the following changes as well:
47137         Fix copyright notice, as 1999 was missing.
47138         (verify): New macro.
47139         (strtoimax): Check sizes at compile-time, not run-time.
47140         Prefer strtol to strtoll if both work.
47141         (main): Remove; it was not that useful and was a pain to maintain.
47142
47143         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
47144
47145 2001-08-31  Jim Meyering  <meyering@lucent.com>
47146
47147         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
47148         Use an initial, malloc'd, buffer of length 128 rather than
47149         a statically allocated one of length 1024.
47150
47151 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47152
47153         Simplify code, partly by assuming autoconf 2.52 semantics.
47154
47155         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
47156
47157         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
47158         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
47159         All uses removed.
47160         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
47161         Move AC_REQUIRE to next-to-top level, to avoid confusion.
47162         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
47163         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
47164         jm_AC_HEADER_INTTYPES_H.
47165         * m4/jm-macros.m4 (jm_MACROS): Likewise.
47166
47167         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
47168
47169         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
47170         Quote first arg of AC_DEFUN.
47171         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
47172         since they are needed to parse the include file even if we need
47173         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
47174         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
47175         but with opposite signedness.
47176
47177 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47178
47179         Merge 'exclude' changes from tar 1.13.22.
47180         This fixes one or two unlikely storage allocation overflow bugs,
47181         but doesn't change user-visible behavior otherwise.
47182
47183 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47184
47185         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
47186         (jm_PREREQ_EXCLUDE): New macro.
47187
47188 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47189
47190         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
47191         tm to be declared.
47192
47193 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47194
47195         * lib/hash.c: Remove '2001' from copyright notice.
47196
47197 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47198
47199         * lib/full-write.h: New file.
47200         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
47201         * lib/full-write.c: Correct credits, as cccp.c no longer
47202         exists and anyway it was so heavily changed from the old cccp
47203         code as to be unrecognizable.  Include full-write.h.
47204         (full_write) Return size_t, with short writes meaning failure.
47205         All callers changed.  This fixes a bug with large buffers
47206         on 64-bit hosts.
47207         * lib/utime.c: Include full-write.h.
47208
47209 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47210
47211         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
47212         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
47213         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
47214         Include if available.
47215         (<xalloc.h>): Include
47216         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
47217         (verify): New macro.  Use it to verify that EXCLUDE macros do not
47218         collide with FNM macros.
47219         (struct patopts): New struct.
47220         (struct exclude): Use it, as exclude patterns now come with options.
47221         (new_exclude): Support above changes.
47222         (new_exclude, add_exclude_file):
47223         Initial size must now be a power of two to simplify overflow checking.
47224         (free_exclude, fnmatch_no_wildcards): New function.
47225         (excluded_filename): No longer requires options arg, as the options
47226         are determined by add_exclude.  Now returns bool, not int.
47227         (excluded_filename, add_exclude):
47228         Add support for the fancy new exclusion options.
47229         (add_exclude, add_exclude_file): Now takes int options arg.
47230         Check for arithmetic overflow when computing sizes.
47231         (add_exclude_file): xrealloc might modify errno, so don't
47232         realloc until after errno might be used.
47233
47234         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
47235         New macros.
47236         (free_exclude): New decl.
47237         (add_exclude, add_exclude_file): Now takes int options arg.
47238         (excluded_filename): No longer requires options arg, as the options
47239         are determined by add_exclude.  Now returns bool, not int.
47240
47241 2001-08-30  Paul Eggert  <eggert@twinsun.com>
47242
47243         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
47244
47245 2001-08-27  Jim Meyering  <meyering@lucent.com>
47246
47247         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
47248
47249         * lib/version-etc.c (N_): Remove definition.
47250         Revert most of last change.
47251         Instead, simply don't mark the `Copyright...' string for translation.
47252         Based on advice from Paul Eggert.
47253
47254         * lib/strtoxmax.c: Tweak comment.
47255
47256 2001-08-26  Jim Meyering  <meyering@lucent.com>
47257
47258         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
47259
47260         * m4/xstrtoimax.m4: New file.
47261         * m4/xstrtoumax.m4: Add comments explaining why we
47262         AC_REPLACE_FUNCS(strtol).
47263
47264 2001-08-26  Jim Meyering  <meyering@lucent.com>
47265
47266         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
47267         of copyright with `%s' so translators don't get an untranslated
47268         message in 2002.
47269         (COPYRIGHT_YEAR): Define.
47270         (version_etc): Use fprintf rather than fputs.
47271         Suggestion from Ulrich Drepper.
47272
47273         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
47274
47275         * lib/strtoll.c: New file, from GNU libc.
47276         * lib/xstrtoimax.c: New file.
47277
47278         * lib/xstrtol.h: Add xstrtoimax.
47279         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
47280         * lib/strtoimax.c: New file.  Likewise, but first define
47281         STRTOUXMAX_SIGNED.
47282
47283         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
47284         ...
47285         * lib/strtoxmax.c: ... then renamed to this.
47286
47287 2001-08-18  Paul Eggert  <eggert@twinsun.com>
47288
47289         * m4/inttypes.m4: Add AC_PREREQ(2.13).
47290         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
47291         (jm_AC_TYPE_INTMAX_T): New macro.
47292         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
47293
47294         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
47295
47296         * m4/longlong.m4: Renamed from ulonglong.m4.
47297         * m4/inttypes.m4: Renamed from inttypes_h.m4.
47298         * m4/uintmax_t.m4: Removed.
47299
47300 2001-08-13  Paul Eggert  <eggert@twinsun.com>
47301
47302         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
47303         Port to Solaris 8, where 'sed' requires a space after the 'r'
47304         command, and where sh dislikes "$/".  Clean up the spacing a bit.
47305         Redirect output to $tmp just once.
47306
47307 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
47308
47309         * lib/addext.c (<errno.h>): Include.
47310         (errno): Declare if not defined.
47311         (addext): Work correctly when pathconf returns -1 and leaves
47312         errno alone because there is no limit.  Also, work even if
47313         pathconf returns a value greater than SIZE_MAX.
47314
47315 2001-08-12  Jim Meyering  <meyering@lucent.com>
47316
47317         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
47318         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
47319         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
47320         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
47321         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
47322         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
47323         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
47324         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
47325         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
47326         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
47327         utime.m4, utimes.m4, xstrtoumax.m4:
47328         Quote the first argument in each use of AC_DEFUN.
47329
47330 2001-08-12  Jim Meyering  <meyering@lucent.com>
47331
47332         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
47333         Simply `return getcwd (NULL, 0);'.
47334         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
47335         Use 1300 as initial value for length, not PATH_MAX.
47336
47337         * lib/pathmax.h: Clean up cpp syntax.
47338
47339 2001-08-12  Jim Meyering  <meyering@lucent.com>
47340
47341         * lib/gettimeofday.c: New file.
47342         * lib/gtod.h: New file.
47343         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
47344
47345 2001-08-05  Jim Meyering  <meyering@lucent.com>
47346
47347         * m4/jm-macros.m4: Require autoconf-2.52.
47348
47349 2001-08-04  Jim Meyering  <meyering@lucent.com>
47350
47351         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
47352         stmt, to get in sync with glibc.
47353
47354 2001-08-03  Paul Eggert  <eggert@twinsun.com>
47355
47356         The following changes are from gettext 0.10.39 as maintained by
47357         Bruno Haible.
47358
47359         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
47360         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
47361         with inverted sense.  All uses changed.
47362
47363         * lib/mbswidth.c: Don't include <limits.h>.
47364         Include <stdlib.h> and <string.h> unconditionally.
47365         (iswcntrl, mbsinit, ISCNTRL): New macros.
47366         (mbsnwidth): Use K&R style function declarations.
47367         Don't bother checking for MB_LEN_MAX == 1, since the compiler
47368         can optimize it when MB_CUR_MAX == 1.
47369         The width of control characters is zero, not 1.
47370
47371 2001-08-03  Paul Eggert  <eggert@twinsun.com>
47372
47373         The following changes are from gettext 0.10.39 as maintained by
47374         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
47375
47376         * m4/codeset.m4: Upgrade to serial AM1.
47377         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
47378         all uses changed.  Quote first arg of AC_DEFUN.
47379         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
47380
47381         * m4/iconv.m4: Upgrade to serial AM2.
47382         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
47383         Add --with-libconv-prefix.
47384         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
47385         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
47386         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
47387         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
47388         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
47389
47390         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
47391         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
47392         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
47393         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
47394         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
47395         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
47396         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47397         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
47398         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
47399
47400         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
47401         string.h any more.
47402
47403         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
47404         not the default value.
47405
47406         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
47407         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
47408         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
47409         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
47410         Also check for iswcntrl, used for wcwidth fallback.
47411         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
47412         to Autoconf 2.13.
47413
47414 2001-08-03  Jim Meyering  <meyering@lucent.com>
47415
47416         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
47417         as it was in the original.  Reported by Paul Eggert.
47418
47419 2001-07-16  Jim Meyering  <meyering@lucent.com>
47420
47421         * m4/gettimeofday.m4: New file.
47422         Prompted by a report from Bernhard Baehr.
47423
47424 2001-07-15  Jim Meyering  <meyering@lucent.com>
47425
47426         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
47427         stuff. Now it's in ../Makefile.cfg.
47428
47429 2001-07-15  Jim Meyering  <meyering@lucent.com>
47430
47431         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
47432         (BUILT_SOURCES): Add unlocked-io.h.
47433         (io_functions): Define.
47434         (unlocked-io.h): New rule.
47435         (DISTCLEANFILES): Add unlocked-io.h.
47436         (all-local): Depend on unlocked-io.h, to ensure it is created.
47437
47438         * lib/unlocked-io.hin: New file
47439
47440         * lib/regex.c: Update from glibc.
47441
47442 2001-07-05  Jim Meyering  <meyering@lucent.com>
47443
47444         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
47445         recommendation.
47446         (libfetish_a_SOURCES): Put all .h files here instead.
47447         Remove a thus-exposed (better checks in automake) duplicate and
47448         two unnecessary .h files.
47449
47450 2001-07-04  Jim Meyering  <meyering@lucent.com>
47451
47452         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
47453         that generates jm-glibc-io.m4 so that it doesn't trigger any make
47454         distcheck failure.
47455
47456 2001-07-02  Jim Meyering  <meyering@lucent.com>
47457
47458         The following changes were prompted by suggestions from Bruno Haible.
47459
47460         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
47461         is now generated.
47462         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
47463         definition of EXTRA_DIST.
47464         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
47465         ensure that the generated file is created/updated whenever the list
47466         of $(unlocked_functions) is changed.
47467         (jm-glibc-io.m4): New rule.
47468         (unlocked-io.h): New rule -- currently unused.
47469
47470 2001-06-24  Jim Meyering  <meyering@lucent.com>
47471
47472         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
47473         unmatched right bracket, rather than kludging it with an extra,
47474         falsely-matching quote in a comment.  Patch by Akim Demaille.
47475
47476 2001-06-11  Jim Meyering  <meyering@lucent.com>
47477
47478         * lib/regex.c: Update from GNU libc.
47479
47480 2001-05-27  Jim Meyering  <meyering@lucent.com>
47481
47482         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
47483         Check for ut_type in struct utmp.
47484
47485 2001-05-27  Jim Meyering  <meyering@lucent.com>
47486
47487         * lib/readutmp.h (UT_TYPE): Define.
47488
47489 2001-05-24  Jim Meyering  <meyering@lucent.com>
47490
47491         * lib/argmatch.c: Include "quote.h".
47492         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
47493         quote function.  Reported by Göran Uddeborg.
47494
47495 2001-05-22  Jim Meyering  <meyering@lucent.com>
47496
47497         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
47498         now that we use the package-supplied version unconditionally.
47499         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
47500
47501 2001-05-21  Jim Meyering  <meyering@lucent.com>
47502
47503         * m4/regex.m4: Change a couple backticks to single quotes to avoid
47504         shell syntax errors.
47505
47506 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
47507
47508         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
47509
47510 2001-05-20  Paul Eggert  <eggert@twinsun.com>
47511
47512         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
47513         Don't bother to check library strftime, since
47514         we'll be using our own my_strftime function anyway.
47515         Define my_strftime instead of strftime.
47516
47517 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
47518
47519         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
47520         which is not yet declared.
47521
47522 2001-05-15  Jim Meyering  <meyering@lucent.com>
47523
47524         * m4/regex.m4: Use proper quoting so brackets appear in the test
47525         program.
47526         Reported by, and with help from, Bruno Haible.
47527
47528 2001-05-13  Jim Meyering  <meyering@lucent.com>
47529
47530         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
47531         undefined.
47532
47533 2001-05-11  Paul Eggert  <eggert@twinsun.com>
47534
47535         dirname code cleanup.  base_name now behaves more compatibly
47536         with POSIX basename when given file names that have trailing
47537         slashes, and similarly for dir_name.  Add new primitives
47538         base_len and dir_len.  Put the directory-name-related decls
47539         into dirname.h.
47540
47541         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
47542         * lib/backupfile.c (base_name): Likewise.
47543         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
47544         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
47545         * lib/makepath.c (strip_trailing_slashes): Likewise.
47546         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
47547         ISSLASH): Likewise.
47548         * lib/rename.c (strip_trailing_slashes): Likewise.
47549         * lib/same.c (base_name): Likewise.
47550         * lib/stripslash.c (ISSLASH): Likewise.
47551
47552         * lib/addext.c: Include <dirname.h> after size_t is defined.
47553         * lib/backupfile.c: Likewise.
47554
47555         * lib/addext.c (addext): Use base_len to trim redundant
47556         trailing slashes instead of doing it ourselves.
47557         But do not trim the last slash if it is not redundant.
47558
47559         * lib/backupfile.c (find_backup_file_name,
47560         max_backup_version): Use base_len instead of rolling it ourselves.
47561         Handle the case of "" and (on DOS) "C:" correctly.
47562
47563         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
47564         needed. Include <string.h>, <dirname.h>.
47565         (base_name): Allow file names ending in slashes, other than names
47566         that are all slashes.  In this case, return the basename followed
47567         by the slashes.  This is more general, and can be used in places
47568         where the original base_name purposely had an assertion failure.
47569         (base_len): New function.
47570
47571         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
47572         Do not include <assert.h>; no longer needed.
47573         Include xalloc.h.
47574         (memrchr): Remove decl.
47575         (dir_name_r): Remove.
47576         (dir_len): Renamed from dirlen.  All callers changed.
47577         Rewrite in terms of base_name, for simplicity and consistency.
47578         (dir_name): Never return NULL.  All callers changed.
47579         Do not include <stdlib.h> in test program; no longer needed.
47580         return 0; is fine for test program.
47581
47582         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
47583         New macros.
47584         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
47585
47586         * lib/path-concat.c (path_concat): Use base_len to compute
47587         base length, not strlen; this means we cannot rely on memcpy
47588         to null-terminate.
47589
47590         * lib/same.c (STREQ): Remove.
47591         (same_name): Handle the case where the basename ends in trailing '/'.
47592
47593         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
47594         a slash was stripped.  Do not strip the last slash after a
47595         file system prefix.
47596
47597 2001-05-11  Paul Eggert  <eggert@twinsun.com>
47598
47599         * lib/Makefile.am (libfetish_a_SOURCES):
47600         Add strftime.c, since we now compile it on all hosts.
47601
47602         * lib/strftime.c (my_strftime):
47603         Define to nstrftime if emacs, but only if my_strftime is not defined.
47604         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
47605         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
47606         Add one more extra argument: a nanoseconds value.
47607         All uses changed.
47608         (ns): New macro.
47609         (my_strftime function): Add %N format.
47610         (emacs_strftimeu): Renamed from emacs_strftime,
47611         with extra ut argument.
47612
47613 2001-05-09  Paul Eggert  <eggert@twinsun.com>
47614
47615         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
47616
47617 2001-04-21  Jim Meyering  <meyering@lucent.com>
47618
47619         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
47620         doesn't interfere.
47621
47622 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
47623
47624         * m4/ftruncate.m4: Check for chsize.
47625         Link with ftruncate.o unconditionally if ftruncate is missing.
47626         This was required when cross-compiling to i586-mingw32msvc.
47627
47628 2001-04-08  Jim Meyering  <meyering@lucent.com>
47629
47630         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
47631         recomputed; that's necessary when the offset spans a DST transition.
47632         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
47633
47634 2001-04-02  Jim Meyering  <meyering@lucent.com>
47635
47636         * lib/regex.h, regex.c: Update from GNU libc.
47637
47638 2001-03-24  Jim Meyering  <meyering@lucent.com>
47639
47640         * m4/jm-macros.m4: Require autoconf-2.49d.
47641
47642 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
47643
47644         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
47645
47646 2001-03-19  Paul Eggert  <eggert@twinsun.com>
47647
47648         * lib/version-etc.c (version_etc_copyright): Update to 2001.
47649
47650 2001-03-17  Jim Meyering  <meyering@lucent.com>
47651
47652         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
47653         now that the version in autoconf is equivalent.
47654         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
47655
47656         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
47657         Suggestion from Akim Demaille.
47658
47659         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
47660         (jm_PREREQ_TEMPNAME): New function.
47661
47662 2001-03-16  Paul Eggert  <eggert@twinsun.com>
47663
47664         * lib/tempname.c (uint64_t): Define to uintmax_t if
47665         not defined, and if UINT64_MAX is not defined.
47666         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
47667         Reported by John David Anglin.
47668
47669 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
47670
47671         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
47672         resolve alias if codeset is empty.
47673         * lib/config.charset (BeOS): Use wildcard syntax.
47674
47675 2001-03-13  Jim Meyering  <meyering@lucent.com>
47676
47677         * lib/path-concat.c (path_concat)
47678         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
47679         concatenating e.g., `C:' and `foo'.
47680         From Bruno Haible.
47681
47682 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
47683
47684         * lib/localcharset.c (locale_charset): Don't use
47685         setlocale(LC_CTYPE,NULL). Don't return NULL.
47686         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
47687
47688 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
47689
47690         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
47691         support for DOS/DJGPP.
47692
47693 2001-03-01  Paul Eggert  <eggert@twinsun.com>
47694
47695         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
47696         lacks mkstemp.  Compile our own tempname.c if we compile our own
47697         mkstemp.c, as mkstemp relies on tempname.
47698
47699 2001-03-01  Jim Meyering  <meyering@lucent.com>
47700
47701         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
47702         AH_VERBATIM really does output its argument verbatim.
47703
47704 2001-02-28  Paul Eggert  <eggert@twinsun.com>
47705
47706         * lib/Makefile.am (libfetish_a_SOURCES):
47707         Add dup-safer.c, fopen-safer.c.
47708         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
47709
47710         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
47711         * lib/unistd-safer.h: New files.
47712
47713 2001-02-25  Paul Eggert  <eggert@twinsun.com>
47714
47715         The mkstemp replacement is taken from glibc 2.2.2, with some
47716         portability fixes for use outside glibc, as follows:
47717
47718         * lib/tempname.c (struct_stat64): New macro.
47719         (direxists, __gen_tempname): Use it.
47720         This avoids a portability problem with Solaris 8.
47721
47722         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
47723         (<stddef.h>, <stdint.h>, <string.h>):
47724         Include only if STDC_HEADERS || _LIBC.
47725         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
47726         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
47727         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
47728         (__set_errno): Define this macro if <errno.h> doesn't.
47729         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
47730         Define these macros if <stdio.h> doesn't.
47731         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
47732         Define these macros if <sys/stat.h>
47733         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
47734         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
47735         __xstat64): Define if not _LIBC.
47736         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
47737         (__gen_tempname): Invoke gettimeofday only if
47738         HAVE_GETTIMEOFDAY || _LIBC;
47739         otherwise, fall back on plain "time".
47740         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
47741
47742         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
47743
47744         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
47745
47746 2001-02-18  Paul Eggert  <eggert@twinsun.com>
47747
47748         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
47749
47750 2001-02-17  Paul Eggert  <eggert@twinsun.com>
47751
47752         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
47753         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
47754         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
47755         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
47756
47757 2001-02-17  Paul Eggert  <eggert@twinsun.com>
47758
47759         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
47760         Remove workaround macros for hosts that have mbrtowc but not
47761         mbstate_t, as we now insist on proper declarations for both
47762         before using mbrtowc.
47763
47764 2001-02-17  Jim Meyering  <meyering@lucent.com>
47765
47766         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
47767         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
47768         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
47769         UnixWare 7.1.1.
47770
47771         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
47772         rather than AC_CACHE_VAL.
47773
47774 2001-02-17  Jim Meyering  <meyering@lucent.com>
47775
47776         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
47777         around included file name.
47778
47779         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
47780
47781         * lib/strftime.c: Update from GNU libc (the only changes were to
47782         comments).
47783
47784 2001-02-17  Jim Meyering  <meyering@lucent.com>
47785
47786         * lib/regex.c: Update from libc.
47787
47788 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
47789
47790         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
47791         clash.
47792
47793 2001-02-16  Paul Eggert  <eggert@twinsun.com>
47794
47795         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
47796         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
47797         Reported by Mark Hounschell via Paul Eggert.
47798
47799 2001-02-07  Jim Meyering  <meyering@lucent.com>
47800
47801         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
47802
47803 2001-02-05  Jim Meyering  <meyering@lucent.com>
47804
47805         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
47806         it includes the patch required for `large file' support with at least
47807         HP-UX's 10.20 /bin/cc.
47808
47809 2001-02-03  Jim Meyering  <meyering@lucent.com>
47810
47811         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
47812         AS_IF, now that it works once again (mysteriously).
47813         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
47814
47815 2001-01-30  Jim Meyering  <meyering@lucent.com>
47816
47817         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
47818         * m4/chown.m4: Rename conftestchown to conftest.chown.
47819         * m4/rename.m4: s/conftestdir/conftest.d1/ and
47820         s/conftestdir2/conftest.d2/.
47821         * m4/utimes.m4: s/conftestdata/conftest.data/
47822         Inspired by Pavel Roskin's change in autoconf.
47823
47824 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
47825
47826         * lib/config.charset: Update for FreeBSD 4.2.
47827
47828 2001-01-27  Jim Meyering  <meyering@lucent.com>
47829
47830         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
47831         a use of AS_IF.
47832         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
47833
47834 2001-01-26  Jim Meyering  <meyering@lucent.com>
47835
47836         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
47837         quotearg.c includes it.
47838
47839 2001-01-26  Jim Meyering  <meyering@lucent.com>
47840
47841         * lib/quotearg.c: Include stddef.h.
47842         * lib/quote.c: Include stddef.h.
47843         Reported by Axel Kittenberger.
47844
47845         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
47846         line in double quotes so that it evokes a better diagnostic.
47847         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
47848         Reported by Axel Kittenberger.
47849
47850 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
47851
47852         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
47853         as if it was a `charset'.
47854
47855 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
47856
47857         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
47858         has const.
47859
47860 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
47861
47862         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
47863         to avoid a warning.  Add back 'const' to inptr.
47864
47865 2001-01-20  Jim Meyering  <meyering@lucent.com>
47866
47867         Be sure that headers are checked before used in code compiled
47868         for the type checks.
47869         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
47870         In place of that, invoke jm_CHECK_ALL_TYPES.
47871         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
47872         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
47873         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
47874         The check for ssize_t was mistakenly run before the test for unistd.h.
47875
47876         The configure-time check for stdbool.h was missing.
47877         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
47878         (jm_PREREQ_HASH): New function.
47879
47880 2001-01-17  Jim Meyering  <meyering@lucent.com>
47881
47882         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
47883         for autoconf-2.49c.
47884         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
47885
47886 2001-01-16  Jim Meyering  <meyering@lucent.com>
47887
47888         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
47889         From Bruno Haible.
47890
47891 2001-01-14  Jim Meyering  <meyering@lucent.com>
47892
47893         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
47894         foo and bar.  Create conftestdir/ in the script, not in the C code.
47895         Remove directories in the script, not in the C code.
47896         Remove conftestdir{,2} before trying to create the directory.
47897         Make the entire configure script fail if the mkdir fails.
47898
47899 2001-01-14  Jim Meyering  <meyering@lucent.com>
47900
47901         * lib/rename.c: New file.  From Volker Borchert.
47902         Include stdlib.h, string.h or strings.h, and xalloc.h.
47903         Use strip_trailing_slashes rather than open-coding it.
47904
47905 2001-01-03  Paul Eggert  <eggert@twinsun.com>
47906
47907         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
47908
47909 2001-01-03  Jim Meyering  <meyering@lucent.com>
47910
47911         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
47912         of local `inptr' to avoid warning with some system declarations of
47913         iconv.
47914
47915 2001-01-02  Volker Borchert  <bt@teknon.de>
47916
47917         * m4/rename.m4: New file.
47918         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
47919
47920 2001-01-01  Jim Meyering  <meyering@lucent.com>
47921
47922         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
47923         even on systems with utmpx.h.  It's necessary for the declaration of
47924         utmp's ut_user member.  Reported by Andreas Jaeger.
47925
47926         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
47927         available. They are required for the declarations of getgrgid and
47928         getpwuid resp.
47929         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
47930         Reported by Andreas Jaeger.
47931
47932 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
47933
47934         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
47935         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
47936         so `make install' also works in VPATH builds.
47937
47938 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
47939
47940         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
47941         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
47942         can be used in subdirectories.
47943
47944 2000-12-29  Paul Eggert  <eggert@twinsun.com>
47945
47946         * lib/modechange.c: Do not assume that mode_t uses the
47947         traditional octal encoding.  E.g. "chmod 1 FOO" should set
47948         the other-execute bit of FOO even if S_IXOTH != 1.
47949
47950         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
47951         WOTH, XOTH, ALLM): New macros.
47952         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
47953          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
47954         Use them.
47955         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
47956         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
47957         (mode_compile):
47958         No need to use uintmax_t; unsigned long is long enough.
47959         Don't bother to get suffix since we don't use it.
47960
47961 2000-12-26  Jim Meyering  <meyering@lucent.com>
47962
47963         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
47964         better with autoheader.
47965
47966 2000-12-24  Jim Meyering  <meyering@lucent.com>
47967
47968         * lib/hash.c (is_prime): Return explicit boolean values.
47969         (hash_get_first): Return NULL to appease Irix5.6's 89.
47970         Reported by Nelson Beebe.
47971
47972 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
47973
47974         * lib/localcharset.c (locale_charset): Add support for Win32.
47975
47976 2000-12-18  Paul Eggert  <eggert@twinsun.com>
47977
47978         * lib/physmem.h, lib/physmem.c: New files.
47979
47980         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
47981         (noinst_HEADERS): Add physmem.h.
47982
47983         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
47984         't' for compatibility with Solaris 8 sort.
47985
47986 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
47987
47988         * lib/config.charset: Add support for BeOS.
47989
47990 2000-12-17  Jim Meyering  <meyering@lucent.com>
47991
47992         * m4/dos.m4 (jm_AC_DOS): New file and macro.
47993         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
47994
47995 2000-12-16  Jim Meyering  <meyering@lucent.com>
47996
47997         This bug had a serious impact on chown: `chown N:M FILE' (for integer
47998         N and M) would have treated it like `chown N:N FILE'.
47999
48000         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
48001
48002 2000-12-16  Jim Meyering  <meyering@lucent.com>
48003
48004         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
48005         SHELLS_FILE to a file name that's useful on djgpp systems.
48006         Include stdlib.h.
48007         (ADDITIONAL_DEFAULT_SHELLS): Define.
48008         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
48009         Based mostly on a patch from Prashant TR.
48010
48011 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
48012
48013         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
48014         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
48015         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
48016
48017 2000-12-08  Andreas Schwab  <schwab@suse.de>
48018
48019         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
48020         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
48021
48022 2000-12-07  Jim Meyering  <meyering@lucent.com>
48023
48024         * lib/stripslash.c (ISSLASH): Define.
48025         (strip_trailing_slashes): Use ISSLASH rather than comparing against
48026         `/'.
48027         From Prashant TR.
48028
48029         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
48030         (dir_name_r): Declare this function as static.
48031         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
48032         manifest itself on a name containing a mix of slashes and
48033         backslashes.
48034         Make this function work with names starting with a DOS-style
48035         drive letter and colon prefix.
48036         (dir_name): Append `.' if necessary.
48037         Based mostly on patches from Prashant TR and Eli Zaretskii.
48038
48039         * lib/dirname.h (dir_name_r): Remove prototype.
48040
48041 2000-12-06  Paul Eggert  <eggert@twinsun.com>
48042
48043         * m4/off_t-format.m4: Remove this file.
48044         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
48045
48046 2000-12-06  Jim Meyering  <meyering@lucent.com>
48047
48048         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
48049         replacement strtoull, we may well need the replacement strtoul, too.
48050         Check for declarations of strtoul and strtoull.
48051         Check for strtol.  Mainly as a cue to cause automake to include
48052         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
48053         Check for limits.h -- strtol.c needs it.
48054
48055 2000-12-05  Jim Meyering  <meyering@lucent.com>
48056
48057         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
48058
48059 2000-12-04  Jim Meyering  <meyering@lucent.com>
48060
48061         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
48062         Also include memory.h, stdlib.h, unistd.h if appropriate.
48063         Reported by Andreas Jaeger (conflicting declaration of malloc).
48064
48065 2000-12-02  Jim Meyering  <meyering@lucent.com>
48066
48067         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
48068         * m4/jm-macros.m4 (jm_MACROS): require it.
48069
48070 2000-12-02  Jim Meyering  <meyering@lucent.com>
48071
48072         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
48073
48074 2000-12-01  Paul Eggert  <eggert@twinsun.com>
48075
48076         * lib/memrchr.c: Include <config.h> before any system include file.
48077
48078 2000-11-30  Jim Meyering  <meyering@lucent.com>
48079
48080         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
48081
48082 2000-11-30  Jim Meyering  <meyering@lucent.com>
48083
48084         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
48085
48086 2000-11-29  Paul Eggert  <eggert@twinsun.com>
48087
48088         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
48089
48090 2000-11-26  Jim Meyering  <meyering@lucent.com>
48091
48092         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
48093
48094 2000-11-22  Paul Eggert  <eggert@twinsun.com>
48095
48096         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
48097         size of (size_t) -1; it's not portable.
48098
48099 2000-11-17  Jim Meyering  <meyering@lucent.com>
48100
48101         * lib/strstr.c: Update from GNU libc.
48102
48103 2000-11-17  Akim Demaille  <akim@epita.fr>
48104
48105         * lib/obstack.h: Formatting changes.
48106         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
48107         prevent type checking.
48108         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
48109         cast the value to (void *): assigning a `foo *' to a `void *'
48110         variable is valid.
48111         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
48112
48113 2000-11-16  Jim Meyering  <meyering@lucent.com>
48114
48115         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
48116
48117 2000-11-11  Jim Meyering  <meyering@lucent.com>
48118
48119         * lib/error.c: Add a couple #includes, merging from GNU libc version.
48120
48121 2000-11-10  Jim Meyering  <meyering@lucent.com>
48122
48123         * lib/obstack.h: Update from GNU libc.
48124         * lib/obstack.c: Likewise.
48125
48126 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
48127
48128         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
48129
48130 2000-11-06  Paul Eggert  <eggert@twinsun.com>
48131
48132         * lib/getusershell.c (setusershell): Use rewind rather than
48133         fseek/fseeko, to avoid configuration hassles with fseeko.
48134         Don't bother opening SHELLS_FILE if shellstream is NULL;
48135         it's not necessary.
48136
48137 2000-11-05  Jim Meyering  <meyering@lucent.com>
48138
48139         * lib/makepath.h (make_dir): Declare.
48140         * lib/makepath.c (make_dir): Remove `static' attribute.
48141         Tweak a comment.
48142
48143 2000-11-04  Jim Meyering  <meyering@lucent.com>
48144
48145         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
48146
48147 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
48148
48149         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
48150         last one in a bucket, advance to the next bucket.
48151
48152 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
48153
48154         * lib/fnmatch.c: Do not comment out all the code if we are using
48155         the GNU C library, because in some cases we are replacing buggy
48156         code in the GNU C library itself.
48157
48158 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
48159
48160         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
48161         (regex_compile): Catch bogus \(\1\).
48162
48163 2000-10-30  Paul Eggert  <eggert@twinsun.com>
48164
48165         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
48166         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
48167         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
48168
48169 2000-10-30  Paul Eggert  <eggert@twinsun.com>
48170
48171         * lib/error.h, getline.h, modechange.h:
48172         Remove "2000" from Copyright line, as the file hasn't been
48173         changed this year other than in the copyright notice.
48174
48175         * lib/xalloc.h: Add "2000" to Copyright line, as this file
48176         was changed this year.
48177
48178 2000-10-29  Jim Meyering  <meyering@lucent.com>
48179
48180         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
48181         renaming.
48182         * m4/ls-mntd-fs.m4: Likewise
48183
48184 2000-10-29  Jim Meyering  <meyering@lucent.com>
48185
48186         * lib/xstat.in: Fix grammar in comment.
48187
48188 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
48189
48190         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
48191         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
48192         doesn't define __restrict_arr.
48193
48194 2000-10-28  Jim Meyering  <meyering@lucent.com>
48195
48196         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
48197         (jm_PREREQ_MEMCHR): New function.
48198
48199 2000-10-28  Jim Meyering  <meyering@lucent.com>
48200
48201         * lib/memchr.c: Update from libc.
48202         Adjust for portability:
48203         [HAVE_STDLIB_H]: Include stdlib.h.
48204         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
48205         Undef __memchr, too.
48206         [!weak_alias]: Define __memchr to memchr.
48207
48208         * lib/regex.c: Update from libc.
48209         * lib/regex.h: Likewise.
48210         * lib/getopt1.c: Likewise.
48211         * lib/memcmp.c: Likewise.
48212
48213         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
48214         Avoid using fseek, when possible -- it's broken by design.
48215         Patch by Ulrich Drepper.
48216
48217 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
48218
48219         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
48220         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
48221         Giving in to popular pressure to shut up the compiler with casts.
48222
48223 2000-10-26  Jim Meyering  <meyering@lucent.com>
48224
48225         * lib/strftime.c: Update from libc.
48226
48227 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
48228
48229         * regex.c: More `unsigned char' -> `re_char' changes.
48230         Also change several `int' into `re_wchar_t'.
48231         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
48232         (PUSH_FAILURE_POINTER): Don't cast any more.
48233         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
48234         We want GCC to complain, since this piece of code makes
48235         re_match non-reentrant, which *should* be fixed.
48236         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
48237         (EXTEND_BUFFER): Use RETALLOC.
48238         (SET_LIST_BIT): Don't cast.
48239         (re_wchar_t): New type.
48240         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
48241         that those two functions will always properly return.
48242         (IMMEDIATE_QUIT_CHECK): Cast to void.
48243         (analyse_first): Use recursion rather than an explicit stack.
48244         (re_compile_fastmap): Can't fail anymore.
48245         (re_search_2): Don't check re_compile_fastmap for failure.
48246         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
48247         Now also sets the new value (passed in a new argument).
48248         (re_match_2_internal): Use it.
48249         Also, use a new var `reg' of type size_t when looping through regs
48250         rather than reuse the inappropriate `mcnt'.
48251
48252 2000-10-25  Jim Meyering  <meyering@lucent.com>
48253
48254         * lib/obstack.c: Update from libc.
48255
48256 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
48257
48258         * regex.c (regex_compile): Change the way of handling a range from
48259         a char less than 256 to a char not less than 256.
48260
48261 2000-10-24  Andrew Innes  <andrewi@gnu.org>
48262
48263         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
48264         NT-Emacs only.
48265         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
48266         so that re_search functions only quit when callers expect them to.
48267
48268 2000-10-23  Jim Meyering  <meyering@lucent.com>
48269
48270         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
48271         wrong.  That set_locale call must not have any side effects.
48272         From Paul Eggert.
48273
48274 2000-10-22  Jim Meyering  <meyering@lucent.com>
48275
48276         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
48277         [CYCLIC]: Remove now-unused definition.
48278
48279         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
48280         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
48281         Suggestion from Ulrich Drepper.
48282
48283 2000-10-21  Jim Meyering  <meyering@lucent.com>
48284
48285         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
48286         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
48287         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
48288
48289 2000-10-21  Jim Meyering  <meyering@lucent.com>
48290
48291         * lib/dirname.c (memrchr): Declare if necessary.
48292         (dir_name): Remove the restriction that there be no
48293         trailing slashes.  Now, this code skips past them, effectively
48294         ignoring them.
48295         [TEST_DIRNAME] (main): New unit tests.
48296
48297         * lib/memrchr.c: New file from GNU libc.
48298         Undef __memrchr, too.
48299         [!weak_alias]: Define __memrchr to memrchr.
48300         Guard weak_alias use with `#ifdef weak_alias'.
48301
48302 2000-10-21  Jim Meyering  <meyering@lucent.com>
48303
48304         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
48305         (dir_name): Use dir_name_r.
48306         * lib/dirname.h (dir_name_r): Declare it.
48307
48308 2000-10-17  Jim Meyering  <meyering@lucent.com>
48309
48310         * lib/quote.h (PARAMS): Define and use.
48311         Reported by Akim Demaille.
48312
48313         * lib/getopt.c: Update from libc.
48314
48315 2000-10-16  Jim Meyering  <meyering@lucent.com>
48316
48317         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
48318         setlocale.
48319         From Jan Fedak.
48320
48321 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
48322
48323         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
48324
48325 2000-09-25  Jim Meyering  <meyering@lucent.com>
48326
48327         * lib/md5.h (rol): Define (from GnuPG).
48328
48329         * lib/sha.c: Give credit (GnuPG) where due.
48330         (M): Use rol rather than open-coding it.
48331         Add a FIXME comment.
48332
48333 2000-09-21  Jim Meyering  <meyering@lucent.com>
48334
48335         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
48336         Reported by Michael Stone.
48337
48338 2000-09-20  Jim Meyering  <meyering@lucent.com>
48339
48340         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
48341         (noinst_HEADERS): Add sha.h.
48342         Based on code from Scott G. Miller and from GnuPG.
48343
48344 2000-09-18  Jim Meyering  <meyering@lucent.com>
48345
48346         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
48347         LIBS. Otherwise, everyone ends up linking with -lelf for some
48348         configurations.
48349         Reported by Mike Stone.
48350
48351 2000-09-15  Jim Meyering  <meyering@lucent.com>
48352
48353         * lib/regex.c: Update from libc.
48354
48355 2000-09-10  Jim Meyering  <meyering@lucent.com>
48356
48357         * lib/getopt.c (_getopt_internal): Update from glibc.
48358
48359 2000-09-09  Jim Meyering  <meyering@lucent.com>
48360
48361         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
48362         think it should be used as a general replacement for isascii.
48363         * lib/fnmatch.c: Likewise.
48364         * lib/mbswidth.c: Likewise
48365         * lib/regex.c: Likewise.
48366
48367         Don't use atoi.
48368         * lib/userspec.c: Include sys/param.h and limits.h.
48369         Include xstrtol.h.
48370         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
48371         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
48372         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
48373         UID, GID.  Check range.
48374
48375 2000-09-06  Jim Meyering  <meyering@lucent.com>
48376
48377         * lib/getopt.c (_getopt_internal): Update from glibc.
48378
48379 2000-08-30  Jim Meyering  <meyering@lucent.com>
48380
48381         * lib/strftime.c: Merge in changes from GNU libc.
48382
48383 2000-08-26  Jim Meyering  <meyering@lucent.com>
48384
48385         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
48386         * m4/fpending.m4: New file.
48387
48388 2000-08-26  Jim Meyering  <meyering@lucent.com>
48389
48390         * lib/closeout.c: Include "__fpending.h".
48391         (close_stdout_status): Return right away if there's nothing to flush.
48392
48393         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
48394         * lib/__fpending.c: New file.
48395         * lib/__fpending.h: New file.
48396
48397 2000-08-20  Jim Meyering  <meyering@lucent.com>
48398
48399         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
48400         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
48401         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
48402
48403 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
48404
48405         Improve fileutils installation on systems where running
48406         programs (like install) can't be unlinked.
48407         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
48408         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
48409
48410 2000-08-07  Paul Eggert  <eggert@twinsun.com>
48411
48412         Standardize on "memory exhausted" instead of "Memory exhausted"
48413         or "virtual memory exhausted".
48414         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
48415         "virtual memory exhausted".
48416         * lib/same.c (same_name): Invoke xalloc_die instead of printing
48417         our own message.
48418         * lib/userspec.c (parse_user_spec): Likewise.
48419         * lib/bumpalloc.h: comment fix
48420         * lib/same.c, userspec.c: Include xalloc.h.
48421
48422         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
48423         not char *const and pointing to a constant array.
48424         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
48425         (xrealloc): Comment fix.
48426
48427         * lib/userspec.c (parse_user_spec):
48428         Don't translate a message until just before returning,
48429         to avoid unnecessary translation.
48430
48431 2000-08-07  Jim Meyering  <meyering@lucent.com>
48432
48433         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
48434         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
48435         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
48436         getgroups.c, gethostname.c, getopt.h, group-member.c,
48437         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
48438         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
48439         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
48440         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
48441         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
48442         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
48443         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
48444         yesno.c: Back out Copyright date changes for each file with no change
48445         this year.  This eases coordination with other programs using the same
48446         source code modules.  From Paul Eggert.
48447
48448 2000-08-06  Paul Eggert  <eggert@twinsun.com>
48449
48450         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
48451         not char, for compatibility with glibc 2.1.3 strftime.c.
48452
48453 2000-08-03  Greg McGary  <greg@mcgary.org>
48454
48455         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
48456         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
48457         (EXTEND_BUFFER): Use them.
48458
48459 2000-08-01  Jim Meyering  <meyering@lucent.com>
48460
48461         * lib/dirname.c (ISSLASH): Define.
48462         (BACKSLASH_IS_PATH_SEPARATOR): Define.
48463         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
48464         both `\' and `/' may be use as path separators.
48465         Based on a patch from Prashant TR.
48466
48467 2000-07-31  Paul Eggert  <eggert@twinsun.com>
48468
48469         * lib/quotearg.c (quotearg_n_options): Don't make the initial
48470         slot vector a constant, since it might get modified.
48471
48472 2000-07-31  Jim Meyering  <meyering@lucent.com>
48473
48474         * lib/xmalloc.c: Use `virtual memory exhausted', not
48475         `Memory exhausted'.
48476         * lib/obstack.c (print_and_abort): Likewise.
48477
48478 2000-07-30  Paul Eggert  <eggert@twinsun.com>
48479
48480         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
48481         buffer, so that the caller can always quote one small
48482         component of a "memory exhausted" message in slot 0.
48483         From a suggestion by Jim Meyering.
48484
48485 2000-07-30  Jim Meyering  <meyering@lucent.com>
48486
48487         * lib/makepath.c (make_path): Quote the other instance, too.
48488
48489         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
48490         (STATIC_BUF_SIZE): Define.
48491         (quotearg_n_options): Use only statically allocated storage when
48492         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
48493         than STATIC_BUF_SIZE.
48494
48495 2000-07-29  Jim Meyering  <meyering@lucent.com>
48496
48497         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
48498         * lib/dirname.c (dir_name): Likewise.
48499
48500         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
48501         `/'.
48502
48503         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
48504         (dir_name): Assert that there are no trailing slashes.
48505
48506 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
48507
48508         * lib/mbswidth.h (mbswidth): Add a flags argument.
48509         (mbswidth): New declaration.
48510         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
48511         * lib/mbswidth.c (mbswidth): Add a flags argument.
48512         (mbsnwidth): New function.
48513
48514 2000-07-24  Jim Meyering  <meyering@lucent.com>
48515
48516         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
48517
48518 2000-07-23  Paul Eggert  <eggert@twinsun.com>
48519
48520         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
48521
48522 2000-07-23  Paul Eggert  <eggert@twinsun.com>
48523
48524         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
48525         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
48526         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
48527         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
48528         invoke multibyte primitives.
48529
48530 2000-07-23  Paul Eggert  <eggert@twinsun.com>
48531
48532         * lib/quotearg.c:
48533         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
48534         so that mbstate_t is always defined.
48535
48536         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
48537         be 1 in at least one GCC installation, and this configuration
48538         error is likely to be common.  Ignoring MB_LEN_MAX hurts
48539         performance on hosts that have mbrtowc but have only unibyte
48540         locales, but I assume these hosts are rare.
48541
48542 2000-07-23  Paul Eggert  <eggert@twinsun.com>
48543
48544         * lib/mbswidth.c (_XOPEN_SOURCE):
48545         Don't define; this causes problems on Solaris 7.
48546         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
48547
48548 2000-07-23  Jim Meyering  <meyering@lucent.com>
48549
48550         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
48551         too: getgrgid, getpwuid, getuid.
48552
48553 2000-07-23  Jim Meyering  <meyering@lucent.com>
48554
48555         * lib/basename.c (base_name): Add an assertion.
48556
48557 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
48558
48559         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
48560         shadow its mbsinit function.
48561
48562 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
48563
48564         * lib/mbswidth.h: New file.
48565         * lib/mbswidth.c: New file.
48566         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
48567         (noinst_HEADERS): Add mbswidth.h.
48568
48569 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
48570
48571         * lib/config.charset: Add support for FreeBSD. Improve support for
48572         HP-UX and IRIX 6.
48573
48574 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
48575
48576         * m4/mbswidth.m4: New file.
48577         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
48578
48579 2000-07-15  Jim Meyering  <meyering@lucent.com>
48580
48581         * lib/makepath.c: Include quote.h.
48582         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
48583         corresponding argument in a `quote (...)' call.
48584         Give better diagnostics.
48585
48586         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
48587         (noinst_HEADERS): Add quote.h.
48588
48589         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
48590         from tar's src/misc.c.
48591         * lib/quote.h: New file.  Prototypes for same.
48592
48593 2000-07-14  Paul Eggert  <eggert@twinsun.com>
48594
48595         From a suggestion by Bruno Haible.
48596         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
48597         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
48598         to decide whether to define the BeOS workaround macro;
48599         this adjusts to the change to AC_MBSTATE_T.
48600
48601 2000-07-14  Jim Meyering  <meyering@lucent.com>
48602
48603         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
48604         jm_AC_TYPE_UINTMAX_T.
48605
48606 2000-07-13  Paul Eggert  <eggert@twinsun.com>
48607
48608         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
48609
48610         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
48611         quotearg_buffer_restyled): Add support for
48612         clocale_quoting_style.  Undo previous change to
48613         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
48614         and "{RIGHT QUOTATION MARK}" msgids.
48615
48616 2000-07-10  Paul Eggert  <eggert@twinsun.com>
48617
48618         From a suggestion by Bruno Haible.
48619         * m4/mbstate_t.m4 (AC_MBSTATE_T):
48620         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
48621         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
48622         and mbstate_t, to a single-part test that simply defines mbstate_t.
48623         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
48624         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
48625
48626 2000-07-10  Jim Meyering  <meyering@lucent.com>
48627
48628         * m4/strerror_r.m4: Mirror the correction made in autoconf.
48629
48630         * m4/gnu-source.m4: Output to confdefs.h directly.
48631         Suggestion from Akim Demaille.
48632
48633 2000-07-09  Paul Eggert  <eggert@twinsun.com>
48634
48635         The old behavior of quoting `like this' doesn't look good with
48636         newer, ISO-style fonts.  See:
48637         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
48638
48639         Instead, quote "like this" by default.  Let the translator
48640         tailor the locale-specific quoting behavior by providing
48641         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
48642
48643         * lib/quotearg.c (N_): New macro.
48644         (gettext_default): New function.
48645         (quotearg_buffer_restyled): Use
48646         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
48647         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
48648
48649 2000-07-09  Jim Meyering  <meyering@lucent.com>
48650
48651         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
48652         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
48653
48654         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
48655         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
48656
48657 2000-07-09  Jim Meyering  <meyering@lucent.com>
48658
48659         * lib/Most files: Update copyright dates to include 2000.
48660
48661 2000-07-08  Jim Meyering  <meyering@lucent.com>
48662
48663         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
48664         if not defined.
48665         (xgethostname): Remove now-unnecessary #ifdef.
48666         Move declaration of `err' into loop where it's used.
48667
48668 2000-07-05  Paul Eggert  <eggert@twinsun.com>
48669         and Bruno Haible  <haible@clisp.cons.org>
48670
48671         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
48672         only if the test for an object-type mbstate_t fails.  This
48673         prevents us from mistakenly reporting that mbstate_t is a
48674         system object type after we "#define mbstate_t int" to work
48675         around its lack.
48676
48677 2000-07-05  Paul Eggert  <eggert@twinsun.com>
48678         and Bruno Haible  <haible@clisp.cons.org>
48679
48680         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
48681
48682 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
48683
48684         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
48685         to strerror_r.
48686         Include <ctype.h> for use of isalpha.
48687
48688 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
48689
48690         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
48691         by allocating a larger buffer. Test the gethostname return value for
48692         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
48693         returns an error and ENAMETOOLONG isn't defined.
48694
48695 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
48696
48697         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
48698         dimension.
48699
48700 2000-07-04  Jim Meyering  <meyering@lucent.com>
48701
48702         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
48703         of the deprecated AC_CHECKING.
48704
48705 2000-07-04  Jim Meyering  <meyering@lucent.com>
48706
48707         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
48708         Reported by Bruno Haible.
48709
48710 2000-07-04  Jim Meyering  <meyering@lucent.com>
48711
48712         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
48713         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
48714         lacks mbrtowc.
48715
48716 2000-07-03  Paul Eggert  <eggert@twinsun.com>
48717
48718         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
48719         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
48720
48721 2000-07-03  Paul Eggert  <eggert@twinsun.com>
48722         and Bruno Haible  <haible@clisp.cons.org>
48723
48724         * lib/quotearg.c (mbrtowc):
48725         Assign to *pwc, and return 1 only if result is nonzero.
48726         (iswprint): Use ISPRINT when substituting our own mbrtowc.
48727
48728 2000-07-03  Jim Meyering  <meyering@lucent.com>
48729
48730         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
48731
48732 2000-07-03  Jim Meyering  <meyering@lucent.com>
48733
48734         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
48735         This is necessary to get a definition of e.g., UTMP_FILE on
48736         HP-UX 10.20.
48737         From Bob Proulx.
48738
48739 2000-07-02  Jim Meyering  <meyering@lucent.com>
48740
48741         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
48742
48743         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
48744         AC_LIBOBJ(function_name).
48745         * m4/chown.m4: Likewise.
48746         * m4/fnmatch.m4: Likewise.
48747         * m4/ftruncate.m4: Likewise.
48748         * m4/getgroups.m4: Likewise.
48749         * m4/getline.m4: Likewise.
48750         * m4/group-member.m4: Likewise.
48751         * m4/jm-macros.m4: Likewise.
48752         * m4/lstat.m4: Likewise.
48753         * m4/malloc.m4: Likewise.
48754         * m4/memcmp.m4: Likewise.
48755         * m4/nanosleep.m4: Likewise.
48756         * m4/putenv.m4: Likewise.
48757         * m4/realloc.m4: Likewise.
48758         * m4/regex.m4: Likewise.
48759         * m4/stat.m4: Likewise.
48760         * m4/strftime.m4: Likewise.
48761
48762 2000-07-02  Jim Meyering  <meyering@lucent.com>
48763
48764         * lib/quotearg.c (mbstate_t): Don't define here.
48765
48766 2000-07-02  Jim Meyering  <meyering@lucent.com>
48767
48768         * lib/nanosleep.c (SIGCONT): Define if not already defined.
48769
48770 2000-07-01  Jim Meyering  <meyering@lucent.com>
48771
48772         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
48773
48774 2000-07-01  Jim Meyering  <meyering@lucent.com>
48775
48776         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
48777         problem.
48778
48779 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
48780
48781         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
48782         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
48783
48784 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
48785
48786         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
48787         per change in ../m4/ls-mntd-fs.m4.
48788         (read_filesystem_list): Ignore symbolic links.
48789
48790 2000-06-29  Jim Meyering  <meyering@lucent.com>
48791
48792         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
48793         for declaration of strcmp.
48794
48795         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
48796
48797         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
48798         Avoid warning by casting result to `char *' to remove `const'.
48799
48800 2000-06-28  Jim Meyering  <meyering@lucent.com>
48801
48802         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
48803         included by quotearg.c, for which we perform this test.  From
48804         Bruno Haible.
48805
48806 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
48807
48808         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
48809         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
48810         <utmpx.h> exists, put readutmp.o into LIBOBJS.
48811
48812 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
48813
48814         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
48815
48816 2000-06-26  Paul Eggert  <eggert@twinsun.com>
48817
48818         savedir now sets errno on failure and invokes xmalloc to get memory.
48819         Fix a couple of other minor bugs while we're at it.
48820
48821         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
48822         (NAMLEN): Remove macro.
48823         (malloc, realloc): Remove decls.
48824         (stpcpy): Likewise.
48825         ("xalloc.h"): Include.
48826         (NAME_SIZE_DEFAULT): New macro.
48827         (savedir): Use xmalloc / xrealloc to allocate memory.
48828         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
48829         Skip "" directory entries.
48830         Use strlen to calculate directory entry length, since the old method
48831         is rarely used these days and isn't worth supporting.
48832         Don't use a pointer after freeing it.
48833         Check for integer overflow when calculating allocation size.
48834         Use memcpy to copy entries, instead of stpcpy.
48835         Set errno properly when returning NULL.
48836         Check for readdir error.
48837
48838 2000-06-26  Jim Meyering  <meyering@lucent.com>
48839
48840         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
48841
48842 2000-06-25  Jim Meyering  <meyering@lucent.com>
48843
48844         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
48845         Linux header bug when _XOPEN_SOURCE is defined to 500.
48846
48847 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
48848
48849         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
48850         deficiency.
48851
48852 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
48853
48854         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
48855         Include xalloc.h.
48856         Don't include <stdlib.h>.  Don't declare malloc, realloc.
48857
48858 2000-06-24  Jim Meyering  <meyering@lucent.com>
48859
48860         * m4/strerror_r.m4: Revive this file -- to try out an experimental
48861         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
48862         for which strerror does return char*, but which lacks a conveniently
48863         accessible declaration of the function.  If the compile-test says
48864         strerror_r doesn't work, then resort to a `run'-test that works on
48865         BeOS and segfaults on DEC Unix.
48866
48867 2000-06-24  Jim Meyering  <meyering@lucent.com>
48868
48869         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
48870
48871 2000-06-23  Paul Eggert  <eggert@twinsun.com>
48872
48873         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
48874         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
48875
48876 2000-06-23  Paul Eggert  <eggert@twinsun.com>
48877
48878         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
48879         (mbrtowc, mbstate_t): Define substitutes if
48880         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
48881         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
48882         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
48883
48884 2000-06-23  Jim Meyering  <meyering@lucent.com>
48885
48886         * m4/afs.m4: Add missing AC_MSG_RESULT.
48887         Reported by Bruno Haible.
48888
48889         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
48890         Suggestion from Bruno Haible.
48891
48892 2000-06-23  Jim Meyering  <meyering@lucent.com>
48893
48894         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
48895
48896 2000-06-21  Jim Meyering  <meyering@lucent.com>
48897
48898         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
48899
48900 2000-06-21  Jim Meyering  <meyering@lucent.com>
48901
48902         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
48903         (noinst_HEADERS): Add getstr.h.
48904
48905         * lib/getline.c (getstr): Move into a separate file.
48906         * lib/getstr.c (getstr): New file, extracted from getline.c, with
48907         the following changes: new parameter, delim2; both delim[12]
48908         parameters have type `int', not `char'.  The latter would lose
48909         with 8-bit delimiters.
48910         * lib/getstr.h: New file.
48911
48912 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
48913
48914         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
48915         than 1024, return a memory chunk of least possible size, instead
48916         of size PATH_MAX + 2. In the loop, increment the size proportionally.
48917         Use free/xmalloc instead of xrealloc to avoid copying for very long
48918         paths.
48919
48920 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
48921
48922         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
48923         the empty string.
48924
48925 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
48926
48927         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
48928         address, not strdup.  Include <stdlib.h> and don't declare free().
48929
48930 2000-06-19  Jim Meyering  <meyering@lucent.com>
48931
48932         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
48933
48934 2000-06-18  Jim Meyering  <meyering@lucent.com>
48935
48936         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
48937
48938         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
48939         `checking whether...' message to be consistent with that of the
48940         lstat test.
48941
48942 2000-06-18  Jim Meyering  <meyering@lucent.com>
48943
48944         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
48945         Besides, these days every porting target provides a mkdir function.
48946
48947         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
48948         needed. (this snippet comes from src/system.h).
48949
48950 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
48951
48952         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
48953
48954 2000-06-15  Paul Eggert  <eggert@twinsun.com>
48955
48956         * lib/human.c (adjust_value): New function.
48957         (human_readable_inexact): Apply rounding style even when
48958         printing approximate values.
48959
48960 2000-06-14  Paul Eggert  <eggert@twinsun.com>
48961
48962         * lib/human.c (human_readable_inexact): Allow an input block
48963         size that is not a multiple of the output block size, and vice versa.
48964         Reported by Piergiorgio Sartor.
48965
48966 2000-06-14  Paul Eggert  <eggert@twinsun.com>
48967
48968         * lib/getdate.y (get_date): Apply relative times after time
48969         zone indicator, not before.  Reported by Todd A. Jacobs.
48970
48971 2000-06-13  Jim Meyering  <meyering@lucent.com>
48972
48973         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
48974
48975         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
48976
48977 2000-06-12  Paul Eggert  <eggert@twinsun.com>
48978
48979         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
48980
48981 2000-06-12  Jim Meyering  <meyering@lucent.com>
48982
48983         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
48984         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
48985         optional argument.
48986         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
48987         the optional argument, `lib'.
48988
48989 2000-06-08  Jim Meyering  <meyering@lucent.com>
48990
48991         * m4/largefile.m4: Remove file (now that it's part of autoconf).
48992
48993 2000-06-04  Paul Eggert  <eggert@twinsun.com>
48994
48995         Rewrite largefile configuration so that we don't need to run
48996         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
48997         AC_CANONICAL_HOST in configure.in -- jmm]
48998
48999         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
49000         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
49001         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
49002         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
49003         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
49004         All uses changed.
49005         Instead of inspecting the output of getconf, try to compile the
49006         test program without and with the macro definition.
49007         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
49008         for getconf.  Instead, check for the needed flags by compiling
49009         test programs.
49010
49011 2000-06-04  Paul Eggert  <eggert@twinsun.com>
49012
49013         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
49014
49015 2000-06-04  Jim Meyering  <meyering@lucent.com>
49016
49017         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
49018         SunOS 4.1.4 for which gid_t is an unsigned type.
49019
49020 2000-06-03  Jim Meyering  <meyering@lucent.com>
49021
49022         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
49023         now that autoconf requires that.
49024
49025         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
49026         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
49027         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
49028
49029 2000-06-03  Jim Meyering  <meyering@lucent.com>
49030
49031         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
49032
49033 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
49034
49035         * m4/glibc21.m4: New file.
49036         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
49037
49038 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
49039
49040         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
49041         newer, don't install charset.alias.
49042         * lib/config.charset: Change the Linux/glibc rules so they become empty
49043         on glibc-2.1 or newer.
49044
49045 2000-06-02  Jim Meyering  <meyering@lucent.com>
49046
49047         * lib/mountlist.c: Back out last change.  Instead, do this...
49048         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
49049         me_dummy member using the same `ignore'-testing code.
49050         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
49051         fs_type strings.
49052         From Mark D. Roth.
49053
49054 2000-05-29  Jim Meyering  <meyering@lucent.com>
49055
49056         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
49057         mounts with the `ignore' attribute.  Based on a patch from
49058         Mark D. Roth.
49059
49060 2000-05-28  Jim Meyering  <meyering@lucent.com>
49061
49062         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
49063         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49064         * m4/stat.m4: Likewise.
49065         * m4/lstat.m4: Likewise.
49066         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
49067
49068         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
49069         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
49070
49071 2000-05-26  Jim Meyering  <meyering@lucent.com>
49072
49073         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
49074
49075 2000-05-24  Jim Meyering  <meyering@lucent.com>
49076
49077         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
49078         autoconf requires that.
49079         * m4/lib-check.m4: Likewise.
49080         * m4/jm-macros.m4: Likewise.
49081         * m4/strftime.m4: Likewise.
49082
49083         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
49084         AC_CHECK_DECLS, now that autoconf requires that.
49085
49086 2000-05-22  Jim Meyering  <meyering@lucent.com>
49087
49088         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49089         * m4/lstat.m4: Likewise.
49090
49091 2000-05-22  Jim Meyering  <meyering@lucent.com>
49092
49093         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
49094
49095 2000-05-20  Jim Meyering  <meyering@lucent.com>
49096
49097         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
49098         (jm_PREREQ): Use it.
49099
49100 2000-05-18  Jim Meyering  <meyering@lucent.com>
49101
49102         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
49103         back, too, since it may have been modified by allocate_entry.
49104         (hash_delete): Rewrite to use neither the assignment operator
49105         nor the comma operator in an if-expression.
49106
49107 2000-05-15  Paul Eggert  <eggert@twinsun.com>
49108
49109         * lib/closeout.c:
49110         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
49111         Remove; no longer needed.
49112         "quotearg.h": Add include.
49113         (file_name): Do not bother to explicitly initialize to NULL; it's less
49114         efficient on some hosts.
49115         (close_stdout_status): Remove test as to whether stdout was already
49116         closed; it breaks for the case "echo x | sort >&-".
49117         Quote file name colons.
49118         Do not assume that _("write error") lacks format strings.
49119
49120 2000-05-15  Jim Meyering  <meyering@lucent.com>
49121
49122         * lib/version-etc.c (version_etc_copyright): Update the copyright
49123         string used in all --version output.
49124
49125 2000-05-14  Jim Meyering  <meyering@lucent.com>
49126
49127         * lib/closeout.c (close_stdout_set_file_name): New function.
49128         (close_stdout_status): Use new file-scoped global.
49129         Return right away if fstat says the stdout file descriptor is invalid.
49130         * lib/closeout.h (close_stdout_set_file_name): Declare.
49131
49132 2000-05-10  Jim Meyering  <meyering@lucent.com>
49133
49134         * lib/closeout.c [default_exit_status]: New file-scoped variable.
49135         (close_stdout_set_status): New function.
49136         * lib/closeout.h (close_stdout_set_status): Declare.
49137
49138 2000-05-09  Jim Meyering  <meyering@lucent.com>
49139
49140         * m4/gettext.m4: Rename this...
49141         * m4/libintl.m4: ...to this.
49142
49143 2000-05-08  Jim Meyering  <meyering@lucent.com>
49144
49145         * lib/long-options.c: Don't include closeout.h.
49146         (parse_long_options): Don't call close_stdout for --version.
49147
49148 2000-05-06  Paul Eggert  <eggert@twinsun.com>
49149
49150         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
49151         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
49152         2.1.3 bug.  This avoids a clash when files like regex.c define
49153         _GNU_SOURCE.
49154
49155 2000-05-06  Jim Meyering  <meyering@lucent.com>
49156
49157         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
49158         (AC_REPLACE_FUNCS): Add strnlen.
49159
49160         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
49161         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
49162
49163         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
49164         AC_SEARCH_LIBS call for nanosleep.
49165         (LIB_NANOSLEEP): Set and AC_SUBST.
49166
49167 2000-05-06  Jim Meyering  <meyering@lucent.com>
49168
49169         * lib/strnlen.c: Undefine __strnlen and strnlen.
49170         [!weak_alias]: Define __strnlen to strnlen.
49171
49172         * lib/atexit.c: New file, from libiberty.
49173
49174 2000-05-06  Jim Meyering  <meyering@lucent.com>
49175
49176         * lib/closeout.c (close_stdout_status): Also check for errors on the
49177         stderr stream.
49178
49179 2000-05-05  Jim Meyering  <meyering@lucent.com>
49180
49181         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
49182         AC_SEARCH_LIBS call for clock_gettime.
49183         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
49184
49185         * m4/search-libs.m4: Update from autoconf.
49186
49187         su doesn't work on Solaris 2.6.
49188         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
49189         <shadow.h>.  Reported by Dragos Harabor.
49190
49191 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
49192
49193         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
49194         memcpy instead of xmalloc, xrealloc, path_concat.
49195         (locale_charset): Treat empty environment variables as absent.
49196         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
49197
49198 2000-05-04  Jim Meyering  <meyering@lucent.com>
49199
49200         * lib/getopt.c: Update from glibc.
49201         * lib/obstack.c: Likewise.
49202         * lib/obstack.h: Likewise.
49203         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
49204         file
49205
49206         * lib/regex.h: Likewise.
49207         * lib/strndup.c: Likewise.
49208         * lib/strnlen.c: New file, from glibc.
49209
49210 2000-05-03  Jim Meyering  <meyering@lucent.com>
49211
49212         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
49213
49214 2000-05-02  Paul Eggert  <eggert@twinsun.com>
49215
49216         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
49217         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
49218         compile-time test, rather than inspecting host and OS, to
49219         decide whether to define _LARGEFILE_SOURCE.
49220
49221 2000-05-01  Jim Meyering  <meyering@lucent.com>
49222
49223         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
49224
49225         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
49226         Based on a patch from Bruno Haible.
49227
49228 2000-05-01  Jim Meyering  <meyering@lucent.com>
49229
49230         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
49231
49232 2000-04-29  Jim Meyering  <meyering@lucent.com>
49233
49234         * lib/path-concat.c: Declare strdup only if it's not defined.
49235         * lib/canon-host.c: Likewise.
49236
49237 2000-04-28  Jim Meyering  <meyering@lucent.com>
49238
49239         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
49240         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
49241         is included first, then limits.h is included by locale.h by libintl.h.
49242         From John David Anglin.
49243
49244 2000-04-25  Jim Meyering  <meyering@lucent.com>
49245
49246         * lib/makepath.c (S_IRWXUGO): Define.
49247         (make_path): Always perform explicit chmod if MODE specifies any
49248         of the `special' permission bits.  Prompted by a bug report against
49249         install from Mate Wierdl and Joost van Baal.
49250
49251 2000-04-18  Jim Meyering  <meyering@lucent.com>
49252
49253         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
49254         (jm_PREREQ): Use it.
49255
49256 2000-04-18  Jim Meyering  <meyering@lucent.com>
49257
49258         * lib/README: New file.
49259
49260         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
49261         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
49262
49263 2000-04-17  Jim Meyering  <meyering@lucent.com>
49264
49265         Get it right :-)
49266         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
49267         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
49268         Suggestion from Akim Demaille.
49269
49270 2000-04-17  Jim Meyering  <meyering@lucent.com>
49271
49272         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
49273         the definition of it to rpl_strftime also defined-away the system's
49274         declaration.
49275
49276 2000-04-15  Jim Meyering  <meyering@lucent.com>
49277
49278         Use `C' to denote so-called `contiguous' files, the same way
49279         that tar does.
49280         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
49281         (ftypelet): Use S_ISCTG.
49282         From Michael Deutschmann.
49283
49284 2000-04-14  Jim Meyering  <meyering@lucent.com>
49285
49286         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
49287         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
49288         clobbered.
49289
49290 2000-04-14  Jim Meyering  <meyering@lucent.com>
49291
49292         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
49293
49294 2000-04-13  Jim Meyering  <meyering@lucent.com>
49295
49296         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
49297         AH_VERBATIM to insert required #ifndef into config.h.in.
49298         Suggestion from Akim Demaille.
49299
49300 2000-04-12  Jim Meyering  <meyering@lucent.com>
49301
49302         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
49303         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
49304         Christian Krackowizer.
49305
49306         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
49307         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
49308         (AC_SYS_LARGEFILE): Require.
49309         (AM_C_PROTOTYPES): Require.
49310
49311 2000-04-08  Jim Meyering  <meyering@lucent.com>
49312
49313         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
49314         names don't conflict.  Reported by Eli Zaretskii.
49315
49316 2000-04-07  Jim Meyering  <meyering@lucent.com>
49317
49318         * lib/putenv.c: Move inclusion of errno.h so it follows that of
49319         sys/types.h, to work around system header problems on AIX 3.2.5.
49320         From Bruno Haible.
49321
49322 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
49323
49324         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
49325         bug.  Deal with the different error behavior of Irix iconv.
49326
49327 2000-04-05  Paul Eggert  <eggert@twinsun.com>
49328
49329         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
49330         IRIX if the installer said otherwise.
49331
49332 2000-04-05  Jim Meyering  <meyering@lucent.com>
49333
49334         Portability tweaks required for ultrix4.3.
49335         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
49336         (jm_CHECK_DECLS): Add getutent to the list of functions.
49337         (_jm_DECL_HEADERS): Add utmpx.h.
49338         From John David Anglin.
49339
49340         * m4/strftime.m4: Back out the 2000-04-02 change.
49341         Instead of that change, simply undefine putenv in the test program.
49342
49343 2000-04-05  Jim Meyering  <meyering@lucent.com>
49344
49345         Portability tweaks required for ultrix4.3.
49346         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
49347         getutent.
49348         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
49349         * lib/canon-host.c: Declare strdup.
49350         * lib/path-concat.c: Likewise.
49351         From John David Anglin.
49352
49353 2000-04-04  Jim Meyering  <meyering@lucent.com>
49354
49355         Be more DOS 8.3-friendly.
49356         * lib/ref-add.sin: Renamed from ref-add.sed.in.
49357         * lib/ref-del.sin: Renamed from ref-del.sed.in.
49358         * lib/Makefile.am: Reflect renaming.
49359         Reported by Eli Zaretskii.
49360
49361         Use a temporary file name that won't clash with `charset.alias'
49362         in the DOS 8.3 name space.
49363         * lib/Makefile.am (charset_tmp): Define.
49364         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
49365         (uninstall-local): Likewise.
49366         Reported by Eli Zaretskii.
49367
49368 2000-04-03  Jim Meyering  <meyering@lucent.com>
49369
49370         * m4/gettext.m4: Fix typo in comment.
49371
49372         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
49373         textutils/configure.in).  Suggestion from Paul Eggert.
49374         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
49375
49376 2000-04-02  Paul Eggert  <eggert@twinsun.com>
49377
49378         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
49379         variable in the shell rather than using putenv, which isn't
49380         portable.  This avoids the configure-time inter-test dependency
49381         on the potentially-renamed putenv function.
49382
49383 2000-03-30  Paul Eggert  <eggert@twinsun.com>
49384
49385         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
49386         before checking struct stat.st_blksize, so that
49387         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
49388
49389 2000-03-29  Paul Eggert  <eggert@twinsun.com>
49390
49391         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
49392         since strftime.c uses HAVE_STRFTIME to decide whether to use
49393         the underlying strftime.
49394
49395 2000-03-29  Paul Eggert  <eggert@twinsun.com>
49396
49397         * lib/time/strftime.c (my_strftime): Make sure we call the system
49398         strftime, not ourselves, when invoking the underlying strftime.
49399
49400 2000-03-24  Jim Meyering  <meyering@lucent.com>
49401
49402         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
49403         (charset_alias): Define.
49404         (install-exec-local): Factor out common code.
49405         (uninstall-local): Split lines longer than 80.
49406         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
49407         (SUFFIXES): Define.
49408         (.sed.in.sed): New rule.  Don't redirect directly to $@.
49409         (CLEANFILES): Add ref-add.sed and ref-del.sed.
49410
49411 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
49412
49413         * lib/config.charset: Output a line containing "Packages using this
49414         file".
49415         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
49416         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
49417         ref-del.sed): New rules.
49418
49419 2000-03-17  Jim Meyering  <meyering@lucent.com>
49420
49421         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
49422         Otherwise, include <strings.h>
49423
49424 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
49425
49426         * lib/unicodeio.c (utf8_wctomb): New function.
49427         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
49428         format instead of in UCS-4 with platform dependent endianness.
49429
49430 2000-03-10  Jim Meyering  <meyering@lucent.com>
49431
49432         * m4/lib-check.m4: Look for getspnam in -lgen, too.
49433         From Marco Franzen.
49434
49435 2000-03-07  Paul Eggert  <eggert@twinsun.com>
49436
49437         * lib/savedir.c (savedir): Work even if directory size is
49438         negative; this can happen with some screwy NFS configurations.
49439
49440 2000-03-06  Jim Meyering  <meyering@lucent.com>
49441
49442         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
49443         if it's NULL (because we ran out of memory).  From Bruno Haible.
49444
49445 2000-03-05  Jim Meyering  <meyering@lucent.com>
49446
49447         * lib/localcharset.c ("path-concat.h"): Include.
49448         (get_charset_aliases): Use path_concat instead of ANSI string
49449         concatenation.
49450
49451         * lib/unicodeio.h (PARAMS): Define.
49452         Use it to guard prototype.
49453
49454 2000-03-04  Jim Meyering  <meyering@lucent.com>
49455
49456         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
49457         for lib/localcharset.c.
49458
49459 2000-03-04  Jim Meyering  <meyering@lucent.com>
49460
49461         * lib/Makefile.am (install-exec-local): Create $(libdir) before
49462         installing into it.
49463         (uninstall-local): Uncomment this rule so `make distcheck' works
49464         once again.
49465
49466         * lib/unicodeio.c (<errno.h>): Include it.
49467         (errno): Declare if not defined.
49468
49469         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
49470
49471         * lib/config.charset: New version, incorporating remarks from a linux
49472         i18n mailing list.  From Bruno Haible.
49473
49474 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
49475
49476         * m4/codeset.m4: New file.
49477         * m4/iconv.m4: New file.
49478         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
49479
49480 2000-03-03  Jim Meyering  <meyering@lucent.com>
49481
49482         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
49483
49484 2000-03-02  Jim Meyering  <meyering@lucent.com>
49485
49486         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
49487         the messages come out on separate lines.
49488
49489         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
49490         rather than jm_CHECK_DECLARATIONS.
49491         * m4/decl.m4: Remove now-unused file.
49492
49493         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
49494         geteuid.
49495
49496 2000-03-02  Jim Meyering  <meyering@lucent.com>
49497
49498         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
49499
49500 2000-03-01  Jim Meyering  <meyering@lucent.com>
49501
49502         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
49503         * lib/unicodeio.c: Likewise.
49504
49505 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
49506
49507         * lib/config.charset: New file.
49508         * lib/localcharset.c: New file.
49509         * lib/unicodeio.h, lib/unicodeio.c: New files.
49510         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
49511         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
49512         (noinst_HEADERS): Add unicodeio.h.
49513         (all-local, install-exec-local, charset.alias): New targets.
49514
49515 2000-02-28  Paul Eggert  <eggert@twinsun.com>
49516
49517         * lib/quotearg.c (ALERT_CHAR): New macro.
49518         (quotearg_buffer_restyled): Use it.
49519
49520 2000-02-27  Jim Meyering  <meyering@lucent.com>
49521
49522         * m4/check-decl.m4: Add getenv to the list.
49523
49524 2000-02-27  Jim Meyering  <meyering@lucent.com>
49525
49526         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
49527         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
49528
49529         * lib/backupfile.c: Guard inclusion of stdlib.h with
49530         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
49531         Declare malloc if needed.
49532
49533         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
49534         `#ifndef HAVE_DECL..'
49535         now that autoconf always defines the HAVE_DECL_ symbols.
49536         * lib/human.c: Likewise.
49537         * lib/same.c: Likewise.
49538         * lib/strtoumax.c: Likewise.
49539
49540         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
49541         declaration check was not run.
49542         * lib/hash.c: Likewise.
49543         * lib/human.c: Likewise.
49544         * lib/same.c: Likewise.
49545         * lib/strtoumax.c: Likewise.
49546
49547         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
49548         `.', then first look up the entire `.'-containing string as a login
49549         name.
49550
49551 2000-02-23  Jim Meyering  <meyering@lucent.com>
49552
49553         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
49554         in place of my hack.
49555
49556 2000-02-18  Paul Eggert  <eggert@twinsun.com>
49557
49558         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
49559         (textint): New typedef.
49560         (parser_control): Member year changed from int to textint.
49561         All uses changed.
49562         (YYSTYPE): Removed; replaced by %union with int and textint members.
49563         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
49564         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
49565         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
49566         (tSNUMBER, tUNUMBER): Now of type <textintval>.
49567         (date, number, to_year): Use width of number in digits, not its value,
49568         to determine whether it's a 2-digit year, or a 2-digit time.
49569         (yylex): Store number of digits of numeric tokens.
49570         Reported by John Kendall.
49571
49572         (parser_control): Changed from struct parser_control to typedef (for
49573         consistency).  All uses changed.
49574
49575         (tID): Removed; not used.
49576         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
49577
49578 2000-02-14  Paul Eggert  <eggert@twinsun.com>
49579
49580         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
49581         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
49582
49583 2000-02-12  Jim Meyering  <meyering@lucent.com>
49584
49585         * lib/userspec.c (ISDIGIT): Define it.
49586         (isdigit): Remove definition.
49587         (is_number): Use ISDIGIT, not isdigit.
49588         <libintl.h>: Include.
49589         (_ and N_): Define.
49590         (parse_user_spec): Mark translatable strings.
49591
49592 2000-02-10  Jim Meyering  <meyering@lucent.com>
49593
49594         With these changes, nanosleep.[ch] are finally enough like the other
49595         lib/* replacement files to compile on a few more losing systems.
49596
49597         * lib/nanosleep.h: Don't include config.h.
49598         Remove prototype from declaration of nanosleep.
49599         (PARAMS): Remove now-unneeded definition.
49600         * lib/nanosleep.c: #undef nanosleep.
49601         (rpl_nanosleep): Rename from nanosleep.
49602
49603 2000-02-10  Jim Meyering  <meyering@lucent.com>
49604
49605         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
49606         gnu_nanosleep to rpl_nanosleep.
49607
49608 2000-02-09  Jim Meyering  <meyering@lucent.com>
49609
49610         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
49611         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
49612
49613 2000-02-08  Akim Demaille  <akim@epita.fr>
49614
49615         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
49616         `[' and `]' and remove uses of `changequote'.
49617         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
49618         (AC_SYS_LARGEFILE): Likewise.
49619         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49620         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
49621         of changequote.
49622         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
49623         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
49624         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
49625         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
49626
49627 2000-02-05  Jim Meyering  <meyering@lucent.com>
49628
49629         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
49630         Remove explicit use of AC_HEADER_TIME.  It is required by
49631         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
49632         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
49633         in autoconf whereby the expansion of the latter ended up preceding
49634         the expansion of its prerequisite, AC_HEADER_TIME.
49635         Reported by Volker Borchert.
49636
49637 2000-02-03  Jim Meyering  <meyering@lucent.com>
49638
49639         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
49640
49641 2000-02-03  Jim Meyering  <meyering@lucent.com>
49642
49643         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
49644         rather than with `#if HAVE_UTMPNAME'.
49645
49646 2000-02-02  Jim Meyering  <meyering@lucent.com>
49647
49648         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
49649         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
49650         Reported by Eli Zaretskii.
49651
49652 2000-02-01  Jim Meyering  <meyering@lucent.com>
49653
49654         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
49655
49656 2000-01-31  Jim Meyering  <meyering@lucent.com>
49657
49658         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
49659         functions.  Add the time.h and sys/time.h headers along with the
49660         AC_REQUIRE'ment of AC_HEADER_TIME.
49661
49662 2000-01-31  Jim Meyering  <meyering@lucent.com>
49663
49664         * lib/nanosleep.h (nanosleep): Guard declaration with
49665         `#if ! HAVE_DECL_NANOSLEEP'.
49666         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
49667         the declaration in that vendor's sys/timers.h.
49668         Reported by Christian Krackowizer.
49669
49670         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
49671         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
49672         (ISPRINT): Likewise.
49673         Reported by Tom Tromey.
49674
49675 2000-01-30  Jim Meyering  <meyering@lucent.com>
49676
49677         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
49678
49679         * m4/prereq.m4 (utmp_includes): Define.
49680         Check for ut_user and ut_name members in both struct utmpx
49681         and struct utmp.
49682
49683 2000-01-30  Jim Meyering  <meyering@lucent.com>
49684
49685         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
49686         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
49687         header files where only utmpx.ut_user is declared.
49688
49689         * lib/readutmp.h (UT_USER): Define.
49690
49691 2000-01-29  Jim Meyering  <meyering@lucent.com>
49692
49693         * m4/lib-check.m4: New file containing library-related checks from
49694         fileutils and sh-utils (textutils had none).
49695
49696 2000-01-28  Jim Meyering  <meyering@lucent.com>
49697
49698         * m4/perl.m4: Change format of warning message to look more like that
49699         from the missing script.  Suggestion from François Pinard.
49700
49701 2000-01-25  Jim Meyering  <meyering@lucent.com>
49702
49703         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
49704         well as time.h in the compile check.
49705         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
49706         Fix typo in cross-compiling case: s/yes/no/.
49707
49708 2000-01-23  Jim Meyering  <meyering@lucent.com>
49709
49710         * m4/jm-macros.m4: Move df-related tests here from
49711         fileutils/configure.in
49712
49713         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
49714         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
49715
49716         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
49717         s/space/ac_fsusage_space/.
49718         (jm_FILE_SYSTEM_USAGE): Take two parameters.
49719
49720         * m4/ftruncate.m4: New file (derived from part of
49721         fileutils/configure.in).
49722         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
49723         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
49724
49725         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
49726         AC_SUBST these here, rather than just in sh-util/configure.in, so
49727         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
49728         all the same.
49729         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
49730         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
49731         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
49732         (AC_SUBST(POW_LIBM)): Likewise.
49733         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
49734
49735 2000-01-23  Jim Meyering  <meyering@lucent.com>
49736
49737         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
49738         obstack.c.
49739
49740 2000-01-22  Jim Meyering  <meyering@lucent.com>
49741
49742         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
49743
49744         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
49745
49746         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
49747         configure.in
49748         (AC_CHECK_HEADERS): Likewise for sh-utils.
49749         (AC_CHECK_HEADERS): Likewise for textutils.
49750         Merge the three lists of headers.
49751
49752         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
49753         from fileutils' configure.in.
49754
49755         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
49756         code. Moved tests into their own function (_jm_DECL_HEADERS) in
49757         check-decl.m4.
49758
49759         * m4/check-decl.m4: Use #if rather than #ifdef.
49760         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
49761         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
49762         (_jm_DECL_HEADERS): Define new function.
49763         (jm_CHECK_DECLARATIONS): Require it.
49764
49765 2000-01-22  Jim Meyering  <meyering@lucent.com>
49766
49767         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
49768         [! HAVE_DECL_STRTOULL]: Declare strtoull.
49769         Required for some AIX systems.  Reported by Christian Krackowizer.
49770         [TESTING] (main): New function.
49771
49772         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
49773         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
49774         letters.
49775
49776         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
49777         iswprint.
49778
49779         * lib/strverscmp.c (ISDIGIT): Define.
49780         (strverscmp): Use ISDIGIT, not isdigit.
49781
49782 2000-01-19  Jim Meyering  <meyering@lucent.com>
49783
49784         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
49785         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
49786         defines `struct timespec' in <sys/time.h>
49787
49788         * m4/c-bs-a.m4: Remove uses of changequote altogether.
49789         Thanks to Akim for explaining.
49790
49791 2000-01-17  Paul Eggert  <eggert@twinsun.com>
49792
49793         * lib/nanosleep.c (nanosleep):
49794         Don't use SA_INTERRUPT to decide whether to call sigaction, as
49795         POSIX.1 doesn't require SA_INTERRUPT and some systems
49796         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
49797         it's been part of POSIX.1 since day 1 (in 1988).
49798
49799 2000-01-17  Jim Meyering  <meyering@lucent.com>
49800
49801         * lib/interlock: Remove unused file.  Reported by François Pinard.
49802
49803 2000-01-16  Paul Eggert  <eggert@twinsun.com>
49804
49805         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
49806         alert, backslash, formfeed, and vertical tab unnecessarily in
49807         shell quoting style.
49808
49809 2000-01-16  Jim Meyering  <meyering@lucent.com>
49810
49811         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
49812         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
49813         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
49814         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
49815
49816 2000-01-16  Jim Meyering  <meyering@lucent.com>
49817
49818         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
49819         because the latter didn't work.
49820
49821 2000-01-15  Jim Meyering  <meyering@lucent.com>
49822
49823         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
49824         (AC_REPLACE_FUNCS): Add memcpy and memset.
49825         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
49826         Add strpbrk.
49827         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
49828
49829 2000-01-12  Jim Meyering  <meyering@lucent.com>
49830
49831         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
49832         (jm_PREREQ): Use it.
49833         (jm_PREREQ_READUTMP): New macro.
49834         (jm_PREREQ): Use it.
49835
49836 2000-01-11  Paul Eggert  <eggert@twinsun.com>
49837
49838         Quote multibyte characters correctly.
49839         * m4/c-bs-a.m4: New file.
49840         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
49841         (jm_PREREQ): Use it.
49842
49843 2000-01-11  Paul Eggert  <eggert@twinsun.com>
49844
49845         * m4/uintmax_t.m4: Port to autoconf 2.13.
49846
49847 2000-01-08  Jim Meyering  <meyering@ascend.com>
49848
49849         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
49850         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
49851
49852 2000-01-04  Jim Meyering  <meyering@ascend.com>
49853
49854         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
49855         jm_STRUCT_DIRENT_D_TYPE.
49856         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
49857         jm_STRUCT_DIRENT_D_INO.
49858         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
49859         jm_STRUCT_UTIMBUF.
49860         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
49861         renamings.
49862         * m4/utime.m4: Likewise.
49863
49864         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
49865         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
49866
49867 2000-01-03  Paul Eggert  <eggert@twinsun.com>
49868
49869         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
49870         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
49871
49872 2000-01-02  Jim Meyering  <meyering@ascend.com>
49873
49874         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
49875         remember if this is necessary.
49876
49877 1999-12-26  Jim Meyering  <meyering@ascend.com>
49878
49879         * m4/jm-macros.m4: Use it here.
49880         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
49881
49882 1999-12-23  Jim Meyering  <meyering@ascend.com>
49883
49884         * m4/jm-macros.m4: Check for clock_gettime (moved from
49885         fileutils/configure.in)
49886         Check for gettimeofday.
49887
49888 1999-12-20  Jim Meyering  <meyering@ascend.com>
49889
49890         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
49891         autoconf-2.14a-1999-12-20.
49892
49893 1999-12-19  Jim Meyering  <meyering@ascend.com>
49894
49895         * m4/lstat-slash.m4: New file.
49896         * m4/jm-macros.m4: Use the new macro:
49897         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
49898
49899 1999-12-07  Jim Meyering  <meyering@ascend.com>
49900
49901         * m4/perl.m4: Require that File::Compare be available, too.
49902         Too many systems seem to lack it.
49903
49904         * m4/strftime.m4: Add checks for most of the cpp macros tested in
49905         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
49906
49907 1999-11-18  Paul Eggert  <eggert@twinsun.com>
49908
49909         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
49910         problem with the QNX 4.25 shell, which doesn't propagate exit
49911         status of failed commands inside shell assignments.
49912
49913 1999-11-17  Jim Meyering  <meyering@ascend.com>
49914
49915         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
49916
49917 1999-11-07  Jim Meyering  <meyering@ascend.com>
49918
49919         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
49920
49921 1999-11-06  Jim Meyering  <meyering@ascend.com>
49922
49923         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
49924         * m4/jm-macros.m4 (jm_MACROS): Use it here.
49925
49926 1999-11-05  Jim Meyering  <meyering@ascend.com>
49927
49928         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
49929         configure.in of textutils, fileutils, and sh-utils into this one
49930         (shared between those packages) file.
49931         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
49932         AC_STRUCT_ST_BLKSIZE.
49933
49934 1999-11-03  Jim Meyering  <meyering@ascend.com>
49935
49936         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
49937         of AC_CHECK_TYPE checks includes unistd.h.
49938         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
49939         Suggestion from Akim Demaille.
49940
49941 1999-10-30  Jim Meyering  <meyering@ascend.com>
49942
49943         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
49944         m4-quoted string.
49945         * m4/ls-mntd-fs.m4: Likewise.
49946         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
49947         * m4/jm-winsz1.m4: Likewise.
49948
49949         * m4/const.m4: Remove file, since the fix made it into the experimental
49950         version of autoconf.
49951         * m4/mktime.m4: Likewise.
49952
49953         * m4/check-type.m4: Remove file, now that the latest version of
49954         AC_CHECK_TYPE takes a third arg to specify additional #includes.
49955
49956         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
49957         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
49958         AC_CHECK_TYPE.
49959
49960 1999-10-04  Jim Meyering  <meyering@ascend.com>
49961
49962         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
49963
49964 1999-09-22  Paul Eggert  <eggert@twinsun.com>
49965
49966         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
49967         2.95.1 bug with HP-UX 10.20.
49968
49969 1999-09-17  Jim Meyering  <meyering@ascend.com>
49970
49971         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
49972         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
49973         due to missing strdup (against sh-utils-2.0).
49974
49975 1999-08-29  Jim Meyering  <meyering@ascend.com>
49976
49977         * m4/jm-macros.m4: Require jm_BISON.
49978         * m4/bison.m4: New file.
49979
49980 1999-08-17  Paul Eggert  <eggert@twinsun.com>
49981
49982         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
49983         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
49984
49985 1999-08-05  Jim Meyering  <meyering@ascend.com>
49986
49987         * m4/getline.m4: Rename test file from conftestdata to conftest.data
49988         to avoid conflicts with `conftest' on 8+3 filesystems.
49989         Suggestion from Eli Zaretskii.
49990
49991 1999-08-04  Jim Meyering  <meyering@ascend.com>
49992
49993         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
49994         fileutils and sh-utils (textutils's getline test was inadequate).
49995         (AM_FUNC_GETLINE): Run this test.
49996         (AC_CHECK_FUNCS): Check for getdelim.
49997         Reported by Bob Proulx.
49998
49999 1999-08-02  Jim Meyering  <meyering@ascend.com>
50000
50001         * m4/jm-macros.m4: Add a comment.
50002
50003 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50004
50005         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
50006         <inttypes.h> defines strtoumax as a macro (and not as a
50007         function).
50008
50009 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50010
50011         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
50012         that we can shift, multiply and divide unsigned long long
50013         values; Ultrix cc can't do it.
50014
50015 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50016
50017         * m4/mktime.m4: New file, which is a preview of what should appear
50018         in the next public autoconf release.
50019
50020 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50021
50022         * m4/lfs.m4: Remove this file.
50023         * m4/largefile.m4: New file.  It contains the old contents of
50024         lfs.m4, except that all names with prefix AC_LFS have been
50025         changed to use the prefix AC_SYS_LARGEFILE instead, to be
50026         compatible with future autoconf versions.  Also, some minor m4
50027         quoting problems have been fixed.
50028
50029 1999-08-01  Paul Eggert  <eggert@twinsun.com>
50030
50031         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
50032         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
50033         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
50034         and simplify the shell code.
50035
50036 1999-08-01  Jim Meyering  <meyering@ascend.com>
50037
50038         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
50039         m4.
50040
50041 1999-07-20  Jim Meyering  <meyering@ascend.com>
50042
50043         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
50044
50045 1999-07-15  Jim Meyering  <meyering@ascend.com>
50046
50047         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
50048
50049 1999-05-22  Jim Meyering  <meyering@ascend.com>
50050
50051         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
50052
50053 1999-05-20  Jim Meyering  <meyering@ascend.com>
50054
50055         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
50056         Add a colon after each `then' in case $4 is empty.
50057
50058 1999-05-16  Jim Meyering  <meyering@ascend.com>
50059
50060         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
50061
50062 1999-05-10  Jim Meyering  <meyering@ascend.com>
50063
50064         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
50065
50066         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
50067         AC_FUNC_MKTIME.
50068
50069 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
50070
50071         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
50072
50073 1999-05-04  Paul Eggert  <eggert@twinsun.com>
50074
50075         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
50076         not CPPFLAGS, so that linking works correctly in IRIX.
50077
50078 1999-04-30  Paul Eggert  <eggert@twinsun.com>
50079
50080         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
50081
50082 1999-04-20  Paul Eggert  <eggert@twinsun.com>
50083
50084         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
50085         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
50086         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
50087         jm_AC_TYPE_UNSIGNED_LONG_LONG.
50088         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
50089
50090         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
50091
50092 1999-04-20  Jim Meyering  <meyering@ascend.com>
50093
50094         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
50095         AC_REPLACE xstroull if necessary.  From Paul Eggert.
50096         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
50097
50098 1999-04-18  Jim Meyering  <meyering@ascend.com>
50099
50100         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
50101         * m4/jm-macros.m4: Use it.
50102
50103 1999-04-06  Jim Meyering  <meyering@ascend.com>
50104
50105         * m4/strftime.m4: Remove test for %f.
50106
50107 1999-03-29  Jim Meyering  <meyering@ascend.com>
50108
50109         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
50110         superset of the AC_TYPE_* checks in the textutils, fileutils,
50111         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
50112         AC_TYPE_PID_T.
50113
50114 1999-03-28  Jim Meyering  <meyering@ascend.com>
50115
50116         * m4/jm-macros.m4: Define GNU_PACKAGE here.
50117         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
50118         replaced e.g., in the *.sh files of the sh-utils.
50119
50120 1999-03-20  Jim Meyering  <meyering@ascend.com>
50121
50122         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
50123         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
50124         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
50125
50126 1999-03-19  Jim Meyering  <meyering@ascend.com>
50127
50128         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
50129
50130 1999-03-12  Jim Meyering  <meyering@ascend.com>
50131
50132         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
50133
50134 1999-03-07  Jim Meyering  <meyering@ascend.com>
50135
50136         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
50137         declared.
50138
50139 1999-02-17  Jim Meyering  <meyering@ascend.com>
50140
50141         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
50142         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
50143
50144 1999-02-07  Jim Meyering  <meyering@ascend.com>
50145
50146         * m4/group-member.m4: New file -- extracted from sh-utils'
50147         configure.in.
50148
50149         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
50150         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
50151
50152 1999-02-06  Jim Meyering  <meyering@ascend.com>
50153
50154         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
50155         * m4/fnmatch.m4: Likewise.
50156         * m4/getgroups.m4: Likewise.
50157         * m4/lstat.m4: Likewise.
50158         * m4/malloc.m4: Likewise.
50159         * m4/putenv.m4: Likewise.
50160         * m4/realloc.m4: Likewise.
50161         * m4/regex.m4: Likewise.
50162         * m4/stat.m4: Likewise.
50163         * m4/strftime.m4: Likewise.
50164         Suggestion from Alain Magloire.
50165
50166         * m4/chown.m4: Use `.$ac_objext', not `.o'.
50167         * m4/fnmatch.m4: Likewise.
50168         * m4/getgroups.m4: Likewise.
50169         * m4/getline.m4: Likewise.
50170         * m4/lstat.m4: Likewise.
50171         * m4/malloc.m4: Likewise.
50172         * m4/memcmp.m4: Likewise.
50173         * m4/putenv.m4: Likewise.
50174         * m4/realloc.m4: Likewise.
50175         * m4/regex.m4: Likewise.
50176         * m4/stat.m4: Likewise.
50177         * m4/strftime.m4: Likewise.
50178         Suggestion from Alain Magloire.
50179
50180         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
50181         an argument.
50182
50183         * m4/regex.m4: Add a run-time Test for proper operation of
50184         re_compile_pattern.
50185
50186 1999-01-31  Jim Meyering  <meyering@ascend.com>
50187
50188         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
50189
50190 1999-01-30  Jim Meyering  <meyering@ascend.com>
50191
50192         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
50193
50194         * m4/jm-mktime.m4: Make this a wrapper around the official
50195         AM_FUNC_MKTIME rather than my private copy, now that the official one
50196         is up to date.
50197         * m4/mktime.m4: Remove file.
50198
50199         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
50200         * m4/uptime.m4: Likewise.
50201         * m4/uintmax_t.m4: Likewise.
50202
50203 1999-01-28  Jim Meyering  <meyering@ascend.com>
50204
50205         * m4/jm-macros.m4: Use jm_AFS.
50206         * m4/afs.m4: New file (from fileutils' configure.in).
50207
50208         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
50209         * m4/chown.m4: Likewise.
50210         * m4/d-ino.m4: Likewise.
50211         * m4/d-type.m4: Likewise.
50212         * m4/fnmatch.m4: Likewise.
50213         * m4/getgroups.m4: Likewise.
50214         * m4/gettext.m4: Likewise.
50215         * m4/jm-mktime.m4: Likewise.
50216         * m4/jm-winsz2.m4: Likewise.
50217         * m4/lcmessage.m4: Likewise.
50218         * m4/ls-mntd-fs.m4: Likewise.
50219         * m4/malloc.m4: Likewise.
50220         * m4/memcmp.m4: Likewise.
50221         * m4/putenv.m4: Likewise.
50222         * m4/realloc.m4: Likewise.
50223         * m4/st_mtim.m4: Likewise.
50224         * m4/strftime.m4: Likewise.
50225
50226 1999-01-16  Jim Meyering  <meyering@ascend.com>
50227
50228         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
50229         (ARGMATCH_DIE_DECL): Define.
50230
50231 1999-01-12  Jim Meyering  <meyering@ascend.com>
50232
50233         * m4/Makefile.am.in: Rewrite to avoid using fmt.
50234         Reported by Lars Hecking.
50235
50236 1999-01-10  Jim Meyering  <meyering@ascend.com>
50237
50238         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
50239         gross kludge.
50240         * m4/inttypes_h.m4: Likewise.
50241         * m4/lstat.m4: Likewise.
50242         * m4/malloc.m4: Likewise.
50243         * m4/readdir.m4: Likewise.
50244         * m4/realloc.m4: Likewise.
50245         * m4/st_dm_mode.m4: Likewise.
50246         * m4/stat.m4: Likewise.
50247         * m4/utimbuf.m4: Likewise.
50248         * m4/utimes.m4: Likewise.
50249
50250         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
50251         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
50252         comments in config.h.in are meaningful.
50253
50254         * m4/jm-macros.m4: Require autoconf-2.13 here.
50255
50256         * m4/regex.m4: By default, don't use the included regex.c on systems
50257         with glibc 2.  Suggestion from Uli Drepper.
50258
50259 1999-01-02  Jim Meyering  <meyering@ascend.com>
50260
50261         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
50262
50263 1998-12-18  Jim Meyering  <meyering@ascend.com>
50264
50265         * m4/Makefile.am.in (Makefile.am): Simplify rule.
50266         Based on a suggestion from Lars Hecking.
50267
50268 1998-11-16  Paul Eggert  <eggert@twinsun.com>
50269
50270         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
50271
50272 1998-11-16  Jim Meyering  <meyering@ascend.com>
50273
50274         * m4/lfs.m4: Double-quote the `uname...` expression.
50275
50276 1998-11-14  Jim Meyering  <meyering@ascend.com>
50277
50278         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
50279         * m4/stat.m4: Likewise.
50280
50281 1998-11-03  Jim Meyering  <meyering@ascend.com>
50282
50283         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
50284         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
50285
50286 1998-10-18  Jim Meyering  <meyering@ascend.com>
50287
50288         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
50289
50290 1998-10-17  Jim Meyering  <meyering@ascend.com>
50291
50292         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
50293         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
50294         calls for those previously hard-coded headers.  Instead, take a new
50295         parameter.
50296         (jm_CHECK_DECLARATIONS): Reflect interface change.
50297         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
50298         (jm_CHECK_DECL_LOCALTIME_R): New macro.
50299
50300         * m4/mktime.m4: Test for spring-forward gap before long-running test.
50301
50302 1998-10-14  Jim Meyering  <meyering@ascend.com>
50303
50304         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
50305         instead of "TZ=America/Vancouver".  From Paul Eggert.
50306
50307 1998-10-11  Jim Meyering  <meyering@ascend.com>
50308
50309         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
50310         This adds a test for a recently added compatibility fix for mktime.c.
50311         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
50312
50313 1998-09-27  Jim Meyering  <meyering@ascend.com>
50314
50315         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
50316
50317         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
50318         ../configure.in, including a change from Gordon Matzigkeit to allow
50319         cross-compiling for the Hurd.
50320
50321         * m4/glibc.m4: New file/macro to test for the GNU C Library
50322         versions 1 and 2.  From Gordon Matzigkeit.
50323         Indent.
50324
50325 1998-09-21  Jim Meyering  <meyering@ascend.com>
50326
50327         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
50328
50329 1998-08-18  Paul Eggert  <eggert@twinsun.com>
50330
50331         Port nanosecond-resolution times to UnixWare 2.1.2 and
50332         pedantic Solaris 2.6.
50333
50334         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
50335         AC_STRUCT_ST_MTIM.
50336         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
50337         Generate name of ns member, instead of just 1 or undef.
50338         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
50339
50340 1998-08-15  Jim Meyering  <meyering@ascend.com>
50341
50342         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
50343         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
50344         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
50345         instead of jm_TYPE_SSIZE_T.
50346
50347 1998-08-12  Jim Meyering  <meyering@ascend.com>
50348
50349         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
50350
50351 1998-08-02  Jim Meyering  <meyering@ascend.com>
50352
50353         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
50354         in acconfig.h manually.
50355
50356 1998-07-31  Paul Eggert  <eggert@twinsun.com>
50357
50358         * m4/st_mtim.m4: New file.
50359
50360 1998-07-28  Jim Meyering  <meyering@ascend.com>
50361
50362         * m4/utimes.m4: Undef stat.
50363
50364 1998-07-25  Jim Meyering  <meyering@ascend.com>
50365
50366         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
50367         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
50368
50369 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
50370
50371         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
50372         uid and gid actually remain unchanged.
50373
50374 1998-07-07  Jim Meyering  <meyering@ascend.com>
50375
50376         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
50377
50378 1998-07-04  Jim Meyering  <meyering@ascend.com>
50379
50380         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
50381         to prove that this macro can be used in packages without regex.c.
50382
50383 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
50384
50385         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
50386         is to be used.
50387
50388 1998-07-03  Jim Meyering  <meyering@ascend.com>
50389
50390         * m4/gettext.m4: Add -lintl if it's found to be necessary.
50391
50392         * m4/gettext.m4: New file -- from gettext-0.10.35.
50393         * m4/lcmessage.m4: Likewise.
50394         * m4/progtest.m4: Likewise.
50395
50396         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
50397         * m4/jm-macros.m4: Require the new macro.
50398
50399 1998-06-29  Jim Meyering  <meyering@ascend.com>
50400
50401         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
50402         for the definition of NGROUPS (used in a system header included
50403         by sys/mount.h).
50404
50405 1998-06-28  Jim Meyering  <meyering@ascend.com>
50406
50407         * m4/ls-mntd-fs.m4: New file.
50408         * m4/fstypename.m4: New file.
50409
50410         * m4/jm-macros.m4: Require the new macro.
50411         * m4/jm-glibc-io.m4: New file.
50412
50413 1998-05-19  Jim Meyering  <meyering@ascend.com>
50414
50415         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
50416         * m4/lchown.m4: New file.
50417
50418         * m4/Makefile.am.in: New file.
50419         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
50420
50421 1998-05-14  Jim Meyering  <meyering@ascend.com>
50422
50423         * m4/Makefile.am (EXTRA_DIST): Add them.
50424         * m4/jm-macros.m4: New file.
50425         * m4/utimbuf.m4: New file.
50426
50427 1998-05-12  Jim Meyering  <meyering@ascend.com>
50428
50429         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
50430
50431 1998-05-11  Jim Meyering  <meyering@ascend.com>
50432
50433         * m4/isc-posix.m4: New file.
50434
50435 1998-05-10  Jim Meyering  <meyering@ascend.com>
50436
50437         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
50438
50439 1998-05-09  Jim Meyering  <meyering@ascend.com>
50440
50441         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
50442         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
50443         with automake.
50444
50445         * m4/ssize_t.m4: New file.
50446         * m4/mktime.m4: Remove file -- the new automake has this now.
50447
50448 1998-04-26  Jim Meyering  <meyering@ascend.com>
50449
50450         * m4/assert.m4: New file.
50451         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
50452
50453 1998-04-05  Jim Meyering  <meyering@ascend.com>
50454
50455         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
50456         (jm_PREREQ): Use it here.
50457
50458 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
50459
50460         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
50461         in acconfig.h.
50462
50463 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
50464
50465         * m4/prereq.m4: New file.
50466         * m4/error.m4: New file.
50467         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
50468
50469 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
50470
50471         * m4/getline.m4: Don't set am_cv_func_working_getline before the
50472         cache-check for the same variable -- that defeated the purpose of
50473         the test; the test program was never run.  This was a problem only
50474         on systems with losing getline functions -- HP-UX 10.20 is one.
50475         Reported by Bjorn Helgaas.
50476
50477 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
50478
50479         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
50480
50481 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
50482
50483         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
50484
50485         * m4/const.m4: New file.  Use an initializer in this declaration
50486         typedef int charset[2]; const charset x;
50487         Reported by Bob Glickstein.
50488
50489 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
50490
50491         * m4/chown.m4: Fix reversed types on -1 args to chown.
50492         From Kaveh Ghazi.
50493
50494 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
50495
50496         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
50497         Add lseek and memchr.
50498
50499         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
50500         T.E.Dickey <dickey@clark.net> said that some older preprocessors
50501         have a 20-character limit on names.
50502
50503 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
50504
50505         * m4/inttypes_h.m4: New file.
50506         * m4/uintmax_t.m4: New file.
50507         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
50508
50509
50510         -----
50511
50512         Local Variables:
50513         coding: utf-8
50514         End:
50515
50516         Copyright (C) 1997-2009 Free Software Foundation, Inc.
50517
50518         Copying and distribution of this file, with or without
50519         modification, are permitted provided the copyright notice
50520         and this notice are preserved.